/* ───────────────────────────────────────────────
   Boosting Hub – Base Styles
   Theme: Violet-Teal Dark
   ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Primary – Indigo */
    --primary:        #6366F1;
    --primary-dark:   #4F46E5;
    --primary-light:  #818CF8;
    --primary-glow:   rgba(99, 102, 241, 0.25);

    /* Accent – Rose */
    --accent:         #F43F5E;
    --accent-light:   #FB7185;

    /* Surfaces */
    --bg-base:        #09090B;
    --bg-base-rgb:    9, 9, 11;
    --bg-surface:     #18181B;
    --bg-card:        #121214;
    --bg-elevated:    #27272A;
    --border-subtle:  rgba(255,255,255,0.08);
    --border-muted:   rgba(255,255,255,0.12);

    /* Text */
    --text-primary:   #FAFAFA;
    --text-secondary: rgba(250,250,250,0.70);
    --text-muted:     rgba(250,250,250,0.45);

    /* Status */
    --success:  #10B981;
    --danger:   #EF4444;
    --warning:  #F59E0B;
    --info:     #3B82F6;

    /* Sidebar */
    --sidebar-bg:     #09090B;
    --sidebar-border: rgba(255,255,255,0.08);
    --sidebar-active: rgba(99, 102, 241, 0.15);

    /* Misc */
    --radius-card: 16px;
    --radius-btn:  12px;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.40);
    --shadow-glow: 0 8px 32px rgba(99, 102, 241, 0.20);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    background: var(--bg-base);
    overflow-x: clip;
}

body.landing-page {
    --primary:        #3B82F6;
    --primary-dark:   #2563EB;
    --primary-light:  #60A5FA;
    --primary-glow:   rgba(59, 130, 246, 0.25);
    --accent:         #3B82F6;
    --accent-light:   #60A5FA;
    background: var(--bg-base);
    color: var(--text-primary);
}

body.auth-page-body {
    background:
        radial-gradient(circle at 25% 40%, rgba(59, 130, 246, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 75% 60%, rgba(59, 130, 246, 0.12) 0%, transparent 55%),
        #09090B;
    min-height: 100vh;
}
body.light-mode.auth-page-body {
    background:
        radial-gradient(circle at 25% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 75% 60%, rgba(59, 130, 246, 0.05) 0%, transparent 55%),
        #FAFAFA;
}

body.dashboard-page  { background: var(--bg-base); }
body.admin-page,
body.user-dashboard-page { background: var(--bg-base); }

body.light-mode {
    --bg-base:       #FAFAFA;
    --bg-base-rgb:   250, 250, 250;
    --bg-surface:    #FFFFFF;
    --bg-elevated:   #F4F4F5;
    --bg-card:       #FFFFFF;
    --border-subtle: rgba(0,0,0,0.08);
    --border-muted:  rgba(0,0,0,0.15);
    --text-primary:  #09090B;
    --text-secondary:#3F3F46;
    --text-muted:    #71717A;
    --sidebar-bg:    #FFFFFF;
    --sidebar-border:rgba(0,0,0,0.08);
    --primary:       #4F46E5;
    --sidebar-active:rgba(79, 70, 229, 0.10);
}

body.light-mode.landing-page {
    --primary:        #3B82F6;
    --primary-dark:   #2563EB;
    --primary-light:  #60A5FA;
    --primary-glow:   rgba(59, 130, 246, 0.25);
    --accent:         #3B82F6;
    --accent-light:   #60A5FA;
}

/* ── Logo & Brand ────────────────────────────────────── */
.logo-img-full { width: 100%; height: 100%; object-fit: contain; }
.navbar-brand-icon {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.navbar-brand-icon i { font-size: 0.9rem; color: #fff; }

/* ── Utility ─────────────────────────────────────────── */
.hidden { display: none; }

/* ── Theme Toggle (pill) ─────────────────────────────── */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.theme-toggle-btn:hover {
    background: var(--bg-elevated);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--primary-glow);
    border-color: var(--primary);
}
.theme-toggle-icons {
    position: relative;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.theme-toggle-icons i {
    position: absolute;
    font-size: 1.05rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle-icons .light-icon { opacity: 0; transform: translateY(12px) rotate(-30deg); }
.theme-toggle-icons .dark-icon  { opacity: 1; transform: translateY(0) rotate(0deg); }
.theme-toggle-btn.is-light .theme-toggle-icons .light-icon { opacity: 1; transform: translateY(0) rotate(0deg); }
.theme-toggle-btn.is-light .theme-toggle-icons .dark-icon  { opacity: 0; transform: translateY(-12px) rotate(30deg); }
.theme-toggle-text { transition: color 0.3s; }
@media (max-width: 480px) {
    .theme-toggle-text { display: none; }
    .theme-toggle-btn { padding: 10px 12px; }
}
body:not(.landing-page) .theme-toggle-btn { display: none; }

/* ── Profile Dropdown ────────────────────────────────── */
.profile-dropdown-caret { font-size: 0.65rem; margin-left: 2px; }
.form-inline { display: inline; }

/* ── Settings Cards ──────────────────────────────────── */
.settings-card-clickable { cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.settings-card-clickable:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.settings-card-icon { font-size: 3rem; margin-bottom: 16px; }
.icon-color-purple { color: #7C3AED; }
.icon-color-blue { color: #3B82F6; }
.icon-color-teal { color: #0D9488; }
.icon-color-green { color: #10B981; }
.icon-color-violet { color: #8B5CF6; }
.icon-color-indigo { color: #6366F1; }
.icon-color-amber { color: #F59E0B; }

/* ── Social Platform Icons (auth + dashboard) ────────── */
.social-icon-instagram { color: #E4405F; }
.social-icon-facebook { color: #1877F2; }
.social-icon-tiktok { color: var(--text-primary, #f8fafc); }
.social-icon-youtube { color: #FF0000; }
.social-icon-twitter { color: var(--text-primary, #f8fafc); }
.social-icon-other { color: var(--primary, #6366f1); }
.social-icon-instagram,
.social-icon-facebook,
.social-icon-tiktok,
.social-icon-youtube,
.social-icon-twitter,
.social-icon-other { font-size: 1rem; }
.social-icon-lg { font-size: 1.1rem; }
.social-modal-content { background: var(--bg-card, #0f172a); color: var(--text-primary, #f8fafc); }
.social-modal-hint { font-size: 0.82rem; color: var(--text-muted, rgba(250,250,250,0.50)); margin: 0 0 16px; }
.auth-label-sm { font-size: 0.85rem; }
.auth-input-sm { font-size: 0.85rem; }
.auth-text-xs { font-size: 0.78rem; }
.btn-radius-sm { border-radius: 8px; }
.linked-check-icon { font-size: 0.7rem; }
.social-profile-link { max-width: 200px; }
.currency-select { width: auto; display: inline-block; }

/* ── Platform Checkbox Grid ──────────────────────────── */
.platform-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.platform-checkbox-item {
    cursor: pointer;
}
.platform-checkbox-item input[type="checkbox"] {
    display: none;
}
.platform-checkbox-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--border-muted);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    transition: all 0.2s ease;
    user-select: none;
}
.platform-checkbox-item:hover .platform-checkbox-box {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}
.platform-checkbox-item input[type="checkbox"]:checked + .platform-checkbox-box {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary);
}
.platform-checkbox-item.linked .platform-checkbox-box {
    opacity: 0.5;
    cursor: not-allowed;
}
.platform-url-field {
    background: var(--bg-elevated);
    border: 1px solid var(--border-muted);
    border-radius: 10px;
    padding: 12px;
}
.platform-url-field input.is-invalid {
    border-color: var(--danger);
}
@media (max-width: 576px) {
    .platform-checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
