:root {
    color-scheme: dark;
    --bg: #0b0f14;
    --bg-accent: #0e141a;
    --panel: #0e141a;
    --panel-border: #1f2a37;
    --input-bg: #0b1218;
    --input-border: #243445;
    --text: #d8dee9;
    --muted: #94a3b8;
    --primary: #2563eb;
    --primary-600: #1d4ed8;
    --warn: #7f1d1d;
    --warn-600: #6b1616;
    --ring: rgba(37, 99, 235, 0.35);
    --shadow: 0 1px 1px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans", Ubuntu, "Helvetica Neue", sans-serif;
    font-size: 13px; line-height: 1.45; margin: 0; padding: 0;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(37,99,235,0.08), transparent 60%),
        radial-gradient(1000px 500px at 110% 10%, rgba(99,102,241,0.06), transparent 60%),
        var(--bg);
    color: var(--text);
}
header {
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(16, 24, 32, .9), rgba(10,14,18,.9));
    border-bottom: 1px solid var(--panel-border);
    position: sticky; top: 0; z-index: 10;
    backdrop-filter: saturate(120%) blur(6px);
}
h1 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .3px; }
main { padding: 14px 16px; display: grid; gap: 12px; max-width: 920px; margin: 0 auto; }
.panel {
    background: linear-gradient(180deg, rgba(20,28,36,.85), rgba(14,20,26,.85));
    border: 1px solid var(--panel-border);
    border-radius: 10px; padding: 14px;
    box-shadow: var(--shadow);
}
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
textarea {
    width: 100%; min-height: 140px; resize: vertical;
    background: var(--input-bg); color: #e5e7eb;
    border: 1px solid var(--input-border);
    border-radius: 8px; padding: 10px;
    font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 1.4;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
#cards { resize: none; overflow: hidden; }
select, button, input[type="number"], input[type="text"] {
    background: var(--input-bg); color: #e5e7eb;
    border: 1px solid var(--input-border);
    border-radius: 8px; padding: 8px 10px; font-size: 12px;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
button { cursor: pointer; background: #0f1720; }
button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0); }
button.primary {
    background: linear-gradient(180deg, var(--primary), var(--primary-600));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37,99,235,.25), inset 0 0 0 1px rgba(255,255,255,.06);
}
button.primary:hover { filter: brightness(1.05); }
button.warn { background: linear-gradient(180deg, var(--warn), var(--warn-600)); border-color: #9f2c2c; color: #fff; box-shadow: 0 6px 18px rgba(153,27,27,.25); }
button.warn:hover { filter: brightness(1.05); }
button:disabled { opacity: 0.6; cursor: not-allowed; filter: none; transform: none; }
.tabBtn { border-radius: 999px; padding: 6px 12px; background: rgba(148,163,184,.08); border-color: rgba(148,163,184,.18); }
.tabBtn:not(.primary):hover { background: rgba(148,163,184,.14); }
.muted { color: var(--muted); font-size: 11px; }
.output {
    white-space: pre-wrap;
    font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 1.45;
    background: linear-gradient(180deg, #0b1117, #0a0f14);
    color: #e5e7eb;
    border: 1px solid var(--input-border);
    border-radius: 10px; padding: 10px; min-height: 160px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03), inset 0 -1px 0 rgba(255,255,255,.02);
    overflow: auto;
}
/* Subtle zebra background to assist readability without changing the text format */
.output {
    background-image: linear-gradient(rgba(255,255,255,0.02) 50%, transparent 0);
    background-size: 100% 28px;
    background-position: 0 0;
}
.stats { display: flex; gap: 8px; font-size: 12px; }
.tag { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--input-border); background: rgba(11,18,24,.8); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
/* Compact wallet display */
.creditWrap { display:flex; gap:10px; align-items:center; }
.creditBox { padding:6px 10px; border-radius:8px; border:1px solid var(--input-border); background: rgba(11,18,24,.8); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); font-size:12px; white-space:nowrap; }
.creditLabel { color: var(--muted); margin-right:6px; }
.creditVal { font-weight:700; }
.creditVal.green { color:#22c55e; }
.creditVal.orange { color:#f59e0b; }
.creditVal.blue { color:#60a5fa; }
a { color: #60a5fa; text-decoration: none; }
a:hover { text-decoration: underline; }
/* Smooth scrollbars */
.output::-webkit-scrollbar, textarea::-webkit-scrollbar { height: 10px; width: 10px; }
.output::-webkit-scrollbar-thumb, textarea::-webkit-scrollbar-thumb { background: #233142; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
.output::-webkit-scrollbar-track, textarea::-webkit-scrollbar-track { background: rgba(148,163,184,.08); border-radius: 10px; }
.output { scrollbar-color: #233142 rgba(148,163,184,.08); scrollbar-width: thin; }
 
/* Output items */
.out-item {
    background: rgba(15, 23, 32, 0.8);
    border: 1px solid var(--input-border);
    border-left: 4px solid #334155;
    border-radius: 8px;
    padding: 8px 10px;
    margin: 6px 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.out-item .out-text, .out-text {
    margin: 0;
    white-space: pre-wrap;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.45;
}
.out-success { border-left-color: #22c55e; background: linear-gradient(180deg, rgba(22,163,74,0.07), rgba(15,23,32,0)); }
.out-otp { border-left-color: #f59e0b; background: linear-gradient(180deg, rgba(245,158,11,0.07), rgba(15,23,32,0)); }
.out-failed { border-left-color: #ef4444; background: linear-gradient(180deg, rgba(239,68,68,0.06), rgba(15,23,32,0)); }
 
/* Tab count badge */
.tabBtn .tabCount {
    display: inline-block;
    padding: 2px 6px;
    margin-left: 6px;
    font-size: 11px;
    color: #e5e7eb;
    background: rgba(148,163,184,.16);
    border: 1px solid rgba(148,163,184,.28);
    border-radius: 999px;
    line-height: 1;
}
 
/* Footer */
.site-footer {
    background: linear-gradient(180deg, rgba(14,20,26,.95), rgba(10,14,18,.95));
    border-top: 1px solid var(--panel-border);
    padding: 16px 0 18px;
    margin-top: 70px;
}
.footer-inner {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.footer-logo {
    height: 156px;
    width: 156px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
.footer-text {
    color: var(--muted);
    font-size: 12px;
}

/* Profile card */
.profile-card { overflow: hidden; position: relative; padding: 0; }
.profile-banner { height: 160px; background-size: cover; background-position: center; background-repeat: no-repeat; border-radius: 10px 10px 0 0; border-bottom: 1px solid var(--panel-border); }
.profile-body { display: flex; gap: 12px; padding: 12px; align-items: flex-end; position: relative; }
.profile-avatar { width: 96px; height: 96px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.18); background: #0b1218; box-shadow: 0 6px 24px rgba(0,0,0,.35); margin-top: -36px; }
.profile-main { display: flex; flex-direction: column; gap: 6px; }
.profile-name-row { display: flex; align-items: center; gap: 8px; }
.profile-name { font-size: 20px; font-weight: 800; letter-spacing: .3px; }
.profile-badges { display: flex; gap: 6px; }
.profile-meta { font-size: 12px; }
/* Elegant meta pills */
.profile-meta.meta-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.meta-item { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--input-border); background: rgba(148,163,184,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.meta-label { color: var(--muted); }
.meta-value { color: #e5e7eb; font-weight: 600; letter-spacing: .2px; }
.meta-item.vip { border-color: rgba(250,204,21,.45); background: linear-gradient(180deg, rgba(250,204,21,.08), rgba(148,163,184,.06)); }
.meta-item.vip .meta-value { color: #fde047; }

/* Glowing username effects based on user status */
.glow-red {
    color: #ef4444; /* red */
    text-shadow: 0 0 6px rgba(239, 68, 68, 0.85), 0 0 12px rgba(239, 68, 68, 0.55), 0 0 18px rgba(239, 68, 68, 0.35);
}
.glow-purple {
    color: #a78bfa; /* purple */
    text-shadow: 0 0 6px rgba(167, 139, 250, 0.85), 0 0 12px rgba(167, 139, 250, 0.55), 0 0 18px rgba(167, 139, 250, 0.35);
}
.glow-yellow {
    color: #fde047; /* yellow */
    text-shadow: 0 0 6px rgba(250, 204, 21, 0.90), 0 0 12px rgba(250, 204, 21, 0.60), 0 0 18px rgba(250, 204, 21, 0.40);
}


/* Admin table styles */
.tableWrap { margin-top: 8px; overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table thead th { text-align: left; padding: 6px 8px; color: var(--muted); background: var(--input-bg); border-bottom: 1px solid var(--input-border); position: sticky; top: 0; }
.table tbody td { padding: 6px 8px; border-top: 1px solid var(--input-border); }
.table tbody tr:hover { background: rgba(148,163,184,.06); }
.table tbody select { width: 100%; }


/* Sidebar layout */
main { max-width: 1200px; }
.withSidebar { display: flex; gap: 12px; align-items: flex-start; }
.mainCol { flex: 1 1 auto; min-width: 0; }
.sidebar { flex: 0 0 260px; width: 260px; display: flex; flex-direction: column; gap: 12px; }
.sidebar .sidebar-section { padding: 10px; }
.sidebar .user-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sidebar .user-list li { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border: 1px solid var(--input-border); border-radius: 8px; background: rgba(11,18,24,.8); }
.sidebar .user-list .user-name { font-weight: 600; }
.sidebar .user-list .badge { margin-left: 8px; padding: 2px 6px; border-radius: 999px; border: 1px solid rgba(148,163,184,.28); background: rgba(148,163,184,.16); font-size: 11px; color: #e5e7eb; white-space: nowrap; }
@media (max-width: 980px) {
  .withSidebar { flex-direction: column; }
  .sidebar { flex: unset; width: 100%; }
}


/* Service Status badge colors */
.sidebar .user-list .badge-green { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.35); color: #bbf7d0; }
.sidebar .user-list .badge-orange { background: rgba(245,158,11,.15); border-color: rgba(245,158,11,.35); color: #fed7aa; }
.sidebar .user-list .badge-red { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.35); color: #fecaca; }
