/* ──────────────────────────────────────────────
Biznuro Dashboard – Premium Dark UI
────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap");
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --bg-card: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --text: #e8e8f0;
    --text-muted: #aaa;
    --accent: #6c63ff;
    --accent-alt: #e040fb;
    --success: #00e676;
    --danger: #de0000;
    --warning: #ffab00;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --font: "Geist", system-ui, -apple-system, sans-serif;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1) all;
    --void: #030810;
    --deep: #060f1c;
    --ink: #0a1628;
    --navy: #0f2240;
    --cobalt: #1a3a6e;
    --steel: #2a5298;
    --teal: #00d4ff;
    --cyan: #00f0c0;
    --cyan-rgb: rgb(0, 240, 192);
    --lime: #7fff6a;
    --slate: #8ba8c8;
    --mist: #c8dcee;
    --white: #f0f8ff;
    --gold: #ffb830;
    --rose: #ff6b6b;
    --syne: "Syne", sans-serif;
    --serif: "Instrument Serif", Georgia, serif;
    --geist: "Geist", sans-serif;
    --paper: #ffffff;
    --cream: #f0f4f8;
    --line: rgba(0, 0, 0, 0.12);
    --line2: rgba(0, 240, 192, 0.2);
    --r: 8px;
    --r2: 12px;
    --sh2: 0 8px 24px rgba(0, 0, 0, 0.2);
    --sh3: 0 24px 64px rgba(0, 0, 0, 0.4);
    --em: #00d4ff;
    --em-dim: rgba(0, 240, 192, 0.15);
    --ink2: #1a3a5a;
    --ink3: #4a6a88;
    --ink4: rgba(139, 168, 200, 0.6);
    --border-radius-xs: 2px;
    --border-radius-sm: 4px;
    --border-radius-md: 6px;
    --border-radius-lg: 8px;
    --sans: "Geist", sans-serif;
    --mono: "DM Mono", "Courier New", monospace;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}
body {
    font-family: var(--font);
    background: var(--deep);
    color: var(--text);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}
/* ── Animated blobs ────────────────────────── */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: blobFloat 18s ease-in-out infinite alternate;
}
.blob-1 {
    width: 520px;
    height: 520px;
    background: var(--accent);
    top: -10%;
    left: -5%;
}
.blob-2 {
    width: 420px;
    height: 420px;
    background: var(--accent-alt);
    bottom: -8%;
    right: -4%;
    animation-delay: -6s;
}
.blob-3 {
    width: 300px;
    height: 300px;
    background: #00bcd4;
    top: 50%;
    left: 55%;
    animation-delay: -12s;
}
@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(40px, -30px) scale(1.12);
    }
    100% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}
/* ── Screens & pages ───────────────────────── */
.screen {
    background-color: var(--deep);
    flex-direction: column;
    position: relative;
    height: 100vh;
    display: flex;
    z-index: 1;
}
.hidden {
    display: none !important;
}
.page {
    display: none;
}
.page.active {
    display: block;
}
/* ── AUTH SCREEN ───────────────────────────── */
#auth-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}
.auth-wrapper {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
/* Brand */
.brand {
    text-align: center;
}
.brand-logo {
    display: inline-block;
    margin-bottom: 10px;
}
.brand-logo svg {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 0 20px rgba(0, 240, 192, 0.5));
}
.brand-name {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.brand-tagline {
    color: #fff;
    font-size: 0.95rem;
    margin-top: 4px;
}
/* Tabs */
.tab-bar {
    display: flex;
    position: relative;
    background: var(--void);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
}
.tab {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-family: var(--syne);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}
.tab:hover {
    opacity: 0.6;
}
.tab.active {
    color: #000;
}
.tab-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    background: var(--cyan);
    border-radius: 8px;
    transition: var(--transition);
}
.tab-bar:has(.tab:nth-child(2).active) .tab-indicator {
    transform: translateX(100%);
}
/* Auth forms */
.auth-form {
    display: none;
    flex-direction: column;
    gap: 16px;
    background: var(--void);
    border: 2px solid rgba(0, 240, 192, 0.2);
    border-radius: var(--radius);
    padding: 28px 24px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    animation: fadeSlideUp 0.35s ease-out;
}
.auth-form.active {
    display: flex;
}
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.input-group label {
    font-size: 0.78rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #fff;
}
.input-group input,
.select-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}
.input-group input:focus,
.select-input:focus {
    border-color: rgba(0, 240, 192, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 240, 192, 0.25);
}
.input-group input::placeholder {
    color: #555;
}
.select-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888899' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.select-input option {
    background: #1a1a2e;
    color: var(--text);
}
.form-error {
    font-size: 0.84rem;
    color: var(--danger);
    min-height: 1.2em;
    text-align: center;
    margin: 10px 0 4px;
}
/* ── Buttons ──────────────────────────────── */
.btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(0, 240, 192, 1);
    color: #000;
    font-family: var(--syne);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.btn-primary:hover {
    background: rgb(144, 255, 233);
    box-shadow: 0 4px 24px rgba(0, 240, 192, 0.4);
}
.btn-primary:active {
    transform: scale(0.98);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.form-btn-icon {
    display: inline-flex;
}
.form-btn-icon svg {
    margin-left: 10px;
    width: 16px;
    height: 16px;
}
.btn-outline {
    width: 100%;
    padding: 12px;
    border: 1.5px solid var(--cyan);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--cyan);
    font-family: var(--syne);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-outline:hover {
    background: var(--cyan);
    box-shadow: 0 4px 24px rgba(0, 240, 192, 0.4);
    color: #000;
}
.btn-ghost {
    cursor: pointer;
    background: none;
    font-weight: 600;
    padding: 8px 18px;
    font-size: 0.85rem;
    color: #fff;
    white-space: nowrap;
    font-family: var(--syne);
    border-radius: var(--radius-sm);
    background: rgba(0, 240, 192, 0.2);
    border: 1px solid rgba(0, 240, 192, 0.6);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-ghost:hover {
    background: rgba(0, 240, 192, 0.5);
    box-shadow: 0 4px 24px rgba(0, 240, 192, 0.4);
}
.btn-danger {
    padding: 13px 24px;
    border: 1.5px solid var(--danger);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--danger);
    font-family: var(--syne);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}
.btn-sm {
    padding: 6px 14px;
    font-size: 0.78rem;
    border-radius: 4px;
}
.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}
.btn-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
/* ── Licensing section ────────────────────── */
.licensing-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}
.licensing-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
}
.plan-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.plan-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.plan-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), inset 0 0 40px rgba(0, 240, 192, 0.08);
}
.plan-popular {
    position: absolute;
    top: -11px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
}
.plan-badge {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.plan-badge.free {
    color: #4dd0e1;
}
.plan-badge.paid {
    color: var(--accent-alt);
}
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
}
.price-value {
    font-size: 2rem;
    font-weight: 800;
}
.price-period {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.plan-features {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.82rem;
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.plan-features .check {
    color: var(--success);
    font-weight: 700;
}
.plan-features .cross {
    color: var(--text-muted);
}
.plan-features .muted {
    color: var(--text-muted);
}
.licensing-footnote {
    text-align: center;
    margin-top: 18px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
/* ── Top bar ──────────────────────────────── */
.topbar {
    display: flex;
    padding: 12px 0;
    background: var(--void);
    z-index: 10;
    height: 100%;
    flex-direction: column;
    position: relative;
}
.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-weight: 700;
    font-size: 1.1rem; 
}
.topbar-nav {
    display: flex;
    gap: 4px;
    flex-direction: column;
    text-align: left;
    justify-content: flex-start;
    align-items: flex-start;
}
.nav-tab {
    background: none;
    border: none;
    width: 100%;
    color: #aaa;
    text-align: left;
    font-family: var(--font);
    font-weight: normal;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 0px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.nav-tab.active {
    color: #fff;
    background: rgba(0, 240, 192, 0.16);
}
.nav-tab:hover:not(.active) {
    color: #fff;
    background: rgba(0, 240, 192, 0.2);
}
.nav-tab .icon {
    display: inline-flex;
    margin-right: 10px;
}
.nav-tab .icon svg {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
/* ── Dashboard grid ──────────────────────── */
.page-container {
    max-width: 100%;
    margin: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 100%;
    margin: 12px auto;
    padding: 0 12px;
}
.dash-card {
    margin: 0 0 8px;
    background: var(--void);
    padding: 12px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 192, 0.3);
    transition: var(--transition);
    animation: fadeSlideUp 0.4s ease-out both;
}
.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 240, 192, 0.05);
}
.welcome-card {
    grid-column: 1 / -1;
    position: relative;
}
.welcome-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: "Syne";
}
.welcome-card #user-name {
    color: var(--cyan);
}
.subtext {
    color: #fff;
    margin-top: 2px;
    font-size: 14px;
}
.mb-16 {
    margin-bottom: 16px;
}
.stat-card {
    text-align: center;
}
.stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}
.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--syne);
}
.status-live {
    color: var(--success);
}
.license-card {
    grid-column: 1 / -1;
}
.license-card h3,
.dash-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: "Syne";
}
.license-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.license-table td {
    padding: 4px 12px 4px 0;
    border-bottom: 1px solid var(--border);
}
.license-table tr:last-child td {
    border-bottom: none;
}
.license-table td:first-child {
    color: #aaa;
    width: 45%;
}
/* Role badge */
.role-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 20px;
    position: absolute;
    top: 24px;
    right: 24px;
}
.role-badge.superadmin {
    background: #c20000;
    color: #fff;
}
.role-badge.admin {
    background: rgba(0, 240, 192, 0.5);
    color: #fff;
}
.role-badge.user {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}
/* ── API Key page ─────────────────────────── */
.apikey-display {
    margin: 16px 0;
}
.apikey-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    word-break: break-all;
}
.apikey-box code {
    flex: 1;
    color: var(--success);
}
.apikey-actions {
    display: flex;
    gap: 12px;
}
.apikey-actions .btn-primary {
    width: auto;
    padding: 12px 28px;
}
.apikey-actions .btn-danger {
    width: auto;
}
.alert-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 171, 0, 0.1);
    border: 1px solid rgba(255, 171, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-top: 16px;
    color: var(--warning);
    font-size: 0.85rem;
}
.code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.code-block .hl {
    color: var(--accent);
}
/* ── Admin page ───────────────────────────── */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
/* .stat-card.mini {
padding: 18px;
} */
.stat-card.mini .stat-value {
    font-size: 1.1rem;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px 12px 0;
}
.card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}
.table-wrap {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.data-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.data-table td {
    padding: 4px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-weight: 300;
}
.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}
.data-table .actions-cell {
    display: flex;
    gap: 8px;
}
.tier-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.tier-pill.free {
    background: rgba(77, 208, 225, 0.15);
    color: #4dd0e1;
}
.tier-pill.paid {
    background: rgba(224, 64, 251, 0.15);
    color: var(--accent-alt);
}
.role-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.role-pill.superadmin {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}
.role-pill.admin {
    background: rgba(0, 240, 192, 0.2);
    color: var(--accent);
}
.role-pill.user {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}
.key-preview {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}
/* ── Modal ────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.modal-card {
    background: var(--void);
    border: 2px solid rgba(0, 240, 192, 0.2);
    border-radius: var(--radius);
    padding: 12px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
    animation: fadeSlideUp 0.3s ease-out;
}
.modal-card h3 {
    font-family: var(--serif);
    font-weight: normal;
    font-style: italic;
    font-size: 24px;
    color: var(--cyan);
    margin: 0 0 12px;
}
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.modal-actions .btn-primary {
    width: auto;
    flex: 1;
}
.modal-actions .btn-ghost {
    width: auto;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* ── Super admin emails ──────────────────── */
.super-email-add {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.input-inline {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(0, 240, 192, 0.5);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}
.input-inline:focus {
    border-color: rgba(0, 240, 192, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 240, 192, 0.25);
}
.input-inline::placeholder {
    color: #555;
}
.btn-inline {
    width: auto;
    padding: 11px 24px;
    flex-shrink: 0;
}
.super-email-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.super-email-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}
.super-email-item code {
    color: var(--accent);
    font-family: var(--font);
    font-weight: 600;
}
.super-email-item .btn-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
}
.super-email-item .btn-remove:hover {
    background: rgba(255, 82, 82, 0.15);
}
.super-email-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}
/* ── Utilities for new layout ──────────────── */
.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.page-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: "Syne";
}
.mb-20 {
    margin-bottom: 20px;
}
.p-0 {
    padding: 0;
}
.text-center {
    text-align: center !important;
}
.text-right {
    text-align: right !important;
}
.text-muted {
    color: var(--text-muted);
}
.admin-tabs {
    gap: 0;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 0px;
    border-radius: 60px;
    display: inline-flex;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.1);
}
.admin-tab {
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 0px;
    position: relative;
    /* letter-spacing: 1px; */
    font-family: var(--syne);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0);
}
.admin-tab span {
    position: relative;
    z-index: 2;
}
.admin-tab.active {
    color: #fff;
}
.admin-tab:hover:not(.active) {
    color: #aaa;
}
.tab-slider-indicator {
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    width: 25%;
    background: rgba(0, 240, 192, 0.3);
    border-radius: 60px;
    transition: var(--transition);
}
.admin-view {
    display: none;
}
.admin-view.active {
    display: block;
}
.label-with-link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.text-link {
    color: var(--cyan);
    text-decoration: none;
    font-size: 0.78rem;
    transition: var(--transition);
    border-bottom: 1px solid var(--cyan);
}
.text-link:hover {
    opacity: 0.6;
}
.brand-logo img {
    width: 280px;
    max-width: 100%;
}
.auth-row {
    display: flex;
}
.auth-col-left {
    width: 50%;
    flex: 0 0 auto;
    padding-right: 40px;
}
.auth-col-right {
    width: 50%;
    flex: 0 0 auto;
}
.hero-tags-wrap {
    gap: 0;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
}
.hero-tags-box {
    display: flex;
    border-radius: 0;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 240, 192, 0.2);
    margin: 4px 0 0;
}
.hero-tags-icon img {
    width: 24px;
}
.hero-tags-text {
    font-size: 14px;
    text-align: left;
    padding-left: 10px;
    margin-left: 10px;
    color: #ccc;
    border-left: 1px solid rgba(0, 240, 192, 0.14);
}
.auth-form h4 {
    font-family: var(--serif);
    font-weight: normal;
    font-style: italic;
    font-size: 24px;
    color: var(--cyan);
}
.new-existing-user {
    text-align: center;
    font-size: 14px;
    font-weight: 300;
}
.auth-divider {
    text-align: center;
    margin: 0 0 4px;
    color: #888;
    font-size: 14px;
    font-weight: 600;
}
.anchor-text-new {
    cursor: pointer;
    margin-left: 8px;
    color: var(--cyan);
    transition: var(--transition);
    border-bottom: 1px solid var(--cyan);
}
.anchor-text-new:hover {
    opacity: 0.7;
}
.verification-banner {
    background: #fff3cd;
    color: #523d01;
    padding: 4px;
    text-align: center;
    font-weight: 400;
    font-size: 14px;
}
.btn-outline {
    gap: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    justify-content: center;
}
.table-toolbar {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.input-inline {
    max-width: 300px;
    margin: 0;
}
.pagination {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
}
.pagination .btn-ghost {
    border-radius: 4px;
    font-weight: normal;
    font-size: 12px;
}
.provider-keys-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.buttons-group {
    display: flex;
    gap: 8px;
}
.active-models-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}
.table-wrap {
    margin-top: 0;
}
.modal-card {
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay {
    z-index: 200;
}
.modal-card {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    top: 0;
    right: 0;
    padding: 4px;
    color: #fff;
    cursor: pointer;
    background: none;
    font-weight: 600;
    position: absolute;
    font-size: 0.85rem;
    border-radius: 4px;
    white-space: nowrap;
    font-family: var(--syne);
    transition: var(--transition);
    background: rgba(0, 240, 192, 0.2);
    border: 1px solid rgba(0, 240, 192, 0.6);
}
.modal-body {
    padding-top: 16px;
}
.modal-actions {
    margin-top: 24px;
}
.topbar-brand-logo {
    display: flex;
}
.topbar-brand-logo img {
    width: 160px;
    margin: 0 0 12px 12px;
}
.page-wrapper-main-inside {
    display: flex;
    height: 100%;
    flex: 1;
}
.page-left-panel {
    flex: 0 0 auto;
    width: 220px;
    height: 100%;
}
.page-right-panel {
    flex: 0 0 auto;
    overflow: auto;
    min-height: 100%;
    padding-bottom: 48px;
    width: calc(100% - 220px);
}
.topbar .btn-ghost {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    border: 0;
    z-index: 99;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sign-out-icon {
    display: inline-flex;
    margin-left: 10px;
}
.sign-out-icon svg {
    width: 16px;
    height: 16px;
}
.btn-success {
    width: 100%; 
    border: none;
    color: #000;
    display: flex;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    align-items: center;
    white-space: nowrap;
    justify-content: center;
    font-family: var(--syne); 
    background: rgb(30, 255, 0);
    transition: var(--transition);
}
.btn-success:hover {
    background: rgb(90, 255, 72);
}
.card-header-flex .btn-primary,
.card-header-flex .btn-ghost  {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
}
.btn-header-icon-left {
    display: flex;
    font-size: 18px;
    margin-right: 4px;
    line-height: 0.5;
}
.fw-normal {
    font-weight: normal;
}
.dash-card .input-inline {
    padding: 8px 12px;
    border-radius: 8px;
}
/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
    .plan-cards {
        grid-template-columns: 1fr;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .admin-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .topbar {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .topbar-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .admin-stats-row {
        grid-template-columns: 1fr;
    }
}
::-webkit-scrollbar {
    width: 8px;
}
/* Track */
::-webkit-scrollbar-track {
    border-radius: 40px;
}
/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 40px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
.previous-chevron-icon {
    display: inline-flex;
    margin-right: 2px;
    position: relative;
    top: 1px;
}
.next-chevron-icon {
    display: inline-flex;
    margin-left: 2px;
    position: relative;
    top: 1px;
}
.previous-chevron-icon svg,
.next-chevron-icon svg {
    width: 12px;
    height: 12px;
}
.pagination-info {
    font-size: 12px;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    position: relative;
}
.card-header-flex .btn-header-icon-left svg {
    width: 16px;
    height: 16px;
}
.mb-0 {
    margin-bottom: 0 !important;
}
.dash-card .input-group input,
.dash-card .select-input {
    padding: 8px 12px;
    border-radius: 8px;
    border-color: rgba(0, 240, 192, 0.3);
}
#log-details-content {
    font-size: 12px;
}
.nav-tab[data-page="playground"],
.nav-tab[data-page="documentation"] {
    margin-top: 100px;
    border-top: 1px solid rgba(0, 240, 192, 0.3);
}
.main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0;
    width: 100%;
    margin: 0 auto;
}
.panel {
    background: var(--void);
    border: 1px solid rgba(0, 240, 192, 0.3);
    border-radius: var(--radius);
    overflow: hidden;
}
.panel-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #aaa;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface2);
}
/* ─── Query panel (left) ─────────────────────────── */
.query-panel {
    display: flex;
    flex-direction: column;
}
.query-panel .panel-body {
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: var(--void);
}
.query-panel textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    padding: 12px 14px;
    resize: vertical;
    min-height: 240px;
    outline: none;
    resize: none;
    transition: var(--transition);
}
.query-panel textarea:focus {
    border-color: rgba(0, 240, 192, 0.3);
}
/* File upload */
.file-upload-area {
    margin-top: 10px;
    border: 2px dashed rgba(0, 240, 192, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    transition: var(--transition);
    background: transparent;
    cursor: pointer;
}
.file-upload-area:hover {
    border-color: rgba(0, 240, 192, 0.6);
}
.file-upload-label {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}
.file-upload-label span {
    display: inline-flex;
}
.file-upload-label svg {
    width: 12px;
    height: 12px;
}
.file-upload-label:hover {
    color: var(--text);
}
.file-upload-types {
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
    opacity: 0.7;
}
.file-preview {
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.file-preview-item {
    background: #1e2a4a;
    border: 1px solid #2d3d66;
    border-radius: 6px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--accent);
}
.file-remove-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 0 2px;
}
.file-remove-btn:hover {
    color: var(--red);
}
.query-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.query-controls select,
.btn-reset {
    background: #000;
    border: 1px solid rgba(0, 240, 192, 0.3);
    border-radius: 4px;
    color: #fff;
    padding: 7px 12px;
    font-size: 12px;
    cursor: pointer;
    outline: 0 !important;
}
.btn-reset {
    font-weight: 700;
    transition: var(--transition);
    font-family: var(--syne);
}
.btn-reset:hover {
    background: rgba(0, 240, 192, 0.3);
}
.query-controls select option {
    color: #fff;
    background: #000;
}
.btn-send {
    margin-left: auto;
    background: var(--cyan);
    border: none;
    border-radius: 4px;
    color: #000;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 22px;
    cursor: pointer;
    display: flex;
    gap: 6px;
    align-items: center;
    font-family: var(--syne);
    transition: var(--transition);
}
.btn-send:hover {
    background: rgb(76, 243, 209);
    box-shadow: 0 4px 24px rgba(0, 240, 192, 0.4);
}
.btn-send:active {
    transform: scale(0.98);
}
.btn-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
/* ─── Response panel (right) ──────────────────────── */
.response-panel {
    display: flex;
    flex-direction: column;
}
.response-panel .panel-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    min-height: 240px;
    max-height: 240px;
}
.response-content {
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}
.response-content.placeholder {
    color: var(--muted);
    font-style: italic;
}
.response-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.badge {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 20px;
}
.badge-model {
    background: #1e2a4a;
    color: var(--accent);
    border: 1px solid #2d3d66;
}
.badge-task {
    background: #1a2e1e;
    color: var(--green);
    border: 1px solid #2a4430;
}
.badge-complexity-low {
    background: #1a2e1e;
    color: var(--green);
    border: 1px solid #2a4430;
}
.badge-complexity-medium {
    background: #2e2510;
    color: var(--yellow);
    border: 1px solid #443820;
}
.badge-complexity-high {
    background: #2e1616;
    color: var(--red);
    border: 1px solid #4a2828;
}
.badge-complexity-critical {
    background: #2e0a2e;
    color: #e879f9;
    border: 1px solid #4a1a4a;
}
.badge-provider-groq {
    background: #2e1d0e;
    color: var(--groq);
    border: 1px solid #4a2e18;
}
.badge-provider-google {
    background: #0e1a2e;
    color: var(--google);
    border: 1px solid #183050;
}
.badge-provider-anthropic {
    background: #2e1a14;
    color: var(--anthropic);
    border: 1px solid #4a2a20;
}
.badge-provider-anthropic-vertex {
    background: #2e1a14;
    color: var(--anthropic);
    border: 1px solid #4a2a20;
}
.badge-latency {
    background: #1a1a2e;
    color: var(--accent2);
    border: 1px solid #2d2a4a;
}
.badge-manual {
    background: #221a36;
    color: var(--accent2);
    border: 1px solid #4a3580;
}
/* ─── Routing Details Row (below main) ────────────── */
.routing-details-section {
    padding: 12px 0;
    width: 100%;
    margin: 0 auto;
}
.routing-details-header {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: "Syne";
}
.routing-details-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 0.9fr 1fr 1.1fr 1.1fr 1.4fr;
    gap: 10px;
}
.rd-card {
    background: var(--void);
    border: 1px solid rgba(0, 240, 192, 0.3);
    border-radius: 8px;
    padding: 12px;
    transition: 0.4s all ease;
}
.rd-card.highlight {
    border-color: rgba(0, 240, 192, 0.9);
}
.rd-card.saving {
    border-color: green;
}
.rd-card:hover {
    box-shadow: 0 12px 40px rgba(0, 240, 192, 0.05);
}
.rd-label {
    font-size: 10px;
    font-weight: normal;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 5px;
}
.rd-value {
    font-size: 14px;
    font-weight: 700;
    word-break: break-word;
    line-height: 1.3;
}
.rd-sub {
    font-size: 11px;
    color: var(--green);
    margin-top: 3px;
    font-weight: 500;
}
.saving .rd-value {
    color: var(--green);
}
/* Model catalog */
.catalog-section {
    padding: 12px 0;
    width: 100%;
    margin: 0 auto;
}
.catalog-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.model-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: var(--transition);
}
.model-card:hover {
    border-color: var(--accent);
}
.model-card.selected-card {
    border-color: var(--green);
    background: #101f16;
}
.model-card .mc-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.provider-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.pi-groq {
    background: #2e1d0e;
}
.pi-google {
    background: #0e1a2e;
}
.pi-anthropic {
    background: #2e1a14;
}
.pi-anthropic-vertex {
    background: #2e1a14;
}
.mc-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-all;
}
.mc-provider {
    font-size: 11px;
    color: var(--muted);
}
.mc-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.mc-stat {
    background: var(--surface2);
    border-radius: 6px;
    padding: 8px 10px;
}
.mc-stat .s-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
}
.mc-stat .s-val {
    font-size: 13px;
    font-weight: 600;
    font-family: "JetBrains Mono", monospace;
}
.mc-caps {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.cap-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--surface2);
    color: var(--muted);
    border: 1px solid var(--border);
}
/* Input/Output type badges */
.mc-types {
    margin-top: 10px;
    border-top: 1px solid var(--border);
    padding-top: 8px;
}
.mc-types-row {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}
.mc-types-section {
    flex: 1;
}
.mc-types-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 4px;
    display: block;
}
.type-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.type-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #1a2e1e;
    color: var(--green);
    border: 1px solid #2a4430;
}
.type-badge.text {
    background: #1e2a4a;
    color: var(--accent);
    border-color: #2d3d66;
}
.type-badge.image {
    background: #2e1a1e;
    color: #f87171;
    border-color: #4a2828;
}
.type-badge.pdf {
    background: #2e1a2e;
    color: #e879f9;
    border-color: #4a1a4a;
}
.type-badge.video {
    background: #2e2410;
    color: var(--yellow);
    border-color: #443820;
}
.type-badge.audio {
    background: #1a2e2e;
    color: #34d399;
    border-color: #2a4a4a;
}
.type-badge.code {
    background: #1a2e1e;
    color: var(--green);
    border-color: #2a4430;
}
.type-badge.json {
    background: #1e2a4a;
    color: var(--accent);
    border-color: #2d3d66;
}
/* Loader */
.loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes freshFlash {
    0% {
        box-shadow: 0 0 0 2px var(--accent), inset 0 0 0 999px rgba(108, 142, 247, 0.07);
    }
    100% {
        box-shadow: none;
        background: transparent;
    }
}
.response-fresh {
    animation: freshFlash 0.55s ease-out;
}
/* Helpers */
.hidden {
    display: none !important;
}
.text-green {
    color: var(--green);
}
.text-yellow {
    color: var(--yellow);
}
.text-muted {
    color: var(--muted);
}
/* Responsive */
@media (max-width: 1100px) {
    .main {
        grid-template-columns: 1fr;
    }
    .routing-details-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 640px) {
    .routing-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Markdown-ish formatting in response */
.response-content strong {
    font-weight: 600;
    color: #c9d8ff;
}
.response-content code {
    font-family: "JetBrains Mono", monospace;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 12px;
}
.response-content pre {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    overflow-x: auto;
    white-space: pre;
}
.response-content h1,
.response-content h2,
.response-content h3 {
    font-weight: 600;
    margin: 10px 0 4px;
    color: #c9d8ff;
}
/* Routing target toggle */
.route-toggle {
    gap: 0;
    display: flex;
    overflow: hidden;
    border-radius: 4px;
}
.route-toggle-btn {
    border: none;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    font-weight: 700;
    padding: 6px 14px;
    white-space: nowrap;
    background: transparent;
    font-family: var(--syne);
    transition: var(--transition);
    border: 1px solid rgba(0, 240, 192, 0.3);
}
#btnAgentic {
    border-radius: 4px 0px 0px 4px;
}
#btnManual {
    border-radius: 0 4px 4px 0;
}
.route-toggle-btn.active {
    background: rgba(0, 240, 192, 1);
    color: #000;
}
#manualModelSelect {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    padding: 7px 12px;
    font-size: 12px;
    cursor: pointer;
    min-width: 220px;
}
.logo-icon-box {
    display: flex;
}
.logo-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    object-fit: contain;
}
.logo-box {
    display: inline-flex;
}
.footer {
    justify-content: center;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    height: auto;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 12px;
    box-shadow: 0 -10px 80px rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}
#sendBtnText {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#sendBtnText svg {
    width: 14px;
    height: 14px;
    margin-left: 4px;
}
.model-grid {
    color: var(--muted);
    font-size: 12px;
}
.dash-card .title-h3 {
    margin: 0;
    font-family: var(--geist);
    color: var(--cyan);
    font-weight: 500;
}
#page-logs .routing-details-grid {
    grid-template-columns: 1fr 1fr 1fr;
}
.sticky-footer {
    right: 0;
    bottom: 0;
    z-index: 9;
    position: fixed;
    width: calc(100% - 220px);
    padding: 8px 12px;
    background-color: var(--void);
    border-top: 1px solid rgba(0, 240, 192, 0.3);
}
.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-social {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: flex-end;
}
.footer-social li a {
    display: flex;
    margin-left: 8px;
    align-items: center;
    text-decoration: none;
    letter-spacing: 0.6px;
    transition: 0.4s all ease;
}
.footer-social li a svg {
    width: 14px;
    height: 14px;
    fill: #fff;
    padding: 2px;
    margin-right: 10px;
    border-radius: 4px;
    background-color: rgb(0, 102, 200);
}
.footer-social li a span {
    font-size: 12px;
    transition: 0.4s all ease;
    color: #aaa;
}
.footer-left p {
    color: #aaa;
    font-size: 12px;
    letter-spacing: 0.6px;
    transition: 0.4s all ease;
}
.footer-social li a:hover span {
    color: rgb(0, 240, 192);
}
/*** CIO Dashboard Starts Here ***/
.rn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 0.5px solid var(--border);
}
.rn-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rn-badge {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: #00c9a7;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* .rn-title {
font-size: 14px;
font-weight: 500;
color: var(--text-primary);
} */
.rn-sub {
    font-size: 12px;
    color: var(--text-muted);
}
.rn-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-success);
}
.tab-nav {
    display: flex;
    gap: 2px;
    border-bottom: 0.5px solid var(--border);
    margin-bottom: 0;
}
.tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: -1px;
    border-radius: 0;
    transition: var(--transition);
}
.tab-btn.active {
    color: var(--cyan);
    border-bottom-color: var(--cyan);
    font-weight: 500;
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 1.25rem;
}
.kpi {
    background: var(--surface-1);
    border-radius: var(--radius);
    padding: 12px 14px;
}
.kpi-lbl {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 5px;
}
.kpi-val {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font-mono);
}
.kpi-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}
.kpi-note.pos {
    color: var(--text-success);
}
.kpi-note.neg {
    color: var(--text-danger);
}
.alert-box {
    margin-bottom: 0.75rem;
}
.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    margin-bottom: 6px;
}
.alert.ok {
    background: var(--bg-success);
    border: 0.5px solid var(--border-success);
    color: var(--text-success);
    margin: 0;
    padding: 0;
}
.alert.warn {
    background: var(--bg-warning);
    border: 0.5px solid var(--border-warning);
    color: var(--text-warning);
}
.alert.danger {
    background: var(--bg-danger);
    border: 0.5px solid var(--border-danger);
    color: var(--text-danger);
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.card {
    background: var(--surface-2);
    border: 0.5px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}
.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    /* letter-spacing: 0.06em; */
    margin-bottom: 10px;
}
.gauge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.gauge-pct {
    font-size: 24px;
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin-top: -24px;
}
.gauge-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 1px;
}
.thr-legend {
    display: flex;
    gap: 12px;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 10px;
    flex-wrap: wrap;
}
.thr-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 3px;
}
.leg-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-secondary);
}
.leg-sq {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
    margin-right: 3px;
}
.thr-cfg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 0px solid var(--border);
}
.thr-cfg:last-child {
    border-bottom: none;
}
.thr-pct {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    min-width: 36px;
    color: var(--text-primary);
}
.badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: var(--radius);
}
.badge-warn {
    background: var(--bg-warning);
    color: var(--text-warning);
}
.badge-crit {
    background: var(--bg-danger);
    color: var(--text-danger);
}
.form-grp {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.form-grp label {
    font-size: 14px;
    color: var(--text-secondary);
}
.sld-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sld-val {
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-mono);
    min-width: 44px;
    color: var(--text-primary);
}
.ba-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.ba-tbl th {
    padding: 7px 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: right;
    border-bottom: 0.5px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ba-tbl th:first-child {
    text-align: left;
}
.ba-tbl td {
    padding: 7px 8px;
    text-align: right;
    border-bottom: 0px solid var(--border);
    color: var(--text-primary);
}
.ba-tbl td:first-child {
    text-align: left;
    color: var(--text-secondary);
}
.ba-tbl tr:last-child td {
    border-bottom: none;
    font-weight: 500;
}
.save-cell {
    color: var(--text-success) !important;
    font-family: var(--font-mono);
}
.lk-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.lk-tbl th {
    padding: 6px 8px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: left;
    border-bottom: 0.5px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.lk-tbl td {
    padding: 7px 8px;
    border-bottom: 0px solid var(--border);
    color: var(--text-primary);
}
.lk-tbl tr:last-child td {
    border-bottom: none;
}
.wbar-wrap {
    width: 70px;
    height: 5px;
    background: var(--surface-1);
    border-radius: 3px;
    overflow: hidden;
}
.wbar {
    height: 100%;
    border-radius: 3px;
    background: var(--cyan);
}
.sim-res {
    background: var(--surface-1);
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
    display: none;
}
.sim-res.on {
    display: block;
}
.sim-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.sim-stat {
    text-align: center;
    padding: 8px;
}
.sim-val {
    font-size: 18px;
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--text-primary);
}
.sim-lbl {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}
.log-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.log-tbl th {
    padding: 7px 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: left;
    border-bottom: 0.5px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.log-tbl td {
    padding: 7px 8px;
    border-bottom: 0px solid var(--border);
    color: var(--text-primary);
}
.log-tbl tr:last-child td {
    border-bottom: none;
}
.form-grp input,
.form-grp select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(0, 240, 192, 0.5);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}
.form-grp select {
    cursor: pointer;
    margin-bottom: 14px;
}
.form-grp select option {
    color: #fff;
    background: #000;
}
.playground-iframe {
    border: 0;
    width: 100%;
    height: calc(100vh - 80px);
}
/*** CIO Dashboard Ends Here ***/
/* ══════════════════════════════════════════════════════════════
ANALYTICS DASHBOARD  (Activity / Logs page)
══════════════════════════════════════════════════════════════ */
/* ── Wrapper ─────────────────────────────────────────────────── */
.analytics-dash {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/* ── Header row: title + controls ────────────────────────────── */
.analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.analytics-title {
    font-family: var(--syne);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}
.analytics-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
/* ── Scope toggle (superadmin only) ──────────────────────────── */
.scope-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--ink);
    border: 1px solid rgba(0, 240, 192, 0.2);
    border-radius: 8px;
    overflow: hidden;
}
.scope-btn {
    background: none;
    border: none;
    padding: 5px 12px;
    font-size: 12px;
    font-family: var(--font);
    color: var(--muted);
    cursor: pointer;
    transition: 0.2s all ease;
    white-space: nowrap;
}
.scope-btn.active {
    background: rgba(0, 240, 192, 0.12);
    color: var(--cyan);
    font-weight: 600;
}
/* ── Date pill group ─────────────────────────────────────────── */
.date-pills {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--ink);
    border: 1px solid rgba(0, 240, 192, 0.2);
    border-radius: 8px;
    overflow: hidden;
}
.date-pill {
    background: none;
    border: none;
    padding: 5px 11px;
    font-size: 12px;
    font-family: var(--font);
    color: var(--muted);
    cursor: pointer;
    transition: 0.2s all ease;
    white-space: nowrap;
}
.date-pill.active {
    background: rgba(0, 240, 192, 0.12);
    color: var(--cyan);
    font-weight: 600;
}
.date-pill:hover:not(.active) {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}
/* ── Custom date range inputs ────────────────────────────────── */
.custom-range {
    display: none;
    align-items: center;
    gap: 6px;
}
.custom-range.visible {
    display: flex;
}
.custom-range label {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}
.custom-range input[type="date"] {
    background: var(--ink);
    border: 1px solid rgba(0, 240, 192, 0.25);
    border-radius: 6px;
    color: var(--text);
    font-size: 12px;
    padding: 4px 8px;
    font-family: var(--font);
    outline: none;
    cursor: pointer;
    color-scheme: dark;
}
.custom-range input[type="date"]:focus {
    border-color: rgba(0, 240, 192, 0.6);
}
/* ── KPI card grid ───────────────────────────────────────────── */
.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 900px) {
    .analytics-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ── Individual KPI card ─────────────────────────────────────── */
.analytics-kpi-card {
    background: var(--ink);
    border: 1px solid rgba(0, 240, 192, 0.18);
    border-radius: 12px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.analytics-kpi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    opacity: 0.5;
}
.analytics-kpi-card:hover {
    border-color: rgba(0, 240, 192, 0.4);
    box-shadow: 0 8px 32px rgba(0, 240, 192, 0.06);
}
.kpi-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 14px;
}
.kpi-card-icon.green {
    background: rgba(0, 240, 192, 0.12);
}
.kpi-card-icon.blue {
    background: rgba(99, 102, 241, 0.15);
}
.kpi-card-icon.amber {
    background: rgba(251, 191, 36, 0.15);
}
.kpi-card-icon.rose {
    background: rgba(255, 107, 107, 0.15);
}
.kpi-card-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.kpi-card-value {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--geist);
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.kpi-card-sub {
    font-size: 11px;
    color: var(--muted);
}
.kpi-card-sub.positive {
    color: var(--cyan);
}
.kpi-card-sub.muted {
    color: var(--muted);
}
/* ── Loading shimmer on KPI cards ────────────────────────────── */
.analytics-kpi-card.loading .kpi-card-value {
    background: linear-gradient(90deg, var(--ink2) 25%, var(--cobalt) 50%, var(--ink2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 4px;
    color: transparent;
    width: 80px;
}
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
/* ── Charts row ──────────────────────────────────────────────── */
.analytics-charts-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.analytics-charts-bottom {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
}
@media (max-width: 900px) {
    .analytics-charts-bottom {
        grid-template-columns: 1fr;
    }
}
/* ── Chart card ──────────────────────────────────────────────── */
.analytics-chart-card {
    background: var(--ink);
    border: 1px solid rgba(0, 240, 192, 0.15);
    border-radius: 12px;
    padding: 16px 18px;
    position: relative;
}
.analytics-chart-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.analytics-chart-title .chart-badge {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(0, 240, 192, 0.1);
    color: var(--cyan);
    letter-spacing: 0.04em;
    text-transform: none;
}
.analytics-chart-canvas-wrap {
    position: relative;
    height: 180px;
}
.analytics-chart-canvas-wrap.tall {
    height: 200px;
}
.analytics-no-data {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}
.analytics-no-data.show {
    display: flex;
}
.analytics-no-data-icon {
    font-size: 28px;
    opacity: 0.4;
    display: none;
}
/* ── Bottom stat cards below charts ─────────────────────────── */
.analytics-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
@media (max-width: 900px) {
    .analytics-stat-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
.analytics-stat-card {
    background: var(--ink);
    border: 1px solid rgba(0, 240, 192, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.25s;
}
.analytics-stat-card:hover {
    border-color: rgba(0, 240, 192, 0.3);
}
.analytics-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 5px;
}
.analytics-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    font-family: var(--geist);
}
.analytics-stat-sub {
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px;
}
/* ── Scope banner (shown when viewing system-wide data) ──────── */
.scope-banner {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.3);
    font-size: 12px;
    color: var(--gold);
    font-weight: 500;
}
.scope-banner.show {
    display: flex;
}
/* -- Usage Example Code Window -------------------------- */
.usage-example-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.usage-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}
.code-tabs {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 8px;
}
.code-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font);
    transition: var(--transition);
}
.code-tab:hover {
    color: var(--text);
}
.code-tab.active {
    background: var(--surface, rgba(255, 255, 255, 0.1));
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.code-window {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
.code-window-header {
    background: #161b22;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.code-window-dots {
    display: flex;
    gap: 6px;
}
.code-window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #444c56;
}
.code-window-dots span:nth-child(1) {
    background: #ff5f56;
}
.code-window-dots span:nth-child(2) {
    background: #ffbd2e;
}
.code-window-dots span:nth-child(3) {
    background: #27c93f;
}
.btn-copy {
    background: transparent;
    border: none;
    color: #8b949e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
}
.btn-copy:hover {
    color: #c9d1d9;
    background: rgba(255, 255, 255, 0.1);
}
.code-content {
    display: none;
    padding: 16px;
}
.code-content.active {
    display: block;
}
.code-content .code-block {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: #c9d1d9;
    overflow-x: auto;
}
.code-block .kw {
    color: #ff7b72;
}
.code-block .str {
    color: #a5d6ff;
}
.code-block .hl {
    color: var(--cyan);
}
.code-block .cmt {
    color: #8b949e;
    font-style: italic;
}
.code-block .num {
    color: #79c0ff;
}
/* ═══════════════════════════════════════════
SETTINGS PAGE STYLES
═══════════════════════════════════════════ */
/* Settings Sub-tabs */
.settings-tabs-wrapper {
    margin-bottom: 24px;
}
.settings-tabs {
    display: flex;
    gap: 4px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}
.settings-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.settings-tab:hover {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.1);
}
.settings-tab.active {
    background: rgba(0, 240, 192, 0.3);
    color: rgba(0, 240, 192, 1);
    box-shadow: 0 1px 3px rgba(0, 240, 192, 0.3);
}
/* Settings Sections */
.settings-section {
    display: none;
}
.settings-section.active {
    display: block;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Settings Form Grid */
.settings-form-grid {
    display: grid;
    gap: 24px;
}
/* Settings Select */
.settings-select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.settings-select:focus {
    border-color: #818cf8;
}
/* Settings Input */
.settings-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.settings-input:focus {
    border-color: #818cf8;
}
/* Input with prefix ($ sign) */
.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}
.input-prefix {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}
.input-with-prefix .settings-input {
    padding-left: 28px;
}
/* Input Hint */
.input-hint {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}
/* Slider Value Display */
.slider-value {
    font-size: 13px;
    color: #818cf8;
    font-weight: 600;
    margin-left: 8px;
}
/* Range Slider */
.settings-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 3px;
    outline: none;
    margin-top: 4px;
}
.settings-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #818cf8;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(129, 140, 248, 0.4);
    transition: transform 0.15s;
}
.settings-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.settings-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #818cf8;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px rgba(129, 140, 248, 0.4);
}
/* Radio Group */
.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.radio-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 20px;
    background: rgba(0, 240, 192, 0.05);
    border: 1px solid rgba(0, 240, 192, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 100px;
    text-align: center;
}
.radio-label:has(input:checked) {
    border-color: rgba(0, 240, 192, 0.6);
    background: rgba(0, 240, 192, 0.2);
}
.radio-label input[type="radio"] {
    display: none;
}
.radio-label span {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}
.radio-label small {
    font-size: 11px;
    color: #cdcdcd;
}
/* Toggle Switch */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.toggle-info label {
    margin: 0;
}
.toggle-info .input-hint {
    margin-top: 0;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(148, 163, 184, 0.3);
    border-radius: 26px;
    transition: 0.3s;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background: rgb(0, 240, 192);
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}
/* Budget Status Bar */
.budget-status-bar {
    margin-top: 24px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
}
.budget-status-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
}
.budget-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 4px;
    overflow: hidden;
}
.budget-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #818cf8, #6366f1);
    border-radius: 4px;
    transition: width 0.5s ease;
}
.budget-progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}
.budget-progress-fill.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}
.budget-status-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}
.bg-current {
    background-color: #737377;
}
.arrow-new-page {
    width: 16px;
    height: 16px;
    margin-left: 20px;
    display: inline-flex;
}
.doc-page {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 12px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
}
.brand-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--teal);
}
.brand-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}
.brand-sub {
    font-size: 12.5px;
    color: #aaa;
    margin-left: 6px;
    padding-left: 12px;
    /* border-left: 1px solid rgba(226, 232, 240, 0.2); */
    font-family: var(--font);
    font-weight: normal;
}
.version-pill {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--teal-dark);
    background: var(--teal-light);
    padding: 4px 11px;
    border-radius: 100px;
}
.doc-hero {
    margin-bottom: 0;
    background-color: var(--deep);
    flex-direction: column;
    position: relative;
    height: 100vh;
    display: flex;
    z-index: 1;
}
.doc-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--teal);
    margin-bottom: 8px;
}
.doc-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    font-family: "Syne";
    margin-bottom: 10px;
    letter-spacing: -0.025em;
}
.doc-desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    max-width: 680px;
}
/* Tabs */
.tabs {
    gap: 4px;
    display: flex;
    flex-wrap: wrap;
    margin-top: 24px;
    margin-bottom: 26px;
    flex-direction: column;
    /* border-bottom: 1px solid rgba(226, 232, 240, 0.2); */
}
.tab {
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #aaa;
    margin-bottom: -1px;
    font-family: var(--font);
    text-align: left;
    border-bottom: 1px solid transparent;
        transition: var(--transition);
}
.tab.active {
    color: #00f0c0;
    border-bottom-color: #00f0c0; 
}
.tab:hover:not(.active) {
    color: #fff;
}
.section {
    display: none;
}
.section.active {
    display: block;
}
.doc-page .card {
    background: #030810;
    border: 1px solid rgba(226, 232, 240, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.doc-page .card h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-family: var(--font);
    font-style: normal;
}
.doc-page .card p.desc {
    font-size: 13.5px;
    color: var(--color-text-secondary);
    margin-bottom: 14px;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgb(0 240 192 / 50%);
    color: #fff;
    font-size: 12px;
    font-weight: normal;
    flex-shrink: 0;
}
/* Step list (key generation) */
.step-list {
    list-style: none;
}
.step-list li {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.2);
}
.step-list li:last-child {
    border-bottom: none;
}
.step-list .s-title {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 3px;
}
.step-list .s-desc {
    font-size: 13.5px;
    color: var(--color-text-secondary);
}
.step-list .s-desc code {
    background: #061f43;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-primary);
}
/* Code blocks */
.code-wrap {
    position: relative;
    margin: 14px 0;
}
.doc-page pre {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 18px 20px;
    border-radius: var(--border-radius-md);
    overflow-x: auto;
    font-size: 13px;
    font-family: var(--font-mono);
}
.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-sans);
}
.copy-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.copy-btn.copied {
    color: #06281f;
    background: var(--cyan);
    border-color: var(--cyan);
}
.kw {
    color: #c678dd;
}
.st {
    color: #98c379;
}
.cm {
    color: #7f8ea3;
    font-style: italic;
}
.fn {
    color: #61afef;
}
.nm {
    color: #d19a66;
}
.doc-page code.inline {
    background: #061f43;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--color-text-primary);
}
/* Key box */
.key-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    border: 1px dashed rgba(226, 232, 240, 0.2);
    padding: 13px 16px;
    border-radius: var(--border-radius-md);
    margin: 14px 0;
}
.key-box .k-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
    font-weight: 700;
    margin-bottom: 3px;
}
.key-box .k-value {
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: #fff;
}
.btn-teal {
    background: var(--cyan);
    color: #06281f;
    border: none;
    padding: 6px 13px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-sans);
}
.btn-teal:hover {
    filter: brightness(0.95);
}
/* Tables */
.doc-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 4px 0 6px;
}
.doc-page th,
.doc-page td {
    padding: 11px 14px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.2);
    vertical-align: top;
    line-height: 2;
}
.doc-page th {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    font-weight: 700;
}
.doc-page tr:last-child td {
    border-bottom: none;
}
.doc-page td .req {
    color: #a32d2d;
    font-size: 11px;
    font-weight: 700;
    background: #fcebeb;
    padding: 1px 7px;
    border-radius: 4px;
}
.doc-page td .opt {
    color: var(--color-text-secondary);
    font-size: 11px;
    font-weight: 700;
    background: var(--color-background-secondary);
    padding: 1px 7px;
    border-radius: 4px;
}
.badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.badge-teal {
    background: #e1f5ee;
    color: #0f6e56;
}
.badge-blue {
    background: #e6f1fb;
    color: #185fa5;
}
.callout {
    border-left: 3px solid var(--teal);
    background: #2e2f00;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin: 14px 0;
}
.callout strong {
    color: var(--color-text-primary);
}
/* FAQ (reused pattern) */
.faq-item {
    border: 1px solid rgba(226, 232, 240, 0.1);
    border-radius: var(--border-radius-lg);
    margin-bottom: 8px;
    overflow: hidden;
    background: #060f1c;
}
.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    gap: 12px;
}
.faq-q-text {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}
.faq-q i.ti-chevron-down {
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-item.open .ti-chevron-down {
    transform: rotate(180deg);
}
.faq-a {
    display: none;
    padding: 0 16px 16px;
    font-size: 13.5px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    border-top: 1px solid rgba(226, 232, 240, 0.2);
    padding-top: 13px;
}
.faq-item.open .faq-a {
    display: block;
}
.faq-a code {
    font-family: var(--font-mono);
    font-size: 12px;
    background: #061f43;
    padding: 2px 6px;
    border-radius: 4px;
}
.faq-a strong {
    color: var(--color-text-primary);
}
.faq-a ul {
    padding-left: 1.2rem;
    margin: 6px 0;
}
.faq-a li {
    margin-bottom: 4px;
}
.footer-note {
    text-align: center; 
    font-size: 12px; 
        right: 0;
    bottom: 0;
    z-index: 9;
    position: fixed;
    width: calc(100% - 220px);
    padding: 8px 12px;
    background-color: var(--void);
    border-top: 1px solid rgba(0, 240, 192, 0.3);
    color: #aaa;
    font-size: 12px;
    letter-spacing: 0.6px;
    transition: 0.4s all ease;
}
.field-list {
    list-style: none;
}
.field-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.2);
    font-size: 13.5px;
}
.field-list li:last-child {
    border-bottom: none;
}
.field-list code.inline {
    margin-right: 6px;
}
#nav-documentation {
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.header-playground {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.tagline-right {
    font-size: 12px;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-documentation-wrap .modal-card{
    border: 0;
    padding: 0;
    width: 100vw;
    max-width: 100vw;
    max-height: 100%;
    border-radius: 0;
    overflow: hidden;
    background: var(--deep);
}
.back-to-dashboard-btn {
  border-radius: 0;
  width: 100%;
  border: 0;
}
.back-to-dashboard-btn svg {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}
.doc-main-wrapper {
display: flex;
    height: 100%;
    flex: 1;
}
.doc-left-portion {
    flex: 0 0 auto;
    width: 220px;
    height: 100%;
    padding: 12px 0;
    position: relative;
    background-color: var(--void);
}
.doc-right-portion {
    flex: 0 0 auto;
    overflow: auto;
    min-height: 100%;
    padding-bottom: 48px;
    width: calc(100% - 220px);
}
.doc-right-portion-inside {
  padding: 12px;
}
.back-to-dashboard-btn-box {
  position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
select {
    cursor: pointer !important;
}
select option {
    cursor: pointer;
    background-color: #000 !important;
    color: #fff !important;
}
.rd-value-small {
    font-size: 12px;
    font-weight: normal;
}
.api-copy-table-button {
    display: none!important;
}