/* ============================================================
   OSNVC Theme — Mint #00FA9A on Dark
   ============================================================ */
:root {
    --bg: #0a0e0d;
    --bg-2: #0d1311;
    --surface: #111815;
    --surface-2: #161e1a;
    --surface-3: #1c2620;
    --border: rgba(0, 250, 154, 0.12);
    --border-strong: rgba(0, 250, 154, 0.28);
    --border-mute: rgba(255, 255, 255, 0.08);

    --mint: #00FA9A;
    --mint-glow: rgba(0, 250, 154, 0.35);
    --mint-soft: rgba(0, 250, 154, 0.12);
    --mint-dim: rgba(0, 250, 154, 0.6);

    --text: #ffffff;
    --text-sub: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.42);

    --danger: #ff5577;
    --warning: #ffb347;
    --info: #5db8ff;

    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-mint: 0 4px 24px rgba(0, 250, 154, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(at 12% 8%, rgba(0, 250, 154, 0.08) 0, transparent 45%),
        radial-gradient(at 88% 92%, rgba(0, 250, 154, 0.05) 0, transparent 45%);
    background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--mint-dim); }

.mono { font-family: 'IBM Plex Mono', monospace; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(10, 14, 13, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px;
    z-index: 1000;
}
.nav-brand {
    display: flex; align-items: center; gap: 12px;
    font-size: 17px; font-weight: 700;
    letter-spacing: 0.06em;
}
.nav-brand .logo-mark {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--mint), #00d97e);
    display: flex; align-items: center; justify-content: center;
    color: #001a10;
    box-shadow: 0 0 16px var(--mint-glow);
}
.nav-brand .logo-mark svg { width: 18px; height: 18px; stroke-width: 2.5; }
.nav-brand .brand-text { background: linear-gradient(135deg, var(--text), var(--mint)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-right { display: flex; align-items: center; gap: 10px; }
.point-pill {
    display: flex; align-items: center; gap: 8px;
    background: var(--mint-soft);
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    padding: 7px 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px; font-weight: 600;
    color: var(--mint);
}
.point-pill svg { width: 14px; height: 14px; }
.menu-btn {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border-mute);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.menu-btn:hover { border-color: var(--border-strong); background: var(--surface-3); }
.menu-btn svg { width: 18px; height: 18px; stroke: var(--text); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed; top: 0; right: -320px;
    width: 300px; height: 100vh;
    background: var(--bg-2);
    border-left: 1px solid var(--border);
    z-index: 1100;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.sidebar.open { right: 0; }
.sb-header {
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-mute);
    display: flex; justify-content: space-between; align-items: center;
}
.sb-header h3 { font-size: 16px; font-weight: 700; letter-spacing: 0.04em; }
.sb-close { padding: 6px; border-radius: 8px; transition: background 0.2s; }
.sb-close:hover { background: var(--surface-3); }
.sb-close svg { width: 18px; height: 18px; }
.sb-user {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-mute);
    display: flex; align-items: center; gap: 14px;
}
.sb-avatar {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mint), #00d97e);
    color: #001a10;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px;
    box-shadow: 0 0 14px var(--mint-glow);
}
.sb-user-info { flex: 1; min-width: 0; }
.sb-user-name { font-weight: 600; font-size: 14px; color: var(--text); }
.sb-user-role { font-size: 11px; color: var(--mint); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.sb-nav { flex: 1; padding: 14px 0; overflow-y: auto; }
.sb-link {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 24px;
    cursor: pointer;
    color: var(--text-sub);
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-size: 14px;
}
.sb-link:hover { background: var(--surface-2); color: var(--text); }
.sb-link.active {
    background: var(--mint-soft);
    color: var(--mint);
    border-left-color: var(--mint);
}
.sb-link svg { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }
.sb-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-mute);
}
.sb-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1050;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s;
}
.sb-overlay.open { opacity: 1; pointer-events: auto; }

/* Desktop nav */
.desk-nav {
    display: none;
    position: fixed; top: 64px; left: 0; right: 0;
    height: 52px;
    background: rgba(10, 14, 13, 0.7);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-mute);
    padding: 0 28px;
    align-items: center; gap: 6px;
    z-index: 999;
    overflow-x: auto;
}
@media (min-width: 1024px) { .desk-nav { display: flex; } body.has-nav { padding-top: 116px; } }
@media (max-width: 1023px) { body.has-nav { padding-top: 64px; } }
.desk-nav-item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    color: var(--text-sub);
    cursor: pointer;
    font-size: 13.5px; font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}
.desk-nav-item:hover { background: var(--surface-2); color: var(--text); }
.desk-nav-item.active {
    background: var(--mint-soft);
    color: var(--mint);
    box-shadow: inset 0 0 0 1px var(--border-strong);
}
.desk-nav-item svg { width: 15px; height: 15px; }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main { padding: 28px 20px 60px; max-width: 1320px; margin: 0 auto; }
@media (min-width: 768px) { .main { padding: 36px 28px 80px; } }

.section { display: none; animation: fadeIn 0.35s ease; }
.section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.section-title {
    font-size: 22px; font-weight: 700;
    margin-bottom: 6px;
    display: flex; align-items: center; gap: 10px;
}
.section-title svg { width: 22px; height: 22px; stroke: var(--mint); }
.section-sub { color: var(--text-sub); font-size: 13px; margin-bottom: 24px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border-mute);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: border-color 0.2s;
}
.card:hover { border-color: var(--border); }
.card-title {
    font-size: 15px; font-weight: 600;
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
    color: var(--text);
}
.card-title svg { width: 16px; height: 16px; stroke: var(--mint); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13.5px; font-weight: 600;
    transition: all 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; stroke-width: 2.2; }
.btn-primary {
    background: var(--mint);
    color: #001a10;
    box-shadow: 0 4px 14px rgba(0, 250, 154, 0.25);
}
.btn-primary:hover { background: #00e889; box-shadow: 0 6px 20px rgba(0, 250, 154, 0.4); transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-outline:hover { background: var(--mint-soft); border-color: var(--mint); color: var(--mint); }
.btn-ghost {
    background: var(--surface-2);
    border-color: var(--border-mute);
    color: var(--text-sub);
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger {
    background: rgba(255, 85, 119, 0.12);
    border-color: rgba(255, 85, 119, 0.32);
    color: var(--danger);
}
.btn-danger:hover { background: rgba(255, 85, 119, 0.22); }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 8px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-lg { padding: 13px 24px; font-size: 14.5px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   INPUT
   ============================================================ */
.field { margin-bottom: 16px; }
.field-label {
    display: block;
    font-size: 12px; font-weight: 500;
    color: var(--text-sub);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.input {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border-mute);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    transition: all 0.2s;
}
.input:focus {
    outline: none;
    border-color: var(--mint);
    background: var(--surface-3);
    box-shadow: 0 0 0 3px var(--mint-soft);
}
.input::placeholder { color: var(--text-muted); }
select.input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300FA9A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }

.input-group { position: relative; }
.input-group .input { padding-left: 40px; }
.input-group .input-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none;
}
.input-group .input-icon svg { width: 16px; height: 16px; }

/* Search bar */
.search-bar {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border-mute);
    border-radius: var(--radius-lg);
}
.search-bar .input-group { flex: 1; min-width: 200px; }
.search-bar select.input { min-width: 130px; }

/* ============================================================
   BADGE
   ============================================================ */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px; font-weight: 600;
    border: 1px solid;
    letter-spacing: 0.02em;
}
.badge-active {
    background: var(--mint-soft);
    color: var(--mint);
    border-color: var(--border-strong);
}
.badge-expired {
    background: rgba(255, 85, 119, 0.1);
    color: var(--danger);
    border-color: rgba(255, 85, 119, 0.3);
}
.badge-admin {
    background: rgba(255, 179, 71, 0.1);
    color: var(--warning);
    border-color: rgba(255, 179, 71, 0.3);
}
.badge-user {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-sub);
    border-color: var(--border-mute);
}

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border-mute);
    border-radius: var(--radius-lg);
    padding: 18px;
    position: relative; overflow: hidden;
    transition: all 0.2s;
}
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--mint), transparent);
    opacity: 0; transition: opacity 0.2s;
}
.stat-card:hover { border-color: var(--border); transform: translateY(-2px); }
.stat-card:hover::before { opacity: 1; }
.stat-label { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.stat-value { font-size: 26px; font-weight: 700; font-family: 'IBM Plex Mono', monospace; color: var(--text); }
.stat-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   PACKAGES
   ============================================================ */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.pkg-card {
    background: var(--surface);
    border: 1.5px solid var(--border-mute);
    border-radius: var(--radius-lg);
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    position: relative; overflow: hidden;
}
.pkg-card svg { width: 28px; height: 28px; stroke: var(--text-sub); margin-bottom: 10px; transition: stroke 0.2s; }
.pkg-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.pkg-card:hover svg { stroke: var(--mint); }
.pkg-card.selected {
    border-color: var(--mint);
    background: linear-gradient(135deg, var(--mint-soft), transparent);
    box-shadow: var(--shadow-mint);
}
.pkg-card.selected svg { stroke: var(--mint); }
.pkg-card.selected::after {
    content: '✓';
    position: absolute; top: 8px; right: 10px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--mint); color: #001a10;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px;
}
.pkg-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.pkg-price { font-size: 22px; font-weight: 700; color: var(--mint); font-family: 'IBM Plex Mono', monospace; }
.pkg-days { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   WEBSITE LIST
   ============================================================ */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
}
.site-card {
    background: var(--surface);
    border: 1px solid var(--border-mute);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.2s;
}
.site-card:hover { border-color: var(--border-strong); }
.site-card-hd {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap; gap: 8px;
}
.site-domain { font-size: 14.5px; font-weight: 600; color: var(--mint); word-break: break-all; }
.info-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.info-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-sub);
}
.info-row svg { width: 14px; height: 14px; stroke: var(--text-muted); }
.info-row strong { color: var(--text); margin-left: 4px; }

.cred-box {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
}
.cred-title { font-size: 11.5px; color: var(--mint); margin-bottom: 8px; font-weight: 600; letter-spacing: 0.02em; }
.cred-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px;
    padding: 4px 0;
}
.cred-row span { color: var(--text-muted); }
.cred-row strong { color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; }
.cred-warn { font-size: 11px; color: var(--warning); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-mute); }

.site-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.site-actions .btn { flex: 1; min-width: 0; }

/* ============================================================
   FORMS
   ============================================================ */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border-mute);
    border-radius: var(--radius-lg);
    padding: 26px;
    max-width: 540px;
    margin: 0 auto;
}
.form-input-wrap {
    position: relative;
    display: flex; align-items: center;
}
.form-input-wrap .input { padding-right: 110px; }
.form-input-wrap .domain-suffix {
    position: absolute; right: 14px;
    color: var(--text-muted);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    pointer-events: none;
}
.cost-display {
    display: none;
    margin-top: 14px; padding: 14px 16px;
    background: var(--mint-soft);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
}
.cost-display.show { display: flex; align-items: center; justify-content: space-between; }
.cost-display .cost-amount { font-size: 18px; font-weight: 700; color: var(--mint); font-family: 'IBM Plex Mono', monospace; }

/* ============================================================
   AUTH
   ============================================================ */
.auth-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.auth-box {
    width: 100%; max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border-mute);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    box-shadow: var(--shadow);
}
.auth-logo {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--mint), #00d97e);
    color: #001a10;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 28px var(--mint-glow);
}
.auth-logo svg { width: 32px; height: 32px; stroke-width: 2.5; }
.auth-title { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--text-sub); font-size: 13px; margin-bottom: 24px; }
.auth-tabs { display: flex; background: var(--surface-2); border-radius: 10px; padding: 4px; margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 9px; text-align: center; color: var(--text-sub); border-radius: 7px; font-size: 13px; font-weight: 600; transition: all 0.2s; cursor: pointer; }
.auth-tab.active { background: var(--mint); color: #001a10; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.alert svg { width: 16px; height: 16px; flex-shrink: 0; }
.alert-error { background: rgba(255, 85, 119, 0.1); border: 1px solid rgba(255, 85, 119, 0.3); color: var(--danger); }
.alert-success { background: var(--mint-soft); border: 1px solid var(--border-strong); color: var(--mint); }

/* ============================================================
   WELCOME PAGE
   ============================================================ */
.welcome-wrap {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px 20px;
    text-align: center;
}
.welcome-icon {
    width: 84px; height: 84px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--mint), #00d97e);
    color: #001a10;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 0 40px var(--mint-glow);
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.welcome-icon svg { width: 42px; height: 42px; stroke-width: 2.5; }
.welcome-title {
    font-size: 38px; font-weight: 800; letter-spacing: 0.04em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text), var(--mint));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.welcome-sub { color: var(--text-sub); font-size: 15px; line-height: 1.7; max-width: 480px; margin-bottom: 32px; }
.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 140px));
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
}
.feat-item {
    background: var(--surface);
    border: 1px solid var(--border-mute);
    border-radius: var(--radius);
    padding: 16px 12px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text-sub); font-size: 12.5px;
    transition: all 0.2s;
}
.feat-item:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-2px); }
.feat-item svg { width: 22px; height: 22px; stroke: var(--mint); }
.welcome-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.welcome-btns .btn { min-width: 160px; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-toolbar {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 22px;
}
.admin-list { display: flex; flex-direction: column; gap: 12px; }
.admin-item {
    background: var(--surface);
    border: 1px solid var(--border-mute);
    border-radius: var(--radius);
    padding: 16px;
    transition: border 0.2s;
}
.admin-item:hover { border-color: var(--border-strong); }
.admin-item-label { font-weight: 600; font-size: 14px; }
.admin-item-meta { font-size: 12.5px; color: var(--text-sub); margin-top: 6px; line-height: 1.6; }
.admin-item-meta strong { color: var(--mint); font-family: 'IBM Plex Mono', monospace; }
.admin-item-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.expired-notice {
    background: rgba(255, 85, 119, 0.08);
    border: 1px solid rgba(255, 85, 119, 0.25);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 22px;
}
.expired-notice-title {
    color: var(--danger);
    font-weight: 600; font-size: 13.5px;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.expired-notice-title svg { width: 16px; height: 16px; }
.expired-notice-item {
    font-size: 12.5px;
    padding: 6px 0;
    border-top: 1px solid rgba(255, 85, 119, 0.15);
    color: var(--text-sub);
}

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-mute); }
.table { width: 100%; border-collapse: collapse; min-width: 600px; }
.table th, .table td { padding: 12px 14px; text-align: left; font-size: 13px; }
.table th { background: var(--surface-2); color: var(--text-sub); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border-mute); }
.table tbody tr { background: var(--surface); border-bottom: 1px solid var(--border-mute); transition: background 0.2s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child { border-bottom: none; }

/* Charts */
.chart-card { background: var(--surface); border: 1px solid var(--border-mute); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 18px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.chart-head h3 { font-size: 14px; font-weight: 600; }
.chart-area { display: flex; gap: 8px; height: 180px; }
.chart-yaxis { display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0; }
.chart-bars { flex: 1; display: flex; align-items: flex-end; gap: 3px; padding: 12px 0 0; border-left: 1px solid var(--border-mute); border-bottom: 1px solid var(--border-mute); padding-left: 8px; padding-bottom: 4px; position: relative; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; cursor: pointer; transition: opacity 0.2s; }
.chart-bar-wrap:hover { opacity: 0.7; }
.chart-labels { display: flex; gap: 3px; padding-left: 50px; margin-top: 6px; }
.chart-tt { display: none; position: absolute; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 8px; padding: 10px 12px; font-size: 12px; min-width: 150px; box-shadow: var(--shadow); pointer-events: none; z-index: 10; }
.tt-date { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border-mute); }
.tt-row { display: flex; justify-content: space-between; padding: 2px 0; color: var(--text-sub); }
.tt-val { color: var(--text); font-family: 'IBM Plex Mono', monospace; font-weight: 600; }

/* ============================================================
   TOPUP TABS
   ============================================================ */
.tt-tabs { display: flex; background: var(--surface-2); border-radius: 10px; padding: 4px; margin-bottom: 20px; gap: 4px; }
.tt { flex: 1; padding: 10px; text-align: center; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-sub); transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.tt svg { width: 14px; height: 14px; }
.tt.active { background: var(--mint); color: #001a10; }

.bank-card { background: var(--surface); border: 1px solid var(--border-mute); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.bank-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.bank-hd svg { width: 18px; height: 18px; stroke: var(--mint); }
.bank-hd h3 { font-size: 14.5px; font-weight: 600; }
.bank-rows { display: flex; flex-direction: column; gap: 10px; }
.bank-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--border-mute); }
.bank-row:last-child { border-bottom: none; }
.bank-label { font-size: 12.5px; color: var(--text-muted); }
.bank-value { font-size: 13.5px; font-weight: 600; color: var(--text); font-family: 'IBM Plex Mono', monospace; }
.bank-qr { text-align: center; margin-top: 14px; }
.bank-qr img { max-width: 200px; border-radius: 10px; border: 1px solid var(--border-mute); }

.slip-upload-area {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--surface-2);
}
.slip-upload-area:hover { border-color: var(--mint); background: var(--mint-soft); }
.slip-upload-area svg { width: 36px; height: 36px; stroke: var(--mint); margin-bottom: 10px; }
.slip-upload-area p { color: var(--text-sub); font-size: 13.5px; }
.slip-upload-area .hint { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }

#slip-preview { display: none; margin-top: 16px; text-align: center; }
#slip-image-preview { max-width: 240px; border-radius: 10px; border: 1px solid var(--border-mute); margin-bottom: 12px; }

/* ============================================================
   LOADING
   ============================================================ */
.loading-dots::after {
    content: '...';
    animation: dots 1.4s infinite;
}
@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
.loader {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid var(--border-mute);
    border-top-color: var(--mint);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 13.5px;
}
.empty-state svg { width: 40px; height: 40px; margin-bottom: 12px; stroke: var(--text-muted); opacity: 0.5; }

/* ============================================================
   SWAL OVERRIDE
   ============================================================ */
.swal2-popup { background: var(--surface) !important; color: var(--text) !important; border: 1px solid var(--border-mute) !important; border-radius: var(--radius-lg) !important; }
.swal2-title { color: var(--text) !important; }
.swal2-html-container { color: var(--text-sub) !important; }
.swal2-confirm { background: var(--mint) !important; color: #001a10 !important; font-weight: 600 !important; }
.swal2-cancel { background: var(--surface-3) !important; color: var(--text) !important; }
.swal2-icon.swal2-success [class^=swal2-success-line] { background-color: var(--mint) !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: var(--mint) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .navbar { padding: 0 16px; height: 60px; }
    .main { padding: 22px 14px 60px; }
    .section-title { font-size: 19px; }
    .point-pill { padding: 6px 12px; font-size: 12px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .pkg-card { padding: 18px 12px; }
}
