/* ═══════════════════════════════════════════════════════════
   CSC Digital Hub — Premium Portal Stylesheet v2.0
   Design: Glassmorphism · Gradient Accents · Micro-animations
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* ── DESIGN TOKENS — Baby Blue Palette ────────────────────── */
:root {
    /* ── Baby Blue Brand Colors ── */
    --bb-primary:       #5ba3c9;   /* medium baby blue */
    --bb-primary-dark:  #4a8fb5;   /* darker blue */
    --bb-primary-light: #89c4de;   /* lighter blue */
    --bb-accent:        #7bbdd6;   /* soft blue accent */
    --bb-pale:          #d5eaf5;   /* very pale blue */
    --bb-mist:          #e8f4fb;   /* near-white blue */
    --bb-panel:         #6aafd0;   /* sidebar panel blue */

    /* Backgrounds */
    --bg-root: #e8f4fb;
    --bg-main: #eef6fc;
    --bg-sidebar: #5ba3c9;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f8fd;
    --bg-input: rgba(91,163,201,0.07);
    --bg-input-focus: rgba(91,163,201,0.12);
    --bg-glass: rgba(255,255,255,0.85);

    /* Borders */
    --border-color: rgba(91,163,201,0.2);
    --border-bright: rgba(91,163,201,0.35);
    --border-focus: #5ba3c9;

    /* Text */
    --text-primary: #1a3a4a;
    --text-secondary: #2d5f7a;
    --text-muted: #6a9eb5;

    /* Brand Gradient — baby blue */
    --grad-brand: linear-gradient(135deg, #5ba3c9 0%, #4a8fb5 100%);
    --grad-brand-soft: linear-gradient(135deg, rgba(91,163,201,0.12) 0%, rgba(74,143,181,0.08) 100%);
    --grad-gold: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --grad-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-purple: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --grad-blue: linear-gradient(135deg, #5ba3c9 0%, #4a8fb5 100%);

    /* Accent Colors */
    --color-blue: #5ba3c9;
    --color-blue-glow: rgba(91,163,201,0.25);
    --color-blue-hover: #4a8fb5;
    --color-green: #059669;
    --color-green-glow: rgba(16,185,129,0.2);
    --color-purple: #7c3aed;
    --color-purple-glow: rgba(124,58,237,0.2);
    --color-gold: #d97706;
    --color-gold-glow: rgba(217,119,6,0.2);
    --color-red: #dc2626;
    --color-red-glow: rgba(220,38,38,0.2);
    --color-cyan: #0891b2;

    /* Fonts Default */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-pill: 50px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(91,163,201,0.08);
    --shadow-card: 0 4px 20px rgba(91,163,201,0.10), 0 1px 0 rgba(255,255,255,0.9) inset;
    --shadow-hover: 0 12px 30px rgba(91,163,201,0.18);
    --shadow-glow-blue: 0 0 25px rgba(91,163,201,0.20);
    --shadow-glow-gold: 0 0 20px rgba(217,119,6,0.15);
    --shadow-modal: 0 25px 60px rgba(26,58,74,0.18);

    /* Sidebar width */
    --sidebar-w: 280px;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Explicit Language Font Stacks */
html[lang="en"] {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html[lang="hi"] {
    --font-heading: 'Outfit', 'Noto Sans Devanagari', sans-serif;
    --font-body: 'Inter', 'Noto Sans Devanagari', sans-serif;
}

/* LIGHT THEME OVERRIDES — Baby Blue */
body.light-theme {
    --bg-root: #ddeef8;
    --bg-main: #e8f4fb;
    --bg-sidebar: #5ba3c9;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f8fd;
    --bg-input: rgba(91,163,201,0.08);
    --bg-input-focus: rgba(91,163,201,0.14);
    --bg-glass: #ffffff;

    --border-color: rgba(91,163,201,0.22);
    --border-bright: rgba(91,163,201,0.38);

    --text-primary: #1a3a4a;
    --text-secondary: #2d5f7a;
    --text-muted: #6a9eb5;

    --shadow-card: 0 4px 20px rgba(91,163,201,0.12), 0 1px 0 rgba(255,255,255,0.9) inset;
    --shadow-hover: 0 12px 40px rgba(91,163,201,0.22), 0 0 0 1px rgba(91,163,201,0.35);
}

/* ── RESETS ─────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(91,163,201,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(91,163,201,0.5); }
body.light-theme ::-webkit-scrollbar-thumb { background: rgba(91,163,201,0.25); }

body {
    font-family: var(--font-body);
    background-color: var(--bg-root);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
}

/* Animated mesh gradient background removed for cleaner solid look */
body.light-theme::before { opacity: 0.5; }

@keyframes meshPulse {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    letter-spacing: -0.025em;
    font-weight: 700;
}

#app {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(255,255,255,0.15);
    display: flex;
    flex-direction: column;
    padding: 0;
    position: fixed;
    height: 100vh;
    z-index: 200;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: 4px 0 24px rgba(91,163,201,0.25);
}

/* Sidebar top gradient accent line */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.2) 100%);
    z-index: 1;
}

/* ── Brand ── */
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.6rem 1.4rem 1.4rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: var(--grad-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 6px 20px var(--color-blue-glow);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.brand-icon::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
}

.brand-text h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    line-height: 1.2;
}

/* ── Nav Menu ── */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.2rem 1rem;
    flex: 1;
    overflow-y: auto;
}

.nav-section {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 1rem 0 0.5rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-section::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    margin-bottom: 0.35rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.4;
    border-radius: var(--radius-md);
    transition: all 0.22s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.nav-link[data-service] {
    padding: 0.55rem 0.85rem 0.55rem 1.2rem;
    font-size: 0.82rem;
    gap: 0.65rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: #ffffff;
    border-radius: 0 3px 3px 0;
    transition: transform 0.25s var(--ease-spring);
}
.nav-link i {
    font-size: 0.95rem;
    width: 22px;
    text-align: center;
    transition: all 0.25s;
    color: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}

/* High contrast icon overrides for sidebar */
.sidebar .nav-link i.text-blue   { color: #ffffff !important; }
.sidebar .nav-link i.text-purple { color: #f3e8ff !important; }
.sidebar .nav-link i.text-gold   { color: #fef08a !important; }
.sidebar .nav-link i.text-green  { color: #bbf7d0 !important; }
.sidebar .nav-link i.text-red    { color: #fecaca !important; }
.sidebar .nav-link i.text-cyan   { color: #cffafe !important; }

.nav-link .badge {
    margin-left: auto;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.nav-link:hover::before {
    transform: translateY(-50%) scaleY(0.6);
}

.nav-link.active {
    color: #1a3a4a !important;
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.nav-link.active::before {
    transform: translateY(-50%) scaleY(1);
    background: #5ba3c9;
}
.nav-link.active i {
    color: #5ba3c9 !important;
    filter: none;
}

/* ── User Profile Widget ── */
.user-profile-widget {
    margin: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
}

.user-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.user-name {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.user-role {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.65);
    margin-top: 1px;
}

.btn-icon {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-icon:hover {
    color: #fca5a5;
    background: rgba(248,113,113,0.15);
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════ */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ── Topbar ── */
.topbar {
    height: 68px;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    /* backdrop removed */
    box-shadow: 0 1px 30px rgba(0,0,0,0.2);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portal-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}
.portal-heading span.accent {
    color: var(--color-blue);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Language Toggle */
.lang-switch-box {
    display: flex;
    background: var(--bg-input);
    padding: 3px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    gap: 2px;
}
.btn-lang {
    background: none;
    border: none;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
    font-family: var(--font-body);
}
.btn-lang.active {
    background: var(--grad-brand);
    color: white;
    box-shadow: 0 2px 10px rgba(91,163,201,0.35);
}

/* Wallet Pill */
.quota-pill {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
    cursor: default;
}
.quota-pill:hover {
    border-color: var(--color-blue);
    background: var(--bg-glass);
}
.quota-pill strong {
    color: var(--color-gold);
    font-weight: 800;
}
.text-gold { color: var(--color-gold) !important; }

/* Theme Toggle */
.btn-theme-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-spring);
    font-size: 0.9rem;
}
.btn-theme-toggle:hover {
    color: var(--color-gold);
    border-color: rgba(245,158,11,0.4);
    background: rgba(245,158,11,0.08);
    transform: rotate(15deg) scale(1.1);
}

/* ── Content Body ── */
.content-body {
    padding: 2rem 2.2rem;
    flex: 1;
}

.tab-page { display: none; }
.tab-page.active {
    display: block;
    animation: pageIn 0.4s var(--ease-out-expo) both;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   WELCOME BANNER
   ═══════════════════════════════════════════════════════════ */
.welcome-banner {
    position: relative;
    background: var(--grad-brand);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: var(--shadow-glow-blue);
    border-radius: var(--radius-xl);
    padding: 2.2rem 2.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    overflow: hidden;
    gap: 1.5rem;
}

/* Animated orbs inside banner */
.welcome-banner::before,
.welcome-banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.welcome-banner::before {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(79,142,247,0.18) 0%, transparent 70%);
    top: -100px; right: 50px;
    animation: orbitSlow 8s ease-in-out infinite alternate;
}
.welcome-banner::after {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(167,139,250,0.15) 0%, transparent 70%);
    bottom: -80px; right: 200px;
    animation: orbitSlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes orbitSlow {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(20px, -20px) scale(1.1); }
}

.banner-text { position: relative; z-index: 1; }

.banner-text h1 {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    max-width: 520px;
    line-height: 1.6;
}

.banner-actions { position: relative; z-index: 1; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   STAT STRIP (quick status row under banner)
   ═══════════════════════════════════════════════════════════ */
.stat-strip {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    /* backdrop removed */
    animation: chipIn 0.5s var(--ease-out-expo) both;
}
.stat-chip:nth-child(2) { animation-delay: 0.07s; }
.stat-chip:nth-child(3) { animation-delay: 0.14s; }
.stat-chip:nth-child(4) { animation-delay: 0.21s; }

@keyframes chipIn {
    from { opacity: 0; transform: translateY(6px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.stat-chip .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-green { background: var(--color-green); box-shadow: 0 0 6px var(--color-green); animation: pulse-dot 2s infinite; }
.dot-blue  { background: var(--color-blue); box-shadow: 0 0 6px var(--color-blue); animation: pulse-dot 2s 0.5s infinite; }
.dot-gold  { background: var(--color-gold); box-shadow: 0 0 6px var(--color-gold); animation: pulse-dot 2s 1s infinite; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

/* ═══════════════════════════════════════════════════════════
   METRIC CARDS
   ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   SERVICE CIRCLE GRID (5 Columns)
   ═══════════════════════════════════════════════════════════ */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.8rem 1rem;
    margin-bottom: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl, 20px);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-card);
}

.metric-card {
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 0.8rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: visible;
    text-align: center;
    animation: cardIn 0.4s var(--ease-out-expo) both;
}
.metric-card:nth-child(2) { animation-delay: 0.04s; }
.metric-card:nth-child(3) { animation-delay: 0.08s; }
.metric-card:nth-child(4) { animation-delay: 0.12s; }
.metric-card:nth-child(5) { animation-delay: 0.16s; }
.metric-card:nth-child(6) { animation-delay: 0.20s; }
.metric-card:nth-child(7) { animation-delay: 0.24s; }
.metric-card:nth-child(8) { animation-delay: 0.28s; }
.metric-card:nth-child(9) { animation-delay: 0.32s; }
.metric-card:nth-child(10) { animation-delay: 0.36s; }
.metric-card:nth-child(11) { animation-delay: 0.40s; }
.metric-card:nth-child(12) { animation-delay: 0.44s; }
.metric-card:nth-child(13) { animation-delay: 0.48s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.metric-card::after {
    display: none;
}
.metric-card:hover {
    transform: translateY(-4px);
    background: rgba(79, 142, 247, 0.05);
    box-shadow: none;
    border-color: transparent;
}
.metric-card:hover::after { display: none; }

.metric-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.icon-blue   { background: rgba(79,142,247,0.12); color: var(--color-blue); box-shadow: 0 4px 18px rgba(79,142,247,0.18); }
.icon-purple { background: rgba(167,139,250,0.14); color: var(--color-purple); box-shadow: 0 4px 18px rgba(167,139,250,0.18); }
.icon-gold   { background: rgba(245,158,11,0.14); color: var(--color-gold); box-shadow: 0 4px 18px rgba(245,158,11,0.18); }
.icon-green  { background: rgba(16,185,129,0.14); color: var(--color-green); box-shadow: 0 4px 18px rgba(16,185,129,0.18); }
.icon-red    { background: rgba(248,113,113,0.14); color: var(--color-red); box-shadow: 0 4px 18px rgba(248,113,113,0.18); }

.metric-info { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 0.35rem; 
    flex: 1; 
    width: 100%; 
    min-width: 0; 
}
.metric-title { 
    font-size: 0.78rem; 
    color: var(--text-primary); 
    font-weight: 700; 
    text-transform: none; 
    letter-spacing: 0.2px; 
    line-height: 1.3; 
    text-align: center;
    max-width: 130px;
    word-break: break-word;
}
.metric-value { 
    font-size: 0.82rem; 
    font-weight: 800; 
    color: var(--color-blue, #2563eb); 
    line-height: 1.1; 
    font-family: var(--font-heading);
    background: rgba(79, 142, 247, 0.08);
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    display: inline-block;
}
.metric-sub   { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════════════ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.3rem;
}
.section-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
}
.section-header h3 i {
    color: var(--color-blue);
}

/* ═══════════════════════════════════════════════════════════
   SERVICE CARDS GRID
   ═══════════════════════════════════════════════════════════ */
.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* backdrop removed */
    box-shadow: var(--shadow-card);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-brand-soft);
    opacity: 0;
    transition: opacity 0.3s;
}
.service-card:hover {
    transform: translateY(-6px) scale(1.005);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79,142,247,0.3);
}
.service-card:hover::before { opacity: 1; }

.service-card-arrow {
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: all 0.3s var(--ease-spring);
}
.service-card:hover .service-card-arrow {
    background: var(--color-blue);
    color: white;
    transform: translate(2px, -2px);
    box-shadow: 0 4px 12px var(--color-blue-glow);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.cost-tag {
    font-size: 0.88rem;
    font-weight: 900;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-heading);
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--text-primary);
    position: relative;
}

.service-card p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin-bottom: 1.3rem;
    flex: 1;
    line-height: 1.65;
    position: relative;
}

.service-footer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-input);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-family: 'Courier New', monospace;
    color: var(--text-muted);
    position: relative;
    border: 1px solid var(--border-color);
}

.api-method.post {
    background: linear-gradient(135deg, rgba(79,142,247,0.2), rgba(124,58,237,0.15));
    color: var(--color-blue);
    font-weight: 800;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

/* ═══════════════════════════════════════════════════════════
   BASE CARD
   ═══════════════════════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-card);
    /* backdrop removed */
    position: relative;
}

.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
    font-family: var(--font-body);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.12);
    opacity: 0;
    transition: opacity 0.2s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
    background: var(--grad-brand);
    color: white;
    box-shadow: 0 6px 20px rgba(91,163,201,0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(91,163,201,0.5);
}
.btn-primary:active { transform: scale(0.97); }

.btn-gold {
    background: var(--grad-gold);
    color: white;
    box-shadow: 0 6px 20px var(--color-gold-glow);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245,158,11,0.4);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--bg-input-focus);
    border-color: var(--border-bright);
}

.btn-danger {
    background: rgba(248,113,113,0.1);
    color: var(--color-red);
    border: 1px solid rgba(248,113,113,0.25);
}
.btn-danger:hover {
    background: rgba(248,113,113,0.18);
    border-color: rgba(248,113,113,0.4);
}

.btn-sm { padding: 0.38rem 0.85rem; font-size: 0.78rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1rem; border-radius: var(--radius-md); }
.btn-block { width: 100%; display: flex; align-items: center; justify-content: center; }
.btn-interactive:active { transform: scale(0.96); }
.w-100 { width: 100%; }

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-bright);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-outline:hover {
    background: var(--bg-input);
    border-color: var(--color-blue);
    color: var(--color-blue);
}
body.dark-theme .btn-outline {
    border-color: #334155;
    color: #cbd5e1;
}
body.dark-theme .btn-outline:hover {
    background: rgba(255,255,255,0.06);
    border-color: #60a5fa;
    color: #ffffff;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}
.btn-icon:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

/* Color Helpers */
.text-gold { color: #d97706 !important; }
.text-green { color: #16a34a !important; }
.text-blue { color: #2563eb !important; }
.text-purple { color: #7c3aed !important; }
.text-red { color: #dc2626 !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }

body.dark-theme .text-gold { color: #f59e0b !important; }
body.dark-theme .text-green { color: #22c55e !important; }
body.dark-theme .text-blue { color: #3b82f6 !important; }
body.dark-theme .text-purple { color: #a855f7 !important; }
body.dark-theme .text-red { color: #ef4444 !important; }

/* ═══════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-gold   { background: rgba(245,158,11,0.12); color: #d97706; border: 1px solid rgba(245,158,11,0.25); }
.badge-blue   { background: rgba(37,99,235,0.12); color: #2563eb; border: 1px solid rgba(37,99,235,0.25); }
.badge-purple { background: rgba(124,58,237,0.12); color: #7c3aed; border: 1px solid rgba(124,58,237,0.25); }
.badge-green  { background: rgba(16,185,129,0.12); color: #059669; border: 1px solid rgba(16,185,129,0.25); }
.badge-red    { background: rgba(220,38,38,0.12); color: #dc2626; border: 1px solid rgba(220,38,38,0.25); }
.badge-cyan   { background: rgba(8,145,178,0.12); color: #0891b2; border: 1px solid rgba(8,145,178,0.25); }

body.dark-theme .badge-gold   { color: #f59e0b; }
body.dark-theme .badge-blue   { color: #60a5fa; }
body.dark-theme .badge-purple { color: #a78bfa; }
body.dark-theme .badge-green  { color: #34d399; }
body.dark-theme .badge-red    { color: #f87171; }
body.dark-theme .badge-cyan   { color: #22d3ee; }

/* ═══════════════════════════════════════════════════════════
   VERIFICATION HUB (Tab 2)
   ═══════════════════════════════════════════════════════════ */
.tab-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.tab-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}
.tab-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.25rem;
}

.hub-container {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 1.4rem;
    align-items: start;
}

.hub-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: sticky;
    top: 90px;
}

.hub-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
    /* backdrop removed */
}
.hub-item i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}
.hub-item:hover {
    color: var(--text-primary);
    border-color: rgba(79,142,247,0.25);
    background: var(--bg-card-hover);
    transform: translateX(3px);
}
.hub-item.active {
    background: var(--grad-brand);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px var(--color-blue-glow);
}

.hub-main {
    min-height: 300px;
}

.form-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.6rem;
}
.form-title-bar h3 { font-size: 1.1rem; font-weight: 700; }

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.input-text, .input-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.72rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.25s var(--ease-out-expo);
    font-family: var(--font-body);
    width: 100%;
}
.input-text::placeholder { color: var(--text-muted); }
.input-text:focus, .input-select:focus {
    border-color: var(--border-focus);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px rgba(79,142,247,0.15);
}

.form-actions { margin-top: 1.6rem; }

/* Output Result Area */
.output-container {
    margin-top: 1.8rem;
    background: #060c18;
    border: 1px solid rgba(79,142,247,0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    animation: slideInUp 0.4s var(--ease-out-expo);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.output-header {
    background: #0d1a30;
    padding: 0.85rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.83rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(79,142,247,0.15);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.status-success { color: var(--color-green); }
.status-error   { color: var(--color-red); }
.response-time  { color: var(--text-muted); font-size: 0.78rem; display: flex; align-items: center; gap: 0.35rem; }

.output-content {
    padding: 1.3rem;
    max-height: 420px;
    overflow-y: auto;
}
.output-content pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #38bdf8;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Output terminal dot decoration */
.output-header::before {
    content: '● ● ●';
    font-size: 0.55rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 3px;
    margin-right: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   WALLET TAB
   ═══════════════════════════════════════════════════════════ */
.quota-dashboard-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.balance-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.2rem 1.8rem;
    background: linear-gradient(160deg, rgba(245,158,11,0.08) 0%, var(--bg-card) 60%);
    border-color: rgba(245,158,11,0.2);
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.balance-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    position: relative;
}

.balance-display { position: relative; margin: 0.5rem 0; }

.balance-number {
    font-size: 3.4rem;
    font-weight: 900;
    font-family: var(--font-heading);
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(245,158,11,0.3));
}

.balance-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.3rem;
    display: block;
}

.history-card { }

/* ═══════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════ */
.table-responsive { overflow-x: auto; border-radius: var(--radius-md); }

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}
.custom-table thead tr {
    background: var(--bg-input);
}
.custom-table th {
    padding: 0.85rem 1.1rem;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.custom-table td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: middle;
}
.custom-table tbody tr {
    transition: background 0.15s;
}
.custom-table tbody tr:last-child td { border-bottom: none; }
.custom-table tbody tr:hover { background: var(--bg-input); }
.custom-table td code {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: var(--color-cyan);
    background: rgba(34,211,238,0.08);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}
.custom-table td strong { color: var(--text-primary); font-weight: 700; }

.price-input-sm {
    width: 110px;
    padding: 0.38rem 0.65rem;
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN TAB
   ═══════════════════════════════════════════════════════════ */
.admin-top-stats {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.stat-pill i { color: var(--color-blue); }
.stat-pill strong { color: var(--text-primary); }

.grid-form-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}
.flex-end { display: flex; align-items: flex-end; }

/* ═══════════════════════════════════════════════════════════
   AUTH MODAL — Baby Blue Split-Panel Design
   ═══════════════════════════════════════════════════════════ */
.mandatory-auth-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 58, 74, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.mandatory-auth-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* ── Auth Card — Wide split-panel ── */
.auth-card {
    width: 100%;
    max-width: 780px;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(26,58,74,0.25), 0 4px 16px rgba(91,163,201,0.15);
    animation: authCardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    display: flex;
    min-height: 460px;
}

@keyframes authCardIn {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── LEFT PANEL — Blue wavy decorative panel ── */
.auth-banner {
    width: 42%;
    background: #7abdd6;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Wavy organic blob shape on right edge of banner */
.auth-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    width: 110px;
    height: 100%;
    background: #ffffff;
    border-radius: 50% 0 0 50% / 30% 0 0 30%;
}

.auth-banner::before {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    pointer-events: none;
}

/* Logo inside banner */
.auth-banner .brand-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.28);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.4);
    flex-shrink: 0;
    position: relative; z-index: 2;
    padding: 5px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-banner-text {
    position: relative; z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-banner-text h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    -webkit-text-fill-color: rgba(255,255,255,0.9);
    background: none;
    line-height: 1.3;
    letter-spacing: 0.01em;
    margin-bottom: 0.35rem;
}
.auth-banner-greet {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    line-height: 1.1;
    margin-top: 0.25rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
}
.auth-banner-text p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.72);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.02em;
    display: none;
}

/* Corner decorative ribbon top-right */
.auth-corner-deco {
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.12);
    border-radius: 0 0 0 100%;
    z-index: 1;
}

/* ── RIGHT PANEL — Clean white form ── */
.auth-body {
    flex: 1;
    padding: 2.5rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    position: relative;
}

/* Login title inside right panel */
.auth-form-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #5ba3c9;
    text-align: center;
    margin-bottom: 1.8rem;
    font-family: var(--font-heading);
}

/* Hide cluttered subtitle */
.auth-subtitle { display: none; }

/* ── Tab Switcher — underline style ── */
.modal-tabs {
    display: flex;
    background: transparent;
    border-bottom: 1.5px solid rgba(91,163,201,0.2);
    padding: 0;
    gap: 0;
    margin: 0 0 1.5rem 0;
}
.modal-tab-btn {
    flex: 1;
    padding: 0.7rem 0.5rem;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    color: #a8c8d8;
    font-weight: 600;
    font-size: 0.83rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.modal-tab-btn i {
    margin-right: 0.4rem;
    font-size: 0.78rem;
}
.modal-tab-btn.active {
    color: #5ba3c9;
    border-bottom-color: #5ba3c9;
    background: none;
    box-shadow: none;
}
.modal-tab-btn:hover:not(.active) {
    color: #7abdd6;
}

/* ── Auth Form Area ── */
.modal-form {
    padding: 0;
}
.modal-form .form-group {
    margin-bottom: 1.1rem;
}
.modal-form .form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #5d8fa5;
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}
.modal-form .input-text {
    width: 100%;
    padding: 0.72rem 1rem;
    border: 1.5px solid rgba(91,163,201,0.3);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1a3a4a;
    background: #f5f9fc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: var(--font-body);
    outline: none;
}
.modal-form .input-text:focus {
    border-color: #5ba3c9;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(91,163,201,0.15);
}
.modal-form .input-text::placeholder {
    color: #a8c8d8;
}
.modal-form .btn-primary {
    margin-top: 0.6rem;
    height: 46px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 10px;
    background: #6aadcb;
    box-shadow: 0 6px 20px rgba(91,163,201,0.35);
}
.modal-form .btn-primary:hover {
    background: #5ba3c9;
    box-shadow: 0 10px 28px rgba(91,163,201,0.45);
    transform: translateY(-1px);
}

/* Forgot password link */
.auth-forgot-link {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: #7abdd6;
    text-decoration: none;
    margin-top: -0.6rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.auth-forgot-link:hover { color: #5ba3c9; text-decoration: underline; }

/* Create account link below form */
.auth-create-link {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: #a8c8d8;
    margin-top: 1.2rem;
}
.auth-create-link a {
    color: #5ba3c9;
    font-weight: 600;
    text-decoration: none;
}
.auth-create-link a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   MODALS & DIALOGS (Universal & Admin)
   ═══════════════════════════════════════════════════════════ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 1.25rem;
}
.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    background: var(--bg-card, #ffffff);
    color: var(--text-primary, #0f172a);
    border: 1px solid var(--border-bright, #cbd5e1);
    border-radius: var(--radius-lg, 16px);
    padding: 1.75rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: scale(0.94) translateY(16px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 100000;
}
.modal-backdrop.active .modal-content {
    transform: scale(1) translateY(0);
}

body.light-theme .modal-content {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
}

body.dark-theme .modal-content {
    background: #1e293b !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.modal-body {
    color: var(--text-primary);
}

.btn-close {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}
.btn-close:hover {
    color: var(--color-red);
    background: rgba(248,113,113,0.1);
    border-color: rgba(248,113,113,0.3);
    transform: rotate(90deg);
}

/* ═══════════════════════════════════════════════════════════
   DATA TABLES & ADMIN CONTAINERS
   ═══════════════════════════════════════════════════════════ */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md, 10px);
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-card, #ffffff);
}
body.light-theme .table-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}
body.dark-theme .table-container {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}
.data-table thead tr {
    background: var(--bg-input, #f1f5f9);
}
.data-table th {
    padding: 0.85rem 1rem;
    color: var(--text-secondary, #334155);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    white-space: nowrap;
}
.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-secondary, #334155);
    vertical-align: middle;
}
.data-table tbody tr {
    transition: background 0.15s ease;
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}
.data-table tbody tr:hover {
    background: var(--bg-input, #f1f5f9);
}
.data-table td strong {
    color: var(--text-primary, #0f172a);
    font-weight: 700;
}
.data-table td code {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    background: var(--bg-input, #f1f5f9);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--color-purple, #7c3aed);
}

body.light-theme .data-table thead tr {
    background: #f8fafc;
}
body.light-theme .data-table th {
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}
body.light-theme .data-table td {
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}
body.light-theme .data-table tbody tr:hover {
    background: #f8fafc;
}

body.dark-theme .data-table thead tr {
    background: #0f172a;
}
body.dark-theme .data-table th {
    color: #94a3b8;
    border-bottom: 1px solid #334155;
}
body.dark-theme .data-table td {
    color: #cbd5e1;
    border-bottom: 1px solid #334155;
}
body.dark-theme .data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}
body.dark-theme .data-table td strong {
    color: #f8fafc;
}

/* Stat Cards in Dashboard */
.stat-card {
    background: var(--bg-card);
    padding: 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-bright);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
body.light-theme .stat-card {
    background: #ffffff;
    border-color: #e2e8f0;
}
body.dark-theme .stat-card {
    background: #1e293b;
    border-color: #334155;
}

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════ */
#toastContainer {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    z-index: 9998;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.3rem;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    /* backdrop removed */
    animation: toastIn 0.4s var(--ease-spring) both;
    pointer-events: all;
    min-width: 260px;
    max-width: 380px;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px) scale(0.9); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

.toast i { font-size: 1rem; flex-shrink: 0; }
.toast-success { border-left: 3px solid var(--color-green); }
.toast-success i { color: var(--color-green); }
.toast-error   { border-left: 3px solid var(--color-red); }
.toast-error i { color: var(--color-red); }
.toast-info    { border-left: 3px solid var(--color-blue); }
.toast-info i  { color: var(--color-blue); }

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════ */
.text-green  { color: var(--color-green) !important; }
.text-blue   { color: var(--color-blue) !important; }
.text-purple { color: var(--color-purple) !important; }
.text-red    { color: var(--color-red) !important; }
.text-muted  { color: var(--text-muted) !important; }
.font-bold   { font-weight: 700; }
.font-black  { font-weight: 900; }
.mt-3  { margin-top: 1rem; }
.mt-4  { margin-top: 1.5rem; }
.mb-3  { margin-bottom: 1rem; }
.mb-4  { margin-bottom: 1.5rem; }

/* Loading spinner */
.fa-spin { animation: spin 0.8s linear infinite; }
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════
   LIGHT THEME SPECIFIC ADJUSTMENTS — Baby Blue
   ═══════════════════════════════════════════════════════════ */
body.light-theme .output-container { background: #1e2a42; }
body.light-theme .sidebar { box-shadow: 2px 0 24px rgba(91,163,201,0.3); }
body.light-theme .topbar { box-shadow: 0 1px 20px rgba(91,163,201,0.08); }
body.light-theme .brand-text h2 {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}
body.light-theme .service-card::before { display: none; }
body.light-theme .auth-card { border-color: rgba(91,163,201,0.15); }
body.light-theme .welcome-banner {
    background: linear-gradient(135deg, rgba(91,163,201,0.10), rgba(74,143,181,0.06));
    border-color: rgba(91,163,201,0.2);
}
body.light-theme .welcome-banner .banner-text h1 {
    color: var(--text-primary);
    text-shadow: none;
}
body.light-theme .welcome-banner .banner-text p {
    color: var(--text-muted);
}
body.light-theme .nav-link.active {
    color: #1a3a4a !important;
    background: #ffffff !important;
    font-weight: 700;
}
body.light-theme .metric-card { background: #ffffff; }
body.light-theme .card { background: #ffffff; }
body.light-theme .hub-item { background: #ffffff; }
body.light-theme .service-card { background: #ffffff; }
body.light-theme .toast { background: #ffffff; box-shadow: 0 12px 40px rgba(91,163,201,0.15); }
body.light-theme::before { opacity: 0.4; }

/* Nav section text color on blue sidebar */
.nav-section {
    color: rgba(255,255,255,0.55) !important;
}
.nav-section::after {
    background: rgba(255,255,255,0.15) !important;
}

/* ═══════════════════════════════════════════════════════════
   SKELETON / SHIMMER LOADERS
   ═══════════════════════════════════════════════════════════ */
@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-input) 25%,
        rgba(255,255,255,0.07) 37%,
        var(--bg-input) 63%
    );
    background-size: 600px 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: var(--radius-sm);
}
body.light-theme .skeleton {
    background: linear-gradient(
        90deg,
        #e8edf5 25%,
        #f4f7fc 37%,
        #e8edf5 63%
    );
    background-size: 600px 100%;
    animation: shimmer 1.4s ease infinite;
}

.skeleton-row {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 0;
}
.skeleton-line       { height: 14px; width: 80%; }
.skeleton-line.short { width: 45%; }
.skeleton-line.long  { width: 95%; }
.skeleton-circle     { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.skeleton-block      { height: 80px; width: 100%; }

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    text-align: center;
    gap: 0.75rem;
}
.empty-state i {
    font-size: 2.4rem;
    opacity: 0.4;
    margin-bottom: 0.5rem;
}
.empty-state h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.empty-state p {
    font-size: 0.82rem;
    max-width: 300px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   BALANCE RING ANIMATION
   ═══════════════════════════════════════════════════════════ */
.balance-ring-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0.5rem auto 1rem;
    flex-shrink: 0;
}
.balance-ring-wrap svg {
    transform: rotate(-90deg);
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.balance-ring-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}
.balance-ring-fill {
    fill: none;
    stroke: url(#ringGrad);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.3;
    stroke-dashoffset: 339.3;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.balance-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
}
.ring-value {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: var(--font-heading);
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.ring-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* animate ring in */
@keyframes ringIn {
    from { stroke-dashoffset: 339.3; }
}

/* ═══════════════════════════════════════════════════════════
   SEARCH INPUT INSIDE TABLES
   ═══════════════════════════════════════════════════════════ */
.table-search-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    transition: all 0.25s;
}
.table-search-bar:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(79,142,247,0.12);
}
.table-search-bar i { color: var(--text-muted); font-size: 0.85rem; }
.table-search-bar input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-body);
    flex: 1;
    width: 100%;
}
.table-search-bar input::placeholder { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   LOW BALANCE BANNER
   ═══════════════════════════════════════════════════════════ */
.low-balance-alert {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(239,68,68,0.08));
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold);
    animation: alertBounce 0.5s var(--ease-spring) both;
}
.low-balance-alert i { font-size: 1.1rem; flex-shrink: 0; }
.low-balance-alert span { color: var(--text-secondary); }
.low-balance-alert strong { color: var(--color-gold); }

@keyframes alertBounce {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE HAMBURGER BUTTON
   ═══════════════════════════════════════════════════════════ */
.btn-hamburger {
    display: none;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-hamburger:hover {
    background: var(--bg-input-focus);
    border-color: var(--border-bright);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4,8,20,0.55);
    z-index: 900;
    animation: fadeIn 0.2s ease both;
}
.sidebar-overlay.active { display: block; }

/* ═══════════════════════════════════════════════════════════
   TOOLTIP
   ═══════════════════════════════════════════════════════════ */
[data-tooltip] {
    position: relative;
    cursor: help;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    background: #1e293b;
    color: #f0f4ff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s var(--ease-out-expo);
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
}
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ═══════════════════════════════════════════════════════════
   RESULT CODE SYNTAX HIGHLIGHT HELPERS
   ═══════════════════════════════════════════════════════════ */
.output-content pre code .json-key   { color: #7dd3fc; }
.output-content pre code .json-str   { color: #86efac; }
.output-content pre code .json-num   { color: #fcd34d; }
.output-content pre code .json-bool  { color: #f9a8d4; }
.output-content pre code .json-null  { color: #94a3b8; }

/* ═══════════════════════════════════════════════════════════
   FORM VALIDATION STATES
   ═══════════════════════════════════════════════════════════ */
.input-text.input-error {
    border-color: var(--color-red) !important;
    box-shadow: 0 0 0 3px rgba(248,113,113,0.15) !important;
}
.input-text.input-success {
    border-color: var(--color-green) !important;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15) !important;
}
.field-error-msg {
    font-size: 0.75rem;
    color: var(--color-red);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.25rem;
    animation: fadeIn 0.2s ease both;
}

/* ═══════════════════════════════════════════════════════════
   BUTTON LOADING STATE
   ═══════════════════════════════════════════════════════════ */
.btn-loading {
    pointer-events: none;
    opacity: 0.75;
}
.btn-loading::after {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR BADGE / NOTIFICATION DOT
   ═══════════════════════════════════════════════════════════ */
.nav-notification-dot {
    width: 8px; height: 8px;
    background: var(--color-red);
    border-radius: 50%;
    margin-left: auto;
    box-shadow: 0 0 6px var(--color-red-glow);
    animation: pulse-dot 2s infinite;
}

/* ═══════════════════════════════════════════════════════════
   PROGRESS BAR (wallet fill indicator)
   ═══════════════════════════════════════════════════════════ */
.wallet-progress-wrap {
    width: 100%;
    margin: 0.75rem 0;
}
.wallet-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.wallet-progress-track {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: var(--radius-pill);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.wallet-progress-fill {
    height: 100%;
    background: var(--grad-gold);
    border-radius: var(--radius-pill);
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 10px rgba(245,158,11,0.4);
}

/* ═══════════════════════════════════════════════════════════
   KEYBOARD SHORTCUT HINT
   ═══════════════════════════════════════════════════════════ */
kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 0.1rem 0.45rem;
    font-size: 0.72rem;
    font-family: var(--font-body);
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hub-container {
        grid-template-columns: 220px 1fr;
    }
    .quota-dashboard-grid {
        grid-template-columns: 260px 1fr;
    }
    .grid-form-3 {
        grid-template-columns: 1fr 1fr;
    }
    .grid-form-3 .flex-end {
        grid-column: 1 / -1;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root { --sidebar-w: 0px; }

    .btn-hamburger { display: flex; }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.35s var(--ease-out-expo);
        width: 280px;
        z-index: 1000;
        box-shadow: none;
    }
    .sidebar.mobile-open,
    .sidebar.open {
        transform: translateX(0) !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5) !important;
        z-index: 1000 !important;
    }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        padding: 0 1rem;
    }
    .portal-heading {
        display: none;
    }

    .content-body {
        padding: 1.2rem;
    }

    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        padding: 1.5rem;
    }
    .banner-text h1 { font-size: 1.35rem; }
    .banner-actions .btn { width: 100%; justify-content: center; }

    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem 0.6rem;
        padding: 1.2rem 0.8rem;
    }

    .services-cards-grid {
        grid-template-columns: 1fr;
    }

    .hub-container {
        grid-template-columns: 1fr;
    }
    .hub-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .hub-item { font-size: 0.78rem; padding: 0.7rem 0.8rem; }

    .quota-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .grid-form-3 {
        grid-template-columns: 1fr;
    }
    .grid-form-3 .flex-end { grid-column: auto; }

    .topbar-actions .quota-pill span:first-of-type {
        display: none;
    }

    .stat-strip {
        gap: 0.6rem;
    }
    .stat-chip { font-size: 0.72rem; padding: 0.35rem 0.75rem; }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem 0.5rem;
        padding: 1rem 0.5rem;
    }
    .metric-icon {
        width: 56px;
        height: 56px;
        font-size: 1.35rem;
    }
    .metric-title {
        font-size: 0.72rem;
    }
    .hub-sidebar {
        grid-template-columns: 1fr;
    }
    .tab-header h2 { font-size: 1.2rem; }
    .lang-switch-box { display: none; }
    .balance-number { font-size: 2.8rem; }
}

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR POLISH (light theme)
   ═══════════════════════════════════════════════════════════ */
body.light-theme ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); }
body.light-theme ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.28); }

/* ═══════════════════════════════════════════════════════════
   PRINT UTILITY
   ═══════════════════════════════════════════════════════════ */
@media print {
    .sidebar, .topbar, .mandatory-auth-backdrop, #toastContainer { display: none !important; }
    .main-content { margin-left: 0; }
    .content-body { padding: 0; }
    .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ═══════════════════════════════════════════════════════════
   FINAL MICRO-POLISH & MISSING KEYFRAMES
   ═══════════════════════════════════════════════════════════ */

/* Toast timer bar shrinks left-to-right */
@keyframes toastTimer {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* Generic fadeIn */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Table row hover → brighten text */
.custom-table tbody tr:hover td { color: var(--text-primary); }

/* Active hub-item text bold */
.hub-item.active span { font-weight: 700; }

/* Metric card icon breathing on hover */
.metric-card:hover .metric-icon {
    transform: scale(1.1) rotate(-3deg);
    transition: transform 0.3s var(--ease-spring);
}

/* Service card shimmer sweep */
.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(
        105deg, transparent 40%,
        rgba(255,255,255,0.04) 50%, transparent 60%
    );
    transition: left 0.55s var(--ease-out-expo);
    pointer-events: none;
}
.service-card:hover::after { left: 130%; }

/* Sidebar brand hover zoom */
.brand:hover .brand-icon {
    transform: scale(1.08) rotate(5deg);
    transition: transform 0.3s var(--ease-spring);
}

/* Form label icon tint */
.form-group label i { color: var(--color-blue); font-size: 0.75rem; }

/* Wallet pill flash on balance update */
@keyframes balanceUpdate {
    0%   { box-shadow: 0 0 0 0   rgba(245,158,11,0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(245,158,11,0); }
    100% { box-shadow: 0 0 0 0   rgba(245,158,11,0); }
}
.quota-pill.balance-updated { animation: balanceUpdate 0.7s ease-out; }

/* Sticky table header */
.custom-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    /* backdrop removed */
}

/* Scrollable table body */
.table-responsive { max-height: 450px; overflow-y: auto; }

/* Wallet ring small screen */
@media (max-width: 480px) {
    .balance-ring-wrap { width: 120px; height: 120px; }
    .ring-value        { font-size: 1.2rem; }
}

/* Mobile table code wrap */
@media (max-width: 600px) {
    .custom-table td code { word-break: break-all; }
    .output-content pre   { font-size: 0.78rem; }
}

/* Keyboard focus-visible accessibility */
:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}
button:focus-visible { outline-offset: 3px; }

/* Light theme badge-cyan fix */
body.light-theme .badge-cyan {
    background: rgba(6,182,212,0.1);
    color: #0891b2;
    border-color: rgba(6,182,212,0.25);
}

/* ── LL Applications Tracker ─────────────────────────────── */
@keyframes fadeInRow {
    from { opacity: 0; transform: translateY(-8px); background: rgba(139,92,246,0.12); }
    to   { opacity: 1; transform: translateY(0);    background: transparent; }
}

@keyframes toastTimer {
    from { width: 100%; }
    to   { width: 0%; }
}

.grid-form-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .grid-form-2 { grid-template-columns: 1fr; }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
    
    /* Smoother mobile typography and spacing */
    .metric-card {
        padding: 1.1rem 1.2rem;
        gap: 0.8rem;
    }
    .metric-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    .metric-value {
        font-size: 1.35rem;
    }
    .card {
        padding: 1.25rem;
    }
    .form-group input, .form-group select {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    .btn {
        padding: 0.8rem 1.4rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .content-body {
        padding: 0.85rem;
    }
    .metric-card {
        padding: 1rem 1rem;
    }
    .banner-text h1 {
        font-size: 1.2rem;
    }
    .disclaimer-ticker {
        padding: 0.6rem 0.8rem !important;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start !important;
        border-radius: 10px !important;
    }
    .ticker-label {
        margin-right: 0 !important;
        font-size: 0.75rem !important;
    }
    .ticker-content {
        width: 100%;
    }
    /* Make buttons full width on small screens */
    .grid-form-2 .btn {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════
   DEVELOPER API & DOCUMENTATION SYSTEM
   ═══════════════════════════════════════════════════════════ */
.api-endpoint-card {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.api-endpoint-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.api-endpoint-header {
    background: var(--bg-glass);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-bright);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.api-badge-method {
    background: #2563eb;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: inline-block;
}
.api-endpoint-url-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.06);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-bright);
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.dark-theme .api-endpoint-url-box {
    background: rgba(255, 255, 255, 0.06);
}
.api-copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: color 0.15s, background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.api-copy-btn:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}
.api-params-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}
.api-params-table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    background: rgba(15, 23, 42, 0.03);
    border-bottom: 1px solid var(--border-bright);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dark-theme .api-params-table th {
    background: rgba(255, 255, 255, 0.03);
}
.api-params-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-bright);
    vertical-align: middle;
}
.param-name {
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    color: #6366f1;
}
.param-type {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}
.dark-theme .param-type {
    background: rgba(255, 255, 255, 0.08);
}
.param-req {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}
.param-opt {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}
.api-code-container {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #1e293b;
    background: #0b1120;
}
.api-code-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    padding: 0.35rem 0.5rem 0 0.5rem;
}
.api-lang-buttons {
    display: flex;
    gap: 0.25rem;
}
.api-lang-btn {
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 0.45rem 0.85rem;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.api-lang-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}
.api-lang-btn.active {
    background: #0b1120;
    color: #38bdf8;
    border-color: #1e293b;
    border-bottom-color: #0b1120;
    font-weight: 700;
}
.api-code-snippet {
    padding: 1.2rem;
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #e2e8f0;
    overflow-x: auto;
    white-space: pre;
}
.api-response-card {
    margin-top: 1rem;
    background: #0b1120;
    border: 1px solid #1e293b;
    border-radius: 8px;
    overflow: hidden;
}
.api-response-header {
    background: #0f172a;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}
.api-status-tag {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN PORTAL TAB PANE & COMPONENT STYLES
   ═══════════════════════════════════════════════════════════ */
.tab-pane {
    display: none !important;
}
.tab-pane.active {
    display: block !important;
    animation: fadeIn 0.25s ease-out forwards;
}
.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Specific Controls */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-bright);
}

.badge-gold   { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); font-weight: 600; }
.badge-blue   { background: rgba(59,130,246,0.15); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); font-weight: 600; }
.badge-purple { background: rgba(168,85,247,0.15); color: #a855f7; border: 1px solid rgba(168,85,247,0.3); font-weight: 600; }
.badge-green  { background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); font-weight: 600; }
.badge-red    { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); font-weight: 600; }
.badge-cyan   { background: rgba(6,182,212,0.15); color: #06b6d4; border: 1px solid rgba(6,182,212,0.3); font-weight: 600; }


/* ═══════════════════════════════════════════════════════════
   TOPBAR — Baby Blue Accent
   ═══════════════════════════════════════════════════════════ */
body.light-theme .topbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(91,163,201,0.15);
}

/* Portal heading color on light theme */
body.light-theme .portal-heading {
    color: #2d5f7a;
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD WELCOME BANNER — Baby Blue
   ═══════════════════════════════════════════════════════════ */
body.light-theme .welcome-banner {
    background: linear-gradient(135deg, #5ba3c9 0%, #4a8fb5 100%) !important;
    border-color: rgba(91,163,201,0.3) !important;
}
body.light-theme .welcome-banner .banner-text h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}
body.light-theme .welcome-banner .banner-text p {
    color: rgba(255,255,255,0.85) !important;
}

/* ═══════════════════════════════════════════════════════════
   LOGIN OVERLAY — Mobile Responsive
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .auth-card {
        flex-direction: column;
        max-width: 380px;
        min-height: unset;
    }
    .auth-banner {
        width: 100%;
        min-height: 160px;
        flex-direction: row;
        align-items: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    .auth-banner::after {
        top: auto;
        right: 0;
        bottom: -40px;
        left: 0;
        width: 100%;
        height: 80px;
        border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    }
    .auth-banner .brand-icon {
        margin-bottom: 0;
        width: 42px; height: 42px;
    }
    .auth-banner-greet {
        font-size: 1.5rem;
    }
    .auth-body {
        padding: 1.75rem 1.5rem 1.5rem;
    }
    .auth-form-title {
        font-size: 1.35rem;
        margin-bottom: 1.2rem;
    }
}

