/* ==========================================================================
   THE RULER - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* Font Declarations & Variables */
:root {
    --bg-base: #030305;
    --bg-surface: #07080c;
    --bg-surface-elevated: #0f1017;
    --bg-surface-glass: rgba(7, 8, 12, 0.75);
    --border-glass: rgba(255, 255, 255, 0.05);
    
    /* Core Premium Palette: White, Black, Red, Blue, Purple */
    --theme-white: #ffffff;
    --theme-black: #000000;
    --theme-red: #ef4444;
    --theme-blue: #2563eb;
    --theme-blue-light: #60a5fa;
    --theme-purple: #8b5cf6;
    --theme-purple-light: #a78bfa;
    --theme-silver: #d1d5db;
    
    /* Variables mapped to maintain backwards-compatibility and styles */
    --gold-primary: var(--theme-purple);
    --gold-secondary: var(--theme-blue);
    --gold-glow: rgba(139, 92, 246, 0.15);
    --gold-dim: rgba(139, 92, 246, 0.4);
    
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #111827;
    
    /* Utility colors */
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* Premium Gradients */
    --gradient-premium: linear-gradient(135deg, var(--theme-blue) 0%, var(--theme-purple) 50%, var(--theme-red) 100%);
    --gradient-glow: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(37, 99, 235, 0.1) 40%, transparent 70%);
    
    /* Effects & Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-round: 50%;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
    --shadow-gold: 0 0 25px rgba(139, 92, 246, 0.15);
    
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

ul {
    list-style: none;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   GLOW BACKDROPS
   ========================================================================== */
.glow-bg {
    position: fixed;
    border-radius: var(--radius-round);
    filter: blur(140px);
    z-index: -10;
    opacity: 0.12;
    pointer-events: none;
    transition: var(--transition-slow);
}

.glow-1 {
    top: -150px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--theme-purple) 0%, transparent 70%);
}

.glow-2 {
    bottom: -150px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--theme-blue) 0%, transparent 70%);
}

.glow-3 {
    top: 40%;
    left: 60%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--theme-red) 0%, transparent 75%);
    opacity: 0.08;
}

/* ==========================================================================
   PAGE MOUNT TRANSITIONS
   ========================================================================== */
.spa-page {
    display: none;
    width: 100%;
    min-height: 70vh;
}

.spa-page.active {
    display: block;
    animation: pageFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   PREMIUM BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-gold {
    background: var(--gradient-premium);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.45);
    filter: brightness(1.15);
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-gold-outline {
    border: 1px solid var(--theme-purple);
    color: var(--theme-purple-light);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.btn-gold-outline:hover {
    background: rgba(139, 92, 246, 0.08);
    color: var(--theme-blue-light);
    border-color: var(--theme-blue);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn-filter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-filter:hover {
    color: var(--text-primary);
    border-color: var(--gold-dim);
}

.btn-filter.active {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--theme-purple);
    color: var(--theme-purple-light);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

/* ==========================================================================
   GLASSMORPHISM CARD STYLING
   ========================================================================== */
.glass-card {
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: var(--transition-slow);
}

.glass-card:hover .card-glow {
    opacity: 1;
}

.border-gold-glow {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.15), var(--shadow-md);
}

.border-gold-glow:hover {
    border-color: var(--theme-purple-light);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.25), var(--shadow-md);
}

/* Micro animations */
.animate-pulse-subtle {
    animation: pulseSubtle 3s infinite ease-in-out;
}

@keyframes pulseSubtle {
    0%, 100% {
        transform: translateY(0);
        box-shadow: var(--shadow-md);
    }
    50% {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.05);
    }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background: rgba(6, 7, 9, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-fast);
}

.main-header.scrolled {
    height: 70px;
    background: rgba(6, 7, 9, 0.9);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
}

.logo:hover .nav-logo-img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #ffffff 40%, var(--theme-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    height: 100%;
}

.nav-list {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 32px;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 8px 4px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--theme-blue-light);
}

.nav-link.active i {
    transform: scale(1.15);
    color: var(--theme-blue-light);
}

.nav-link.active::after {
    width: 100%;
    background-color: var(--theme-blue-light);
}

/* User Auth indicator */
.user-auth-bar {
    display: flex;
    align-items: center;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 30px;
}

.user-status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: var(--radius-round);
    box-shadow: 0 0 8px var(--color-success);
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.user-name-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-primary);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.btn-logout {
    margin-left: 12px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-round);
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(239, 68, 68, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-logout:hover {
    background: var(--color-error);
    color: #ffffff;
    transform: scale(1.05);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 110;
}

/* Spacer for Fixed Header */
.spa-content {
    margin-top: 80px;
    flex-grow: 1;
}

/* ==========================================================================
   HOME PAGE - HERO SECTION
   ========================================================================== */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(80vh - 80px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    gap: 48px;
}

.hero-content {
    flex: 1.1;
}

.badge-gold {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--theme-purple-light);
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    margin-bottom: 24px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.text-gold {
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--theme-purple-light);
}

i.text-gold {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--theme-purple-light) !important;
}

i.text-gold.fa-star {
    color: var(--theme-purple-light) !important;
}

i.text-gold.fa-lock, i.text-gold.fa-user-shield {
    color: var(--theme-red) !important;
}

i.text-gold.fa-gauge-high, i.text-gold.fa-cloud-arrow-up {
    color: var(--theme-blue-light) !important;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

/* Hero Widget Mocks */
.hero-widget-card {
    width: 100%;
    max-width: 420px;
    border-color: rgba(255, 255, 255, 0.08);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-indicator {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-success);
    border-radius: var(--radius-round);
    animation: statusPulse 1.5s infinite ease-in-out;
}

@keyframes statusPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

.widget-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

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

.widget-chart-mock {
    height: 140px;
    background: rgba(59, 130, 246, 0.01);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.chart-line-path {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.15) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
    clip-path: polygon(0% 80%, 15% 65%, 30% 75%, 45% 45%, 60% 50%, 75% 30%, 90% 35%, 100% 10%, 100% 100%, 0% 100%);
    border-top: 2px solid var(--theme-blue-light);
}

.chart-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--theme-red);
    border: 2px solid var(--bg-surface);
    border-radius: var(--radius-round);
    box-shadow: 0 0 10px var(--theme-red);
    animation: pointPulse 2s infinite ease-in-out;
}

@keyframes pointPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

/* ==========================================================================
   USER WORKSPACE SECTION
   ========================================================================== */
.user-workspace-section {
    padding: 60px 24px;
    border-top: 1px solid var(--border-glass);
}

.card-fade-in {
    animation: cardMount 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardMount {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Guest View: Login */
.login-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.login-card {
    border-color: rgba(255, 255, 255, 0.05);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.login-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Form Styling */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-group-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    font-size: 0.8rem;
    color: var(--gold-primary);
}

.form-group input, .form-group textarea, .form-group select {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    transition: var(--transition-fast);
    width: 100%;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.02);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Member View: Dashboard */
.member-dashboard {
    animation: cardMount 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    margin-bottom: 48px;
}

.profile-card {
    display: flex;
    flex-direction: column;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-round);
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-sm);
}

.profile-title-block h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-success);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.divider-gold {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.3) 25%, rgba(59, 130, 246, 0.3) 50%, rgba(239, 68, 68, 0.3) 75%, transparent 100%);
    margin: 24px 0;
}

.credential-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    flex-grow: 1;
}

.cred-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cred-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cred-value-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cred-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--theme-purple-light);
    background: rgba(139, 92, 246, 0.05);
    border: 1px dashed rgba(139, 92, 246, 0.25);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    flex-grow: 1;
    letter-spacing: 0.5px;
    word-break: break-all;
}

.btn-copy {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-copy:hover {
    color: var(--gold-primary);
    border-color: var(--gold-dim);
    background: rgba(212, 175, 55, 0.05);
}

.cred-value {
    font-size: 0.95rem;
    font-weight: 500;
}

.dashboard-actions {
    margin-top: auto;
}

/* Upload Card & Dropzone */
.upload-card {
    display: flex;
    flex-direction: column;
}

.upload-header {
    margin-bottom: 24px;
}

.upload-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.upload-dropzone {
    flex-grow: 1;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    min-height: 220px;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.04);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.upload-dropzone:hover .dropzone-icon, .upload-dropzone.dragover .dropzone-icon {
    color: var(--gold-primary);
    transform: translateY(-6px) scale(1.05);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.dropzone-icon {
    font-size: 2.8rem;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.dropzone-text {
    font-size: 1rem;
    font-weight: 500;
}

.browse-link {
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.dropzone-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.upload-feedback {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.feedback-spinner {
    color: var(--gold-primary);
    font-size: 1rem;
}

/* Uploaded Gallery Section */
.gallery-wrapper {
    margin-top: 48px;
    border-top: 1px solid var(--border-glass);
    padding-top: 40px;
}

.gallery-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.gallery-title-row h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
}

.gallery-empty-state {
    text-align: center;
    padding: 60px 24px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.empty-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    aspect-ratio: 4 / 3;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    animation: cardMount 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: var(--shadow-md), 0 0 20px rgba(139, 92, 246, 0.1);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 24px 16px 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gallery-filename {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.gallery-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-delete-img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-error);
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.8rem;
}

.btn-delete-img:hover {
    background: var(--color-error);
    color: #ffffff;
}

/* ==========================================================================
   PAGE HEADERS (Generic for Inner Pages)
   ========================================================================== */
.page-header {
    padding: 60px 24px 40px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

/* ==========================================================================
   REVIEW PAGE STYLING
   ========================================================================== */
.reviews-dashboard {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    padding-bottom: 80px;
}

.reviews-summary-card {
    height: fit-content;
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.summary-score-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.large-score {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary);
}

.score-stars {
    display: flex;
    gap: 4px;
    font-size: 1.2rem;
}

.score-total-reviews {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.summary-bars-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.bar-stars {
    width: 32px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.bar-stars i {
    font-size: 0.75rem;
}

.bar-track {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--theme-purple) 0%, var(--theme-blue) 100%);
    border-radius: 4px;
}

.bar-pct {
    width: 36px;
    color: var(--text-muted);
    text-align: right;
}

.summary-action-block {
    text-align: center;
}

/* Reviews Feed */
.reviews-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background: rgba(18, 20, 24, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition-normal);
}

.review-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(18, 20, 24, 0.6);
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.review-user-details {
    display: flex;
    flex-direction: column;
}

.review-user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.review-user-id {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: var(--gold-primary);
}

.review-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.review-stars {
    display: flex;
    gap: 2px;
    font-size: 0.85rem;
}

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

.review-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.review-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 7, 9, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-content {
    width: 100%;
    max-width: 600px;
    z-index: 10;
    animation: modalMount 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border-color: rgba(212, 175, 55, 0.15);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}

@keyframes modalMount {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-round);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

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

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Star selector */
.star-rating-selector {
    display: flex;
    gap: 8px;
    font-size: 1.6rem;
    color: var(--text-muted);
    margin: 4px 0;
}

.star-select {
    cursor: pointer;
    transition: var(--transition-fast);
}

.star-select:hover, .star-select.active {
    color: var(--gold-primary);
    transform: scale(1.15);
}

.error-msg {
    font-size: 0.8rem;
    color: var(--color-error);
    margin-top: 4px;
}

/* ==========================================================================
   ABOUT PAGE STYLING
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 60px;
}

.about-text-content h2 {
    margin-bottom: 24px;
}

.section-title-serif {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.about-text-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 300;
}

.about-text-content p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-stats-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-card {
    padding: 24px;
    text-align: center;
}

.stat-number, .stat-number-currency {
    font-family: 'Outfit', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--theme-purple-light);
    line-height: 1.1;
    display: block;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.stat-number-currency::before {
    content: '$';
}

.stat-number-currency::after {
    content: 'M+';
}

.stat-card .stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Principles */
.principles-section {
    padding: 80px 24px;
    border-top: 1px solid var(--border-glass);
}

.text-center-block {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-title-serif.text-center {
    margin-bottom: 12px;
}

.section-desc-center {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.principle-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-color: rgba(255, 255, 255, 0.04);
}

.principle-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.principle-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.principle-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.6;
}

/* Timeline */
.timeline-container {
    padding: 60px 24px 80px;
    border-top: 1px solid var(--border-glass);
}

.timeline-flow {
    max-width: 800px;
    margin: 48px auto 0;
    position: relative;
}

.timeline-flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--border-glass) 0%, var(--theme-purple) 30%, var(--theme-blue) 60%, var(--theme-red) 90%, var(--border-glass) 100%);
}

.timeline-node {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    position: relative;
}

.node-date {
    width: 80px;
    height: 40px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--theme-purple-light);
    z-index: 2;
    flex-shrink: 0;
}

.node-card {
    flex-grow: 1;
    padding: 20px 24px;
    background: rgba(18, 20, 24, 0.4);
    border-color: rgba(255, 255, 255, 0.04);
}

.node-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.node-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ==========================================================================
   TESTIMONIALS PAGE STYLING
   ========================================================================== */
.testimonial-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 80px;
}

.testimonial-card {
    background: rgba(18, 20, 24, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), 0 0 15px rgba(212, 175, 55, 0.03);
}

.testimonial-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--text-primary);
    position: relative;
    flex-grow: 1;
}

.testimonial-quote::before {
    content: '“';
    font-size: 3rem;
    color: var(--gold-glow);
    position: absolute;
    top: -24px;
    left: -12px;
    pointer-events: none;
}

.testimonial-card-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-round);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    object-fit: cover;
}

.testimonial-info-block {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.95rem;
}

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

.testimonial-badge {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--theme-blue-light);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   PREMIUM FOOTER
   ========================================================================== */
.main-footer {
    background-color: #060709;
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 40px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 320px;
    font-weight: 300;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-round);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
}

.footer-socials a:hover {
    color: var(--gold-primary);
    border-color: var(--gold-dim);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
}

.footer-links-section h4, .footer-newsletter-section h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.footer-links-section ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-section a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links-section a:hover {
    color: var(--gold-primary);
    padding-left: 4px;
}

.footer-newsletter-section p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 300;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.newsletter-form input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    border-color: var(--gold-primary);
}

.newsletter-form button {
    padding: 10px 18px;
}

.newsletter-success {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--gold-primary);
}

.footer-divider {
    border: 0;
    height: 1px;
    background: var(--border-glass);
    max-width: 1200px;
    margin: 0 auto 32px;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a:hover {
    color: var(--gold-primary);
}

/* ==========================================================================
   RESPONSIVE LAYOUTS (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-stats-panel {
        flex-direction: row;
        gap: 16px;
    }
    .about-stats-panel .stat-card {
        flex: 1;
    }
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-newsletter-section {
        grid-column: span 2;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    /* Header toggle */
    .mobile-toggle {
        display: block;
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
    }
    
    .header-actions-wrapper {
        margin-right: 48px; /* space for hamburger */
        gap: 12px;
        display: flex;
        align-items: center;
    }
    
    .theme-switch-wrapper {
        margin-right: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(6, 7, 9, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-glass);
        overflow: hidden;
        transition: var(--transition-normal);
        z-index: 90;
    }
    
    .nav-menu.active {
        height: 280px;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 16px;
        height: auto;
    }
    
    .nav-item {
        height: auto;
    }
    
    .nav-link {
        width: 100%;
        padding: 10px 0;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .user-auth-bar {
        margin-right: 0;
    }

    .hero-section {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        padding-top: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .reviews-dashboard {
        grid-template-columns: 1fr;
    }
    
    .reviews-summary-card {
        position: relative;
        top: 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats-panel {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .logo-text {
        display: none;
    }
    .user-pill {
        padding: 4px 8px;
        gap: 6px;
    }
    .user-status-dot {
        display: none;
    }
    /* Timeline Mobile Stacking */
    .timeline-flow::before {
        display: none;
    }
    .timeline-node {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }
    .node-date {
        width: fit-content;
        padding: 4px 12px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .glass-card {
        padding: 20px 16px;
    }
    
    .modal {
        padding: 20px 10px;
    }
    
    .modal-close {
        top: 12px;
        right: 12px;
    }
    
    .form-group-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-newsletter-section {
        grid-column: span 1;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   THEME SWITCHER & LIGHT THEME STYLING OVERRIDES (Dominant Accent Colors)
   ========================================================================== */

/* Logo black backing frame to maintain brand consistency */
.logo-image-wrapper {
    background: #000000;
    border-radius: var(--radius-md);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: var(--transition-fast);
}

.logo:hover .logo-image-wrapper {
    border-color: var(--theme-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* Header Actions Row (Align switch and login/logout side-by-side) */
.header-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme toggle UI element */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-right: 20px;
    z-index: 105;
}

.theme-switch {
    display: inline-block;
    height: 32px;
    position: relative;
    width: 62px;
}

.theme-switch input {
    display: none;
}

.slider-round {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: var(--transition-normal);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 0.85rem;
}

.icon-moon {
    color: var(--theme-purple-light);
    z-index: 1;
    transition: var(--transition-fast);
}

.icon-sun {
    color: #f59e0b;
    z-index: 1;
    opacity: 0.4;
    transition: var(--transition-fast);
}

.slider-pill {
    background: var(--gradient-premium);
    bottom: 2px;
    height: 26px;
    left: 2px;
    position: absolute;
    transition: var(--transition-normal);
    width: 26px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Toggle transitions */
input:checked + .slider-round {
    background-color: rgba(0, 0, 0, 0.05);
}

input:checked + .slider-round .slider-pill {
    transform: translateX(30px);
}

input:checked + .slider-round .icon-sun {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6));
}

input:checked + .slider-round .icon-moon {
    opacity: 0.3;
}

/* Light Theme Variable Overrides */
body.light-theme {
    --bg-base: #f4f6fa;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #fcfcfd;
    --bg-surface-glass: rgba(255, 255, 255, 0.82);
    --border-glass: rgba(139, 92, 246, 0.12); /* Soft purple border tint for glass */
    
    --text-primary: #0f172a;
    --text-muted: #475569;
    --text-dark: #f8fafc;
    
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 30px rgba(139, 92, 246, 0.07);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.08);
    --shadow-gold: 0 0 20px rgba(139, 92, 246, 0.07);
}

/* Light Mode element-specific styles for premium contrast */
body.light-theme .main-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(139, 92, 246, 0.1);
}

body.light-theme .main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

body.light-theme .logo-text {
    background: linear-gradient(135deg, #0f172a 40%, var(--theme-red) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

body.light-theme .nav-link {
    color: #475569;
}

body.light-theme .nav-link:hover {
    color: #0f172a;
}

body.light-theme .nav-link.active {
    color: var(--theme-blue);
}

body.light-theme .nav-link.active i {
    color: var(--theme-blue);
}

body.light-theme .nav-link.active::after {
    background-color: var(--theme-blue);
}

/* Background soft glows in Light Theme */
body.light-theme .glow-1 {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

body.light-theme .glow-2 {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

body.light-theme .glow-3 {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.06) 0%, transparent 75%);
}

/* Cards & Components in Light Theme */
body.light-theme .glass-card {
    border-color: rgba(139, 92, 246, 0.12);
    box-shadow: var(--shadow-md);
}

body.light-theme .glass-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.1);
}

body.light-theme .border-gold-glow {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.12), var(--shadow-md);
}

body.light-theme .border-gold-glow:hover {
    border-color: var(--theme-purple);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2), var(--shadow-md);
}

body.light-theme .stat-box {
    background: rgba(139, 92, 246, 0.02);
    border-color: rgba(139, 92, 246, 0.06);
}

body.light-theme .form-group input,
body.light-theme .form-group textarea,
body.light-theme .form-group select {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    color: #0f172a;
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus,
body.light-theme .form-group select:focus {
    border-color: var(--theme-purple);
    background: #ffffff;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.15);
}

body.light-theme .form-group input::placeholder,
body.light-theme .form-group textarea::placeholder {
    color: #94a3b8;
}

body.light-theme .form-group label {
    color: #475569;
}

body.light-theme .upload-dropzone {
    background: rgba(139, 92, 246, 0.01);
    border-color: rgba(139, 92, 246, 0.2);
}

body.light-theme .upload-dropzone:hover,
body.light-theme .upload-dropzone.dragover {
    border-color: var(--theme-blue);
    background: rgba(37, 99, 235, 0.02);
}

body.light-theme .upload-feedback {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .gallery-item {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .gallery-item:hover {
    border-color: var(--theme-purple);
    box-shadow: var(--shadow-md), 0 0 20px rgba(139, 92, 246, 0.08);
}

body.light-theme .gallery-empty-state {
    background: rgba(139, 92, 246, 0.01);
    border-color: rgba(139, 92, 246, 0.15);
}

body.light-theme .empty-icon {
    color: rgba(139, 92, 246, 0.15);
}

/* Reviews and Milestones in Light Theme */
body.light-theme .review-card {
    background: #ffffff;
    border-color: rgba(139, 92, 246, 0.08);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
}

body.light-theme .review-card:hover {
    background: #fdfdfd;
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.05);
}

body.light-theme .review-user-avatar {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.2);
}

body.light-theme .node-card {
    background: #ffffff;
    border-color: rgba(139, 92, 246, 0.08);
}

body.light-theme .node-card h4 {
    color: #0f172a;
}

body.light-theme .testimonial-card {
    background: #ffffff;
    border-color: rgba(139, 92, 246, 0.1);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

body.light-theme .testimonial-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.08);
}

body.light-theme .testimonial-quote {
    color: #1e293b;
}

body.light-theme .testimonial-avatar {
    border-color: rgba(139, 92, 246, 0.15);
}

/* Modal and inputs */
body.light-theme .modal-backdrop {
    background: rgba(15, 23, 42, 0.4);
}

body.light-theme .modal-close {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #64748b;
}

body.light-theme .modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

/* Footer & Additional Premium Element Contrast Overrides in Light Theme */
body.light-theme .main-footer {
    background-color: #f8fafc !important;
    border-top-color: rgba(139, 92, 246, 0.08);
    color: #475569;
}

body.light-theme .footer-desc,
body.light-theme .footer-newsletter-section p,
body.light-theme .copyright {
    color: #475569 !important;
}

body.light-theme .footer-links-section h4,
body.light-theme .footer-newsletter-section h4 {
    color: #0f172a !important;
}

body.light-theme .footer-links-section a,
body.light-theme .legal-links a {
    color: #475569 !important;
}

body.light-theme .footer-links-section a:hover,
body.light-theme .legal-links a:hover {
    color: var(--theme-purple) !important;
}

body.light-theme .footer-socials a {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(139, 92, 246, 0.15);
    color: var(--text-muted);
}

body.light-theme .footer-socials a:hover {
    background: rgba(139, 92, 246, 0.06);
    color: var(--theme-purple);
    border-color: var(--theme-purple);
}

body.light-theme .newsletter-form input {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    color: #0f172a;
}

body.light-theme .newsletter-form input::placeholder {
    color: #94a3b8;
}

body.light-theme .newsletter-form input:focus {
    border-color: var(--theme-purple);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.15);
}

body.light-theme .footer-divider {
    background: rgba(139, 92, 246, 0.08);
}

body.light-theme .cred-code {
    color: var(--theme-purple);
    background: rgba(139, 92, 246, 0.02);
    border-color: rgba(139, 92, 246, 0.15);
}

body.light-theme .badge-gold {
    color: var(--theme-purple);
    background: rgba(139, 92, 246, 0.04);
    border-color: rgba(139, 92, 246, 0.15);
    box-shadow: none;
}

body.light-theme .btn-gold-outline {
    color: var(--theme-purple);
    border-color: var(--theme-purple);
}

body.light-theme .btn-gold-outline:hover {
    background: rgba(139, 92, 246, 0.05);
    color: var(--theme-blue);
    border-color: var(--theme-blue);
}

body.light-theme i.text-gold {
    color: var(--theme-purple) !important;
}

body.light-theme i.text-gold.fa-star {
    color: var(--theme-purple) !important;
}

body.light-theme i.text-gold.fa-gauge-high,
body.light-theme i.text-gold.fa-cloud-arrow-up {
    color: var(--theme-blue) !important;
}

/* Ensure mobile header menu is solid white in light theme */
@media (max-width: 768px) {
    body.light-theme .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        border-bottom-color: rgba(139, 92, 246, 0.15);
    }
}




/* ==========================================================================
   THE RULERS - EXTENDED PREMIUM SAAS STYLING
   ========================================================================== */

/* Auth Tabs & Box Transition */
.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 6px;
    margin-bottom: 24px;
    gap: 8px;
}

body.light-theme .auth-tabs {
    background: rgba(0, 0, 0, 0.03);
}

.auth-tab-btn {
    flex: 1;
    padding: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    color: var(--text-muted);
}

.auth-tab-btn.active {
    background: var(--gradient-premium);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.auth-tab-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

body.light-theme .auth-tab-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
}

.form-utility-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.forgot-pass-link {
    color: var(--theme-blue-light);
}

.forgot-pass-link:hover {
    text-decoration: underline;
}

/* Custom Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 24px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--theme-purple);
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--gradient-premium);
    border-color: transparent;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Dashboard Locked Workspace Cover */
.lock-screen-card {
    border-color: rgba(239, 68, 68, 0.15) !important;
    background: rgba(239, 68, 68, 0.01) !important;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.05) !important;
}

body.light-theme .lock-screen-card {
    border-color: rgba(239, 68, 68, 0.25) !important;
    background: #ffffff !important;
}

/* Dashboard Stats Ledger Grid */
.stats-counter-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    height: 100%;
}

.dash-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

body.light-theme .dash-stat-box {
    background: #f8fafc;
    border-color: rgba(139, 92, 246, 0.08);
}

.dash-stat-box:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.08);
}

body.light-theme .dash-stat-box:hover {
    border-color: var(--theme-purple-light);
    box-shadow: var(--shadow-sm);
}

.dash-stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dash-stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.dash-stat-val.text-purple {
    color: var(--theme-purple-light);
}

body.light-theme .dash-stat-val.text-purple {
    color: var(--theme-purple);
}

@media (max-width: 600px) {
    .stats-counter-dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Charts Containers */
.charts-dashboard-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.chart-widget-box {
    padding: 24px;
}

.chart-widget-box h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .charts-dashboard-container {
        grid-template-columns: 1fr;
    }
    .chart-widget-box {
        grid-column: span 1 !important;
    }
}

/* Active / Open Positions */
.active-trades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.active-trade-card {
    padding: 20px;
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.05), var(--shadow-sm);
}

.active-trade-card:hover {
    border-color: var(--theme-blue);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.15), var(--shadow-md);
}

.active-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.active-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.active-direction-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.active-direction-badge.buy {
    color: var(--color-success);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.active-direction-badge.sell {
    color: var(--color-error);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.active-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

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

.active-stat-val {
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.active-stat-val.target {
    color: var(--color-success);
}

.active-stat-val.sl {
    color: var(--color-error);
}

.active-card-actions {
    margin-top: 20px;
}

.btn-close-position {
    width: 100%;
    background: linear-gradient(135deg, var(--theme-red) 0%, var(--theme-purple) 100%);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: borderGlowPulse 2s infinite ease-in-out;
}

.btn-close-position:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

@keyframes borderGlowPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2); }
    50% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.45); }
}

/* Premium Table layout styling */
.table-card {
    padding: 0;
    overflow: hidden;
}

.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.premium-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px 20px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-glass);
    white-space: nowrap;
}

body.light-theme .premium-table th {
    background: #f8fafc;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.premium-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-primary);
    white-space: nowrap;
    vertical-align: middle;
}

body.light-theme .premium-table td {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.premium-table tbody tr {
    transition: var(--transition-fast);
}

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

body.light-theme .premium-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.01);
}

.text-center-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 40px !important;
}

/* Status Outcome Badges */
.outcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.outcome-badge.win {
    color: var(--color-success);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.outcome-badge.loss {
    color: var(--color-error);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.outcome-badge.be {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .outcome-badge.be {
    color: #475569;
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Form Section Title */
.form-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--theme-purple-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 12px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 4px;
}

body.light-theme .form-section-title {
    color: var(--theme-purple);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* Action Controls Buttons */
.btn-action-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.btn-action-icon.view {
    color: var(--theme-blue-light);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

body.light-theme .btn-action-icon.view {
    color: var(--theme-blue);
}

.btn-action-icon.view:hover {
    background: var(--theme-blue);
    color: white;
}

.btn-action-icon.trash {
    color: var(--color-error);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.15);
    margin-left: 6px;
}

.btn-action-icon.trash:hover {
    background: var(--color-error);
    color: white;
}

/* SYSTEM ADMIN PANEL WORKSPACE */
.admin-layout-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.admin-tabs-sidebar {
    padding: 16px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-tabs-sidebar .admin-tab-btn {
    text-align: left;
    background: none;
    border: none;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-tabs-sidebar .admin-tab-btn.active {
    background: rgba(139, 92, 246, 0.08);
    color: var(--theme-purple-light);
    border-left: 3px solid var(--theme-purple);
    padding-left: 13px;
}

body.light-theme .admin-tabs-sidebar .admin-tab-btn.active {
    background: rgba(139, 92, 246, 0.05);
    color: var(--theme-purple);
}

.admin-tabs-sidebar .admin-tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

body.light-theme .admin-tabs-sidebar .admin-tab-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.02);
}

.admin-panels-wrapper {
    min-height: 500px;
}

.admin-tab-panel {
    display: none;
    animation: pageFadeIn 0.4s ease forwards;
}

.admin-tab-panel.active {
    display: block;
}

.admin-tab-panel h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Color matrix overrides */
.color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

/* Review Moderation Panel cards */
.admin-review-queue-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-queue-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.light-theme .admin-queue-card {
    background: #ffffff;
    border-color: rgba(139, 92, 246, 0.1);
}

.admin-queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-queue-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-queue-actions {
    display: flex;
    gap: 8px;
}

.btn-adm-approve {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-adm-approve:hover {
    background: var(--color-success);
    color: white;
}

.btn-adm-reject {
    background: rgba(239, 68, 68, 0.12);
    color: var(--color-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-adm-reject:hover {
    background: var(--color-error);
    color: white;
}

@media (max-width: 900px) {
    .admin-layout-container {
        grid-template-columns: 1fr;
    }
    .admin-tabs-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
        width: 100%;
        border-bottom: 1px solid var(--border-glass);
    }
    .admin-tabs-sidebar .admin-tab-btn {
        white-space: nowrap;
        padding: 10px 16px;
    }
}


/* Custom Emotion Selector Buttons */
.btn-emotion {
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast) !important;
}

.btn-emotion.active {
    background: var(--gradient-premium) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
}

/* Option vs Future disabled fields visual styling */
.disabled-input {
    background: rgba(255,255,255,0.02);
    color: var(--text-muted);
    cursor: not-allowed;
}

body.light-theme .disabled-input {
    background: #f1f5f9;
    color: #94a3b8;
}
