/* ═══════════════════════════════════════════════════════════════════════════
   ZoneVista — Shared Styles
   Used by all pages via <link rel="stylesheet" href="/static/css/main.css">
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* ── DESIGN TOKENS ── */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #151d2e;
    --bg-card-hover: #1a2540;
    --border-subtle: rgba(56, 189, 248, 0.08);
    --border-accent: rgba(56, 189, 248, 0.2);
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-cyan: #38bdf8;
    --accent-cyan-dim: rgba(56, 189, 248, 0.15);
    --accent-emerald: #34d399;
    --accent-emerald-dim: rgba(52, 211, 153, 0.15);
    --accent-amber: #fbbf24;
    --accent-amber-dim: rgba(251, 191, 36, 0.15);
    --accent-rose: #fb7185;
    --accent-rose-dim: rgba(251, 113, 133, 0.15);
    --accent-violet: #a78bfa;
    --accent-violet-dim: rgba(167, 139, 250, 0.15);
    --glow-cyan: 0 0 40px rgba(56, 189, 248, 0.15);
    --glow-emerald: 0 0 40px rgba(52, 211, 153, 0.12);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Noise overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-cyan);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s;
}
nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--bg-primary);
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

/* ── Nav dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-toggle::after {
    content: ' ▾';
    font-size: 0.65em;
    opacity: 0.6;
    vertical-align: middle;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    padding-top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary, #0d1420);
    border: 1px solid var(--border-subtle, rgba(56,189,248,0.1));
    border-radius: 10px;
    list-style: none;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 200;
}
.nav-dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    font-size: 0.88rem;
    white-space: nowrap;
    color: var(--text-secondary) !important;
}
.nav-dropdown-menu li a:hover {
    color: var(--accent-cyan, #38bdf8) !important;
    background: rgba(56,189,248,0.06);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-cta {
    background: linear-gradient(135deg, var(--accent-cyan), #0ea5e9);
    color: var(--bg-primary) !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--glow-cyan);
}
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), #0ea5e9);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.3);
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-accent);
}
.btn-secondary:hover {
    background: var(--accent-cyan-dim);
    border-color: var(--accent-cyan);
}
.btn-danger {
    background: var(--accent-rose);
    color: #fff;
    border: 1px solid var(--accent-rose);
}
.btn-danger:hover {
    background: transparent;
    color: var(--accent-rose);
}

/* ── FOOTER ── */
footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-subtle);
}
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 24px;
}
.footer-brand {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-divider {
    width: 1px;
    height: 20px;
    background: var(--border-subtle);
}
.footer-powered {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-powered a {
    color: var(--accent-cyan);
    text-decoration: none;
}
.footer-powered a:hover { text-decoration: underline; }
.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.footer-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
/* ── FLASH MESSAGES ── */
.flash-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    max-width: 520px;
}
.flash-msg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: flashSlideIn 0.3s ease;
}
@keyframes flashSlideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
.flash-dismiss {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.7;
    padding: 0 4px;
}
.flash-dismiss:hover { opacity: 1; }
.flash-error {
    background: rgba(251, 113, 133, 0.12);
    border: 1px solid rgba(251, 113, 133, 0.3);
    color: var(--accent-rose);
}
.flash-success {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--accent-emerald);
}
.flash-info {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-cyan);
}

/* ── AUTH FORMS ── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(56, 189, 248, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(52, 211, 153, 0.04) 0%, transparent 50%),
        var(--bg-primary);
}
.auth-card {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(165deg, rgba(21, 29, 46, 0.95), rgba(15, 23, 38, 0.98));
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: var(--radius-lg);
    padding: 48px 44px;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.04),
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
/* Top accent bar */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald), var(--accent-cyan));
    background-size: 200% 100%;
    animation: auth-shimmer 3s ease-in-out infinite;
}
@keyframes auth-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
/* Soft glow behind the card */
.auth-card::after {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.08), transparent 70%);
    pointer-events: none;
    z-index: -1;
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}
.auth-brand .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bg-primary);
}
.auth-brand span {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}
.auth-card h1 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 60%, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-card .auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
    line-height: 1.6;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.auth-form .form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.auth-form .form-group input,
.auth-form .form-group select {
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 10px;
    padding: 13px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.auth-form .form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}
.auth-form .form-group input:hover,
.auth-form .form-group select:hover {
    border-color: rgba(56, 189, 248, 0.2);
    background: rgba(10, 14, 23, 0.8);
}
.auth-form .form-group input:focus,
.auth-form .form-group select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1), 0 0 20px rgba(56, 189, 248, 0.05);
    background: rgba(10, 14, 23, 0.9);
}
.auth-form .form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}
.auth-form .form-row {
    display: flex;
    gap: 16px;
}
.auth-form .form-row .form-group { flex: 1; }
.auth-form .btn-auth {
    width: 100%;
    margin-top: 8px;
    padding: 15px 28px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-cyan), #0ea5e9);
    color: var(--bg-primary);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
    position: relative;
    overflow: hidden;
}
.auth-form .btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.35);
}
.auth-form .btn-auth:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}
.auth-form .remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.auth-form .remember-row label {
    cursor: pointer;
    user-select: none;
}
.auth-form .remember-row input[type="checkbox"] {
    accent-color: var(--accent-cyan);
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}
.auth-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.auth-footer a:hover {
    color: var(--accent-emerald);
    text-decoration: underline;
}
/* Responsive auth */
@media (max-width: 560px) {
    .auth-card { padding: 32px 24px; }
    .auth-form .form-row { flex-direction: column; gap: 20px; }
    .auth-card h1 { font-size: 1.5rem; }
}
/* Forgot-password link on login page */
.auth-form .remember-row {
    justify-content: flex-start;
}
.auth-form .remember-row .forgot-link {
    margin-left: auto;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-form .remember-row .forgot-link:hover {
    color: var(--accent-emerald);
    text-decoration: underline;
}
/* Auth icon blocks (verification / reset status pages) */
.auth-icon-block {
    text-align: center;
    margin-bottom: 20px;
}
/* Outline variant for secondary buttons */
.btn-auth.btn-outline {
    background: transparent;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-cyan);
    box-shadow: none;
}
.btn-auth.btn-outline:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}
/* Hint text */
.auth-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 12px;
    text-align: center;
}

/* ── ACCOUNT PAGE ── */
.account-page { padding: 120px 0 80px; }
.account-header {
    margin-bottom: 40px;
}
.account-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.account-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.account-card h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-cyan);
}
.account-card-danger {
    border-color: rgba(244,63,94,0.25);
}
.account-card-danger h2 {
    color: var(--accent-rose);
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 440px;
    width: 90%;
}
.account-field {
    margin-bottom: 16px;
}
.account-field-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.account-field-value {
    font-size: 0.95rem;
    color: var(--text-primary);
}
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}
.tier-free { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
.tier-market_watch { background: var(--accent-emerald-dim); color: var(--accent-emerald); }
.tier-pro_insights { background: var(--accent-amber-dim); color: var(--accent-amber); }
.tier-brokerage { background: var(--accent-amber-dim); color: var(--accent-amber); }

@media (max-width: 768px) {
    .auth-form .form-row { flex-direction: column; }
    .account-grid { grid-template-columns: 1fr; }
}

/* ── ADMIN PANEL ── */
.admin-page {
    padding: 120px 0 80px;
}
.admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 24px;
    flex-wrap: wrap;
}
.admin-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}
.admin-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}
.admin-stats {
    display: flex;
    gap: 12px;
}
.stat-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
    min-width: 90px;
}
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}
.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.admin-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.admin-table thead {
    background: rgba(56, 189, 248, 0.04);
    border-bottom: 1px solid var(--border-subtle);
}
.admin-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    white-space: nowrap;
}
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.04);
    vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover {
    background: rgba(56, 189, 248, 0.03);
}
.row-inactive td {
    opacity: 0.5;
}
.user-cell { min-width: 200px; }
.user-name {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.user-company { color: var(--text-secondary); }
.user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.badge-admin {
    background: var(--accent-amber-dim);
    color: var(--accent-amber);
}
.tier-form select {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}
.tier-form select:focus {
    border-color: var(--accent-cyan);
}
.tier-form select option {
    background: var(--bg-card);
    color: var(--text-primary);
}
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}
.status-active { background: var(--accent-emerald); box-shadow: 0 0 6px rgba(52, 211, 153, 0.4); }
.status-inactive { background: var(--accent-rose); box-shadow: 0 0 6px rgba(251, 113, 133, 0.4); }
.date-cell {
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 0.82rem;
}
.actions-cell {
    white-space: nowrap;
}
.btn-action {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 4px;
    color: var(--text-secondary);
}
.btn-action:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}
.btn-deactivate:hover { border-color: var(--accent-rose); color: var(--accent-rose); }
.btn-activate:hover { border-color: var(--accent-emerald); color: var(--accent-emerald); }
.btn-revoke:hover { border-color: var(--accent-rose); color: var(--accent-rose); }
.btn-grant:hover { border-color: var(--accent-amber); color: var(--accent-amber); }
.btn-delete:hover { border-color: var(--accent-rose); color: var(--accent-rose); }
.you-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}
@media (max-width: 900px) {
    .admin-header { flex-direction: column; align-items: flex-start; }
    .admin-table-wrap { overflow-x: auto; }
    .admin-table { min-width: 700px; }
}

/* ── ANIMATIONS ── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        padding: 24px;
        border-bottom: 1px solid var(--border-subtle);
        gap: 16px;
    }
    /* Flatten dropdown on mobile */
    .nav-dropdown-menu {
        display: block;
        position: static;
        transform: none;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        min-width: unset;
    }
    .nav-dropdown-menu li a { padding: 4px 0; font-size: 0.88rem; }
    .nav-dropdown-toggle::after { display: none; }
    .footer-content { flex-direction: column; gap: 16px; text-align: center; }
    .footer-left { flex-direction: column; }
    .footer-divider { display: none; }
}
