/* 4$0 Dashboard — merged core + shell */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
    --bg: #0a0b10;
    --surface: #11131a;
    --sidebar-bg: #0c0e14;
    --card-bg: #12141c;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.11);
    /* Blue-first, faint indigo (bluish-purple, not neon) */
    --accent: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-dim: rgba(59, 130, 246, 0.14);
    --accent-dim-soft: rgba(99, 102, 241, 0.08);
    --accent-hover: #2563eb;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --muted2: #64748b;
    --danger: #f87171;
    --success: #34d399;
    --warning: #fbbf24;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
    --glow-accent: 0 0 0 1px rgba(99, 102, 241, 0.12), 0 6px 28px rgba(37, 99, 235, 0.14);
    --sidebar-width: 260px;
    --topbar-height: 56px;
    --bottom-nav-height: 60px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
    --evo-card: var(--card-bg);
    --evo-radius: var(--radius-lg);
}

html { color-scheme: dark; }

h1, .page-header h1, .f40-land-hero h1, .section-card-title, .sidebar-brand-name,
.evo-card-hd, .f40-land-brand, .f40-land-dl h2, .f40-land-tile h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}



html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    font-family: var(--font);
    color: var(--text);
    display: flex;
    min-height: 100%;
    font-size: 14px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}


.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    top: 0; left: 0;
    z-index: 100;
}

.sidebar-logo {
    padding: 22px 18px 20px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
}

.logo-mark {
    width: 30px;
    height: 30px;
    background: linear-gradient(145deg, #1d4ed8 0%, #3b82f6 55%, #4f46e5 100%);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--glow-accent);
}

.sidebar-group { padding: 16px 0 4px; }
.sidebar-group-label {
    padding: 0 16px 7px;
    font-size: 11px; font-weight: 500;
    color: var(--muted); letter-spacing: 0.2px;
}

.sidebar-nav { list-style: none; }
.sidebar-nav li { padding: 1px 8px; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 7px;
    color: var(--muted); text-decoration: none;
    font-size: 13.5px; font-weight: 500;
    transition: all 0.15s; position: relative;
    cursor: pointer;
}
.sidebar-nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.sidebar-nav a.active {
    color: var(--text);
    background: var(--accent-dim);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--accent);
}
.sidebar-nav svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }
.sidebar-nav a.active svg, .sidebar-nav a:hover svg { opacity: 1; }

.nav-badge {
    margin-left: auto;
    font-size: 11px; font-weight: 700;
    padding: 2px 7px; border-radius: 4px;
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 12px 10px;
}

.user-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    cursor: pointer; transition: background 0.15s;
}
.user-row:hover { background: rgba(255,255,255,0.04); }

.user-avatar {
    width: 30px; height: 30px; border-radius: 7px;
    background: #1e1e22; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--text);
    flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12.5px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logout-icon { color: var(--muted); display: flex; align-items: center; flex-shrink: 0; }
.logout-icon svg { width: 14px; height: 14px; }
.user-row:hover .logout-icon { color: var(--text); }


.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: #0d0d0f;
    border-top: 1px solid var(--border);
    padding-bottom: var(--safe-bottom);
}

.mobile-nav-items {
    display: flex;
    align-items: center;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px 8px;
    cursor: pointer;
    gap: 3px;
    position: relative;
    border: none;
    background: none;
    color: var(--muted);
    font-family: inherit;
    transition: color 0.15s;
    min-height: 56px;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-item.active { color: var(--accent); }
.mobile-nav-item svg { width: 22px; height: 22px; flex-shrink: 0; }
.mobile-nav-item span { font-size: 10px; font-weight: 500; letter-spacing: 0.2px; }
.mobile-nav-badge {
    position: absolute;
    top: 8px; right: calc(50% - 18px);
    background: #ef4444; color: #fff;
    font-size: 9px; font-weight: 700;
    padding: 1px 4px; border-radius: 3px;
    min-width: 14px; text-align: center;
}


.mobile-header {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 150;
    background: #0d0d0f;
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    height: 54px;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--safe-top);
}

.mobile-header-logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 700; color: var(--text);
}

.mobile-header-right {
    display: flex; align-items: center; gap: 10px;
}

.mobile-avatar-btn {
    width: 32px; height: 32px; border-radius: 8px;
    background: #1e1e22; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--text);
    cursor: pointer;
}


.main { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; height: var(--topbar-height);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky; top: 0; z-index: 50;
}

.topbar-title { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }

.time-filter { display: flex; gap: 4px; }
.time-btn {
    padding: 4px 10px;
    background: none; border: 1px solid var(--border);
    border-radius: 5px; color: var(--muted);
    font-size: 12px; font-family: inherit; font-weight: 500;
    cursor: pointer; transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
    min-height: 30px;
}
.time-btn.active, .time-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.page-content { padding: 28px 32px; flex: 1; display: none; }
.page-content.visible { display: block; }

.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.page-header p { color: var(--muted); font-size: 13px; margin-top: 3px; }


.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }

.stat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; }

.stat-card-label {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--muted);
    display: flex; align-items: center; gap: 7px;
    margin-bottom: 12px;
}
.stat-card-label svg { width: 13px; height: 13px; }
.stat-card-value { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }


.alert { padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.alert-danger  { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #ef4444; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25); color: #f59e0b; }


.section-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 20px; overflow: hidden; }

.section-card-header { padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 8px; }

.section-card-title { font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }

.count-badge { font-size: 11px; color: var(--muted); background: rgba(255,255,255,0.05); padding: 2px 7px; border-radius: 20px; }

.view-all-btn { font-size: 12px; color: var(--muted); background: none; border: none; cursor: pointer; font-family: inherit; font-weight: 500; padding: 6px 0; white-space: nowrap; }
.view-all-btn:hover { color: var(--text); }


.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 12px 16px; text-align: left; }
th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { font-size: 13px; border-bottom: 1px solid rgba(42,44,50,0.6); }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.02); }


.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-active   { background: rgba(34,197,94,0.1); color: #22c55e; }
.badge-banned   { background: rgba(239,68,68,0.1); color: #ef4444; }
.badge-inactive { background: rgba(245,158,11,0.1); color: #f59e0b; }

.app-tag {
    font-family: 'Courier New', monospace;
    font-size: 11px; color: #9ca3af;
    background: rgba(255,255,255,0.04);
    padding: 3px 7px; border-radius: 4px;
    display: inline-block;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 120px;
}

.mono {
    font-family: 'Courier New', monospace;
    font-size: 11.5px; color: #9ca3af;
    background: rgba(255,255,255,0.04);
    padding: 3px 7px; border-radius: 4px;
    cursor: pointer; transition: all 0.15s;
    display: inline-block;
}
.mono:hover, .mono:active { background: rgba(59,130,246,0.12); color: var(--accent); }

.form-section { padding: 20px 22px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; }


.form-group label { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select {
    width: 100%; padding: 9px 12px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 7px; color: var(--text);
    font-size: 16px; font-family: inherit;
    transition: border-color 0.15s;
    -webkit-appearance: none; appearance: none;
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6f7a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: rgba(255,255,255,0.15); }
.form-group input:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
    background: var(--accent); border: none;
    padding: 11px 18px; border-radius: 7px;
    color: #fff; font-size: 14px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.15s;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.btn-primary:hover:not(:disabled), .btn-primary:active:not(:disabled) { filter: brightness(1.07); }
.btn-primary:disabled { background: #2a2c32; color: var(--muted); cursor: not-allowed; }


.search-wrap { position: relative; }
.search-wrap input {
    padding: 7px 12px 7px 32px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 6px; color: var(--text);
    font-size: 16px; /* prevents iOS zoom */ font-family: inherit; width: 220px;
}
.search-wrap input:focus { outline: none; border-color: rgba(255,255,255,0.15); }
.search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--muted); pointer-events: none; }

.app-info { display: flex; align-items: center; gap: 12px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; }
.app-info-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.app-info-text { font-size: 13px; color: var(--muted); }
.app-info-text strong { color: var(--text); font-weight: 600; }

.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.quick-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; cursor: pointer; transition: all 0.15s; text-decoration: none; color: inherit; display: block; -webkit-tap-highlight-color: transparent; }
.quick-card:hover, .quick-card:active { border-color: rgba(255,255,255,0.12); }
.quick-card-icon { width: 32px; height: 32px; border-radius: 7px; background: rgba(255,255,255,0.05); color: var(--text); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.quick-card-icon svg { width: 16px; height: 16px; }
.quick-card h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.quick-card p { font-size: 12px; color: var(--muted); }

.boost-section { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; margin-bottom: 20px; }
.boost-section-title { font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.boost-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12.5px; }
.boost-row:last-child { margin-bottom: 0; }
.boost-label { color: var(--muted); width: 80px; flex-shrink: 0; }
.boost-bar { flex: 1; height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.boost-fill { height: 100%; border-radius: 2px; background: var(--accent); }
.boost-pct { font-size: 11px; color: var(--muted); width: 44px; text-align: right; }


.empty { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 13px; }
.empty svg { width: 36px; height: 36px; margin-bottom: 10px; opacity: 0.3; display: block; margin-left: auto; margin-right: auto; }

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2c32; border-radius: 3px; }

.dots-btn { width: 34px; height: 34px; background: none; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all 0.15s; flex-shrink: 0; -webkit-tap-highlight-color: transparent; min-width: 34px; }
.dots-btn:hover, .dots-btn:active { background: rgba(255,255,255,0.05); color: var(--text); border-color: rgba(255,255,255,0.1); }
.dots-btn svg { width: 14px; height: 14px; }


.detail-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 500; align-items: flex-end; justify-content: center;
    padding: 0; backdrop-filter: blur(4px);
    -webkit-overflow-scrolling: touch;
}
.detail-overlay.open { display: flex; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.detail-panel {
    background: #0c0c0e;
    border: 1px solid #222226;
    border-radius: 16px 16px 0 0;
    width: 100%; max-width: 960px;
    max-height: 92vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: slideUp 0.25s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 -16px 60px rgba(0,0,0,0.8);
}

.detail-panel::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 10px auto 0;
}

.detail-header {
    padding: 16px 20px 16px;
    border-bottom: 1px solid #1a1a1e;
    display: flex; align-items: center; gap: 12px;
}
.detail-back-btn {
    width: 34px; height: 34px; flex-shrink: 0;
    background: rgba(255,255,255,0.04); border: 1px solid #2a2a2e;
    border-radius: 8px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); transition: all 0.15s;
    min-width: 34px; -webkit-tap-highlight-color: transparent;
}
.detail-back-btn:active { background: rgba(255,255,255,0.1); }
.detail-back-btn svg { width: 15px; height: 15px; }
.detail-header-text { flex: 1; min-width: 0; }
.detail-header-text h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-header-text p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.detail-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.detail-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; }

.detail-key-hero {
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(59,130,246,0.22);
    border-radius: 12px; padding: 16px 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-wrap: wrap;
}
.detail-key-hero-left { flex: 1; min-width: 0; }
.detail-key-hero-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--accent); margin-bottom: 6px;
    display: flex; align-items: center; gap: 6px;
}
.detail-key-hero-label::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent); display: inline-block;
}
.detail-key-hero-val {
    font-family: 'Courier New', monospace;
    font-size: 14px; font-weight: 700;
    color: var(--text); letter-spacing: 0.5px;
    overflow: hidden; text-overflow: ellipsis;
    word-break: break-all;
}
.detail-key-copy-btn {
    flex-shrink: 0; display: flex; align-items: center; gap: 7px;
    padding: 10px 16px; border-radius: 8px;
    background: rgba(255,255,255,0.06); border: 1px solid #2a2a2e;
    color: var(--muted); font-size: 12.5px; font-weight: 500;
    font-family: inherit; cursor: pointer; transition: all 0.15s;
    min-height: 44px; -webkit-tap-highlight-color: transparent;
}
.detail-key-copy-btn svg { width: 13px; height: 13px; }
.detail-key-copy-btn:active { background: rgba(255,255,255,0.1); }
.detail-key-copy-btn.copied { border-color: rgba(34,197,94,0.4); color: #22c55e; background: rgba(34,197,94,0.07); }

.detail-meta-strip {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: #1a1a1e;
    border: 1px solid #1a1a1e; border-radius: 10px; overflow: hidden;
}
.detail-meta-cell { background: #111113; padding: 11px 13px; }
.detail-meta-cell-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin-bottom: 4px; }
.detail-meta-cell-value { font-size: 12px; font-weight: 500; color: var(--text); }

.detail-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }

.detail-card { background: #111113; border: 1px solid #1a1a1e; border-radius: 10px; overflow: hidden; }
.detail-card-header { padding: 11px 15px; border-bottom: 1px solid #1a1a1e; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.detail-card-body { padding: 4px 0; }
.detail-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 15px; gap: 10px;
    border-bottom: 1px solid rgba(26,26,30,0.8);
}
.detail-row:last-child { border-bottom: none; }
.detail-row-label { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.detail-row-value { font-size: 12px; color: var(--text); text-align: right; word-break: break-all; font-weight: 500; }
.detail-row-value.mono-val {
    font-family: 'Courier New', monospace; font-size: 11px; color: #9ca3af;
    background: rgba(255,255,255,0.04); padding: 3px 8px; border-radius: 4px;
    cursor: pointer;
}

.detail-actions-section { display: flex; flex-direction: column; gap: 8px; }
.detail-actions-group {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 13px 15px; background: #111113;
    border: 1px solid #1a1a1e; border-radius: 10px;
}
.detail-actions-group-label {
    width: 100%; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--muted); margin-bottom: 6px;
}
.act-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px; border-radius: 7px;
    font-size: 13px; font-weight: 500; font-family: inherit;
    border: 1px solid #252528; background: #18181b;
    color: #8a8d96; cursor: pointer; transition: all 0.15s;
    min-height: 40px; -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.act-btn svg { width: 12px; height: 12px; flex-shrink: 0; }
.act-btn:active { background: #1e2024; border-color: #35373e; color: var(--text); }
.act-btn.danger { color: #f87171; border-color: rgba(248,113,113,0.15); background: rgba(248,113,113,0.03); }
.act-btn.danger:active { background: rgba(248,113,113,0.09); }


.settings-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.settings-nav-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; position: sticky; top: 74px; }
.settings-nav-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 1px solid var(--border); transition: all 0.15s; user-select: none; min-height: 48px; }
.settings-nav-item:last-child { border-bottom: none; }
.settings-nav-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.6; }
.settings-nav-item:hover, .settings-nav-item:active { background: rgba(255,255,255,0.03); color: var(--text); }
.settings-nav-item.active { color: var(--text); background: rgba(255,255,255,0.05); }
.settings-nav-item.active svg { opacity: 1; }
.settings-nav-item .settings-nav-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); margin-left: auto; opacity: 0; }
.settings-nav-item.active .settings-nav-dot { opacity: 1; }
.settings-panel { display: none; }
.settings-panel.active { display: block; }
.settings-section { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.settings-section-header { padding: 16px 22px; border-bottom: 1px solid var(--border); }
.settings-section-header h3 { font-size: 13.5px; font-weight: 600; }
.settings-section-header p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.settings-section-body { padding: 22px; }
.settings-field { margin-bottom: 18px; }
.settings-field:last-child { margin-bottom: 0; }
.settings-field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.settings-field input { width: 100%; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 16px; /* prevents iOS zoom */ font-family: inherit; transition: border-color 0.15s; -webkit-appearance: none; }
.settings-field input:focus { outline: none; border-color: rgba(255,255,255,0.18); }
.settings-field input:disabled { opacity: 0.4; cursor: not-allowed; }
.settings-field .field-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-bottom: 1px solid var(--border); gap: 12px; flex-wrap: wrap; }
.settings-row:last-child { border-bottom: none; }
.settings-row-info h4 { font-size: 13px; font-weight: 500; color: var(--text); }
.settings-row-info p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.settings-row-value { font-size: 13px; color: var(--muted); font-family: 'Courier New', monospace; }
.btn-settings { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 7px; font-size: 13px; font-weight: 600; font-family: inherit; border: none; cursor: pointer; transition: all 0.15s; min-height: 44px; -webkit-tap-highlight-color: transparent; }
.btn-settings.save { background: var(--text); color: #000; }
.btn-settings.save:hover { background: #fff; }
.btn-settings.save:disabled { background: #2a2c32; color: var(--muted); cursor: not-allowed; }
.btn-settings.cancel { background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid var(--border); }
.btn-settings.cancel:hover, .btn-settings.cancel:active { color: var(--text); background: rgba(255,255,255,0.09); }
.settings-form-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--border); margin-top: 20px; flex-wrap: wrap; gap: 12px; }


.toast { position: fixed; bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 12px); left: 16px; right: 16px; background: #1a1c20; border: 1px solid var(--border); border-radius: 10px; padding: 12px 18px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,0.5); z-index: 9999; transform: translateY(20px); opacity: 0; transition: all 0.25s ease; pointer-events: none; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.success .toast-icon { color: #22c55e; }
.toast.error { border-color: rgba(239,68,68,0.3); }
.toast.error .toast-icon { color: #ef4444; }
.toast-icon svg { width: 16px; height: 16px; }
.toast-msg { color: var(--text); flex: 1; }

.password-strength { height: 3px; border-radius: 2px; background: var(--border); margin-top: 8px; overflow: hidden; }
.password-strength-bar { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; width: 0%; }
.strength-label { font-size: 11px; color: var(--muted); margin-top: 4px; }


.bulk-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.75); z-index: 60000;
    align-items: flex-end; justify-content: center;
    backdrop-filter: blur(3px);
}
.bulk-modal-overlay.open { display: flex; }

@keyframes bulkModalIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bulk-modal {
    background: #0d0d0f; border: 1px solid #252528;
    border-radius: 16px 16px 0 0; width: 100%; max-width: 540px;
    box-shadow: 0 -16px 60px rgba(0,0,0,0.8);
    animation: bulkModalIn 0.2s ease;
    overflow: hidden;
    max-height: 85vh;
    display: flex; flex-direction: column;
}

.bulk-modal::before {
    content: '';
    display: block; width: 36px; height: 4px;
    background: rgba(255,255,255,0.1); border-radius: 2px;
    margin: 10px auto 0; flex-shrink: 0;
}

.bulk-modal-header {
    padding: 16px 20px 14px;
    border-bottom: 1px solid #1f1f22;
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
}
.bulk-modal-header h3 { font-size: 15px; font-weight: 700; }
.bulk-modal-header p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bulk-modal-close {
    width: 32px; height: 32px; border-radius: 7px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    color: var(--muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; -webkit-tap-highlight-color: transparent;
}
.bulk-modal-close svg { width: 14px; height: 14px; }

.bulk-modal-keys {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 12px 16px; display: flex; flex-direction: column; gap: 6px;
}

.bulk-key-row {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: 7px; padding: 10px 12px;
}
.bulk-key-index { font-size: 11px; color: var(--muted); width: 20px; flex-shrink: 0; text-align: right; }
.bulk-key-val { font-family: 'Courier New', monospace; font-size: 12px; color: var(--text); flex: 1; letter-spacing: 0.2px; word-break: break-all; }
.bulk-key-copy {
    width: 32px; height: 32px; border-radius: 5px; flex-shrink: 0;
    background: none; border: 1px solid var(--border); color: var(--muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent; min-width: 32px;
}
.bulk-key-copy:active { background: rgba(255,255,255,0.05); }
.bulk-key-copy.copied { border-color: rgba(34,197,94,0.4); color: #22c55e; background: rgba(34,197,94,0.07); }
.bulk-key-copy svg { width: 14px; height: 14px; }

.bulk-modal-footer {
    padding: 12px 16px calc(12px + var(--safe-bottom));
    border-top: 1px solid #1f1f22;
    display: flex; gap: 8px; flex-shrink: 0;
}
.bulk-footer-btn {
    flex: 1; padding: 11px 10px; border-radius: 7px;
    font-size: 13px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.15s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    border: 1px solid var(--border);
    min-height: 44px; -webkit-tap-highlight-color: transparent;
}
.bulk-footer-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.bulk-footer-btn.copy-all { background: rgba(255,255,255,0.05); color: var(--text); }
.bulk-footer-btn.copy-all:active { background: rgba(255,255,255,0.09); }
.bulk-footer-btn.copy-all.copied { border-color: rgba(34,197,94,0.4); color: #22c55e; background: rgba(34,197,94,0.07); }
.bulk-footer-btn.download { background: rgba(255,255,255,0.05); color: var(--text); }
.bulk-footer-btn.download:active { background: rgba(255,255,255,0.09); }
.bulk-footer-btn.close-btn { background: var(--accent); color: #fff; border-color: var(--accent); }
.bulk-footer-btn.close-btn:active { background: #2563eb; }


.custom-select-wrapper { position: relative; width: 100%; }
.custom-select-wrapper select { display: none !important; }

.csel-trigger {
    width: 100%; padding: 9px 32px 9px 12px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 7px; color: var(--text);
    font-size: 16px; font-family: inherit;
    cursor: pointer; transition: border-color 0.15s;
    display: flex; align-items: center; justify-content: space-between;
    user-select: none; position: relative;
    min-height: 40px;
}
.csel-trigger:active { border-color: rgba(255,255,255,0.18); }
.csel-trigger.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.csel-trigger-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.csel-trigger-text.placeholder { color: var(--muted); }
.csel-arrow { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); display: flex; align-items: center; transition: transform 0.15s; }
.csel-arrow svg { width: 11px; height: 11px; }
.csel-trigger.open .csel-arrow { transform: translateY(-50%) rotate(180deg); }

.csel-dropdown {
    position: fixed;
    background: #18181b; border: 1px solid #2a2c32;
    border-radius: 8px; z-index: 99999;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    opacity: 0; transform: translateY(-4px) scaleY(0.97);
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease;
    transform-origin: top;
}
.csel-dropdown.open { opacity: 1; transform: translateY(0) scaleY(1); pointer-events: auto; }

.csel-option {
    padding: 12px 14px;
    font-size: 14px; font-family: inherit;
    color: var(--muted); cursor: pointer;
    transition: background 0.1s, color 0.1s;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid rgba(42,44,50,0.5);
    min-height: 44px;
}
.csel-option:last-child { border-bottom: none; }
.csel-option:active { background: rgba(255,255,255,0.05); color: var(--text); }
.csel-option.selected { color: var(--text); background: rgba(59,130,246,0.12); }
.csel-option.selected::after { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: auto; flex-shrink: 0; }
.csel-option.disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }


.al-pill, .act-filter-pill {
    padding: 7px 12px; border-radius: 5px;
    font-size: 12px; font-weight: 500; font-family: inherit;
    border: 1px solid var(--border); background: none;
    color: var(--muted); cursor: pointer; transition: all 0.15s;
    min-height: 34px; white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.al-pill.active, .act-filter-pill.active { background: rgba(255,255,255,0.07); color: var(--text); border-color: rgba(255,255,255,0.14); }


.activity-filters { display: flex; gap: 6px; flex-wrap: wrap; }

.activity-feed { display: flex; flex-direction: column; }
.activity-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 20px; border-bottom: 1px solid rgba(31,31,34,0.8);
}
.activity-item:last-child { border-bottom: none; }

.activity-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.activity-icon svg { width: 15px; height: 15px; }
.ai-login, .ai-logout, .ai-generate, .ai-ban, .ai-unban, .ai-suspend, .ai-delete, .ai-reset, .ai-time, .ai-password, .ai-email, .ai-default { background: rgba(148,163,184,0.1); color: #94a3b8; }

.activity-content { flex: 1; min-width: 0; }
.activity-desc { font-size: 13px; color: var(--text); font-weight: 500; line-height: 1.45; word-break: break-word; }
.activity-desc .key-chip {
    font-family: 'Courier New', monospace; font-size: 11px;
    background: rgba(255,255,255,0.06); color: #9ca3af;
    padding: 1px 5px; border-radius: 4px;
    cursor: pointer; display: inline-block;
}
.activity-desc .key-chip:active { background: rgba(59,130,246,0.12); color: var(--accent); }
.activity-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.activity-time { font-size: 11.5px; color: var(--muted); }
.activity-ip { font-size: 11px; color: var(--muted2); font-family: 'Courier New', monospace; background: rgba(255,255,255,0.04); padding: 1px 6px; border-radius: 4px; }

.activity-type-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 7px; border-radius: 4px; }
.atb-login, .atb-logout, .atb-generate, .atb-ban, .atb-unban, .atb-suspend, .atb-delete, .atb-reset, .atb-time, .atb-password, .atb-email, .atb-default { background: rgba(148,163,184,0.08); color: #94a3b8; }

.activity-load-more { padding: 14px 20px; text-align: center; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); }
.load-more-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--muted); padding: 9px 18px; border-radius: 7px; font-size: 12.5px; font-family: inherit; font-weight: 500; cursor: pointer; transition: all 0.15s; min-height: 40px; -webkit-tap-highlight-color: transparent; }
.load-more-btn:active { background: rgba(255,255,255,0.09); color: var(--text); }
.load-more-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.activity-stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.activity-stat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.activity-stat-card .label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 8px; }
.activity-stat-card .value { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; }


@media (max-width: 768px) {
    body { flex-direction: column; }


    .sidebar { display: none; }


    .mobile-bottom-nav { display: block; }
    .mobile-header { display: flex; }


    .main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
    }


    .topbar { display: none; }


    .page-content { padding: 16px; margin-top: calc(54px + var(--safe-top)); }


    .stats-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .stat-card { padding: 14px 14px; }
    .stat-card-value { font-size: 22px; }
    .stat-card-label { font-size: 10px; margin-bottom: 8px; }


    .form-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .form-section { padding: 16px; }


    .section-card-header { padding: 14px 16px; }


    .settings-grid { grid-template-columns: 1fr; gap: 16px; }
    .settings-nav-card { position: static; }
    .settings-section-body { padding: 16px; }
    .settings-row { padding: 12px 16px; }


    .activity-filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
    .activity-filters::-webkit-scrollbar { height: 0; }


    .section-card-header > div:last-child {
        width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    }


    .search-wrap input { width: 100%; min-width: 150px; }


    .page-header h1 { font-size: 20px; }
    .page-header { margin-bottom: 18px; }


    .boost-label { width: 65px; font-size: 11.5px; }


    .quick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .quick-card { padding: 14px 14px; }


    th, td { padding: 10px 12px; }


    .activity-stats-row { grid-template-columns: repeat(2, 1fr); }


    #create-panel-bulk > div:first-of-type { grid-template-columns: 1fr !important; }


    .toast { bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 10px); }


    .detail-overlay { align-items: flex-end; }
    .detail-panel { border-radius: 20px 20px 0 0; max-height: 95vh; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-meta-strip { grid-template-columns: repeat(3, 1fr); }
    .detail-body { padding: 14px 16px 20px; }


    #createLicenseCard > div:first-child > div:last-child { font-size: 11px; padding: 0 12px; }
}

@media (max-width: 400px) {
    .stats-row { grid-template-columns: 1fr; gap: 10px; }
    .form-row { grid-template-columns: 1fr; }
    .quick-grid { grid-template-columns: 1fr; }
    .stat-card-value { font-size: 26px; }
    .detail-meta-strip { grid-template-columns: repeat(2, 1fr); }
    .bulk-modal-footer { flex-direction: column; }
    .bulk-footer-btn { flex: unset; width: 100%; }
}


@media (min-width: 769px) {
    .toast { bottom: 28px; left: auto; right: 28px; width: auto; max-width: 340px; }
    .detail-overlay { align-items: center; }
    .detail-panel { border-radius: 16px; max-height: 92vh; }
    .detail-panel::before { display: none; }
    .bulk-modal-overlay { align-items: center; }
    .bulk-modal { border-radius: 14px; max-height: 85vh; }
    .bulk-modal::before { display: none; }
    .detail-grid { grid-template-columns: 1fr 1fr; }
    .activity-stats-row { grid-template-columns: repeat(4, 1fr); }
}

/* Tap states for interactive elements */
@media (hover: none) {
    .sidebar-nav a:hover { color: var(--muted); background: none; }
    .sidebar-nav a.active:hover { color: var(--text); background: rgba(255,255,255,0.06); }
    .time-btn:hover:not(.active) { background: none; border-color: var(--border); color: var(--muted); }
}


body.modal-open { overflow: hidden; position: fixed; width: 100%; }
    

/* ----- Shell (marketing + layout) ----- */





html { background: #09090b; color-scheme: dark; }
html, body { margin: 0; min-height: 100%; font-family: "Inter", "DM Sans", system-ui, sans-serif; }
body {
  color: var(--text);
  background: #09090b;
  background-image:
    radial-gradient(ellipse 100% 80% at 0% -30%, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(59, 130, 246, 0.06), transparent 50%);
}
body.dash-in-app {
  background: #09090b !important;
  background-image:
    radial-gradient(ellipse 120% 80% at 0% -20%, rgba(37, 99, 235, 0.14), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(99, 102, 241, 0.08), transparent 50%) !important;
}
body.dash-in-app { position: relative; overflow-x: hidden; }
.file-protocol-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70000;
  background: #f59e0b;
  color: #1a1a1a;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  border-bottom: 2px solid #d97706;
}
html.f40-file-protocol .file-protocol-banner { display: block; }
html.f40-file-protocol body { background: #1a1a1c; }
.file-protocol-banner code { background: rgba(0,0,0,.12); padding: 2px 8px; border-radius: 4px; font-size: 13px; }
/* Marketing landing (pre-login) */
#landingScreen {
  position: fixed;
  inset: 0;
  z-index: 50000;
  overflow-y: auto;
  overflow-x: hidden;
  background: #030306;
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(37, 99, 235, 0.38), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 20%, rgba(99, 102, 241, 0.16), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 60%, rgba(59, 130, 246, 0.12), transparent 50%);
  background-size: 140% 140%, 130% 130%, 120% 120%;
  color: #fafafa;
}
#landingScreen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 32%, rgba(59, 130, 246, 0.2), transparent 42%),
    radial-gradient(circle at 88% 68%, rgba(139, 92, 246, 0.16), transparent 45%),
    radial-gradient(circle at 48% 88%, rgba(37, 99, 235, 0.1), transparent 50%);
}
#landingScreen > * {
  position: relative;
  z-index: 1;
}
body.dash-in-app #landingScreen { display: none !important; }
html.f40-file-protocol #landingScreen { display: none !important; }
.f40-land-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(3, 3, 6, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.f40-land-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.f40-land-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #1d4ed8 0%, #3b82f6 60%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 28px rgba(37, 99, 235, 0.12);
}
.f40-land-brand-mark svg { width: 22px; height: 22px; }
.f40-land-nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.f40-land-nav a.f40-land-link {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.f40-land-nav a.f40-land-link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.f40-land-btn-login {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--accent);
  color: #0c1222;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}
.f40-land-btn-login:hover { filter: brightness(1.06); }
.f40-land-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  text-align: center;
}
.f40-land-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0 0 20px;
}
.f40-land-hero h1 span {
  background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 45%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.f40-land-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #a1a1aa;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.f40-land-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.f40-land-btn-ghost {
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #e4e4e7;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.f40-land-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }
.f40-land-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 40px 24px 56px;
  background: rgba(0, 0, 0, 0.2);
}
.f40-land-stat strong { display: block; font-size: 1.75rem; font-weight: 800; color: #fff; }
.f40-land-stat span { font-size: 12px; color: #71717a; text-transform: uppercase; letter-spacing: 0.1em; }
.f40-land-bento {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .f40-land-bento { grid-template-columns: 1fr; }
}
.f40-land-tile {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 17, 20, 0.65);
  padding: 24px;
  backdrop-filter: blur(12px);
}
.f40-land-tile h3 { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.f40-land-tile p { font-size: 13px; color: #a1a1aa; line-height: 1.55; margin: 0; }
.f40-land-tile.span2 { grid-column: span 2; }
@media (max-width: 900px) {
  .f40-land-tile.span2 { grid-column: span 1; }
}
.f40-land-foot {
  text-align: center;
  padding: 32px 24px 120px;
  font-size: 12px;
  color: #52525b;
}
.f40-land-dl {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.f40-land-dl h2 { font-size: 1.45rem; margin: 0 0 10px; color: #fafafa; letter-spacing: -0.02em; }
.f40-land-dl > p.sub { color: #a1a1aa; font-size: 14px; margin: 0 0 22px; line-height: 1.55; }
.f40-land-dl-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  text-align: left;
  max-width: 440px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 17, 20, 0.72);
}
.f40-land-dl-inner label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: #71717a; letter-spacing: 0.06em; }
.f40-land-dl-inner select,
.f40-land-dl-inner input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c0c0f;
  color: #e4e4e7;
  font-family: inherit;
  font-size: 14px;
}
.f40-land-dl-inner button.primary {
  margin-top: 8px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.f40-land-dl-msg { font-size: 13px; margin: 8px 0 0; min-height: 1.2em; text-align: center; }
.f40-land-dl-msg.err { color: #f87171; }
.f40-land-dl-msg.ok { color: #4ade80; }
#appLayout .dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
#appLayout .dl-row-name { font-weight: 600; color: var(--text); }
#appLayout .dl-row-meta { font-size: 12px; color: var(--muted); width: 100%; }
#appLayout #dlGuestMsg.err { color: #f87171; }
#appLayout #dlGuestMsg.ok { color: #4ade80; }
.landing-music {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.landing-music.hidden { display: none !important; }
html.f40-file-protocol .landing-music { display: none !important; }
/* Keep music dock visible after login (fixed to viewport); lift above mobile bottom nav */
@media (max-width: 768px) {
  body.dash-in-app .landing-music {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 8px);
  }
}
.landing-music button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #e4e4e7;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.landing-music button:hover { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.35); }
.landing-music input[type="range"] { width: 72px; accent-color: #3b82f6; }

#loginScreen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 65000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: max(24px, env(safe-area-inset-top));
}
#loginScreen.f40-open {
  display: flex !important;
}
html.f40-file-protocol #loginScreen {
  display: flex !important;
  background: #0a0a0c;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(37, 99, 235, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 50% at 85% 80%, rgba(59, 130, 246, 0.1), transparent 45%);
}
html.f40-file-protocol #loginScreen .login-backdrop { display: none; }
html.f40-file-protocol #loginScreen .login-close { display: none; }
.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.login-card-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}
.login-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.login-close:hover { background: rgba(255, 255, 255, 0.1); }
body.dash-in-app #loginScreen { display: none !important; }
.login-card {
  width: 100%; max-width: 400px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
}
.login-card .mono { font-family: ui-monospace, monospace; font-size: 0.85em; }
.login-card h1 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 700; color: var(--text); }
.login-card h1 span { color: var(--accent); }
.login-card p.sub { margin: 0 0 24px; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.login-card label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.5px; }
.login-card input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg); color: var(--text); margin-bottom: 14px; font-family: inherit; font-size: 16px; }
.login-card button.primary {
  width: 100%; padding: 12px; border-radius: 8px; border: none; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 15px; cursor: pointer; margin-top: 4px;
}
.login-card button.primary:hover { filter: brightness(1.08); }
.login-card p.muted { color: var(--muted); font-size: 12px; margin-top: 14px; }
#appLayout.layout { display: none; width: 100%; min-height: 100vh; }
#appLayout.layout.show {
  display: flex !important;
  flex-direction: row;
  flex: 1;
  width: 100%;
  min-height: 100vh;
  align-items: stretch;
}
body.dash-in-app { display: flex; flex-direction: column; min-height: 100vh; margin: 0; }
.form-section label, .card label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-section input, .form-section select, .card input, .card select { width: 100%; padding: 9px 12px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit; font-size: 16px; margin-bottom: 12px; }
.form-section button, .card button { font-family: inherit; }
button.primary, .btn-primary { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
button.danger { border-color: rgba(239,68,68,0.4) !important; color: #f87171 !important; background: rgba(248,113,113,0.06) !important; }
button.ghost { background: transparent !important; }
.err { color: var(--danger); font-size: .85rem; margin-top: -8px; margin-bottom: 12px; }
.tag.admin {
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
}
pre.out { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px; max-height: 280px; overflow: auto; font-size: 12px; white-space: pre-wrap; }
.hidden { display: none !important; }
.sidebar-nav a { cursor: pointer; border: none; width: 100%; text-align: left; background: transparent; font: inherit; }
#sidebarLogout { margin-top: 8px; color: var(--danger) !important; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 420px; }
.admin-actions button { font-size: 11px; padding: 6px 10px; }

/* App shell background wash */
#appLayout.layout.show {
  position: relative;
  background: transparent !important;
}
#appLayout.layout.show::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 70% at 0% 0%, rgba(37, 99, 235, 0.12), transparent 52%),
    radial-gradient(ellipse 80% 55% at 100% 15%, rgba(59, 130, 246, 0.09), transparent 48%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(30, 58, 138, 0.08), transparent 55%);
  background-size: 140% 140%, 130% 130%, 160% 160%;
  background-position: 0% 0%, 100% 0%, 50% 100%;
  animation: v2ShellAurora 32s ease-in-out infinite alternate;
}
@keyframes v2ShellAurora {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%;
    opacity: 0.92;
  }
  50% {
    background-position: 8% 12%, 92% 8%, 45% 88%;
    opacity: 1;
  }
  100% {
    background-position: 15% 5%, 85% 18%, 55% 92%;
    opacity: 0.94;
  }
}
.evo-anims-off #appLayout.layout.show::before {
  animation: none;
  opacity: 1;
}
#appLayout.layout.show > .mobile-header,
#appLayout.layout.show > .sidebar,
#appLayout.layout.show > .mobile-bottom-nav,
#appLayout.layout.show > .main {
  position: relative;
  z-index: 1;
}
#appLayout .sidebar {
  background: var(--sidebar-bg) !important;
  border-right-color: var(--border) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
#appLayout .main {
  background: #050508 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: calc(100% - var(--sidebar-width)) !important;
  max-width: calc(100vw - var(--sidebar-width)) !important;
  box-sizing: border-box !important;
}
/* Desktop: block shell so fixed sidebar does not reserve a flex column (prevents double offset + huge left gap) */
@media (min-width: 769px) {
  #appLayout.layout.show {
    display: block !important;
    min-height: 100vh !important;
  }
  #appLayout.layout.show > .sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    width: var(--sidebar-width) !important;
    z-index: 100 !important;
  }
  #appLayout .main {
    display: flex !important;
    flex-direction: column !important;
    margin-left: var(--sidebar-width) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: unset !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
  }
}
#appLayout .page-content {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
#appLayout .evo-dash-grid {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: stretch !important;
}
#appLayout .topbar {
  background: rgba(10, 10, 14, 0.28) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#appLayout .stat-card,
#appLayout .section-card,
#appLayout .app-info {
  background: var(--card-bg) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#appLayout .page-header h1,
#appLayout .page-header p,
#appLayout .section-card-title,
#appLayout .topbar-title {
  color: var(--text) !important;
}
#appLayout .muted,
#appLayout .stat-card-label,
#appLayout .app-info-text {
  color: var(--muted) !important;
}
/* Tables: force readable text (fixes “empty” looking rows on light/white) */
#appLayout .table-wrap table,
#appLayout .table-wrap th,
#appLayout .table-wrap td {
  color: #e4e4e7 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}
#appLayout .table-wrap thead th {
  color: #94a3b8 !important;
}
#appLayout .table-wrap tbody tr:hover td {
  background: rgba(59, 130, 246, 0.06) !important;
}
#appsTable strong,
#keysTable .mono {
  color: #e2e8f0 !important;
}
.f40-empty-row {
  text-align: center !important;
  padding: 22px 16px !important;
  color: #cbd5e1 !important;
  font-size: 14px;
  line-height: 1.5;
}
.f40-empty-row code { font-size: 12px; background: rgba(0,0,0,.25); padding: 2px 8px; border-radius: 6px; }
.f40-error-row { color: #fca5a5 !important; }
#appLayout .mobile-bottom-nav,
#appLayout .mobile-header {
  background: rgba(10, 8, 28, 0.94) !important;
  border-color: var(--border) !important;
}
#appLayout .time-btn.active,
#appLayout .btn-primary {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  box-shadow: 0 2px 16px rgba(37, 99, 235, 0.15) !important;
}
#appLayout select,
#appLayout select option {
  color: #e4e4e7 !important;
  background-color: #141416 !important;
}
#appLayout .app-info-dot {
  background: var(--success) !important;
  box-shadow: none !important;
}
.f40-signed-line strong#whoami,
#whoami {
  color: #f5f3ff !important;
  font-weight: 700 !important;
}
.mobile-header-left { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; flex: 1; }
.mobile-header-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mobile-header-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.mobile-page-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #e2e8f0 !important;
  line-height: 1.25;
}
.mobile-header-user {
  font-size: 11px !important;
  max-width: min(100%, 72vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #94a3b8 !important;
}
#appLayout .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px 18px;
  border-bottom: 1px solid var(--border);
}
#appLayout .sidebar-brand-text { min-width: 0; }
#appLayout .sidebar-brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}
#appLayout .sidebar-brand-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}
#appLayout .sidebar-group-label {
  color: #71717a !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px !important;
  font-weight: 600 !important;
}
#appLayout .topbar {
  min-height: 40px;
  height: auto;
  padding: 6px 20px 8px 22px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
#appLayout .topbar-ev-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}
#appLayout .topbar-greeting {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #d4d4d8 !important;
  line-height: 1.35;
}
#appLayout .topbar-meta {
  font-size: 12px;
  color: var(--muted) !important;
  margin-top: 0 !important;
}
#appLayout .topbar-meta::before {
  content: "·";
  margin-right: 10px;
  color: #3f3f46;
  font-weight: 500;
}
#appLayout .topbar-meta strong {
  color: #cbd5e1 !important;
  font-weight: 600;
}
#appLayout .topbar-ev-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#appLayout .section-card-header {
  align-items: flex-start !important;
}
.section-card-desc {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted) !important;
  font-weight: 400;
  max-width: 640px;
}
.field-hint {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted) !important;
  margin: -4px 0 10px;
  max-width: 540px;
}
#appLayout .page-header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
#appLayout .page-header p {
  font-size: 14px;
  line-height: 1.55;
  max-width: 720px;
  margin-top: 8px;
}
#appLayout .stat-card-value {
  font-size: 32px;
  letter-spacing: -0.05em;
}
#appLayout .stats-row {
  gap: 18px;
  margin-bottom: 26px;
}
#appLayout .section-card-title {
  font-size: 14px !important;
  font-weight: 600 !important;
}
#appLayout .mobile-header-badge {
  color: #93c5fd !important;
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.28) !important;
}
#appLayout .mobile-page-title {
  color: #e2e8f0 !important;
}

/* Dashboard shell (desktop home layout) */
#appLayout .sidebar {
  border-right: 1px solid #1a1a1e !important;
}
#appLayout .logo-mark {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  padding: 0 !important;
  background: linear-gradient(145deg, #1d4ed8 0%, #3b82f6 55%, #4f46e5 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--glow-accent) !important;
}
#appLayout .logo-mark .evo-logo-svg {
  width: 22px;
  height: 22px;
  display: block;
}
#appLayout .sidebar-brand-name { font-size: 17px !important; font-weight: 800 !important; letter-spacing: -0.04em !important; }
#appLayout .sidebar-brand-tag {
  font-size: 9px !important;
  letter-spacing: 0.16em !important;
  color: #71717a !important;
  margin-top: 3px !important;
}
#appLayout .sidebar-nav a {
  border-radius: 10px !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
}
#appLayout .sidebar-nav a.active {
  background: var(--accent-dim) !important;
  box-shadow: inset 3px 0 0 var(--accent) !important;
}
.evo-sidebar-footer .sidebar-group-label { padding-top: 8px !important; }
.evo-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #1f1f22;
  cursor: default;
}
.evo-profile-card .user-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  font-size: 15px !important;
  background: linear-gradient(145deg, #27272a, #3f3f46) !important;
}
.evo-profile-email { font-size: 11px !important; color: #71717a !important; margin-top: 2px; }
.evo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.evo-pill.evo-pill-admin {
  background: var(--accent-dim);
  border-color: rgba(99, 102, 241, 0.28);
  color: #93c5fd;
}
#appLayout #refreshBtn.evo-cta,
#appLayout .evo-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 18px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  min-height: 42px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #fff !important;
  box-shadow: var(--shadow-sm), 0 4px 20px rgba(37, 99, 235, 0.18) !important;
}
#appLayout #refreshBtn.evo-cta .evo-plus,
#appLayout .evo-cta .evo-plus {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  margin-top: -1px;
}
#appLayout .f40-signed-line { display: none !important; }

#page-home .page-header h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
#page-home .page-header p.evo-skip-intro { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
#page-home .page-header { margin-bottom: 8px !important; min-height: 0; }

#page-home .stats-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
}
#page-home .stat-card {
  border-radius: var(--evo-radius) !important;
  padding: 18px 20px !important;
  border: 1px solid #1f1f22 !important;
  background: var(--evo-card) !important;
}
#page-home .stat-card-label { margin-bottom: 14px !important; font-size: 11px !important; color: #71717a !important; }
#page-home .stat-card-label svg { width: 15px !important; height: 15px !important; opacity: 0.85; }
#page-home .stat-card-value { font-size: 30px !important; font-weight: 700 !important; }

.evo-dash-grid {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.evo-card {
  background: var(--evo-card);
  border: 1px solid #1f1f22;
  border-radius: var(--evo-radius);
  margin-bottom: 20px;
  overflow: hidden;
}
.evo-card:last-child { margin-bottom: 0; }
.evo-card-hd {
  padding: 16px 20px;
  border-bottom: 1px solid #1f1f22;
  font-size: 13px;
  font-weight: 600;
  color: #fafafa;
}
.evo-card-bd { padding: 0; }
.evo-app-list { padding: 8px 0; max-height: 280px; overflow-y: auto; }
.evo-app-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.evo-app-row:last-child { border-bottom: none; }
.evo-app-tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.evo-app-meta { flex: 1; min-width: 0; }
.evo-app-name { font-size: 14px; font-weight: 600; color: #fafafa; }
.evo-app-sub { font-size: 12px; color: #71717a; margin-top: 3px; }
.evo-status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--success);
      flex-shrink: 0;
    }
.evo-app-empty, .evo-app-err {
  padding: 28px 20px;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: #a1a1aa;
}
.evo-app-err { color: #fca5a5; }

.evo-overview-split {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 0;
  min-height: 140px;
}
@media (max-width: 1100px) {
  .evo-overview-split { grid-template-columns: 1fr; }
}
.evo-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #1a1a1e;
  border-right: 1px solid #1a1a1e;
}
.evo-kpi-cell {
  background: #111114;
  padding: 14px 18px;
}
.evo-kpi-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #71717a; margin-bottom: 6px; }
.evo-kpi-val { font-size: 18px; font-weight: 700; color: #fafafa; }
.evo-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  background: #0c0c0e;
}
.evo-qbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid #252528;
  background: #161618;
  color: #e4e4e7;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.evo-qbtn:hover { background: #1c1c1f; border-color: #3f3f46; }
.evo-qbtn svg { width: 14px; height: 14px; opacity: 0.85; }

.evo-activity-list { padding: 8px 0; max-height: 220px; overflow-y: auto; }
.evo-act-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.evo-act-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.evo-act-dot.g { background: #22c55e; }
.evo-act-dot.b { background: #3b82f6; }
.evo-act-dot.o { background: #f59e0b; }
.evo-act-txt { flex: 1; font-size: 13px; color: #d4d4d8; line-height: 1.4; }
.evo-act-time { font-size: 11px; color: #52525b; white-space: nowrap; }

.evo-side-stack { display: flex; flex-direction: column; gap: 20px; }
.evo-res-row { margin-bottom: 16px; }
.evo-res-row:last-child { margin-bottom: 0; }
.evo-res-label { display: flex; justify-content: space-between; font-size: 12px; color: #a1a1aa; margin-bottom: 8px; }
.evo-res-bar { height: 4px; background: #1f1f22; border-radius: 4px; overflow: hidden; }
.evo-res-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2563eb, #3b82f6 70%, #6366f1); }
.evo-status-panel .evo-card-bd { padding: 18px 20px; }
.evo-status-title { font-size: 15px; font-weight: 700; color: #fafafa; margin-bottom: 6px; }
.evo-status-sub { font-size: 12px; color: #71717a; line-height: 1.45; word-break: break-all; }
.evo-sec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}
.evo-sec-cell {
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.evo-sec-cell.g { background: rgba(34, 197, 94, 0.08); }
.evo-sec-cell.b { background: rgba(59, 130, 246, 0.1); }
.evo-sec-cell.o { background: rgba(245, 158, 11, 0.1); }
.evo-sec-cell.r { background: rgba(239, 68, 68, 0.08); }
.evo-sec-val { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.evo-sec-lbl { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; opacity: 0.85; }
.evo-sec-cell.g .evo-sec-val { color: #4ade80; }
.evo-sec-cell.b .evo-sec-val { color: #60a5fa; }
.evo-sec-cell.o .evo-sec-val { color: #fbbf24; }
.evo-sec-cell.r .evo-sec-val { color: #f87171; }

#page-home .app-info {
  display: none !important;
}
#page-home .f40-apps-table-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1200px) {
  .evo-dash-grid { grid-template-columns: 1fr; }
  .evo-dash-grid .evo-dash-main { order: 1; }
  .evo-dash-grid .evo-side-stack { order: 2; }
}
@media (max-width: 900px) {
  #page-home .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Mobile layout polish */
@media (max-width: 768px) {
  /* Full-width main: clear sidebar offset + desktop width calc (fixes empty strip on the left) */
  #appLayout.layout.show {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }
  #appLayout .topbar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: none !important;
    pointer-events: none !important;
  }
  #appLayout .mobile-header {
    align-items: flex-start !important;
    padding: 10px 14px 12px !important;
    padding-top: max(10px, env(safe-area-inset-top, 0px)) !important;
    min-height: unset !important;
    height: auto !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  #appLayout .mobile-header-right {
    padding-top: 4px;
    flex-shrink: 0;
  }
  #appLayout .mobile-refresh-btn,
  #appLayout .mobile-avatar-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    font-size: 18px;
  }
  #appLayout .mobile-avatar-btn { font-size: 14px; }

  /* Scrollable tab bar — no more squeezed 6 tabs */
  #appLayout .mobile-bottom-nav {
    border-top: 1px solid rgba(59, 130, 246, 0.15) !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  }
  #appLayout .mobile-nav-items {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 4px !important;
    padding: 8px 12px max(8px, env(safe-area-inset-bottom, 0px)) !important;
    scrollbar-width: none;
  }
  #appLayout .mobile-nav-items::-webkit-scrollbar {
    display: none;
    height: 0;
  }
  #appLayout .mobile-nav-item {
    flex: 0 0 auto !important;
    min-width: 76px;
    max-width: 92px;
    min-height: 54px !important;
    padding: 8px 6px !important;
    border-radius: 12px;
    transition: background 0.15s;
  }
  #appLayout .mobile-nav-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(99, 102, 241, 0.08)) !important;
    color: #e0e7ff !important;
  }
  #appLayout .mobile-nav-item svg {
    width: 22px !important;
    height: 22px !important;
  }
  #appLayout .mobile-nav-item span {
    font-size: 9px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-align: center;
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #appLayout .main {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    align-self: stretch !important;
  }
  #appLayout .page-content {
    padding: 14px max(14px, env(safe-area-inset-left)) 20px max(14px, env(safe-area-inset-right)) !important;
    margin-top: 0 !important;
    padding-top: calc(88px + env(safe-area-inset-top, 0px)) !important;
  }
  #appLayout .page-header {
    margin-bottom: 16px !important;
  }
  #appLayout .page-header h1 {
    font-size: 1.25rem !important;
    letter-spacing: -0.02em;
  }
  #appLayout .topbar-greeting { font-size: 17px !important; }
  #appLayout .topbar-meta { font-size: 12px !important; }
  #appLayout .page-header p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  #appLayout .stats-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  #appLayout .stat-card {
    padding: 16px 18px !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  #appLayout .stat-card-label { margin-bottom: 0 !important; flex: 1; min-width: 0; }
  #appLayout .stat-card-value { font-size: 1.5rem !important; flex-shrink: 0; }

  #page-home .stats-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 12px !important;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  #page-home .stats-row::-webkit-scrollbar { display: none; height: 0; }
  #page-home .stats-row .stat-card {
    flex: 0 0 min(78vw, 260px) !important;
    max-width: 280px;
  }

  #appLayout .form-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  #appLayout .form-group[style*="align-self"] {
    align-self: stretch !important;
  }
  #appLayout .form-group[style*="align-self"] button {
    width: 100% !important;
  }
  #appLayout .section-card {
    border-radius: 14px !important;
    margin-bottom: 14px !important;
    overflow: hidden;
  }
  #appLayout .section-card-header {
    padding: 14px 16px !important;
  }
  #appLayout .form-section {
    padding: 16px !important;
  }
  #appLayout .table-wrap {
    margin: 0 -4px;
    padding: 0 4px;
    -webkit-overflow-scrolling: touch;
  }
  #appLayout .admin-actions {
    max-width: none !important;
    flex-direction: column;
    align-items: stretch !important;
  }
  #appLayout .admin-actions button,
  #appLayout .admin-actions select,
  #appLayout .admin-actions input {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (max-width: 380px) {
  #appLayout .mobile-nav-item { min-width: 70px; }
  #appLayout .page-content {
    padding-top: calc(92px + env(safe-area-inset-top, 0px)) !important;
  }
}
#refreshBtn:disabled { opacity: 0.55; cursor: wait; }
.mobile-refresh-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(24, 24, 28, 0.95);
  color: #93c5fd;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mobile-refresh-btn:disabled { opacity: 0.5; cursor: wait; }
  

/* Shell polish: static landing, no purple wash */
#landingScreen {
    background: #08090f !important;
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -15%, rgba(59, 130, 246, 0.1), transparent 55%),
        radial-gradient(ellipse 75% 45% at 100% 15%, rgba(99, 102, 241, 0.06), transparent 50%),
        radial-gradient(ellipse 70% 40% at 100% 20%, rgba(30, 41, 59, 0.32), transparent 50%) !important;
    background-size: auto !important;
}
#landingScreen::before {
    background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(99, 102, 241, 0.06), transparent 50%) !important;
    opacity: 1 !important;
}
body.dash-in-app {
    background: var(--bg) !important;
    background-image: radial-gradient(ellipse 100% 60% at 0% 0%, rgba(59, 130, 246, 0.06), transparent 50%) !important;
}
#appLayout.layout.show::before {
    background:
        radial-gradient(ellipse 100% 55% at 0% 0%, rgba(59, 130, 246, 0.07), transparent 52%),
        radial-gradient(ellipse 85% 50% at 100% 8%, rgba(99, 102, 241, 0.05), transparent 48%),
        radial-gradient(ellipse 80% 50% at 100% 10%, rgba(30, 41, 59, 0.18), transparent 48%) !important;
    background-size: auto !important;
    animation: none !important;
}
.evo-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--border) !important;
    color: var(--muted) !important;
}
.evo-pill .evo-pill-svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.9;
}
.evo-pill.evo-pill-admin {
    background: var(--accent-dim) !important;
    border-color: rgba(99, 102, 241, 0.28) !important;
    color: #93c5fd !important;
}
#appLayout .logo-mark {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), var(--glow-accent) !important;
    background: linear-gradient(145deg, #1d4ed8 0%, #3b82f6 55%, #4f46e5 100%) !important;
}
#appLayout #refreshBtn.evo-cta,
#appLayout .evo-cta {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    box-shadow: var(--shadow-sm), 0 4px 20px rgba(37, 99, 235, 0.18) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}
#appLayout .time-btn.active,
#appLayout .btn-primary {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    box-shadow: 0 2px 16px rgba(37, 99, 235, 0.15) !important;
}
#appLayout .app-info-dot {
    box-shadow: none !important;
    background: var(--success) !important;
}

/* Custom scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(129, 140, 248, 0.32) transparent;
}
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background: rgba(129, 140, 248, 0.28);
    border-radius: 100px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
    background: rgba(129, 140, 248, 0.42);
    background-clip: padding-box;
}

/* Native select “face” — click-through to real select */
.k4-select-wrap {
    position: relative;
    display: block;
    width: 100%;
    min-height: 42px;
}
.k4-select-wrap select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.001;
    z-index: 3;
    cursor: pointer;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    box-shadow: none !important;
}
.k4-select-face {
    pointer-events: none;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 36px 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.3;
}
.k4-select-face::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid var(--muted2);
    border-bottom: 2px solid var(--muted2);
    transform: rotate(45deg);
    opacity: 0.85;
}
.k4-select-wrap:focus-within .k4-select-face {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Unified buttons */
.btn-primary {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 18px !important;
    min-height: 42px !important;
    box-shadow: var(--shadow-sm) !important;
}
.btn-primary:hover:not(:disabled),
.btn-primary:active:not(:disabled) {
    background: var(--accent-hover) !important;
    filter: none !important;
}
.btn-primary:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font);
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}

button.primary,
.f40-land-btn-login {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow-sm), 0 4px 20px rgba(37, 99, 235, 0.2) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
}
.f40-land-btn-login:hover {
    filter: brightness(1.05);
}

/* Range (music dock) */
.landing-music input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
}
.landing-music input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #0c1222;
    cursor: pointer;
}

/* Cards: spacing instead of heavy divider lines */
.section-card-header {
    border-bottom: none !important;
    padding: 20px 22px 6px !important;
    gap: 6px !important;
}
.section-card .form-section {
    padding-top: 14px !important;
}
.evo-card-hd {
    border-bottom: none !important;
    padding: 18px 20px 10px !important;
}
.evo-app-row,
.evo-act-row {
    border-bottom: none !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}
.evo-app-row:last-child,
.evo-act-row:last-child {
    box-shadow: none;
}

/* Inputs: consistent surface */
.form-group input,
.form-group select,
.login-card input {
    border-radius: var(--radius-sm) !important;
    background: var(--surface) !important;
}
.form-group input:focus,
.login-card input:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-dim) !important;
}

.landing-music .k4-icobtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}
.landing-music .k4-icobtn:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(99, 102, 241, 0.22);
    color: var(--accent);
}
.landing-music .k4-icobtn svg {
    width: 18px;
    height: 18px;
}

.sidebar-nav a svg,
.mobile-nav-item svg {
    stroke-width: 1.75;
}

/* ========== Evora sign-in shell + Evorion-style dashboard v2 ========== */

.evo-anims-off *,
.evo-anims-off *::before,
.evo-anims-off *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

@keyframes evoraTopoDrift {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
    50% { transform: translate3d(2%, -1.5%, 0) scale(1.03); opacity: 1; }
    100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
}
@keyframes evoraDash {
    to { stroke-dashoffset: -240; }
}
@keyframes evoraBlobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    20% { transform: translate(12%, 6%) scale(1.14); opacity: 0.78; }
    40% { transform: translate(-8%, 14%) scale(0.92); opacity: 0.62; }
    60% { transform: translate(10%, -10%) scale(1.08); opacity: 0.72; }
    80% { transform: translate(-14%, 4%) scale(1.02); opacity: 0.58; }
}
@keyframes v2AuroraMeshMove {
    0% { transform: translate(-12%, -18%) rotate(0deg) scale(1); opacity: 0.75; }
    25% { transform: translate(6%, 4%) rotate(90deg) scale(1.08); opacity: 0.95; }
    50% { transform: translate(10%, 12%) rotate(180deg) scale(1.02); opacity: 0.8; }
    75% { transform: translate(-8%, 8%) rotate(270deg) scale(1.1); opacity: 0.9; }
    100% { transform: translate(-12%, -18%) rotate(360deg) scale(1); opacity: 0.75; }
}
@keyframes v2AuroraSweep {
    0% { transform: translateX(-35%) skewX(-12deg); opacity: 0; }
    15% { opacity: 0.12; }
    50% { opacity: 0.18; }
    85% { opacity: 0.1; }
    100% { transform: translateX(45%) skewX(-12deg); opacity: 0; }
}
@keyframes v2BlobPulse {
    0%, 100% { filter: blur(80px) brightness(1); }
    50% { filter: blur(95px) brightness(1.12); }
}
@keyframes evoraCardIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes evoraNudge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
    40% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.25), 0 0 40px rgba(59, 130, 246, 0.15); }
}
@keyframes evoraShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.evora-shell {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 480px);
    min-height: 100vh;
    min-height: 100dvh;
    background: #000;
    color: #fafafa;
    font-family: var(--font);
}
.evora-left {
    position: relative;
    padding: 28px 40px 32px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.evora-topo-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.evora-topo-svg {
    position: absolute;
    width: 140%;
    height: 120%;
    left: -20%;
    top: -5%;
    opacity: 0.9;
    animation: evoraTopoDrift 18s ease-in-out infinite;
}
.evo-anims-off .evora-topo-svg { animation: none; }
.evora-topo-lines .evora-ring,
.evora-topo-lines .evora-path {
    stroke-dasharray: 10 16;
    stroke-dashoffset: 0;
    animation: evoraDash 22s linear infinite;
}
.evora-topo-lines .evora-r2 { animation-duration: 28s; animation-direction: reverse; }
.evora-topo-lines .evora-r3 { animation-duration: 19s; }
.evora-topo-lines .evora-r4 { animation-duration: 31s; animation-direction: reverse; }
.evora-topo-lines .evora-r5 { animation-duration: 24s; }
.evora-topo-lines .evora-p2 { animation-duration: 26s; animation-direction: reverse; }
.evora-topo-lines .evora-p3 { animation-duration: 20s; }
.evora-topo-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 70% at 30% 40%, transparent 20%, #000 75%);
}
.evora-left-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.evora-wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}
.evora-left-head-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.evora-text-link {
    color: #94a3b8;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}
.evora-text-link:hover { color: #e2e8f0; }
.evora-ghost-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.evora-ghost-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.2);
}
.evora-left-body {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 520px;
}
.evora-prehead {
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 6px;
}
.evora-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 14px;
}
.evora-hero-w { color: #fff; }
.evora-hero-accent {
    color: #3b82f6;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.45);
}
.evora-hero-sub {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 28px;
}
.evora-feature-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}
.evora-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 14px;
}
.evora-fi {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(59, 130, 246, 0.45);
    border-radius: 6px;
    flex-shrink: 0;
    background: rgba(59, 130, 246, 0.08);
    position: relative;
}
.evora-fi-shield::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1.5px solid #60a5fa;
    border-radius: 3px 3px 0 0;
    border-bottom: none;
}
.evora-fi-lock::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 5px;
    top: 9px;
    border: 1.5px solid #60a5fa;
    border-radius: 2px;
}
.evora-fi-pulse::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #60a5fa, transparent);
    transform: translateY(-50%);
}
.evora-fi-bolt::after {
    content: "⚡";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.8));
}
.evora-guest-dl {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.02);
}
.evora-guest-dl summary {
    cursor: pointer;
    padding: 14px 4px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    list-style: none;
}
.evora-guest-dl summary::-webkit-details-marker { display: none; }
.evora-dl-hint {
    font-weight: 400;
    opacity: 0.75;
    margin-left: 8px;
}
.evora-guest-dl-inner {
    padding: 0 4px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.evora-guest-dl-inner label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}
.evora-guest-dl-inner select,
.evora-guest-dl-inner input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-family: var(--font);
}
.evora-dl-btn {
    margin-top: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: #fff;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}
.evora-dl-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.12);
}
.evora-dl-msg { font-size: 12px; min-height: 1.2em; margin: 0; }
.evora-guest-hwid-hint {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    margin: 4px 0 0;
}
.evora-hwid-btn {
    margin-top: 4px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #e2e8f0;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.evora-hwid-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(96, 165, 250, 0.45);
    transform: translateY(-1px);
}
.evora-dl-msg.ok { color: #86efac; }
.evora-dl-msg.err { color: #fca5a5; }
.evora-left-foot {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 24px;
    font-size: 13px;
    color: #64748b;
}
.evora-left-foot strong { color: #94a3b8; }
.evora-copy { font-size: 11px; margin-top: 10px; opacity: 0.7; }

.evora-right {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.evora-signin-card {
    width: 100%;
    max-width: 380px;
    animation: evoraCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.evo-anims-off .evora-signin-card { animation: none; }
.evora-signin-card.evora-nudge {
    animation: evoraNudge 0.85s ease-out;
}
.evora-welcome {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}
.evora-welcome-sub {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 22px;
}
.evora-role-toggle {
    display: flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}
.evora-role-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font);
    transition: background 0.2s, color 0.2s;
}
.evora-role-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.evora-field { margin-bottom: 18px; }
.evora-field label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}
.evora-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 4px 4px 4px 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.evora-input-wrap:focus-within {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.evora-input-ico { color: #475569; flex-shrink: 0; display: flex; }
.evora-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    padding: 12px 8px;
    outline: none;
    font-family: var(--font);
}
.evora-err {
    color: #f87171;
    font-size: 13px;
    min-height: 1.2em;
    margin-bottom: 12px;
}
.evora-signin-btn {
    width: 100%;
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    background: #fff;
    color: #000;
    cursor: pointer;
    font-family: var(--font);
    transition: transform 0.15s, box-shadow 0.25s;
}
.evora-signin-btn:hover {
    box-shadow: 0 0 32px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.evora-signin-btn .evora-signin-btn-spin {
    display: none;
    width: 20px;
    height: 20px;
    margin: 0 auto;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: #000;
    border-radius: 50%;
    animation: evoraSpin 0.7s linear infinite;
}
@keyframes evoraSpin { to { transform: rotate(360deg); } }
.evora-btn-loading .evora-signin-btn-label { opacity: 0; }
.evora-btn-loading .evora-signin-btn-spin { display: block; position: absolute; left: 50%; top: 50%; margin: -10px 0 0 -10px; }
.evora-form-foot {
    margin-top: 18px;
    font-size: 11px;
    color: #475569;
    line-height: 1.45;
}
.evora-form-foot .mono { font-size: 10px; }
.evora-terms {
    margin-top: 14px;
    font-size: 11px;
    color: #334155;
    text-align: center;
}

.evora-music-dock {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.evora-music-meta {
    display: flex;
    flex-direction: column;
    min-width: 80px;
    margin-right: 4px;
}
.evora-music-title { font-size: 12px; font-weight: 700; color: #fff; }
.evora-music-sub { font-size: 10px; color: #64748b; }
.evora-music-bar-wrap { flex: 1; min-width: 120px; }
.evora-music-seek {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.25);
}
.evora-music-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3b82f6;
    border: 2px solid #0a0b14;
    cursor: pointer;
}

@media (max-width: 900px) {
    .evora-shell {
        grid-template-columns: 1fr;
    }
    .evora-right {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        min-height: 60vh;
    }
    .evora-left { min-height: auto; }
}

/* Dashboard v2 glass + aurora (full main column, all tabs — Evora-style motion) */
#appLayout.layout .main {
    position: relative;
    min-height: 100vh;
    overflow-x: clip;
}
#appLayout.layout .main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 120% 80% at 0% -10%, rgba(37, 99, 235, 0.22), transparent 55%),
        radial-gradient(ellipse 90% 70% at 100% 0%, rgba(79, 70, 229, 0.1), transparent 50%);
    opacity: 1;
}
.evo-anims-off #appLayout.layout .main::before {
    animation: none;
}

.v2-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Slow-rotating mesh — electric blue + violet (Evora-like) */
.v2-aurora-mesh {
    position: absolute;
    width: 180%;
    height: 180%;
    left: -40%;
    top: -40%;
    background:
        conic-gradient(
            from 220deg at 45% 35%,
            rgba(0, 85, 255, 0) 0deg,
            rgba(0, 100, 255, 0.22) 55deg,
            rgba(102, 0, 255, 0.14) 120deg,
            rgba(59, 130, 246, 0.08) 200deg,
            rgba(0, 80, 255, 0.18) 280deg,
            rgba(0, 85, 255, 0) 360deg
        );
    filter: blur(55px);
    animation: v2AuroraMeshMove 48s linear infinite;
    will-change: transform, opacity;
}
.evo-anims-off .v2-aurora-mesh {
    animation: none;
    transform: none;
    opacity: 0.85;
}

.v2-aurora-blobs {
    position: absolute;
    inset: 0;
}

.v2-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(88px);
    opacity: 0.55;
    animation: evoraBlobFloat 26s ease-in-out infinite, v2BlobPulse 14s ease-in-out infinite;
    will-change: transform, opacity, filter;
}
.v2-b1 {
    width: min(620px, 90vw);
    height: min(620px, 90vw);
    background: radial-gradient(circle, rgba(0, 120, 255, 0.45) 0%, rgba(37, 99, 235, 0.2) 45%, transparent 72%);
    top: -18%;
    left: -8%;
    animation-duration: 32s, 16s;
}
.v2-b2 {
    width: min(520px, 85vw);
    height: min(520px, 85vw);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.38) 0%, rgba(79, 70, 229, 0.15) 50%, transparent 70%);
    top: 8%;
    right: -12%;
    animation-delay: -6s, -3s;
    animation-duration: 38s, 18s;
}
.v2-b3 {
    width: min(440px, 70vw);
    height: min(440px, 70vw);
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 68%);
    bottom: 5%;
    left: 15%;
    animation-delay: -12s, -7s;
    animation-duration: 30s, 20s;
}
.v2-b4 {
    width: min(380px, 60vw);
    height: min(380px, 60vw);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.28) 0%, transparent 65%);
    top: 42%;
    left: 35%;
    animation-delay: -18s, -5s;
    animation-duration: 34s, 22s;
}
.v2-b5 {
    width: min(500px, 80vw);
    height: min(500px, 80vw);
    background: radial-gradient(circle, rgba(0, 180, 255, 0.2) 0%, rgba(37, 99, 235, 0.12) 40%, transparent 68%);
    bottom: -10%;
    right: 5%;
    animation-delay: -9s, -11s;
    animation-duration: 36s, 15s;
}

/* Occasional light sweep across the panel */
.v2-aurora-sweep {
    position: absolute;
    inset: -20% -30%;
    width: 55%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(96, 165, 250, 0.07) 45%,
        rgba(147, 197, 253, 0.14) 50%,
        rgba(96, 165, 250, 0.07) 55%,
        transparent 100%
    );
    filter: blur(20px);
    animation: v2AuroraSweep 14s ease-in-out infinite;
    animation-delay: 2s;
}
.evo-anims-off .v2-aurora-sweep {
    display: none;
}

.v2-aurora-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 30%, rgba(5, 5, 8, 0.65) 100%);
    pointer-events: none;
}

/* Tab change: brief intensify (feels alive on every navigation) */
.v2-aurora-tabpulse .v2-aurora-mesh {
    animation-duration: 18s;
    filter: blur(48px) brightness(1.15);
}
.v2-aurora-tabpulse .v2-blob {
    animation-duration: 12s, 6s !important;
    opacity: 0.72 !important;
}
.v2-aurora-tabpulse .v2-aurora-sweep {
    animation-duration: 6s;
    opacity: 1;
}

.evo-anims-off .v2-blob {
    animation: none !important;
    opacity: 0.45;
    filter: blur(80px);
}
.evo-anims-off .v2-aurora-tabpulse .v2-aurora-mesh,
.evo-anims-off .v2-aurora-tabpulse .v2-blob {
    animation: none !important;
    filter: blur(55px);
    opacity: inherit;
}

#appLayout .main > .topbar,
#appLayout .main > .page-content {
    position: relative;
    z-index: 1;
}

.v2-sidebar-brand .v2-hex-mark {
    border-radius: 10px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #93c5fd;
}
.v2-sidebar-brand .v2-hex-mark svg {
    width: 32px;
    height: 32px;
}

.v2-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
@media (max-width: 1100px) {
    .v2-kpi-row { grid-template-columns: repeat(2, 1fr); }
}
.v2-kpi-card {
    background: rgba(18, 20, 32, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 18px 20px;
    backdrop-filter: blur(12px);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.v2-kpi-card:hover {
    border-color: rgba(59, 130, 246, 0.22);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(-3px);
}
.v2-kpi-ico {
    color: #64748b;
    margin-bottom: 10px;
}
.v2-kpi-lbl {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #64748b;
    margin-bottom: 8px;
}
.v2-kpi-val {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    line-height: 1;
}
.v2-kpi-lg { font-size: 2.25rem; }
.v2-kpi-sub {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}

.v2-mid-grid {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 320px);
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 1000px) {
    .v2-mid-grid { grid-template-columns: 1fr; }
}
.v2-glass {
    background: rgba(16, 18, 28, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    backdrop-filter: blur(14px);
    border-radius: 14px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.v2-glass:hover {
    border-color: rgba(59, 130, 246, 0.15) !important;
}
.v2-card-hd-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.v2-viewall {
    font-size: 12px;
    font-weight: 600;
    color: #60a5fa;
    text-decoration: none;
}
.v2-viewall:hover { text-decoration: underline; }

.v2-quick-wrap .v2-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 18px 20px !important;
}
.v2-qaction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.v2-qaction:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}
.v2-qaction.v2-qlink {
    text-decoration: none;
}
.v2-q-plus {
    font-weight: 800;
    color: #60a5fa;
}

.v2-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr minmax(220px, 280px);
    gap: 14px;
    margin-bottom: 8px;
}
@media (max-width: 1000px) {
    .v2-bottom-grid { grid-template-columns: 1fr; }
}
.v2-plan-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.v2-plan-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.v2-plan-name { font-weight: 700; font-size: 15px; }
.v2-plan-status { font-size: 12px; color: #4ade80; margin-top: 2px; }
.v2-upgrade-btn {
    margin-top: auto;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font);
    transition: background 0.2s, transform 0.15s;
}
.v2-upgrade-btn:hover {
    background: rgba(59, 130, 246, 0.22);
    transform: translateY(-1px);
}

.v2-dash-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-top: 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: #64748b;
}
.v2-ft-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3b82f6;
    margin-right: 8px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
    animation: evoraPulseDot 2s ease-in-out infinite;
}
@keyframes evoraPulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
.evo-anims-off .v2-ft-dot { animation: none; }

.v2-topbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.v2-pill-core {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: default;
    font-family: var(--font);
}
.v2-btn-newapp {
    font-weight: 700 !important;
}
.v2-icon-refresh {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, transform 0.3s;
}
.v2-icon-refresh:hover {
    color: #fff;
    border-color: rgba(59, 130, 246, 0.35);
    transform: rotate(90deg);
}

.v2-reveal {
    animation: evoraCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.v2-r1 { animation-delay: 0.06s; }
.v2-r2 { animation-delay: 0.1s; }
.v2-r3 { animation-delay: 0.14s; }
.v2-r4 { animation-delay: 0.08s; }
.v2-r5 { animation-delay: 0.12s; }
.v2-r6 { animation-delay: 0.05s; }
.v2-r7 { animation-delay: 0.1s; }
.v2-r8 { animation-delay: 0.14s; }
.v2-r9 { animation-delay: 0.18s; }
.v2-r10 { animation-delay: 0.2s; }
.evo-anims-off .v2-reveal { animation: none; }

.v2-bar-anim {
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.v2-anims-toggle {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 10px;
    cursor: pointer;
    font-family: var(--font);
    text-align: center;
}
.v2-anims-toggle:hover { color: #94a3b8; }

.v2-overview-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.v2-overview-inner .evo-kpi-grid {
    padding: 16px;
}

html.f40-file-protocol .evora-shell {
    display: none !important;
}

.v2-app-empty-cta {
    text-align: center;
    padding: 8px 16px 22px;
}
.v2-create-app-btn {
    padding: 12px 22px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.28);
    transition: transform 0.15s, filter 0.15s;
}
.v2-create-app-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Developer / admin: embedded API manual */
.dashboard-docs-embed {
    margin-top: 4px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
    min-height: min(78vh, 920px);
    display: flex;
    flex-direction: column;
}
.dashboard-api-docs-frame {
    width: 100%;
    flex: 1;
    min-height: min(78vh, 920px);
    border: none;
    background: #0f1419;
}
#page-docs.page-content.visible {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
#page-docs.page-content.visible .dashboard-docs-embed {
    flex: 1;
    min-height: min(78vh, 920px);
}
