/* ═══════════════════════════════════════════════════════════════
   AUTH STYLES — Extends the existing Bulk PDF Signer Pro design
   Glassmorphism + Navy + Blue theme
   ═══════════════════════════════════════════════════════════════ */

/* ──────── Auth Layout: Split Screen ──────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--bg-primary);
    font-family: var(--font-sans);
    color: var(--text-primary);
}

.auth-page::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 20% 60%, rgba(6, 182, 212, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Left decorative panel */
.auth-showcase {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0A1628 0%, #162340 50%, #0F1D32 100%);
    z-index: 1;
}

.auth-showcase::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: auth-glow 15s ease-in-out infinite alternate;
}

@keyframes auth-glow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-5%, 5%); }
}

.auth-showcase-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 420px;
}

.auth-showcase-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    margin: 0 auto 28px;
    color: #60A5FA;
    backdrop-filter: blur(12px);
}

.auth-showcase h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #60A5FA, #A78BFA, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-showcase p {
    font-size: 1rem;
    color: #8BA4C4;
    line-height: 1.7;
}

.auth-showcase-features {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(15, 29, 50, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    font-size: 0.85rem;
    color: #B8CCE0;
    backdrop-filter: blur(8px);
}

.auth-feature-item svg {
    flex-shrink: 0;
    color: #60A5FA;
}

/* Right form panel */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    max-height: 100vh;
}

.auth-form-container {
    width: 100%;
    max-width: 440px;
}

/* ──────── Auth Header (logo + back) ──────── */
.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.auth-logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 10px;
    color: white;
}

.auth-logo-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-logo-pro {
    background: linear-gradient(135deg, #60A5FA, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 150ms ease;
}

.auth-theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* ──────── Auth Card ──────── */
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.auth-card-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* ──────── Form Fields ──────── */
.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper svg.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    transition: 200ms ease;
    outline: none;
}

.auth-input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.auth-input.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.auth-input.success {
    border-color: #10B981;
}

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

/* No icon variant */
.auth-input.no-icon {
    padding-left: 14px;
}

/* Password visibility toggle */
.auth-pass-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: 150ms ease;
}

.auth-pass-toggle:hover {
    color: var(--text-primary);
}

/* Field error message */
.auth-field-error {
    font-size: 0.75rem;
    color: #EF4444;
    margin-top: 4px;
    display: none;
}

.auth-field-error.visible {
    display: block;
}

/* ──────── Password Strength Meter ──────── */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 300ms ease, background 300ms ease;
    width: 0%;
}

.strength-bar-fill.weak { width: 20%; background: #EF4444; }
.strength-bar-fill.fair { width: 40%; background: #F59E0B; }
.strength-bar-fill.good { width: 60%; background: #F59E0B; }
.strength-bar-fill.strong { width: 80%; background: #10B981; }
.strength-bar-fill.very-strong { width: 100%; background: #059669; }

.strength-text {
    font-size: 0.7rem;
    margin-top: 4px;
    color: var(--text-muted);
}

/* ──────── Remember Me / Forgot Password Row ──────── */
.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.auth-remember input[type="checkbox"] {
    accent-color: #3B82F6;
    width: 16px;
    height: 16px;
}

.auth-forgot {
    font-size: 0.82rem;
    color: #60A5FA;
    text-decoration: none;
    transition: 150ms ease;
}

.auth-forgot:hover {
    color: #93C5FD;
    text-decoration: underline;
}

/* ──────── Buttons ──────── */
.auth-btn {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: 200ms ease;
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

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

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-btn-secondary {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.auth-btn-secondary:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.auth-btn-danger:hover {
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

/* Loading spinner inside button */
.auth-btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

.auth-btn.loading .spinner { display: block; }
.auth-btn.loading .btn-text { display: none; }

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

/* ──────── Social Login Divider ──────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

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

.auth-divider span {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ──────── Social Login Buttons ──────── */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: 200ms ease;
}

.social-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-btn.google:hover { border-color: rgba(66, 133, 244, 0.5); }
.social-btn.microsoft:hover { border-color: rgba(0, 120, 212, 0.5); }
.social-btn.github:hover { border-color: rgba(100, 100, 100, 0.5); }
.social-btn.apple:hover { border-color: rgba(150, 150, 150, 0.5); }
.social-btn.linkedin:hover { border-color: rgba(0, 119, 181, 0.5); }

/* Two-column social buttons layout */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-grid .social-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* ──────── Auth Footer ──────── */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: #60A5FA;
    text-decoration: none;
    font-weight: 600;
    transition: 150ms ease;
}

.auth-footer a:hover {
    color: #93C5FD;
    text-decoration: underline;
}

/* ──────── CAPTCHA ──────── */
.auth-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 16px;
}

.captcha-question {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-accent);
    white-space: nowrap;
}

.captcha-input {
    width: 80px;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    text-align: center;
}

.captcha-input:focus {
    border-color: #3B82F6;
    outline: none;
}

/* ──────── Accept Terms ──────── */
.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.auth-terms input[type="checkbox"] {
    accent-color: #3B82F6;
    margin-top: 3px;
    flex-shrink: 0;
}

.auth-terms a {
    color: #60A5FA;
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

/* ──────── Success Message ──────── */
.auth-success {
    display: none;
    text-align: center;
    padding: 32px 24px;
}

.auth-success.visible {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.auth-success-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
    color: #10B981;
}

.auth-success h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-success p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ──────── Toast Notification ──────── */
.auth-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-card-solid, #0F1D32);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-size: 0.85rem;
    font-weight: 500;
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
    color: var(--text-primary);
}

.auth-toast.success { border-left: 3px solid #10B981; }
.auth-toast.error { border-left: 3px solid #EF4444; }
.auth-toast.info { border-left: 3px solid #3B82F6; }

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

/* ═══════════════════════════════════════════════════
   DASHBOARD STYLES
═══════════════════════════════════════════════════ */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.dashboard-main {
    flex: 1;
    padding: 32px;
    padding-top: calc(var(--nav-height, 64px) + 32px);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.dashboard-welcome {
    margin-bottom: 32px;
}

.dashboard-welcome h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.dashboard-welcome p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card-dash {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    transition: 200ms ease;
}

.stat-card-dash:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 12px;
}

.stat-card-icon.blue { background: rgba(59, 130, 246, 0.12); color: #60A5FA; }
.stat-card-icon.purple { background: rgba(139, 92, 246, 0.12); color: #A78BFA; }
.stat-card-icon.green { background: rgba(16, 185, 129, 0.12); color: #34D399; }
.stat-card-icon.cyan { background: rgba(6, 182, 212, 0.12); color: #22D3EE; }

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Dashboard sections */
.dash-section {
    margin-bottom: 28px;
}

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

.dash-section-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.dash-section-link {
    font-size: 0.8rem;
    color: #60A5FA;
    text-decoration: none;
}

.dash-section-link:hover {
    text-decoration: underline;
}

/* History table */
.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.dash-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.dash-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.dash-table tr:hover td {
    background: var(--bg-hover);
}

.dash-table .mono {
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

/* User profile card */
.profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    margin-bottom: 24px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

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

.profile-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.profile-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #60A5FA;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════
   PROFILE SETTINGS TABS
═══════════════════════════════════════════════════ */
.profile-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-input);
    border-radius: 10px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.profile-tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: 200ms ease;
    text-align: center;
}

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

.profile-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Settings form fields */
.settings-field {
    margin-bottom: 20px;
}

.settings-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.settings-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-sans);
    transition: 200ms ease;
}

.settings-input:focus {
    border-color: #3B82F6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Photo upload */
.photo-upload-area {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-input);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: 200ms ease;
}

.photo-upload-area:hover {
    border-color: #3B82F6;
    background: var(--bg-hover);
}

/* ═══════════════════════════════════════════════════
   ADMIN PANEL
═══════════════════════════════════════════════════ */
.admin-sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: var(--nav-height, 64px);
    height: calc(100vh - var(--nav-height, 64px));
    z-index: 50;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: 150ms ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-sans);
}

.admin-nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.admin-nav-item.active {
    color: #60A5FA;
    background: rgba(59, 130, 246, 0.08);
    border-right: 3px solid #3B82F6;
}

.admin-content {
    flex: 1;
    padding: 32px;
    margin-left: 240px;
    padding-top: calc(var(--nav-height, 64px) + 32px);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════
   NAV AUTH BUTTON & DROPDOWN (injected into main app)
═══════════════════════════════════════════════════ */
.nav-auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: 200ms ease;
    white-space: nowrap;
}

.nav-auth-btn:hover {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

/* User avatar in nav */
.nav-user {
    position: relative;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: 200ms ease;
    font-family: var(--font-sans);
}

.nav-user-btn:hover {
    border-color: var(--border-hover);
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    overflow: hidden;
}

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

.nav-user-name {
    font-size: 0.82rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown menu */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--bg-card-solid, #0F1D32);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    padding: 8px;
    z-index: 2000;
    display: none;
    animation: scaleIn 0.15s ease-out;
}

.nav-dropdown.visible {
    display: block;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95) translateY(-4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: 150ms ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-sans);
}

.nav-dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-dropdown-item svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 8px;
}

.nav-dropdown-item.logout {
    color: #EF4444;
}

.nav-dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.08);
}

/* ═══════════════════════════════════════════════════
   LOGIN MODAL (for unauthenticated gating)
═══════════════════════════════════════════════════ */
.login-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.login-modal-overlay.visible {
    display: flex;
}

.login-modal {
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
    animation: scaleIn 0.25s ease-out;
}

/* ═══════════════════════════════════════════════════
   SELECT / COUNTRY DROPDOWN
═══════════════════════════════════════════════════ */
.auth-select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    transition: 200ms ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.auth-select:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .auth-showcase {
        display: none;
    }

    .auth-form-panel {
        padding: 24px 16px;
    }

    .admin-sidebar {
        display: none;
    }

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

@media (max-width: 640px) {
    .auth-card {
        padding: 24px 20px;
    }

    .settings-row {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .nav-user-name {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
