/* TOP Player panel — light SaaS theme with amber accent, optional dark mode, RTL-aware. */

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #f1f3f8;
  --border: #e9ecf2;
  --border-strong: #d9dee8;
  --text: #111827;
  --text-2: #374151;
  --muted: #6b7280;
  --faint: #9ca3af;

  --amber: #fbbf24;
  --amber-600: #f59e0b;
  --amber-700: #d97706;
  --amber-800: #b45309;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --on-amber: #1f1300;

  --green: #10b981; --green-700: #047857; --green-50: #ecfdf5;
  --blue: #3b82f6; --blue-700: #1d4ed8; --blue-50: #eff6ff;
  --red: #ef4444; --red-700: #b91c1c; --red-50: #fef2f2;
  --orange: #f97316; --orange-50: #fff7ed;
  --violet: #8b5cf6; --violet-50: #f5f3ff;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -6px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 60px -12px rgba(16, 24, 40, .25);
  --ring: 0 0 0 4px rgba(251, 191, 36, .28);

  --sidebar-w: 264px;
  --topbar-h: 70px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b0f17;
  --surface: #121826;
  --surface-2: #161d2c;
  --surface-3: #1c2436;
  --border: #232c3e;
  --border-strong: #2f3a50;
  --text: #eef0f4;
  --text-2: #cfd4de;
  --muted: #98a2b3;
  --faint: #6b7588;
  --amber-50: rgba(251, 191, 36, .1);
  --amber-100: rgba(251, 191, 36, .18);
  --amber-700: #fbbf24;
  --amber-800: #fcd34d;
  --green-50: rgba(16, 185, 129, .13); --green-700: #34d399;
  --blue-50: rgba(59, 130, 246, .14); --blue-700: #93b4fb;
  --red-50: rgba(239, 68, 68, .13); --red-700: #f87171;
  --orange-50: rgba(249, 115, 22, .13);
  --violet-50: rgba(139, 92, 246, .14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px -8px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s;
}
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", var(--font); }
body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.i { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); letter-spacing: .02em; font-weight: 600; }
.mono-sm { font-family: var(--mono); font-size: 13px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.mobile-only { display: none; }

/* ------------------------------------------------------------ boot */
.boot {
  position: fixed; inset: 0; display: grid; place-items: center; align-content: center; gap: 22px;
  background: var(--bg); z-index: 100;
}
.boot img { border-radius: 18px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .8; } }

.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--amber-100); border-top-color: var(--amber-600);
  animation: spin .7s linear infinite; display: inline-block;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; border-color: rgba(0,0,0,.15); border-top-color: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin .i { animation: spin .8s linear infinite; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: var(--surface-3); color: var(--text);
  font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: background-color .15s, box-shadow .15s, transform .05s, border-color .15s, color .15s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible, .icon-btn:focus-visible, .nav-item:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn .i { width: 17px; height: 17px; }
.btn-primary { background: var(--amber); color: #111827; box-shadow: 0 6px 16px -8px rgba(245, 158, 11, .7); }
.btn-primary:hover:not(:disabled) { background: var(--amber-600); box-shadow: 0 10px 22px -8px rgba(245, 158, 11, .8); }
.btn-primary:disabled { background: #fcd977; opacity: 1; color: rgba(17, 24, 39, .55); }
.btn-dark { background: #111827; color: #fff; }
.btn-dark:hover { background: #1f2937; }
[data-theme="dark"] .btn-dark { background: #0b0f17; }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--faint); }
.btn-soft { background: var(--amber-50); color: var(--amber-800); border-color: var(--amber-100); }
.btn-soft:hover { background: var(--amber-100); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-danger-soft { background: var(--red-50); color: var(--red-700); }
.btn-danger-soft:hover { background: var(--red); color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; gap: 6px; }
.btn-sm .i { width: 15px; height: 15px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn.copied { color: var(--green-700); border-color: var(--green); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  transition: background-color .15s, color .15s, border-color .15s;
}
.icon-btn:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.icon-btn-sm { width: 34px; height: 34px; border-radius: 10px; }
.icon-btn-sm .i { width: 16px; height: 16px; }
.tone-red:hover:not(:disabled) { background: var(--red-50); color: var(--red); border-color: transparent; }
.tone-orange:hover:not(:disabled) { background: var(--orange-50); color: var(--orange); border-color: transparent; }
.tone-green { color: var(--green); }
.tone-green:hover:not(:disabled) { background: var(--green-50); color: var(--green); border-color: transparent; }

/* ------------------------------------------------------------ form fields */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span, .field-label { font-weight: 700; font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.field > span em { font-style: normal; font-weight: 500; color: var(--faint); }
.field-label { margin: 6px 0 10px; }
.field small { font-size: 12px; }
.field-err { color: var(--red); }
.field input, .input, .select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text);
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.field input::placeholder, .input::placeholder { color: var(--faint); }
.field input:focus, .input:focus, .select:focus { border-color: var(--amber-600); box-shadow: var(--ring); }
.field input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }
.field input.is-valid { border-color: var(--green); }
.input-mac { font-size: 18px !important; letter-spacing: .08em; text-transform: uppercase; height: 52px !important; }
.input-big { font-size: 22px !important; font-weight: 800; height: 56px !important; }
.input-wrap { position: relative; }
.input-wrap input { padding-inline-end: 48px; }
.input-eye {
  position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted);
  display: grid; place-items: center; border-radius: 9px;
}
.input-eye:hover { background: var(--surface-3); color: var(--text); }
.select {
  appearance: none; -webkit-appearance: none; width: auto; min-width: 160px; height: 42px; padding-inline-end: 38px; font-weight: 600; font-size: 13.5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 16px; background-position: right 12px center;
}
[dir="rtl"] .select { background-position: left 12px center; }
input[type="date"].input { width: auto; }
.grid-2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }

.alert {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; margin-bottom: 16px;
}
.alert .i { margin-top: 1px; }
.alert-error { background: var(--red-50); color: var(--red-700); border: 1px solid rgba(239, 68, 68, .25); }

/* ------------------------------------------------------------ brand + language switch */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 46px; width: auto; display: block; }
[data-theme="dark"] .brand img, [data-theme="dark"] .login-card-logo { filter: brightness(1.35) saturate(1.1); }
.brand-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--amber-100); color: var(--amber-800);
}
/* Language dropdown: rounded pill "globe  English  v" */
.lang-switch { position: relative; display: inline-block; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px 0 14px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600;
  transition: border-color .15s, background-color .15s;
}
.lang-btn:hover { border-color: var(--faint); }
.lang-btn .i { width: 18px; height: 18px; color: var(--text-2); }
.lang-btn .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.lang-switch.open .chev { transform: rotate(180deg); }
.lang-btn .lang-code { display: none; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 180px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px;
  display: none;
}
.lang-switch.open .lang-menu { display: grid; gap: 2px; }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 40px; padding: 0 12px;
  border: 0; border-radius: 10px; background: transparent; font-weight: 600; font-size: 14px; color: var(--text-2); text-align: start;
}
.lang-menu button:hover { background: var(--surface-3); color: var(--text); }
.lang-menu button.on { background: var(--amber-50); color: var(--amber-800); }
.lang-menu button small { font-size: 11.5px; font-weight: 800; color: var(--faint); }
.topbar .lang-btn, .topbar .icon-btn { height: 42px; }
.topbar .lang-btn { font-size: 14px; }

/* ------------------------------------------------------------ login */
.login {
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(1100px 620px at 100% 0%, rgba(251, 191, 36, .10), transparent 60%),
    radial-gradient(900px 600px at 0% 45%, rgba(249, 115, 22, .06), transparent 60%),
    #fbfbfc;
}
[data-theme="dark"] .login {
  background:
    radial-gradient(1100px 620px at 100% 0%, rgba(251, 191, 36, .10), transparent 60%),
    radial-gradient(900px 600px at 0% 45%, rgba(249, 115, 22, .05), transparent 60%),
    var(--bg);
}
body:has(> #login-view:not([hidden])) { background: #fbfbfc; }
[data-theme="dark"] body:has(> #login-view:not([hidden])) { background: var(--bg); }
.login-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 96px; padding: 0 48px; background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-bottom: 1px solid var(--border);
}
.login-logo { height: 52px; width: auto; display: block; }
[data-theme="dark"] .login-logo { filter: brightness(1.35) saturate(1.1); }
.login-tools { display: flex; gap: 10px; align-items: center; }
.login-main { flex: 1; display: grid; place-items: start center; padding: 64px 24px 56px; }
.login-card {
  width: 100%; max-width: 672px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 28px; box-shadow: 0 1px 2px rgba(16,24,40,.03), 0 18px 48px -18px rgba(16,24,40,.10);
  padding: 48px 48px 44px; text-align: center;
}
.login-card .field { text-align: start; margin-bottom: 22px; gap: 10px; }
.login-card .field > span { font-size: 15px; font-weight: 600; color: var(--text); }
.login-card .field input { height: 60px; border-radius: 14px; border-width: 1px; padding: 0 18px; font-size: 16px; }
.login-card .input-wrap input { padding-inline-end: 56px; }
.login-card .input-eye { inset-inline-end: 10px; width: 40px; height: 40px; }
.login-card h1 { font-size: 40px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; }
.login-sub { font-size: 16px; margin-bottom: 34px; }
.login-card .alert { text-align: start; }
.login-card .btn-lg { margin-top: 6px; height: 64px; font-size: 17px; border-radius: 14px; }
.login-divider { height: 1px; background: var(--border); margin: 36px 0 28px; }
.login-note {
  display: flex; align-items: center; gap: 14px; text-align: start; padding: 16px 20px; border-radius: 16px;
  background: var(--blue-50); border: 1px solid rgba(59, 130, 246, .22); color: var(--text-2); font-size: 14.5px; font-weight: 500;
}
.login-note svg { width: 24px; height: 24px; flex: none; color: var(--blue); }

/* Amber icon tile (pictures: square, rounded, soft glow) */
.tile-icon {
  width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 30px;
  background: var(--amber); color: #111827; box-shadow: 0 12px 26px -10px rgba(245, 158, 11, .75);
}
.tile-icon svg { width: 30px; height: 30px; }

/* ------------------------------------------------------------ app shell */
.sidebar {
  position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--sidebar-w); z-index: 40;
  background: var(--surface); border-inline-end: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 16px;
  transition: transform .25s ease;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 22px; }
.sidebar-close { display: none; }
.nav { display: grid; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: var(--radius-sm);
  color: var(--muted); font-weight: 650; font-size: 14.5px; border: 0; background: transparent; width: 100%; text-align: start;
  transition: background-color .15s, color .15s;
}
.nav-item .i { width: 20px; height: 20px; }
.nav-item:hover { background: var(--surface-3); color: var(--text); }
.nav-item { border: 1px solid transparent; }
.nav-item.active { background: var(--amber-50); color: var(--amber-800); border-color: #fcd34d; }
[data-theme="dark"] .nav-item.active { border-color: rgba(251, 191, 36, .45); }
.nav-item.active .i { color: var(--amber-700); }
.nav-sep { height: 1px; background: var(--border); margin: 10px 8px; }
.sidebar-cta { margin-top: auto; }
.cta-card {
  border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--amber) 0%, var(--amber-600) 100%); color: var(--on-amber);
}
.cta-card::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.18); inset-inline-end: -50px; top: -60px; }
.cta-title { font-weight: 800; font-size: 15px; position: relative; }
.cta-text { opacity: .8; margin: 4px 0 14px; position: relative; }
.sidebar-backdrop { display: none; }

.main { margin-inline-start: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.menu-btn { display: none; }
.topbar-title { font-weight: 800; font-size: 17px; }
.topbar-right { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.credit-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--amber-50); border: 1px solid var(--amber-100); color: var(--amber-800); font-size: 13px; font-weight: 600;
}
.credit-pill b { font-size: 15px; font-weight: 800; color: var(--text); }
.credit-pill.low { background: var(--red-50); border-color: rgba(239,68,68,.25); color: var(--red-700); }
.user-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px; padding-inline-end: 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.user-chip:hover { border-color: var(--border-strong); }
.user-meta { display: grid; line-height: 1.2; }
.user-meta b { font-size: 13px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--amber), var(--amber-600)); color: var(--on-amber); font-weight: 800; font-size: 13px;
}
.avatar-sm { width: 38px; height: 38px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }

.content { padding: 28px; width: 100%; max-width: 1440px; margin-inline: auto; outline: none; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.page-actions { display: flex; gap: 10px; }

/* ------------------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.card-head h2 .i { color: var(--amber-600); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--amber-700); }
.link .i { width: 15px; height: 15px; }
.link:hover { color: var(--amber-800); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { display: flex; flex-direction: column; gap: 10px; padding: 20px; transition: transform .15s, box-shadow .15s; }
a.stat:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16,24,40,.04), 0 16px 32px -10px rgba(16,24,40,.14); }
.stat-top { display: flex; align-items: center; gap: 10px; }
.stat-label { font-weight: 700; font-size: 13px; color: var(--muted); }
.stat-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.stat-ic .i { width: 20px; height: 20px; }
.stat-value { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat-sub { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat-total .stat-ic { background: var(--violet-50); color: var(--violet); }
.stat-active .stat-ic { background: var(--green-50); color: var(--green); }
.stat-trial .stat-ic { background: var(--blue-50); color: var(--blue); }
.stat-expired .stat-ic { background: var(--red-50); color: var(--red); }
.stat-credits { background: linear-gradient(150deg, var(--amber) 0%, var(--amber-600) 100%); border-color: transparent; color: var(--on-amber); position: relative; overflow: hidden; }
.stat-credits::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.18); inset-inline-end: -60px; top: -70px; }
.stat-credits .stat-ic { background: rgba(255,255,255,.35); color: var(--on-amber); }
.stat-credits .stat-label, .stat-credits .stat-sub { color: rgba(31, 19, 0, .72); }
.stat-credits .inf { font-size: 40px; line-height: .9; }
.ic-amber { background: var(--amber-50) !important; color: var(--amber-600) !important; }
.ic-blue { background: var(--blue-50) !important; color: var(--blue) !important; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.dash-side { display: grid; gap: 20px; }

.dev-list, .soon-list { list-style: none; margin: 0; padding: 0; }
.dev-list li { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-top: 1px solid var(--border); }
.dev-list li:first-child { border-top: 0; padding-top: 2px; }
.dl-main { display: grid; min-width: 0; flex: 1; }
.dl-main b { font-size: 14px; }
.dl-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-side { display: grid; justify-items: end; gap: 4px; }
.soon-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.soon-list li:first-child { border-top: 0; padding-top: 0; }
.soon-none { display: flex; align-items: center; gap: 8px; }
.soon-none .i { color: var(--green); }

.hero-card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 26px; color: var(--on-amber);
  background:
    radial-gradient(240px 200px at 100% 0%, rgba(255,255,255,.35), transparent 70%),
    linear-gradient(150deg, #fcd34d 0%, var(--amber) 40%, var(--amber-600) 100%);
  box-shadow: 0 18px 40px -18px rgba(245, 158, 11, .8);
}
.hero-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.hero-card p { opacity: .8; margin-bottom: 20px; font-size: 14px; }
.hero-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.4); margin-bottom: 16px; }
.hero-ic .i { width: 24px; height: 24px; }

.pbar { margin-bottom: 14px; }
.pbar:last-child { margin-bottom: 0; }
.pbar-top { display: flex; justify-content: space-between; align-items: center; font-weight: 650; font-size: 13.5px; margin-bottom: 7px; }
.pbar-top span { display: inline-flex; align-items: center; gap: 8px; }
.pbar-track { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.pbar-fill { display: block; height: 100%; border-radius: 99px; background: var(--faint); transition: width .5s ease; }
.pbar-android { background: linear-gradient(90deg, #34d399, #10b981); }
.pbar-windows { background: linear-gradient(90deg, #60a5fa, #3b82f6); }

/* badges & chips */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 750; white-space: nowrap;
}
.badge .i { width: 14px; height: 14px; }
.badge-active { background: var(--green-50); color: var(--green-700); }
.badge-trial { background: var(--blue-50); color: var(--blue-700); }
.badge-expired { background: var(--red-50); color: var(--red-700); }
.badge-admin { background: var(--amber-100); color: var(--amber-800); }
.left { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--muted); font-weight: 600; }
.left .i { width: 14px; height: 14px; }
.left-warn { color: var(--orange); }
.left-exp { color: var(--red-700); }
.left-life { color: var(--amber-700); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-3); font-size: 12.5px; font-weight: 700; color: var(--text-2); border: 1px solid var(--border); }
.chip .i { width: 14px; height: 14px; color: var(--amber-600); }
.chip-btn:hover { border-color: var(--amber-600); background: var(--amber-50); }
.key-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 7px; background: var(--amber-50); color: var(--amber-800); font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .06em; }
.key-chip .i { width: 12px; height: 12px; }
.credit-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.credit-tag .i { color: var(--amber-600); width: 16px; height: 16px; }

.plat { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--muted); }
.plat .i { width: 21px; height: 21px; }
.plat-android { background: var(--green-50); color: #16a34a; }
.plat-windows { background: var(--blue-50); color: #2563eb; }
[data-theme="dark"] .plat-android { color: #4ade80; }
[data-theme="dark"] .plat-windows { color: #60a5fa; }
.country { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; white-space: nowrap; }
.country .i { color: var(--muted); width: 16px; height: 16px; }
.flag { width: 24px; height: 17px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* ------------------------------------------------------------ table */
.table-card { padding: 0; overflow: hidden; }
.toolbar { display: flex; gap: 10px; padding: 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; align-items: center; }
.search { position: relative; flex: 1 1 280px; display: flex; align-items: center; }
.search .i { position: absolute; inset-inline-start: 14px; color: var(--faint); pointer-events: none; }
.search input {
  width: 100%; height: 42px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); background: var(--surface-2);
  padding-inline: 42px 14px; outline: none; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.search input:focus { border-color: var(--amber-600); box-shadow: var(--ring); background: var(--surface); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: start; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  font-weight: 750; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background-color .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.row-off td { opacity: .62; }
.row-off td.td-actions { opacity: 1; }
.th-actions { text-align: end !important; }
.td-actions { text-align: end; }
.row-actions { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }
.dev-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.dev-mac { font-size: 14px; }
.dev-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; margin-top: 2px; }
.dev-pl { display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.dev-pl .i { width: 13px; height: 13px; }
.res-name { font-weight: 750; }
.table-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); gap: 10px; }
.pager { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.table-loading { display: grid; place-items: center; padding: 60px 0; }

.empty-card { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 56px 24px; }
.empty-card p { color: var(--muted); font-weight: 600; max-width: 360px; }
.empty-mini { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 30px 12px; }
.empty-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--amber-50); color: var(--amber-600); }
.empty-ic .i { width: 26px; height: 26px; }
.empty-ic-red { background: var(--red-50); color: var(--red); }

.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.mini { display: flex; align-items: center; gap: 14px; padding: 18px; }
.mini div { display: grid; }
.mini b { font-size: 22px; font-weight: 800; line-height: 1.2; }
.mini div span { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.mini .stat-ic { background: var(--violet-50); color: var(--violet); }

/* ------------------------------------------------------------ skeleton */
.skeleton { position: relative; overflow: hidden; }
.sk-block { min-height: 320px; }
.sk { background: var(--surface-3); border-radius: 8px; }
.sk-ic { width: 40px; height: 40px; border-radius: 12px; }
.sk-line { width: 60%; height: 12px; }
.sk-num { width: 40%; height: 28px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shimmer 1.3s infinite;
}
[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ------------------------------------------------------------ modal */
.modal-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .18s; }
.modal {
  position: relative; width: 100%; max-width: 540px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .18s, transform .18s; margin: auto;
}
.modal-sm { max-width: 440px; }
.modal-lg { max-width: 760px; }
.modal-wrap.show .modal-backdrop { opacity: 1; }
.modal-wrap.show .modal { opacity: 1; transform: none; }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 22px 0; }
.modal-titles { flex: 1; min-width: 0; }
.modal-titles h3 { font-size: 19px; font-weight: 800; }
.modal-titles p { margin-top: 3px; }
.modal-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.modal-icon .i { width: 22px; height: 22px; }
.modal-icon-amber { background: var(--amber-100); color: var(--amber-700); }
.modal-icon-red { background: var(--red-50); color: var(--red); }
.modal-icon-green { background: var(--green-50); color: var(--green); }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 22px 22px; flex-wrap: wrap; }
.confirm-text { color: var(--text-2); font-size: 14.5px; margin-bottom: 4px; }
.confirm-text b { color: var(--text); }

/* plan cards */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan { position: relative; cursor: pointer; display: block; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-box {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 16px 16px; border-radius: 16px;
  border: 2px solid var(--border); background: var(--surface); position: relative;
  transition: border-color .15s, background-color .15s, box-shadow .15s, transform .15s;
}
.plan:hover .plan-box { border-color: var(--border-strong); transform: translateY(-1px); }
.plan input:checked + .plan-box { border-color: var(--amber-600); background: var(--amber-50); box-shadow: 0 10px 24px -14px rgba(245, 158, 11, .9); }
.plan input:focus-visible + .plan-box { box-shadow: var(--ring); }
.plan-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); margin-bottom: 8px; }
.plan-trial .plan-ic { background: var(--blue-50); color: var(--blue); }
.plan-1year .plan-ic { background: var(--green-50); color: var(--green); }
.plan-lifetime .plan-ic { background: var(--amber-100); color: var(--amber-700); }
.plan-name { font-weight: 800; font-size: 15.5px; }
.plan-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; flex: 1; }
.plan-price { margin-top: 10px; font-weight: 800; font-size: 15px; color: var(--text); }
.plan-warn { font-size: 11.5px; color: var(--red-700); font-weight: 700; }
.plan-badge { position: absolute; top: -10px; inset-inline-end: 12px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 99px; background: #111827; color: #fff; }
[data-theme="dark"] .plan-badge { background: var(--amber); color: var(--on-amber); }
.plan-check { position: absolute; top: 14px; inset-inline-end: 14px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; color: transparent; transition: all .15s; }
.plan-check .i { width: 13px; height: 13px; stroke-width: 3; }
.plan input:checked + .plan-box .plan-check { background: var(--amber-600); border-color: var(--amber-600); color: #fff; }
.plan.is-disabled { cursor: not-allowed; }
.plan.is-disabled .plan-box { opacity: .55; background: var(--surface-2); }

.bal-box {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px dashed var(--border-strong); font-size: 13px; color: var(--muted); font-weight: 600;
}
.bal-box > .i { color: var(--amber-600); }
.bal-box b { color: var(--text); font-weight: 800; }
.bal-box b.neg { color: var(--red); }
.bal-box b.pos { color: var(--green-700); }
.bal-arrow { color: var(--faint); display: inline-flex; margin: 0 4px; }
.bal-arrow .i { width: 15px; height: 15px; }

.success { display: grid; justify-items: center; gap: 14px; padding-top: 4px; }
.success-burst {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 0 0 10px var(--green-50), 0 18px 30px -12px rgba(16,185,129,.7);
  animation: pop .35s cubic-bezier(.2, 1.4, .4, 1);
}
.success-burst .i { width: 36px; height: 36px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin-top: 4px; }
.cred { display: grid; gap: 6px; justify-items: start; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.cred > span { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cred b { font-size: 20px; direction: ltr; }
.cred-key { background: var(--amber-50); border-color: var(--amber-100); }
.cred-key b { font-size: 30px; letter-spacing: .2em; color: var(--amber-800); }
.success-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.renew-now { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 16px; border: 1px solid var(--border); }
.renew-now .left { margin-top: 0; }
.admin-box { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border-strong); }
.admin-box .field-label .i { color: var(--amber-600); }
.admin-row { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-row .input { height: 42px; flex: 1 1 160px; }

.pl-list { display: grid; gap: 10px; margin-bottom: 14px; }
.pl-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 2fr) 34px; gap: 8px; align-items: center; }
.pl-row .input { height: 42px; }
.pl-num { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--muted); }

.seg { display: inline-flex; padding: 4px; border-radius: 13px; background: var(--surface-3); border: 1px solid var(--border); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.seg button .i { width: 16px; height: 16px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg-wide { display: flex; margin-bottom: 18px; }
.seg-wide button { flex: 1; justify-content: center; height: 40px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 16px; }

/* ------------------------------------------------------------ profile */
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.profile-card { grid-row: span 2; }
.profile-top { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.profile-top h2 { font-size: 20px; font-weight: 800; }
.profile-top p { margin: 2px 0 8px; }
.kv { margin: 0 0 20px; display: grid; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--border); }
.kv div:first-child { border-top: 0; }
.kv dt { color: var(--muted); font-weight: 650; }
.kv dd { margin: 0; font-weight: 750; text-align: end; word-break: break-all; }
.logout-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: var(--red-50); }
.pref { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pref:first-of-type { border-top: 0; padding-top: 0; }
.pref > span { font-weight: 700; }

/* ------------------------------------------------------------ toasts */
.toasts { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 80; display: grid; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; min-width: 240px; max-width: 380px;
  background: #111827; color: #fff; font-weight: 650; font-size: 13.5px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: none; }
.toast-success .i { color: #34d399; }
.toast-error { background: #7f1d1d; }
.toast-error .i { color: #fecaca; }
[data-theme="dark"] .toast { background: #1f2937; border: 1px solid var(--border-strong); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1280px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-credits { grid-column: span 1; }
}
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  body.sidebar-open .sidebar { transform: none; }
  .sidebar-close { display: inline-grid; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(15, 23, 42, .45); }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .main { margin-inline-start: 0; }
  .menu-btn { display: inline-grid; }
  .login-header { padding: 0 24px; height: 80px; }
  .login-logo { height: 44px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { grid-row: auto; }
}
@media (max-width: 860px) {
  /* Tables become stacked cards */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 14px 16px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td { padding: 0; border: 0; }
  .table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 3px; }
  .table td.td-device { grid-column: 1 / -1; }
  .table td.td-device::before { display: none; }
  .table td.td-actions { grid-column: 1 / -1; text-align: start; padding-top: 6px; border-top: 1px dashed var(--border); }
  .row-actions { justify-content: flex-start; flex-wrap: wrap; }
  .dev-cell { min-width: 0; }
}
@media (max-width: 720px) {
  :root { --topbar-h: 62px; }
  .content { padding: 18px 14px 28px; }
  .topbar { padding: 0 14px; gap: 8px; }
  .topbar-title { display: none; }
  .topbar-right { gap: 6px; }
  .user-meta, .pill-unit { display: none; }
  .user-chip { padding: 3px; }
  .credit-pill { height: 36px; padding: 0 10px; }
  .topbar .lang-btn { padding: 0 10px; gap: 6px; }
  .topbar .lang-btn .lang-name, .topbar .lang-btn .chev { display: none; }
  .topbar .lang-btn .lang-code { display: inline; font-weight: 800; font-size: 13px; }
  .page-head h1 { font-size: 22px; }
  .page-head .page-actions, .page-head .page-actions .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 16px; }
  .stat-value { font-size: 26px; }
  .stat-credits { grid-column: 1 / -1; }
  .mini-stats { grid-template-columns: 1fr; gap: 10px; }
  .card { padding: 18px; }
  .table-card { padding: 0; }
  .toolbar .select { flex: 1 1 40%; min-width: 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .plans, .plans-2 { grid-template-columns: 1fr; gap: 10px; }
  .plan-box { display: grid; grid-template-columns: 40px 1fr auto; column-gap: 12px; align-items: center; padding: 14px; padding-inline-end: 46px; }
  .plan-ic { grid-row: span 2; margin: 0; }
  .plan-desc { grid-column: 2; }
  .plan-price { grid-column: 3; grid-row: 1 / span 2; margin: 0; white-space: nowrap; }
  .plan-warn { grid-column: 2 / -1; }
  .plan-check { top: 50%; transform: translateY(-50%); }
  .modal-wrap { padding: 0; place-items: end center; }
  .modal, .modal-sm, .modal-lg { max-width: none; border-radius: 22px 22px 0 0; margin: auto 0 0; max-height: 94vh; overflow-y: auto; }
  .modal-foot { border-radius: 0; position: sticky; bottom: 0; }
  .modal-foot .btn { flex: 1; }
  .cred-grid { grid-template-columns: 1fr; }
  .pl-row { grid-template-columns: minmax(0, 1fr) 34px; }
  .pl-num { display: none; }
  .pl-row .input[data-k="url"] { grid-column: 1; }
  .pl-row [data-rm] { grid-row: 1 / span 2; grid-column: 2; }
  .toasts { inset-inline: 14px; bottom: 14px; }
  .toast { max-width: none; }
  .login-header { padding: 0 16px; height: 68px; }
  .login-logo { height: 38px; }
  .login-tools { gap: 6px; }
  .login-tools .lang-btn { height: 40px; padding: 0 12px; font-size: 14px; }
  .login-tools .icon-btn { height: 40px; width: 40px; }
  .login-main { padding: 24px 14px 32px; }
  .login-card { padding: 32px 20px 26px; border-radius: 22px; }
  .login-card h1 { font-size: 30px; }
  .login-sub { font-size: 14.5px; margin-bottom: 24px; }
  .tile-icon { width: 60px; height: 60px; border-radius: 16px; margin-bottom: 22px; }
  .tile-icon svg { width: 26px; height: 26px; }
  .login-card .field input { height: 54px; }
  .login-card .btn-lg { height: 56px; }
  .login-divider { margin: 26px 0 20px; }
  .login-note { font-size: 13.5px; padding: 14px; }
  .logout-box { flex-direction: column; align-items: stretch; }
}
@media (max-width: 380px) {
  .topbar .lang-switch { display: none; }
  .login-tools .lang-name { display: none; }
  .login-tools .lang-code { display: inline; font-weight: 800; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---- compact, professional login (2026-11-16) ---- */
.login-header { height: 68px; padding: 0 32px; }
.login-logo { height: 38px; }
.login-tools .lang-btn, .login-tools .icon-btn { height: 38px; font-size: 13.5px; }
.login-main { place-items: center; padding: 32px 20px 40px; }
.login-card { max-width: 420px; padding: 32px 32px 28px; border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 32px -14px rgba(16,24,40,.14); }
.login-card .tile-icon { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px; box-shadow: 0 8px 18px -8px rgba(245,158,11,.7); }
.login-card .tile-icon svg { width: 24px; height: 24px; }
.login-card h1 { font-size: 24px; letter-spacing: -.015em; margin-bottom: 6px; }
.login-sub { font-size: 14px; margin-bottom: 22px; }
.login-card .field { margin-bottom: 14px; gap: 6px; }
.login-card .field > span { font-size: 13px; }
.login-card .field input { height: 44px; border-radius: 10px; padding: 0 14px; font-size: 14.5px; }
.login-card .input-wrap input { padding-inline-end: 44px; }
.login-card .input-eye { width: 32px; height: 32px; inset-inline-end: 6px; }
.login-card .btn-lg { height: 46px; font-size: 15px; border-radius: 10px; margin-top: 4px; }
.login-divider { margin: 22px 0 16px; }
.login-note { padding: 10px 14px; gap: 10px; border-radius: 10px; font-size: 12.5px; }
.login-note svg { width: 18px; height: 18px; }

/* ---- reseller login, same layout as the reference (2026-11-16) ---- */
.login-card { max-width: 560px; padding: 44px 44px 36px; border-radius: 24px; }
.login-card .tile-icon { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 26px; box-shadow: 0 12px 26px -10px rgba(245,158,11,.75); }
.login-card .tile-icon svg { width: 30px; height: 30px; }
.login-card h1 { font-size: 34px; letter-spacing: -.02em; margin-bottom: 26px; }
.login-card .field { margin-bottom: 20px; gap: 8px; }
.login-card .field > span { font-size: 15px; }
.login-card .field input { height: 52px; border-radius: 12px; padding: 0 16px; font-size: 15px; }
.login-card .input-wrap input { padding-inline-end: 50px; }
.login-card .input-eye { width: 36px; height: 36px; inset-inline-end: 8px; }
.login-card .btn-lg { height: 54px; font-size: 16px; border-radius: 12px; margin-top: 8px; }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 600; color: var(--text); }
.forgot-link { font-size: 14.5px; font-weight: 600; color: #b45309; text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }
[data-theme="dark"] .forgot-link { color: #fbbf24; }
.login-divider { margin: 28px 0 20px; }
.login-note { padding: 12px 16px; border-radius: 12px; font-size: 13.5px; }

/* ---- final compact reseller login (2026-11-16 b) ---- */
.login-header { height: 60px; padding: 0 28px; }
.login-logo { height: 34px; }
.login-tools .lang-btn, .login-tools .icon-btn { height: 36px; font-size: 13px; }
.login-main { place-items: center; padding: 28px 16px 36px; }
.login-card { max-width: 380px; padding: 28px 28px 22px; border-radius: 16px; }
.login-card .tile-icon { width: 44px; height: 44px; border-radius: 11px; margin-bottom: 14px; box-shadow: 0 8px 16px -8px rgba(245,158,11,.7); }
.login-card .tile-icon svg { width: 22px; height: 22px; }
.login-card h1 { font-size: 22px; margin-bottom: 18px; }
.login-card .field { margin-bottom: 12px; gap: 5px; }
.login-card .field > span, .field-row { font-size: 13px; }
.forgot-link { font-size: 12.5px; }
.login-card .field input { height: 40px; border-radius: 9px; padding: 0 12px; font-size: 14px; }
.login-card .input-wrap input { padding-inline-end: 40px; }
.login-card .input-eye { width: 30px; height: 30px; inset-inline-end: 5px; }
.login-card .btn-lg { height: 42px; font-size: 14.5px; border-radius: 9px; margin-top: 4px; }
.login-divider { margin: 18px 0 14px; }
.login-note { padding: 9px 12px; gap: 9px; border-radius: 9px; font-size: 12px; }
.login-note svg { width: 16px; height: 16px; }

/* ---- new reseller requests (2026-11-16) ---- */
.reg-card { margin-bottom: 18px; border: 1px solid #fcd9a1; background: #fffbf3; }
.reg-card h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.reg-card h2 .i { width: 18px; height: 18px; color: var(--amber, #f59e0b); }
.reg-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #f59e0b; color: #fff; font-size: 12px; }
.reg-help { margin: 0 0 10px; }
.reg-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid #f6e3bf; }
.reg-who, .reg-amt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.reg-amt { align-items: flex-end; }
.reg-tx { word-break: break-all; font-size: 12px; }
@media (max-width: 720px) { .reg-row { grid-template-columns: 1fr; } .reg-amt { align-items: flex-start; } }

/* ---- distributors (2026-11-16) ---- */
.dist-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; font-size: 11px; font-weight: 700; vertical-align: middle; }
.dist-hero { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 16px; background: #fffbf3; border: 1px solid #fcd9a1; }
.dist-hero .i { width: 26px; height: 26px; color: #f59e0b; flex: none; }
.dist-hero div { display: flex; flex-direction: column; gap: 2px; }

/* ================= reseller panel v2 (2026-11-16) ================= */
:root { --sidebar-w: 256px; }
.sidebar { padding: 16px 14px 12px; overflow-y: auto; }
.sidebar-head { padding: 2px 6px 16px; }
.brand img { height: 40px; }

/* credits card */
.side-credits { margin: 0 2px 14px; }
.sc-card { border-radius: 14px; padding: 12px 14px; background: var(--amber-50); border: 1px solid var(--amber-100); }
.sc-card.low { background: var(--red-50); border-color: rgba(239, 68, 68, .25); }
.sc-top { display: flex; align-items: center; justify-content: space-between; }
.sc-label { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-800); }
.sc-card.low .sc-label { color: var(--red-700); }
.sc-ic .i { width: 18px; height: 18px; color: var(--amber-700); }
.sc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.sc-num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--text); }
.sc-sub { font-size: 12px; font-weight: 700; color: var(--muted); }
.sc-buy { height: 32px; padding: 0 12px; }

/* grouped navigation */
.nav { gap: 2px; }
.nav-group { display: grid; gap: 2px; margin-bottom: 10px; }
.nav-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 8px 12px 4px; }
.nav-item { height: 40px; padding: 0 12px; gap: 11px; font-size: 14px; font-weight: 600; border-radius: 10px; }
.nav-item .i { width: 18px; height: 18px; }
.nav-item.active { border-color: transparent; background: var(--amber-50); box-shadow: inset 3px 0 0 var(--amber-600); }
[dir="rtl"] .nav-item.active { box-shadow: inset -3px 0 0 var(--amber-600); }

/* user block */
.side-user { margin-top: auto; position: relative; padding-top: 10px; border-top: 1px solid var(--border); }
.side-user-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; border: 1px solid transparent; background: transparent; text-align: start; }
.side-user-btn:hover { background: var(--surface-3); }
.su-meta { display: grid; gap: 3px; min-width: 0; flex: 1; }
.su-meta b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-chev { width: 16px; height: 16px; color: var(--muted); }
.role-badge { justify-self: start; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); }
.role-dist { background: #eef2ff; color: #4338ca; }
.role-admin { background: #111827; color: #fff; }
[data-theme="dark"] .role-dist { background: rgba(99, 102, 241, .18); color: #a5b4fc; }
.user-pop { position: absolute; bottom: calc(100% + 6px); inset-inline: 0; z-index: 50; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; gap: 2px; }
.up-head { padding: 8px 10px 10px; display: grid; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.up-head b { font-size: 13.5px; } .up-head small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.up-item { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 9px; border: 0; background: transparent; font-weight: 600; font-size: 13.5px; color: var(--text-2); width: 100%; text-align: start; }
.up-item .i { width: 17px; height: 17px; }
.up-item:hover { background: var(--surface-3); color: var(--text); }
.up-danger { color: var(--red-700); } .up-danger:hover { background: var(--red-50); color: var(--red-700); }
.up-sep { height: 1px; background: var(--border); margin: 4px 2px; }

/* topbar is lighter now */
.topbar { height: 60px; }
.topbar .lang-btn, .topbar .icon-btn { height: 38px; }
.page-head h1 { font-size: 24px; }

/* customers */
.cust-toolbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cust-toolbar .search { flex: 1 1 260px; max-width: 380px; }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 650; font-size: 13px; color: var(--text-2); }
.fchip b { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--surface-3); font-size: 11.5px; }
.fchip:hover { border-color: var(--faint); }
.fchip.on { background: #111827; border-color: #111827; color: #fff; }
.fchip.on b { background: rgba(255,255,255,.18); color: #fff; }
[data-theme="dark"] .fchip.on { background: var(--amber); border-color: var(--amber); color: #111827; }
[data-theme="dark"] .fchip.on b { background: rgba(0,0,0,.15); color: #111827; }
.fchip-expiring b { background: var(--orange-50); color: var(--orange); }
.fchip-expired b { background: var(--red-50); color: var(--red-700); }
.cust-table td { padding: 12px 16px; }
.mac-cell { display: inline-flex; align-items: center; gap: 6px; }
.mac-cell .mono { font-size: 14px; }
.icon-btn-xs { width: 28px; height: 28px; border-radius: 8px; border-color: transparent; background: transparent; color: var(--muted); }
.icon-btn-xs .i { width: 15px; height: 15px; }
.icon-btn.copied { color: var(--green); }
.note-btn { display: inline-flex; align-items: center; gap: 7px; max-width: 220px; padding: 5px 8px; margin-inline-start: -8px; border-radius: 8px; border: 1px dashed transparent; background: transparent; font-size: 13.5px; text-align: start; }
.note-btn .i { width: 14px; height: 14px; color: var(--faint); flex: none; }
.note-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.note-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.devinfo { display: inline-flex; align-items: center; gap: 10px; }
.devinfo > div { display: grid; line-height: 1.25; }
.devinfo b { font-size: 13.5px; font-weight: 700; }
.devinfo small { font-size: 12px; color: var(--muted); }
.flag { width: 24px; height: 17px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; }
.flag-none { display: inline-grid; place-items: center; box-shadow: none; color: var(--faint); }
.flag-none .i { width: 16px; height: 16px; }
.subcell, .lastcell { display: grid; gap: 4px; justify-items: start; }
.subcell small, .lastcell small { font-size: 12px; color: var(--muted); }
.lastcell span { font-weight: 600; font-size: 13.5px; }
.warn-txt { color: var(--orange); font-weight: 700; }
.sbadge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.sbadge .i { width: 13px; height: 13px; }
.sb-on { background: var(--green-50); color: var(--green-700); }
.sb-warn { background: var(--orange-50); color: var(--orange); }
.sb-trial { background: var(--blue-50); color: var(--blue-700); }
.sb-life { background: var(--amber-100); color: var(--amber-800); }
.sb-exp { background: var(--red-50); color: var(--red-700); }
.sb-off { background: var(--surface-3); color: var(--muted); }
.cust-table .row-actions { justify-content: flex-end; gap: 6px; }

/* "..." menu */
.dd { position: fixed; z-index: 70; min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; gap: 1px; animation: ddIn .12s ease-out; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px); } }
.dd-head { font-size: 12px; color: var(--muted); padding: 6px 10px 8px; }
.dd-item { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 13.5px; color: var(--text-2); text-align: start; width: 100%; }
.dd-item .i { width: 17px; height: 17px; color: var(--muted); }
.dd-item:hover { background: var(--surface-3); color: var(--text); }
.dd-danger, .dd-danger .i { color: var(--red-700); }
.dd-danger:hover { background: var(--red-50); color: var(--red-700); }
.dd-sep { height: 1px; background: var(--border); margin: 4px 2px; }

/* activate / renew: option rows */
.modal-md { max-width: 540px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.opt { position: relative; cursor: pointer; display: block; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-box { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--surface); transition: border-color .15s, background-color .15s; height: 100%; }
.opt:hover .opt-box { border-color: var(--faint); }
.opt-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; position: relative; transition: border-color .15s; }
.opt input:checked + .opt-box { border-color: var(--amber-600); background: var(--amber-50); }
.opt input:checked + .opt-box .opt-radio { border-color: var(--amber-600); }
.opt input:checked + .opt-box .opt-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--amber-600); }
.opt input:focus-visible + .opt-box { box-shadow: var(--ring); }
.opt-main { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.opt-main b { font-size: 15px; }
.opt-main small { font-size: 12px; color: var(--muted); }
.opt-price { font-weight: 800; font-size: 13.5px; white-space: nowrap; padding: 4px 9px; border-radius: 99px; background: var(--surface-3); }
.opt input:checked + .opt-box .opt-price { background: var(--amber); color: #111827; }
.opt.is-disabled { cursor: not-allowed; } .opt.is-disabled .opt-box { opacity: .55; background: var(--surface-2); }
.bal-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.bal-line .i { width: 17px; height: 17px; color: var(--amber-700); }
.bal-line b { color: var(--text); }
.bal-line b.neg { color: var(--red); }
.bal-after { display: inline-flex; align-items: center; gap: 6px; }
.bal-after .i { color: var(--faint); width: 15px; height: 15px; }
.bal-buy { margin-inline-start: auto; }

/* playlists modal */
.mac-chip { display: inline-block; padding: 2px 9px; border-radius: 7px; background: var(--surface-3); font-size: 12.5px; color: var(--text); }
.pl-cards { display: grid; gap: 12px; }
.pl-card { border: 1px solid var(--border-strong); border-radius: 14px; padding: 14px; background: var(--surface); }
.pl-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pl-badge { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--amber-100); color: var(--amber-800); white-space: nowrap; }
.pl-name { height: 38px !important; flex: 1; }
.pl-tabs { margin-bottom: 12px; display: inline-flex; }
.pl-tabs .i { width: 15px; height: 15px; }
.pl-card-body .field { margin-bottom: 10px; }
.pl-card-body .field:last-child { margin-bottom: 0; }
.pl-x { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.pl-x .field { margin: 0; }
.file-drop { display: flex; align-items: center; gap: 10px; padding: 16px; border: 1.5px dashed var(--border-strong); border-radius: 12px; cursor: pointer; background: var(--surface-2); font-weight: 600; font-size: 13.5px; }
.file-drop:hover { border-color: var(--amber-600); }
.file-drop input { display: none; }
.file-drop .i { width: 20px; height: 20px; color: var(--muted); }
.file-drop small { margin-inline-start: auto; }
.file-drop.has-file { border-style: solid; border-color: var(--green); background: var(--green-50); }
.file-drop.has-file .i { color: var(--green); }
.pl-addrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.foot-start { margin-inline-end: auto; }

/* check MAC */
.check-card { display: flex; gap: 12px; align-items: center; padding: 14px; margin-bottom: 18px; }
.check-input { flex: 1; height: 52px; }
.check-input input { font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.empty-big { text-align: center; padding: 56px 24px; display: grid; justify-items: center; gap: 8px; }
.empty-big h3 { font-size: 18px; font-weight: 800; }
.empty-big p { max-width: 420px; }
.empty-big .empty-ic { margin-bottom: 6px; }
.empty-ic-amber { background: var(--amber-100) !important; color: var(--amber-700) !important; }
.empty-ic-green { background: var(--green-50) !important; color: var(--green) !important; }
.chk-res { padding: 22px; }
.chk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.chk-mac { font-size: 20px; }
.chk-kv { margin-bottom: 16px; }
.chk-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* purchase credits */
.buy-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-bottom: 18px; align-items: start; }
.step-n { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--amber); color: #111827; font-size: 13px; font-weight: 800; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tier-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.tier-row { display: grid; grid-template-columns: 1fr 1.6fr 70px; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 13.5px; }
.tier-row:first-child { border-top: 0; }
.tier-h { background: var(--surface-2); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.tier-row.on { background: var(--amber-50); box-shadow: inset 3px 0 0 var(--amber-600); }
.off-badge { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--green-50); color: var(--green-700); }
.money { direction: ltr; unicode-bidi: isolate; }
.dist-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.dist-note .i { width: 16px; height: 16px; color: var(--amber-700); margin-top: 1px; }
.order { border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); padding: 4px 14px; margin-bottom: 14px; }
.o-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.o-row > span:first-child { color: var(--muted); }
.o-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.o-total > span { font-weight: 800; }
.o-total .money { display: grid; justify-items: end; }
.o-total .money b { font-size: 24px; font-weight: 800; }
.paybox { border: 1px solid var(--border-strong); border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.paybox-top { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.paybox-top > div { display: grid; }
.pay-logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #fcd535; color: #1e2026; }
.payid { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.payid .mono { font-size: 18px; }
.pay-steps { margin: 12px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; color: var(--text-2); }
.sent-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--green-50); }
.sent-box > .i { width: 24px; height: 24px; color: var(--green); }
.hist-list { display: grid; }
.hist-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.hist-row:first-child { border-top: 0; }
.hist-mid { display: grid; }

/* transfer balance */
.info-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--blue-50); border: 1px solid rgba(59,130,246,.22); margin-bottom: 18px; }
.info-banner > .i { width: 20px; height: 20px; color: var(--blue); margin-top: 1px; }
.info-banner > div { display: grid; gap: 2px; font-size: 13.5px; color: var(--text-2); }
.team-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.team-head h2 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.count-pill { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: var(--surface-3); }
.team-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.team-actions .search { width: 240px; }
.team-row { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); }
.team-row:first-child { border-top: 0; }
.team-who, .team-stat { display: grid; gap: 2px; min-width: 0; }
.team-who small { overflow: hidden; text-overflow: ellipsis; }
.team-stat { justify-items: end; }

/* support */
.sup-grid { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.sup-side { display: grid; gap: 14px; }
.sup-card { display: flex; gap: 14px; align-items: flex-start; }
.sup-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.sup-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-100); color: var(--amber-700); flex: none; }
.sup-ic.ic-blue { background: var(--blue-50); color: var(--blue); }
.sup-mail { display: block; margin-top: 6px; font-size: 13.5px; word-break: break-all; }
.sup-tip { background: var(--blue-50); border-color: rgba(59,130,246,.2); box-shadow: none; }
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.topic { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 12px; border: 1.5px solid var(--border-strong); background: var(--surface); font-weight: 650; font-size: 13px; color: var(--text-2); }
.topic .i { width: 20px; height: 20px; color: var(--muted); }
.topic.on { border-color: var(--amber-600); background: var(--amber-50); color: var(--text); }
.topic.on .i { color: var(--amber-700); }
.textarea { height: auto !important; padding: 12px 14px !important; resize: vertical; min-height: 140px; line-height: 1.5; }
.kind-tag { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 99px; background: var(--green-50); color: var(--green-700); font-size: 11px; font-weight: 700; vertical-align: middle; }
.kind-new { background: var(--blue-50); color: var(--blue-700); }

@media (max-width: 1100px) {
  .buy-grid, .sup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .cust-table tr { grid-template-columns: 1fr 1fr; }
  .cust-table td.td-actions .row-actions { justify-content: flex-start; }
  .team-row { grid-template-columns: auto 1fr; }
  .team-row .team-stat { justify-items: start; }
  .team-row .row-actions { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .cust-toolbar .search { max-width: none; flex-basis: 100%; }
  .opts { grid-template-columns: 1fr; }
  .pl-x { grid-template-columns: 1fr; }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-card { flex-direction: column; align-items: stretch; }
  .hist-row { grid-template-columns: auto 1fr; }
  .team-actions, .team-actions .search { width: 100%; }
  .modal-foot .foot-start { flex-basis: 100%; }
}
[data-theme="dark"] .role-admin { background: var(--amber); color: #111827; }

/* ---- brand logos + Check MAC v2 (2026-11-16) ---- */
.blogo { display: inline-grid; flex: none; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 0 0 1px rgba(16,24,40,.05); }
.blogo svg { width: 100%; height: 100%; display: block; }
.blogo-xs { width: 20px; height: 20px; border-radius: 6px; }
.blogo-sm { width: 34px; height: 34px; border-radius: 9px; }
.blogo-md { width: 40px; height: 40px; }
.blogo-xl { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 10px 24px -12px rgba(16,24,40,.45), 0 0 0 1px rgba(16,24,40,.05); }
.devinfo b { display: inline-flex; align-items: center; gap: 6px; }
.devinfo b .flag { width: 18px; height: 13px; border-radius: 2px; }
.dev-list .blogo, .dl-main + .blogo { margin: 0; }
.pbar-top span { display: inline-flex; align-items: center; gap: 8px; }
.pbar-samsung { background: #1428A0; } .pbar-android { background: #3DDC84; } .pbar-androidtv { background: #073042; }
.pbar-windows { background: #0078D4; } .pbar-lg { background: #A50034; } .pbar-unknown { background: #9ca3af; }

.chk2 { padding: 0; overflow: hidden; }
.chk2-hero { display: flex; align-items: center; gap: 20px; padding: 24px; background:
  radial-gradient(600px 200px at 0% 0%, rgba(251,191,36,.12), transparent 70%), var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.chk2-id { flex: 1; min-width: 240px; display: grid; gap: 8px; }
.chk2-macrow { display: flex; align-items: center; gap: 6px; }
.chk2-mac { font-size: 26px; letter-spacing: .04em; }
.chk2-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ltag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700; }
.ltag .i { width: 13px; height: 13px; }
.ltag i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.ltag-on { background: var(--green-50); color: var(--green-700); }
.ltag-on i { background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.25); animation: livePulse 1.8s ease-in-out infinite; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); } }
.ltag-mine { background: var(--amber-50); color: var(--amber-800); }
.ltag-warn { background: var(--orange-50); color: var(--orange); }
.chk2-note { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--text-2); }
.chk2-note .i { width: 15px; height: 15px; color: var(--faint); }
.chk2-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.sstrip { margin: 20px 24px 4px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.sstrip-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sstrip-top span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); font-size: 13px; }
.sstrip-top .i { width: 16px; height: 16px; }
.sstrip-top b { font-size: 17px; }
.sbar { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; }
.sbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #34d399, #10b981); }
.sstrip-warn .sbar i { background: linear-gradient(90deg, #fdba74, #f97316); }
.sstrip-exp .sbar i { background: var(--red); }
.sstrip-life .sbar i { background: linear-gradient(90deg, var(--amber), var(--amber-600)); }
.sstrip-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.sstrip-warn .sstrip-foot span:first-child { color: var(--orange); }
.sstrip-exp .sstrip-foot span:first-child { color: var(--red-700); }

.chk2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 24px 24px; }
.ctile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.ctile-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.ctile-ic .i { width: 19px; height: 19px; }
.ctile-ic .blogo-sm { width: 40px; height: 40px; border-radius: 11px; }
.ctile-ic .flag { width: 28px; height: 20px; }
.ctile-txt { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.ctile-txt small { font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.ctile-txt b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctile-txt span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .chk2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .chk2-hero { padding: 18px; gap: 14px; }
  .blogo-xl { width: 60px; height: 60px; border-radius: 16px; }
  .chk2-mac { font-size: 20px; }
  .chk2-actions, .chk2-actions .btn { width: 100%; }
  .sstrip { margin: 16px 16px 4px; }
  .chk2-grid { grid-template-columns: 1fr; padding: 14px 16px 18px; }
}

/* ---- Transfer balance v2 (same look as the reference) ---- */
.tr-banner { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 18px; background: #fffbea; border: 1px solid #fcd977; margin-bottom: 24px; }
.tr-banner > .i { width: 22px; height: 22px; color: var(--amber-700); flex: none; margin-top: 1px; }
.tr-banner p { font-size: 15px; line-height: 1.55; color: var(--text); }
[data-theme="dark"] .tr-banner { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.35); }
.tr-card { padding: 0; overflow: hidden; border-radius: 24px; }
.tr-head { padding: 30px 32px 22px; }
.tr-head h2 { font-size: 23px; font-weight: 800; display: flex; align-items: center; gap: 12px; letter-spacing: -.015em; }
.tr-head .count-pill { font-size: 14px; padding: 3px 11px; }
.tr-head > p { margin: 8px 0 20px; font-size: 15.5px; }
.tr-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.tr-btns .btn { height: 54px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.tr-btns .btn .i { width: 20px; height: 20px; }
.tr-search { width: 100%; height: 54px; border-radius: 14px; }
.tr-search input { font-size: 15.5px; }
.tr-table { border-top: 1px solid var(--border); }
.tr-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) 300px; gap: 16px; align-items: center; padding: 16px 32px; border-top: 1px solid var(--border); }
.tr-row:first-child { border-top: 0; }
.tr-th { padding-top: 18px; padding-bottom: 18px; font-size: 15px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.tr-who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.tr-who > div { display: grid; min-width: 0; }
.tr-who b { font-size: 16.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-who small { font-size: 15px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-av { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fdf2c9; color: #a16207; font-weight: 700; font-size: 18px; border: 1px solid #fbe39b; }
[data-theme="dark"] .tr-av { background: rgba(251,191,36,.15); color: var(--amber); border-color: rgba(251,191,36,.3); }
.sb-line { border: 1px solid rgba(16,185,129,.35); height: 28px; font-size: 14.5px; font-weight: 600; padding: 0 12px; }
.tr-acts { display: flex; gap: 12px; justify-content: flex-end; }
.tr-acts .btn { height: 52px; padding: 0 20px; font-size: 16px; border-radius: 14px; font-weight: 600; }
.tr-acts .btn-soft { background: #fff9e6; border-color: #fcd977; color: #92400e; }
.tr-acts .btn-soft:hover { background: #fef3c7; }
[data-theme="dark"] .tr-acts .btn-soft { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.4); color: var(--amber); }
.tr-acts .btn .i { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .tr-head { padding: 22px 18px 16px; }
  .tr-th { display: none; }
  .tr-row { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 18px; }
  .tr-acts { grid-column: 1 / -1; justify-content: stretch; }
  .tr-acts .btn { flex: 1; height: 46px; font-size: 15px; }
  .tr-btns .btn { flex: 1 1 200px; height: 48px; font-size: 15px; }
  .tr-av { width: 46px; height: 46px; font-size: 16px; }
}

/* ---- Transfer by email ---- */
.tr-card + .tr-card { margin-top: 20px; }
.tr-head h2 .i { width: 22px; height: 22px; color: var(--amber-700); }
.tr-head-sm { padding-bottom: 14px; }
.tx-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.tx-grid .field { margin: 0; }
.tx-grid .input { height: 54px; border-radius: 14px; font-size: 15.5px; }
.tx-grid .btn { height: 54px; border-radius: 14px; }
.tx-form .quick { margin: 12px 0 0; }
.tx-who { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.tx-who > div { display: grid; min-width: 0; }
.tx-who small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tx-amount { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 20px 0 14px; }
.tx-amount b { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.tx-amount span { color: var(--muted); font-weight: 700; }
.tx-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 32px; border-top: 1px solid var(--border); }
.tx-row:first-child { border-top: 0; }
.tx-dir { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.tx-dir .i { width: 18px; height: 18px; }
.tx-out { background: var(--amber-50); color: var(--amber-700); }
.tx-in { background: var(--green-50); color: var(--green); }
.tx-amt { font-size: 17px; min-width: 70px; text-align: end; }
.tx-amt.neg { color: var(--text); } .tx-amt.pos { color: var(--green-700); }
.tx-empty { padding: 0 32px 26px; }
@media (max-width: 860px) {
  .tx-grid { grid-template-columns: 1fr; }
  .tx-row { grid-template-columns: auto minmax(0, 1fr) auto; padding: 12px 18px; }
  .tx-row > small { grid-column: 2; grid-row: 2; }
  .tx-empty { padding: 0 18px 20px; }
}

/* ---- TOP Player ID ---- */
.up-id { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 8px; border-radius: 8px; border: 1px dashed var(--amber-600); background: var(--amber-50); color: var(--amber-800); font-weight: 700; font-size: 12px; max-width: 100%; }
.up-id span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.up-id .i { width: 13px; height: 13px; flex: none; }
.topid-chip { display: inline-block; padding: 2px 9px; border-radius: 8px; background: var(--amber-50); color: var(--amber-800); font-weight: 700; direction: ltr; }
.topid-line { display: inline-flex; align-items: center; gap: 5px; color: var(--amber-800); font-weight: 650; direction: ltr; }
.topid-line .i { width: 13px; height: 13px; }
.sidebar { overflow-x: hidden; }
.up-head { min-width: 0; overflow: hidden; }
.up-id { width: 100%; }
.up-id span { flex: 1; min-width: 0; text-align: start; }

/* ---- reseller edit ---- */
.tone-on { color: var(--amber-700); background: var(--amber-50); border-color: var(--amber-100); }
.id-wrap { display: flex; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; direction: ltr; }
.id-wrap:focus-within { border-color: var(--amber-600); box-shadow: var(--ring); }
.id-wrap input { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; flex: 1; min-width: 0; text-transform: lowercase; }
.id-wrap span { display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); border-left: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: 13px; }
.pw-box { padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.pw-box .field { margin-bottom: 0; }
.pw-box .field-label { margin-top: 0; }
.pw-box .field-label .i { width: 16px; height: 16px; color: var(--amber-700); }
.fp-again { border: 0; background: none; padding: 0; cursor: pointer; }
.fp-again .i { width: 14px; height: 14px; }
#fp2 .input-big { letter-spacing: .4em; text-align: center; }

/* ---- Download APK window: compact, same look as the website ---- */
.apkm { position: relative; width: 100%; max-width: 460px; background: var(--surface); border-radius: 22px; padding: 18px 18px 14px;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .18s, transform .18s; }
.apkm-wrap.show .apkm { opacity: 1; transform: none; }
.apkm-wrap.show .modal-backdrop { opacity: 1; }
.apkm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.apkm-app { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 6px 16px -6px rgba(10,15,30,.5); flex: none; }
.apkm-title h3 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.apkm-title p { display: flex; align-items: center; gap: 7px; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.apkm-badge { padding: 1px 8px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); font-weight: 800; font-size: 11px; }
.apkm-x { margin-inline-start: auto; align-self: flex-start; width: 32px; height: 32px; border-radius: 9px; border: 0; background: var(--surface-3); color: var(--text-2); display: grid; place-items: center; }
.apkm-x:hover { background: var(--border); }
.apkm-x .i { width: 17px; height: 17px; }
.apkm-main { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 14px 0 9px; border-radius: 14px; color: #111827;
  background: linear-gradient(180deg, #fcd34d, #fbbf24); box-shadow: 0 10px 22px -12px rgba(245,158,11,.95), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .12s, box-shadow .12s; }
.apkm-main:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(245,158,11,1), inset 0 1px 0 rgba(255,255,255,.5); }
.apkm-main-logo { width: 42px; height: 42px; border-radius: 11px; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 2px 6px rgba(120,70,0,.18); }
.apkm-main-logo svg { width: 28px; height: 16px; margin-top: 4px; }
.apkm-main-txt { flex: 1; display: grid; line-height: 1.2; }
.apkm-main-txt strong { font-size: 15.5px; font-weight: 800; }
.apkm-main-txt small { font-size: 12px; color: #6b4a00; margin-top: 2px; }
.apkm-go .i { width: 20px; height: 20px; stroke-width: 2.3; }
.apkm-sep { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--faint); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.apkm-sep::before, .apkm-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
html[lang="ar"] .apkm-sep { letter-spacing: 0; font-size: 12px; }
.apkm-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 10px; }
.apkm-box { border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.apkm-box small { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.apkm-box-head { display: flex; align-items: center; gap: 8px; }
.apkm-box-head strong { font-size: 13.5px; font-weight: 700; }
.apkm-dl-logo { width: 26px; height: 26px; border-radius: 7px; }
.apkm-phone { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); display: grid; place-items: center; }
.apkm-phone .i { width: 15px; height: 15px; }
.apkm-code { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 6px 6px 10px; border-radius: 9px; background: #0f1524; }
.apkm-code code { color: #fcd34d; font-family: var(--mono); font-size: 12px; font-weight: 700; direction: ltr; word-break: break-all; }
.apkm-linkcopy, .apkm-dlcopy { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 0; display: grid; place-items: center; cursor: pointer; transition: background-color .15s, color .15s; }
.apkm-linkcopy { background: rgba(255,255,255,.08); color: #cbd5e1; }
.apkm-linkcopy:hover { background: rgba(255,255,255,.16); color: #fff; }
.apkm-linkcopy .i, .apkm-dlcopy .i { width: 15px; height: 15px; }
.apkm-linkcopy.copied { color: #4ade80; }
.apkm-dlcode { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 9px; background: #fff7e6; border: 1px solid #fcd9a1; color: #92400e; font-size: 11.5px; font-weight: 600; }
.apkm-dlcode span { flex: 1; line-height: 1.2; }
.apkm-dlcode strong { font-size: 17px; font-weight: 800; letter-spacing: .08em; color: #c2410c; direction: ltr; }
.apkm-dlcopy { background: #fde7c0; color: #b45309; }
.apkm-dlcopy:hover { background: #fbd38d; color: #7c2d12; }
.apkm-dlcopy.copied { background: #d1fae5; color: #047857; }
[data-theme="dark"] .apkm-dlcode { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.3); color: var(--amber); }
[data-theme="dark"] .apkm-dlcode strong { color: var(--amber); }
[data-theme="dark"] .apkm-dlcopy { background: rgba(251,191,36,.18); color: var(--amber); }
.apkm-box-qr { align-items: stretch; }
.apkm-qr { align-self: center; width: 84px; height: 84px; padding: 4px; border-radius: 9px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; margin-top: 2px; }
.apkm-qr img, .apkm-qr canvas { width: 74px !important; height: 74px !important; image-rendering: pixelated; }
.apkm-note { margin: 10px 2px 0; font-size: 11.5px; color: var(--faint); text-align: center; }
@media (max-width: 520px) {
  .apkm-wrap { place-items: end center; padding: 0; }
  .apkm { border-radius: 20px 20px 0 0; max-height: 94vh; overflow-y: auto; }
  .apkm-grid { grid-template-columns: 1fr; }
}

/* ---- sidebar: fixed logo + user, scrolling middle, collapsible rail (2026-11-21) ---- */
.sidebar { overflow: hidden; }
.sidebar-head { flex: none; gap: 8px; }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; margin-inline: -14px; padding-inline: 14px; scrollbar-width: thin; }
.side-user { flex: none; margin-top: 8px; }
.brand-mini { display: none; width: 36px; height: 36px; object-fit: contain; }
.sidebar-collapse { flex: none; width: 34px; height: 34px; transition: transform .22s ease; }
.sidebar-collapse svg { width: 18px; height: 18px; }
.sc-mini { display: none; }
@media (max-width: 1024px) { .sidebar-collapse { display: none; } }
@media (min-width: 1025px) {
  .sidebar { transition: width .22s ease, padding .22s ease; }
  .main { transition: margin .22s ease; }
  body.sb-mini { --sidebar-w: 76px; }
  body.sb-mini .sidebar { padding-inline: 10px; overflow: visible; }
  body.sb-mini .side-scroll { margin-inline: -10px; padding-inline: 10px; }
  body.sb-mini .sidebar-head { flex-direction: column; justify-content: flex-start; padding: 2px 0 12px; }
  body.sb-mini .brand { justify-content: center; }
  body.sb-mini .brand-full, body.sb-mini .brand-tag { display: none; }
  body.sb-mini .brand-mini { display: block; }
  body.sb-mini .sidebar-collapse { transform: rotate(180deg); }
  body.sb-mini .side-credits { margin: 0 0 12px; }
  body.sb-mini .sc-card { display: none; }
  body.sb-mini .sc-mini { display: grid; place-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; background: var(--amber-50); border: 1px solid var(--amber-100); color: var(--text); font-size: 13px; font-weight: 800; text-decoration: none; overflow: hidden; }
  body.sb-mini .sc-mini.low { background: var(--red-50); border-color: rgba(239, 68, 68, .25); }
  body.sb-mini .sc-mini .i { width: 18px; height: 18px; color: var(--amber-700); }
  body.sb-mini .sc-mini b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.sb-mini .nav-label { display: none; }
  body.sb-mini .nav-group { margin-bottom: 6px; }
  body.sb-mini .nav-group + .nav-group { border-top: 1px solid var(--border); padding-top: 6px; }
  body.sb-mini .nav-item { justify-content: center; padding: 0; height: 42px; }
  body.sb-mini .nav-item > span { display: none; }
  body.sb-mini .nav-item .i { width: 20px; height: 20px; }
  body.sb-mini .nav-item.active, [dir="rtl"] body.sb-mini .nav-item.active { box-shadow: none; }
  body.sb-mini .su-meta, body.sb-mini .su-chev { display: none; }
  body.sb-mini .side-user-btn { justify-content: center; padding: 6px 0; }
  body.sb-mini .user-pop { inset-inline-end: auto; width: 250px; }
}.brand .brand-mini { display: none; }
@media (min-width: 1025px) {
  body.sb-mini .brand .brand-full { display: none; }
  body.sb-mini .brand .brand-mini { display: block; height: 36px; width: 36px; }
}[dir="rtl"] .sidebar-collapse svg { transform: scaleX(-1); }

/* ---- reseller API page (2026-11-21) ---- */
.api-tabs { margin-bottom: 18px; display: inline-flex; }
.api-tabs button { display: inline-flex; align-items: center; gap: 8px; }
.api-tabs .i { width: 16px; height: 16px; }
.api-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.api-nav { position: sticky; top: calc(var(--topbar-h) + 16px); display: grid; gap: 2px; }
.api-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.api-nav a .i { width: 16px; height: 16px; }
.api-nav a:hover { background: var(--surface-3); color: var(--text); }
.api-nav a.on { background: var(--amber-50); color: var(--amber-800); }
.api-nav-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 4px; }
.api-main { display: grid; gap: 18px; min-width: 0; }
.api-sec { scroll-margin-top: calc(var(--topbar-h) + 16px); display: grid; gap: 12px; }
.api-sec-head { display: flex; gap: 14px; align-items: flex-start; }
.api-sec-head h2 { font-size: 19px; margin: 0 0 4px; }
.api-sec-head p { margin: 0; }
.api-sec-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-50); border: 1px solid var(--amber-100); color: var(--amber-700); }
.api-sec-ic .i { width: 20px; height: 20px; }
.api-row { display: flex; gap: 10px; align-items: center; }
.api-val { flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: var(--surface-2, var(--surface-3)); }
.api-limit { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: var(--amber-50); border: 1px solid #fcd34d; color: var(--amber-800); font-size: 13px; font-weight: 600; }
.api-limit .i { width: 15px; height: 15px; }
.api-nokey { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-3); color: var(--text-2); font-weight: 600; }
.api-nokey .i { width: 18px; height: 18px; color: var(--amber-700); flex: none; }
.api-key-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 14px; }
.api-check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.api-check input { width: 18px; height: 18px; accent-color: var(--amber-600); }
.api-regen { color: var(--red-700); }
.api-regen:hover { background: var(--red-50); color: var(--red-700); }
.api-steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; font-weight: 600; color: var(--text-2); }
.api-code { position: relative; }
.api-code pre { margin: 0; padding: 14px 48px 14px 16px; border-radius: 12px; background: #0f172a; color: #e2e8f0; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; text-align: left; }
.api-code-copy { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.08); color: #cbd5e1; border-color: transparent; }
.api-code-copy:hover { background: rgba(255,255,255,.16); color: #fff; }
.api-ep { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-3); }
.api-ep code { font: 600 14px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.api-m { display: inline-block; min-width: 46px; text-align: center; padding: 3px 8px; border-radius: 7px; font: 800 11.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.api-m-get { background: #dcfce7; color: #166534; }
.api-m-post { background: #dbeafe; color: #1e40af; }
[data-theme="dark"] .api-m-get { background: rgba(34,197,94,.18); color: #86efac; }
[data-theme="dark"] .api-m-post { background: rgba(59,130,246,.2); color: #93c5fd; }
.api-st { display: inline-block; padding: 2px 9px; border-radius: 99px; font: 700 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-3); color: var(--text-2); }
.api-st-2 { background: #dcfce7; color: #166534; }
.api-st-4 { background: #fef3c7; color: #92400e; }
.api-st-5 { background: var(--red-50); color: var(--red-700); }
[data-theme="dark"] .api-st-2 { background: rgba(34,197,94,.18); color: #86efac; }
[data-theme="dark"] .api-st-4 { background: rgba(245,158,11,.2); color: #fcd34d; }
.api-table td { vertical-align: top; }
.api-req { white-space: nowrap; }
.api-req code { margin-inline-start: 8px; font: 600 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 980px) {
  .api-grid { grid-template-columns: 1fr; }
  .api-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .api-nav-label { display: none; }
  .api-nav a { border: 1px solid var(--border); padding: 7px 10px; }
}
@media (max-width: 560px) {
  .api-row { flex-wrap: wrap; }
  .api-row .api-val { flex-basis: 100%; }
  .api-tabs { display: flex; }
}.api-sec > *, .api-main > * { min-width: 0; }
.api-code, .api-sec .table-wrap { max-width: 100%; overflow-x: auto; }
/* ---- API page: allowed IPs ---- */
.api-ips { display: grid; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-3); }
.api-ips-head { display: flex; gap: 10px; align-items: flex-start; }
.api-ips-head > .i { width: 20px; height: 20px; color: var(--amber-700); flex: none; margin-top: 2px; }
.api-ips-head p { margin: 2px 0 0; }
.api-ip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.api-ip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; }
.api-ip-warn { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--red-50); color: var(--red-700); font-weight: 600; font-size: 13.5px; }
.api-ip-warn .i { width: 16px; height: 16px; flex: none; }
.api-ips .api-row .input { flex: 1; min-width: 0; }
.api-ips > p { margin: 0; }
/* ---- new TOP Player logo (2026-11-28): yellow "tp" + wordmark, dark text on the light theme,
   white text on the dark theme (two images, one shown per theme) ---- */
.tp-logo-on-dark { display: none !important; }
[data-theme="dark"] .tp-logo-on-dark { display: block !important; }
[data-theme="dark"] .tp-logo-on-light { display: none !important; }
body.sb-mini .brand .brand-full.tp-logo-on-dark, body.sb-mini .brand .brand-full.tp-logo-on-light { display: none !important; }
.brand img.brand-full { height: 30px; width: auto; filter: none !important; }
.login-logo.tp-logo-on-light, .login-logo.tp-logo-on-dark { height: 34px; width: auto; filter: none !important; }
.brand img.brand-mini { border-radius: 8px; filter: none !important; }
@media (max-width: 760px) { .brand img.brand-full { height: 26px; } .login-logo.tp-logo-on-light, .login-logo.tp-logo-on-dark { height: 28px; } }

/* ---- Download APK window, pro look + "tp" logo inside the QR (2026-11-28) ---- */
.apkm { overflow: hidden; border: 1px solid var(--border); padding: 20px 20px 16px; max-width: 480px; }
.apkm > *:not(.apkm-glow) { position: relative; }
.apkm-glow { position: absolute; inset: -40% -20% auto -20%; height: 260px; pointer-events: none;
  background: radial-gradient(60% 60% at 30% 40%, rgba(251,191,36,.20), transparent 70%), radial-gradient(50% 55% at 85% 20%, rgba(99,102,241,.14), transparent 70%); }
.apkm-app { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 8px 22px -8px rgba(251,191,36,.55), 0 0 0 1px rgba(255,255,255,.06); }
.apkm-title h3 { font-size: 18.5px; }
.apkm-badge { background: rgba(251,191,36,.16); color: #b45309; }
[data-theme="dark"] .apkm-badge { color: #fcd34d; }
.apkm-main { height: 64px; border-radius: 16px; }
.apkm-main-logo { width: 46px; height: 46px; border-radius: 12px; }
.apkm-go { width: 34px; height: 34px; border-radius: 10px; background: rgba(17,24,39,.08); display: grid; place-items: center; transition: transform .15s; }
.apkm-main:hover .apkm-go { transform: translateX(3px); }
html[dir="rtl"] .apkm-main:hover .apkm-go { transform: translateX(-3px); }
.apkm-grid { grid-template-columns: 1.3fr 1fr; gap: 12px; }
.apkm-box { border-radius: 16px; padding: 14px; background: linear-gradient(180deg, rgba(255,255,255,.025), transparent); transition: border-color .15s; }
.apkm-box:hover { border-color: rgba(251,191,36,.45); }
.apkm-box-head strong { font-size: 14px; }
.apkm-dl-logo, .apkm-phone { width: 30px; height: 30px; border-radius: 9px; }
.apkm-box-qr { align-items: center; justify-content: space-between; }
.apkm-box-qr .apkm-box-head { align-self: stretch; }
/* QR: white card, yellow corner marks, the tp app icon in the middle */
.apkm-qrframe { position: relative; display: block; width: 136px; height: 136px; padding: 9px; border-radius: 14px; background: #fff; margin-top: 2px;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.55); }
.apkm-qrframe > i { position: absolute; width: 18px; height: 18px; border: 3px solid #fbbf24; }
.apkm-qrframe > i:nth-child(1) { top: -5px; left: -5px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.apkm-qrframe > i:nth-child(2) { top: -5px; right: -5px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.apkm-qrframe > i:nth-child(3) { bottom: -5px; left: -5px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.apkm-qrframe > i:nth-child(4) { bottom: -5px; right: -5px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.apkm-qrframe .apkm-qr { display: block; width: 118px; height: 118px; padding: 0; margin: 0; border: 0; border-radius: 0; background: #fff; }
.apkm-qrframe .apkm-qr img, .apkm-qrframe .apkm-qr canvas { width: 118px !important; height: 118px !important; image-rendering: auto; display: block; }
.apkm-qr-logo { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 8px;
  box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0,0,0,.25); }
.apkm-qr-cap { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.apkm-note { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
@media (max-width: 520px) { .apkm-qrframe { width: 150px; height: 150px; } .apkm-qrframe .apkm-qr, .apkm-qrframe .apkm-qr img, .apkm-qrframe .apkm-qr canvas { width: 132px !important; height: 132px !important; } }

/* =====================================================================
   LIQUID GLASS — 2026-11-30 (same look as the apps and topplayer.app):
   light glass by day, night-blue glass by night ([data-theme="dark"])
   ===================================================================== */
body {
  background:
    radial-gradient(900px 640px at 6% 4%, rgba(255, 214, 74, .26), transparent 65%),
    radial-gradient(900px 700px at 98% 18%, rgba(106, 170, 255, .24), transparent 65%),
    radial-gradient(800px 640px at 35% 96%, rgba(176, 120, 255, .16), transparent 65%),
    #f1f3f9 !important;
  background-attachment: fixed !important;
}
[data-theme="dark"] body {
  background:
    radial-gradient(900px 640px at 6% 4%, rgba(61, 99, 255, .36), transparent 65%),
    radial-gradient(900px 700px at 98% 30%, rgba(138, 77, 255, .28), transparent 65%),
    radial-gradient(800px 640px at 30% 98%, rgba(0, 194, 216, .14), transparent 65%),
    linear-gradient(160deg, #0d1430, #080b18) !important;
  background-attachment: fixed !important;
}
/* glass surfaces */
.card, .sidebar, .topbar, .login-card, .modal, .modal-card, .dialog, .sheet, .drawer, .dropdown, .menu, .apkm, .stat:not(.stat-credits) {
  background: linear-gradient(160deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .45)) !important;
  border: 1px solid rgba(255, 255, 255, .85) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 18px 40px -24px rgba(20, 30, 60, .30) !important;
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
}
[data-theme="dark"] .card, [data-theme="dark"] .sidebar, [data-theme="dark"] .topbar, [data-theme="dark"] .login-card,
[data-theme="dark"] .modal, [data-theme="dark"] .modal-card, [data-theme="dark"] .dialog, [data-theme="dark"] .sheet,
[data-theme="dark"] .drawer, [data-theme="dark"] .dropdown, [data-theme="dark"] .menu, [data-theme="dark"] .apkm, [data-theme="dark"] .stat:not(.stat-credits) {
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035)) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 24px 50px -26px rgba(0, 0, 0, .7) !important;
}
.card, .login-card, .stat { border-radius: 22px !important; }
.sidebar { border-radius: 0 24px 24px 0 !important; border-left: 0 !important; }
[dir="rtl"] .sidebar { border-radius: 24px 0 0 24px !important; border-right: 0 !important; border-left: 1px solid rgba(255,255,255,.85) !important; }
.topbar { border-radius: 0 0 22px 22px !important; border-top: 0 !important; }
/* the yellow credits card: glossy gold glass */
.stat-credits {
  background: linear-gradient(160deg, #fff07a 0%, #f8d22a 50%, #eebd0c 100%) !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .75), 0 18px 36px -18px rgba(238, 170, 0, .65) !important;
  border-radius: 22px !important;
}
/* menu */
.nav-item { border-radius: 14px !important; }
.nav-item.active {
  background: linear-gradient(180deg, rgba(255, 240, 160, .85), rgba(255, 214, 74, .55)) !important;
  border-color: rgba(255, 220, 120, .9) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
[data-theme="dark"] .nav-item.active { background: rgba(255, 214, 74, .16) !important; border-color: rgba(255, 214, 74, .45) !important; color: #ffd64a !important; }
/* buttons */
.btn { border-radius: 999px !important; }
.btn-primary {
  background: linear-gradient(180deg, #fff07a 0%, #f8d22a 55%, #eebd0c 100%) !important; color: #16181e !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .75), inset 0 -2px 0 rgba(160, 110, 0, .22), 0 10px 22px -10px rgba(238, 170, 0, .7) !important;
}
.btn-ghost, .icon-btn {
  background: rgba(255, 255, 255, .55) !important; border: 1px solid rgba(255, 255, 255, .9) !important;
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px -10px rgba(20, 30, 60, .3) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
[data-theme="dark"] .btn-ghost, [data-theme="dark"] .icon-btn {
  background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .22) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25) !important;
}
.btn-soft { background: rgba(255, 214, 74, .18) !important; border-color: rgba(255, 214, 74, .45) !important; }
/* fields */
input, select, textarea, .input {
  background: rgba(255, 255, 255, .6) !important; border-color: rgba(255, 255, 255, .95) !important;
  box-shadow: inset 0 1px 2px rgba(20, 30, 60, .06) !important;
}
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea, [data-theme="dark"] .input {
  background: rgba(255, 255, 255, .06) !important; border-color: rgba(255, 255, 255, .18) !important; color: #f3f6fc !important;
}
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(251, 191, 36, .28) !important; border-color: rgba(245, 180, 0, .8) !important; }
/* tables inside glass cards */
table th { background: transparent !important; }
table tr:hover td { background: rgba(255, 255, 255, .35) !important; }
[data-theme="dark"] table tr:hover td { background: rgba(255, 255, 255, .05) !important; }
.stat-ic { border-radius: 14px !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
/* login page: show the glass light behind the card; logo a little smaller so the PANEL chip fits */
.login, [data-theme="dark"] .login { background: transparent !important; }
.brand img.brand-full { height: 26px !important; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .card, .sidebar, .topbar, .login-card { background: rgba(255, 255, 255, .92) !important; }
  [data-theme="dark"] .card, [data-theme="dark"] .sidebar, [data-theme="dark"] .topbar, [data-theme="dark"] .login-card { background: rgba(20, 28, 50, .92) !important; }
}
