/* ======================================================
   KALAKAR.IN — Global Design System
   Dark Theme · Saffron & Purple Brand Palette
   Creator Commerce Platform
   ====================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@600;700;800;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
    /* Brand Colors */
    --saffron: #FF6B00;
    --saffron-light: #FF8C38;
    --saffron-dark: #E05A00;
    --purple: #7C3AED;
    --purple-light: #A78BFA;
    --purple-dark: #5B21B6;
    --gold: #F59E0B;

    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Background Layers (Premium Light Theme) */
    --bg-base: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-elevated: #F1F5F9;
    --bg-overlay: rgba(15, 23, 42, 0.05);

    /* Text (Inverted for Light Mode) */
    --text-white: #0F172A;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-disabled: #94A3B8;

    /* Borders */
    --border: #E2E8F0;
    --border-hover: #CBD5E1;
    --border-focus: rgba(255, 107, 0, 0.4);

    /* Semantic Backgrounds */
    --success-bg: rgba(16, 185, 129, 0.08);
    --warning-bg: rgba(245, 158, 11, 0.08);
    --error-bg: rgba(239, 68, 68, 0.08);
    --info-bg: rgba(59, 130, 246, 0.08);

    /* Gradients (Subtle for Light Mode) */
    --grad-brand: linear-gradient(135deg, #FF6B00, #FF8C38);
    --grad-purple: linear-gradient(135deg, #7C3AED, #A78BFA);
    --grad-gold: linear-gradient(135deg, #F59E0B, #FCD34D);
    --grad-card: linear-gradient(145deg, #FFFFFF, #F8FAFC);
    --grad-hero: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(255, 107, 0, 0.03) 100%);

    /* Shadows (Refined for Light Mode) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.12);
    --shadow-brand: 0 4px 14px rgba(255, 107, 0, 0.25);
    --shadow-purple: 0 4px 14px rgba(124, 58, 237, 0.25);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Typography */
    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', 'Inter', sans-serif;

    /* Transitions */
    --transition: all 0.18s ease;
    --transition-md: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

body {
    font-family: var(--font-base);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-base);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--saffron);
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 0, 0.25);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 0, 0.45);
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

h4 {
    font-size: 1.1rem;
}

h5 {
    font-size: 0.95rem;
}

h6 {
    font-size: 0.85rem;
}

p {
    color: var(--text-secondary);
}

/* ── Logo ── */
.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--saffron);
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Grid Utilities ── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ── Cards ── */
.card {
    background: var(--grad-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition-md);
}

.card:hover {
    border-color: var(--border-hover);
}

.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.card-sm {
    padding: 1rem 1.25rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-md);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-brand {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn-brand:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(255, 107, 0, 0.30);
    color: #fff;
}

.btn-purple {
    background: var(--grad-purple);
    color: #fff;
    box-shadow: var(--shadow-purple);
}

.btn-purple:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--saffron);
    color: var(--saffron);
}

.btn-outline-brand {
    background: transparent;
    border-color: rgba(255, 107, 0, 0.3);
    color: var(--saffron);
}

.btn-outline-brand:hover {
    background: rgba(255, 107, 0, 0.08);
    border-color: var(--saffron);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.w-full {
    width: 100%;
    justify-content: center;
}

/* ── Form Elements ── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: var(--font-base);
    transition: var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--border-focus);
    background: var(--bg-overlay);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.08);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
    cursor: pointer;
}

.form-select option {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-error {
    font-size: 0.75rem;
    color: var(--error);
}

.form-error-box {
    padding: 0.7rem 1rem;
    background: var(--error-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--error);
}

.form-success-box {
    padding: 0.7rem 1rem;
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--success);
}

/* ── Data Table ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead th {
    padding: 0.7rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tbody td {
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    vertical-align: middle;
}

/* ── Sidebar (Dashboard Layout) ── */
.sidebar {
    width: 260px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: var(--transition-md);
}

.sidebar::-webkit-scrollbar {
    width: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    margin: 0.1rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.sidebar-item.active {
    background: rgba(255, 107, 0, 0.10);
    color: var(--saffron);
    font-weight: 600;
}

.sidebar-item-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--grad-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    font-family: var(--font-display);
    overflow: hidden;
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 1rem;
}

/* ── Main Content Area ── */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Topbar ── */
.topbar {
    position: sticky;
    top: 0;
    background: rgba(74, 74, 77, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    gap: 1rem;
}

.topbar-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.topbar-action:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* ── Page Content ── */
.page-content {
    padding: 2rem;
    flex: 1;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ── Stat Cards ── */
.stat-card {
    background: var(--grad-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-md);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-accent {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 900;
    font-family: var(--font-display);
    color: var(--text-white);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.35rem;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.stat-change.up {
    background: var(--success-bg);
    color: var(--success);
}

.stat-change.down {
    background: var(--error-bg);
    color: var(--error);
}

/* ── Wallet Hero ── */
.wallet-hero {
    background: linear-gradient(135deg, #1A0A2E 0%, #2D1200 100%);
    border: 1px solid rgba(255, 107, 0, 0.15);
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.wallet-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255, 107, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.wallet-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.35rem;
}

.wallet-balance {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-display);
    color: #fff;
    line-height: 1;
}

/* ── Notification Badge ── */
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    background: var(--error);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ── Toast Notifications ── */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--bg-overlay);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toast-in 0.3s ease;
    min-width: 260px;
    max-width: 360px;
}

.toast.toast-success {
    border-left: 3px solid var(--success);
}

.toast.toast-error {
    border-left: 3px solid var(--error);
}

.toast.toast-warning {
    border-left: 3px solid var(--warning);
}

.toast.toast-info {
    border-left: 3px solid var(--info);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slide-up 0.25s ease;
}

.modal-header {
    padding: 1.5rem 1.75rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-overlay);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.modal-body {
    padding: 1.75rem;
}

.modal-footer {
    padding: 1rem 1.75rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.badge-brand {
    background: rgba(255, 107, 0, 0.12);
    color: var(--saffron);
}

.badge-purple {
    background: rgba(124, 58, 237, 0.12);
    color: var(--purple-light);
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-error {
    background: var(--error-bg);
    color: var(--error);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
}

/* ── Divider ── */
.divider {
    height: 1px;
    background: var(--border);
    margin: 1.25rem 0;
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 1.25rem 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Empty State ── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    gap: 0.75rem;
}

.empty-state-icon {
    font-size: 2.5rem;
    opacity: 0.4;
}

.empty-state-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ── Loading Spinner ── */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--saffron);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Tabs ── */
.tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    margin-bottom: -1px;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--saffron);
    border-bottom-color: var(--saffron);
    font-weight: 600;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
    padding: 1.25rem 1rem;
}

.page-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.page-btn.active {
    background: rgba(255, 107, 0, 0.12);
    color: var(--saffron);
    border-color: rgba(255, 107, 0, 0.25);
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ── Search Input ── */
.search-wrap {
    position: relative;
}

.search-wrap .form-input {
    padding-left: 2.5rem;
}

.search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

/* ── Chip / Tag ── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.chip-remove {
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.chip-remove:hover {
    opacity: 1;
}

/* ── File Upload ── */
.file-drop {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-drop:hover,
.file-drop.drag-over {
    border-color: rgba(255, 107, 0, 0.4);
    background: rgba(255, 107, 0, 0.04);
}

/* ── Section Headers ── */
.section-header {
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
}

.section-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ── Utilities ── */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-white {
    color: var(--text-white);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-error {
    color: var(--error);
}

.text-brand {
    color: var(--saffron);
}

.font-bold {
    font-weight: 700;
}

.font-600 {
    font-weight: 600;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Responsive ── */

/* Tablet breakpoint */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: none;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        padding: 0.75rem 1rem;
    }

    #sidebarToggle,
    .topbar-toggle {
        display: flex !important;
    }

    .page-content {
        padding: 1.25rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stat-grid {
        grid-template-columns: 1fr !important;
    }

    .page-content {
        padding: 1rem;
    }

    .wallet-hero {
        padding: 1.5rem;
    }

    .wallet-balance {
        font-size: 2rem;
    }

    .modal {
        max-width: 100%;
        margin: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 85vh;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    /* Auth Pages */
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem !important;
        border-radius: var(--radius-lg);
    }

    .auth-logo {
        font-size: 1.5rem !important;
    }

    /* Data tables — horizontal scroll */
    .data-table,
    .admin-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .data-table th,
    .data-table td,
    .admin-table th,
    .admin-table td {
        font-size: 0.78rem;
        padding: 0.5rem 0.65rem;
    }

    /* Page header stacks */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* Stat cards smaller text */
    .stat-value {
        font-size: 1.4rem;
    }

    .stat-title {
        font-size: 0.75rem;
    }

    /* Topbar adjustments */
    .topbar {
        padding: 0.5rem 1rem;
    }

    .topbar-right {
        gap: 0.5rem;
    }

    /* Detail panel */
    .detail-panel {
        padding: 1rem !important;
    }

    /* Filter bar stacks */
    .filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .filter-bar .form-input,
    .filter-bar .form-select {
        max-width: none !important;
    }

    /* Inline grid overrides */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Quick actions wrap */
    .quick-actions {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .btn {
        padding: 0.55rem 1rem;
        font-size: 0.82rem;
    }

    .card {
        padding: 1rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
        /* Prevents iOS zoom */
    }

    /* Action buttons smaller */
    .action-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.72rem;
    }
}

/* =====================================================
   LANDING PAGE COMPONENTS
   ===================================================== */

/* ── Button Variants for Landing ── */
.btn-primary {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.35);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.btn-xl {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

/* ── Text Gradients ── */
.text-gradient {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: var(--grad-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-md);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--saffron);
    background: var(--bg-elevated);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Hero Section ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8.5rem 0 6rem;
    overflow: hidden;
    background-color: var(--bg-base);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(at 0% 0%, rgba(255, 107, 0, 0.08) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.08) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 107, 0, 0.05) 0, transparent 50%),
        radial-gradient(at 0% 100%, rgba(124, 58, 237, 0.05) 0, transparent 50%);
    opacity: 0.8;
}

.hero-glow-1,
.hero-glow-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobMove 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
    z-index: 0;
}

.hero-glow-1 {
    top: -10%;
    left: -10%;
    background: rgba(255, 107, 0, 0.15);
}

.hero-glow-2 {
    bottom: -10%;
    right: -10%;
    background: rgba(124, 58, 237, 0.15);
    animation-delay: -5s;
}

@keyframes blobMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(100px, 50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 100px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 100%);
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    overflow: hidden;
}

.hero-text {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    animation: fadeInDown 0.8s ease backwards;
}

.hero-badge span {
    color: var(--saffron);
}

.hero-text h1 {
    font-size: clamp(1.75rem, 5vw, 4.6rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease backwards 0.2s;
    word-break: break-word;
    overflow-wrap: break-word;
}

.shimmer {
    background: linear-gradient(90deg,
            var(--text-white) 0%,
            var(--saffron) 25%,
            var(--purple) 50%,
            var(--saffron) 75%,
            var(--text-white) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 5s linear infinite;
}

@keyframes shimmerText {
    to {
        background-position: 200% center;
    }
}

.hero-text>p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease backwards 0.4s;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease backwards 0.6s;
    justify-content: center;
}

/* ── Hero Showcase (Right Column) ── */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease backwards 0.5s;
}

.showcase-circle {
    position: absolute;
    width: 380px;
    height: 380px;
    border: 1px dashed var(--border);
    border-radius: 50%;
    animation: spinCircle 30s linear infinite;
}

@keyframes spinCircle {
    to {
        transform: rotate(360deg);
    }
}

.artist-card-float {
    position: absolute;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    width: 240px;
    animation: floatAnim 6s ease-in-out infinite;
    z-index: 2;
}

.artist-card-float:nth-child(2) {
    top: 0;
    right: 0;
    animation-delay: -1s;
}

.artist-card-float:nth-child(3) {
    bottom: 20%;
    left: -10%;
    animation-delay: -3s;
}

.artist-card-float:nth-child(4) {
    top: 40%;
    right: -15%;
    animation-delay: -4.5s;
}

@keyframes floatAnim {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.artist-card-float .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.artist-card-float .info h5 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.artist-card-float .info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: fadeInUp 0.8s ease backwards 0.8s;
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    font-weight: 600;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Sections ── */
section {
    padding: 7rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.1rem;
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--saffron);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.section-header.center .section-label {
    display: inline-flex;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

.section-header.center .section-subtitle {
    margin: 0 auto;
}

/* ── Scroll Animations ── */
.anim-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive Landing ── */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        gap: 0.25rem;
        box-shadow: var(--shadow-lg);
        z-index: 100;
    }

    .nav-links.open .nav-link {
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
    }

    .nav-links.open .nav-link:hover {
        background: rgba(255, 107, 0, 0.06);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        height: 320px;
    }

    .container {
        padding: 0 1.25rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .hero {
        padding: 5rem 0 3rem;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        margin: 0 auto;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
    }

    .hero-text p {
        font-size: 0.92rem;
    }

    .hero-stats {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-stat-num {
        font-size: 1.3rem;
    }

    .hero-stat-label {
        font-size: 0.7rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-actions .btn-xl {
        justify-content: center;
        text-align: center;
    }

    .btn-xl {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Hero visual — hide on mobile (floating cards don't work at small widths) */
    .hero-visual {
        display: none;
    }

    /* Feature cards grid */
    .features-grid,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr !important;
    }

    /* Testimonials */
    .testi-grid {
        grid-template-columns: 1fr !important;
    }

    /* Section titles */
    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    /* How it works */
    .steps-grid {
        grid-template-columns: 1fr !important;
    }

    /* CTA section */
    .cta-content {
        padding: 2rem 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* ── Inline style overrides for PHP pages ── */
    /* These rules use !important because the PHP files use inline styles */
    [style*="display:flex"][style*="gap"] {
        flex-wrap: wrap !important;
    }

    [style*="display:grid"] {
        grid-template-columns: 1fr !important;
    }

    [style*="width:140px"],
    [style*="width:160px"],
    [style*="width: 140px"],
    [style*="width: 160px"] {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Marquee */
    .marquee-track {
        animation-duration: 12s !important;
    }
}

@media (max-width: 480px) {
    .hero-actions .btn-xl {
        width: 100%;
        justify-content: center;
    }

    .navbar-inner {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.15rem;
    }

    /* Hero visual already hidden at 768px */

    section {
        padding: 2.5rem 0;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 0.35rem 0.75rem;
    }
}

/* ── Marquee mobile fix ── */
@media (max-width: 768px) {
    .marquee {
        overflow: hidden;
    }

    .marquee-track span {
        font-size: 0.85rem;
        padding: 0 0.75rem;
    }
}