/**
 * module: css/theme.css
 * stage: web-ui/unified-tokens (ChronoTheme v4, Paket C1)
 * inputs: [data-theme=light|dark] on <html> (set by header bootstrap + chrono_theme.js)
 * outputs: semantic color classes consumed by shell + index + progress partials
 * contracts:
 *   PRE: header.php links this file with filemtime version (anti-cache).
 *   POST: .ink/.ink-2/.ink-3 resolve to --text-* vars so markup needs no per-mode patch.
 *   INVARIANT: .island-dark subtrees always render dark cinematic (excluded from light remap).
 *   INVARIANT: dynamic values use single --p hook (progress width); no other inline style in migrated files.
 */

/* C0 token inventory (hard colors mapped from shell+index+progress partials):
   surface: #020617/#0f172a (dark) -> #ffffff/#f1f5f9 (light)
   ink 3 levels: #f8fafc/#94a3b8/#64748b -> #0f172a/#475569/#64748b
   hairline: rgba(255,255,255,.1) -> rgba(15,23,42,.12)
   status/brand: Tailwind emerald/amber/rose/cyan + --primary-* chrono hue */

:root {
  --surface: rgba(30, 41, 59, 0.9);
  --surface-2: rgba(15, 23, 42, 0.8);
  --surface-3: rgba(15, 23, 42, 0.6);
  --ink: #f8fafc;
  --ink-2: #94a3b8;
  --ink-3: #64748b;
  --hairline: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
  --surface: rgba(255, 255, 255, 0.94);
  --surface-2: rgba(255, 255, 255, 0.92);
  --surface-3: rgba(241, 245, 249, 0.9);
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --hairline: rgba(15, 23, 42, 0.12);
}

/* Semantic surface + ink (both modes, no per-mode markup patch). */
.surface { background: var(--surface); }
.surface-2 { background: var(--surface-2); }
.ink { color: var(--ink); }
.ink-2 { color: var(--ink-2); }
.ink-3 { color: var(--ink-3); }
.hairline { border-color: var(--hairline); }
.hairline-t { border-top-color: var(--hairline); }

/* Intentional dark islands: hero, banner, modal, video, chat. Never remapped. */
.island-dark,
[data-island-dark] {
  --surface: rgba(2, 6, 23, 0.85);
  --ink: #f8fafc;
  --ink-2: #cbd5e1;
  --ink-3: #94a3b8;
  --hairline: rgba(255, 255, 255, 0.12);
  color-scheme: dark;
}

/* Brand button + chips (replaces hardcoded gradients in migrated markup). */
.btn-brand {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff;
}
.chip { border: 1px solid var(--hairline); border-radius: 9999px; }

/* Sidebar helpers (replaces inline style in header.php shell). */
.sidebar-vip { color: #a78bfa; }
.sidebar-danger { color: #f87171; }
.sidebar-user-icon { color: var(--accent-amber); }
.sidebar-user-label { font-size: 12px; color: var(--text-secondary); flex: 1; }
.admin-badge-tight { margin-left: 4px; }
.sidebar-login-icon { width: 18px; text-align: center; }

/* Hue engine runs fully auto (chrono); no manual hue UI remains. */

/* Hero progress bar: single --p hook (0-100 continuous; preset classes absurd here). */
.hero-bar-fill { width: var(--p, 0%); }

/* ── Unified hue-follow + light-remap pack (ChronoTheme v4.2) ─────────────
   PRE: chrono_theme.js sets --primary-*/--accent-cyan + data-theme on <html>.
   POST: sidebar + game hero tint follow hue; light mode has no white-on-white.
   INVARIANT: page partials keep dark markup; all light remaps live here.
   INVARIANT: !important only to beat header.php <style> + inline dark utilities;
              never used for layout, only for color remap. */

/* Sidebar follows hue (both modes). Base header.php rule is overridden here. */
.app-sidebar {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--primary-700) 30%, #0f172a 70%),
    color-mix(in srgb, var(--primary-800) 22%, #020617 78%)) !important;
  border-right: 1px solid color-mix(in srgb, var(--primary-500) 30%, transparent) !important;
}
[data-theme="light"] .app-sidebar {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--primary-500) 18%, #ffffff 82%),
    color-mix(in srgb, var(--primary-600) 12%, #f1f5f9 88%)) !important;
}
/* Sidebar chat button: white in light (user request), hue gradient in dark. */
[data-theme="light"] .sidebar-chat-btn {
  background: #ffffff !important;
  color: var(--ink) !important;
  border: 1px solid var(--hairline) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12) !important;
}
/* Keep sidebar links legible on hue-tinted bg. */
[data-theme="light"] .sidebar-link { color: var(--ink-2) !important; }
[data-theme="light"] .sidebar-game-link { color: var(--ink-2) !important; }

/* Current-game highlight (async list never marked active in any theme).
   Base = dark parity with .sidebar-link.active; light = cyan-700. */
.app-sidebar .sidebar-game-link.active {
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  font-weight: 600;
}
[data-theme="light"] .app-sidebar .sidebar-game-link.active {
  color: #0e7490 !important;
  background: rgba(6, 182, 212, 0.12) !important;
}
/* Nav active + game hover invisible on white in light — darken. */
[data-theme="light"] .app-sidebar .sidebar-link.active {
  color: #0e7490 !important;
  background: rgba(6, 182, 212, 0.12) !important;
}
[data-theme="light"] .app-sidebar .sidebar-game-link:hover {
  color: var(--ink) !important;
  background: rgba(15, 23, 42, 0.05) !important;
}

/* Game hero follows hue (hero.php sets --hero-accent from --primary-500). */
#hero-section {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--primary-800) 26%, #020617 74%),
    #020617 75%) !important;
}
#hero-cover-wrap {
  border-color: color-mix(in srgb, var(--primary-500) 35%, transparent) !important;
}

/* ── Game hero light mode (cinematic island becomes bright) ───────────────
   PRE: hero.php paints dark via inline styles + hook classes above.
   INVARIANT: dark remains default; every override below is light-only. */
[data-theme="light"] #hero-section {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--primary-500) 10%, #ffffff 90%),
    color-mix(in srgb, var(--primary-600) 8%, #eef2f7 92%) 78%) !important;
}
[data-theme="light"] .hero-bg-layer { opacity: 0.1 !important; }
[data-theme="light"] .hero-base {
  background: radial-gradient(ellipse 120% 60% at 50% 0%,
    color-mix(in srgb, var(--primary-500) 16%, transparent) 0%, transparent 70%) !important;
}
[data-theme="light"] .hero-fade-bottom {
  background: linear-gradient(to top, rgba(238,242,247,1) 0%, rgba(238,242,247,0.5) 40%, transparent 100%) !important;
}
[data-theme="light"] .hero-fade-side,
[data-theme="light"] .hero-vignette-top { background: transparent !important; }
[data-theme="light"] .hero-blend-bottom { background: none !important; }
[data-theme="light"] #hero-cover-wrap { box-shadow: 0 24px 60px rgba(15,23,42,0.18) !important; }
[data-theme="light"] #hero-title { color: var(--ink) !important; text-shadow: none !important; }
[data-theme="light"] #hero-desc { color: var(--ink-2) !important; }
[data-theme="light"] .hero-badge {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: var(--hairline) !important;
}
[data-theme="light"] .hero-corner-label { color: var(--ink-3) !important; }
[data-theme="light"] #hero-admin-btn {
  background: #ffffff !important; color: var(--ink-2) !important;
  border-color: var(--hairline) !important; box-shadow: 0 4px 14px rgba(15,23,42,0.1) !important;
}
[data-theme="light"] #hero-glow { opacity: 0.35 !important; }

/* Progress page light remap: filter pill, nerd-stats box, tracks, receipts. */
[data-theme="light"] .filter-pill {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: var(--hairline) !important;
}
[data-theme="light"] .tab-btn:not(.active) { color: var(--ink-2) !important; }
[data-theme="light"] .tab-btn:not(.active):hover {
  color: var(--ink) !important;
  background: rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] #game-search {
  background: #ffffff !important;
  color: var(--ink) !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}
[data-theme="light"] .card-header-main h2,
[data-theme="light"] .card-header-main h2 a { color: var(--ink) !important; }
[data-theme="light"] .accordion-wrapper .bg-black\/20,
[data-theme="light"] .accordion-wrapper div[class*="bg-black"] {
  background-color: rgba(15, 23, 42, 0.04) !important;
  border-color: var(--hairline) !important;
}
[data-theme="light"] .accordion-wrapper div[class*="bg-white/5"] {
  background-color: rgba(15, 23, 42, 0.06) !important;
}
[data-theme="light"] .accordion-wrapper .text-white:not(button):not(a):not([class*="bg-"]) {
  color: var(--ink) !important;
}
[data-theme="light"] .accordion-wrapper .text-slate-300:not(button):not(a):not([class*="bg-"]) {
  color: #334155 !important;
}

/* Request page light remap (static markup + JS-rendered cards). */
[data-theme="light"] #steam-search { color: var(--ink) !important; }
[data-theme="light"] #steam-search::placeholder { color: var(--ink-3) !important; }
[data-theme="light"] .search-results { background: rgba(255, 255, 255, 0.97) !important; }
[data-theme="light"] .search-item { border-bottom-color: var(--hairline) !important; }
[data-theme="light"] .search-item:hover { background: rgba(15, 23, 42, 0.05) !important; }
[data-theme="light"] .search-item div[class*="text-white"] { color: var(--ink) !important; }
[data-theme="light"] #requests-container div[class*="bg-slate-900"] {
  background-color: rgba(255, 255, 255, 0.94) !important;
  border-color: var(--hairline) !important;
}
[data-theme="light"] #requests-container h3[class*="text-white"],
[data-theme="light"] #cooking-grid h3[class*="text-white"] { color: var(--ink) !important; }
[data-theme="light"] #requests-container button[class*="bg-slate-800"] {
  background-color: #ffffff !important;
  color: var(--ink-2) !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}

/* Contributor light remap: inline color:white names lose to this !important. */
[data-theme="light"] .contrib-card { background: rgba(255, 255, 255, 0.94) !important; }
[data-theme="light"] .contrib-card p { color: var(--ink) !important; }
[data-theme="light"] .contrib-card p[class*="muted"],
[data-theme="light"] .contrib-card p + p { color: var(--ink-2) !important; }
[data-theme="light"] .supporter-item:hover { background: rgba(15, 23, 42, 0.05) !important; }

/* ── Game comments (components/game/comments.php) ─────────────────────────
   PRE: game.php includes comments.php with $folder slug.
   INVARIANT: all colors via vars; light remap below, no per-mode markup. */
.gc-wrap { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.gc-title {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 14px;
}
.gc-title-icon { display: none; }
.gc-count { color: var(--ink-3); font-weight: 700; }
.gc-identity {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-2); margin-bottom: 10px;
}
.gc-identity strong { color: var(--ink); }
.gc-form {
  background: var(--surface-2); border: 1px solid transparent;
  border-radius: 16px; padding: 14px; margin-bottom: 16px;
}
.gc-form textarea {
  width: 100%; background: transparent; border: none; outline: none; resize: vertical;
  color: var(--ink); font-size: 14px; font-family: inherit;
}
.gc-form textarea::placeholder { color: var(--ink-3); }
.gc-form-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.gc-hint { font-size: 11px; color: var(--ink-3); }
.gc-send {
  padding: 8px 18px; border-radius: 10px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff; font-size: 12px; font-weight: 800;
}
.gc-send:disabled { opacity: 0.5; cursor: wait; }
.gc-reply-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--ink-2); background: rgba(127,127,157,0.1);
  border: 1px solid var(--hairline); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px;
}
.gc-reply-chip button { background: none; border: none; color: var(--ink-3); cursor: pointer; }
.gc-list { display: flex; flex-direction: column; gap: 10px; }
.gc-item { display: flex; gap: 10px; }
.gc-avatar { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: rgba(127,127,157,0.15); display: flex; align-items: center; justify-content: center; }
.gc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gc-avatar-fallback { font-weight: 800; color: var(--ink-2); }
.gc-body {
  flex: 1; min-width: 0; background: var(--surface-2);
  border: 1px solid transparent; border-radius: 14px; padding: 10px 14px;
}
.gc-meta { display: flex; align-items: baseline; gap: 8px; font-size: 12px; margin-bottom: 4px; }
.gc-meta strong { color: var(--ink); }
.gc-meta span { color: var(--ink-3); font-size: 11px; font-family: monospace; }
.gc-body p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; overflow-wrap: anywhere; }
.gc-reply-btn { background: none; border: none; padding: 0; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--ink-3); cursor: pointer; }
.gc-reply-btn:hover { color: var(--primary-500); }
.gc-replies { margin-left: 44px; display: flex; flex-direction: column; gap: 10px; }
.gc-empty { font-size: 13px; color: var(--ink-3); text-align: center; padding: 16px 0; }
.gc-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.gc-pager button {
  padding: 6px 14px; border-radius: 8px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--hairline); color: var(--ink-2); font-weight: 700; font-size: 12px;
}
.gc-pager button:hover:not(:disabled) { color: var(--ink); border-color: var(--primary-500); }
.gc-pager button:disabled { opacity: 0.4; cursor: default; }

/* Footer hairline (both modes). */
.site-footer { border-top: 1px solid var(--hairline); }

/* ── Global ambient background (semua page) ─────────────────────────────
   module: css/theme.css → ambient pack
   inputs: .ambient-bg markup di header.php (setelah <body>); --primary-*
     dari chrono hue engine; [data-theme] di <html>.
   outputs: aurora hue-follow + pola kontur samar + vignette di belakang konten.
   contracts:
   - PRE: header.php me-render .ambient-bg sebelum .app-shell.
   - POST: konten (.app-content z:1, sidebar z:5, modal 8000+) selalu di atas.
   - INVARIANT: dekoratif murni — aria-hidden, pointer-events none, nol request.
   - INVARIANT: animasi hanya transform/opacity (compositor-only); dilarang
     menambah blur/backdrop-filter di lapisan ini (riwayat: animated bg pernah
     dicabut karena biaya radial-gradient + blur).
   ───────────────────────────────────────────────────────────────────────── */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
/* Konten di atas ambient (tanpa mengubah layout: relative tanpa offset). */
.app-content {
  position: relative;
  z-index: 1;
}
.ambient-blob {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  will-change: transform;
}
.ambient-blob--a {
  top: -18vmax;
  right: -12vmax;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--primary-600) 34%, transparent) 0%,
    transparent 65%);
  animation: ambient-drift-a 34s ease-in-out infinite alternate;
}
.ambient-blob--b {
  bottom: -20vmax;
  left: -14vmax;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--accent-cyan) 22%, transparent) 0%,
    transparent 65%);
  animation: ambient-drift-b 44s ease-in-out infinite alternate;
}
@keyframes ambient-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6vmax, 5vmax, 0) scale(1.12); }
}
@keyframes ambient-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(7vmax, -4vmax, 0) scale(0.96); }
}
.ambient-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23a78bfa' stroke-opacity='0.14' stroke-width='1'%3E%3Ccircle cx='120' cy='120' r='28'/%3E%3Ccircle cx='120' cy='120' r='58'/%3E%3Ccircle cx='120' cy='120' r='88'/%3E%3Ccircle cx='120' cy='120' r='118'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.55;
}
.ambient-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 38%,
    transparent 55%,
    rgba(2, 6, 23, 0.5) 100%);
}

/* Terang: redupkan aurora, pola pakai tinta gelap, vignette terang lembut. */
[data-theme="light"] .ambient-blob--a {
  background: radial-gradient(circle,
    color-mix(in srgb, var(--primary-500) 16%, transparent) 0%,
    transparent 65%);
}
[data-theme="light"] .ambient-blob--b {
  background: radial-gradient(circle,
    color-mix(in srgb, var(--accent-cyan) 12%, transparent) 0%,
    transparent 65%);
}
[data-theme="light"] .ambient-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%230f172a' stroke-opacity='0.08' stroke-width='1'%3E%3Ccircle cx='120' cy='120' r='28'/%3E%3Ccircle cx='120' cy='120' r='58'/%3E%3Ccircle cx='120' cy='120' r='88'/%3E%3Ccircle cx='120' cy='120' r='118'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}
[data-theme="light"] .ambient-vignette {
  background: radial-gradient(ellipse 120% 90% at 50% 38%,
    transparent 60%,
    rgba(15, 23, 42, 0.1) 100%);
}

/* Mobile: kecilkan sapuan agar tidak mendominasi layar sempit. */
@media (max-width: 768px) {
  .ambient-blob {
    width: 44vmax;
    height: 44vmax;
  }
  .ambient-pattern {
    background-size: 180px 180px;
    opacity: 0.4;
  }
}

/* Reduced motion: matikan drift, komposisi statis tetap tampil. */
@media (prefers-reduced-motion: reduce) {
  .ambient-blob {
    animation: none;
  }
}

/* ── Admin panel unified pack (ChronoTheme v5) ─────────────────────────
   module: css/theme.css → admin pack
   inputs: .admin-scope wrapper (kontoljaran.php tab-content loader) +
     semantic tokens .surface/.surface-2/.ink/.ink-2/.ink-3/.hairline/.btn-brand
     + legacy dark utilities left in markup during migration.
   outputs: admin panels follow chrono hue + light/dark without per-panel patch.
   contracts:
   - PRE: chrono_theme.js sets --primary-*/--accent-cyan + data-theme on <html>.
   - POST: dark parity preserved; light has no white-on-white.
   - INVARIANT: !important only for color remap, never layout.
   - INVARIANT: status colors (emerald/amber/rose/cyan) untouched. */
.admin-scope .surface { background: var(--surface); }
.admin-scope .surface-2 { background: var(--surface-2); }
.admin-scope .ink { color: var(--ink); }
.admin-scope .ink-2 { color: var(--ink-2); }
.admin-scope .ink-3 { color: var(--ink-3); }
.admin-scope .hairline { border-color: var(--hairline); }
.admin-scope input::placeholder,
.admin-scope textarea::placeholder { color: var(--ink-3); }
.admin-scope input,
.admin-scope select,
.admin-scope textarea { color: var(--ink); }
.admin-scope input { color-scheme: dark; }
[data-theme="light"] .admin-scope input { color-scheme: light; }
.admin-scope table { color: var(--ink-2); }
.admin-scope thead { color: var(--ink-3); }

/* Legacy dark-utility fallback (fail-closed until markup fully migrated). */
.admin-scope .bg-white\/5 { background-color: var(--surface-3, rgba(127,127,157,0.08)); }
.admin-scope .bg-black\/30,
.admin-scope .bg-black\/40,
.admin-scope .bg-black\/50 { background-color: var(--surface-2); }
.admin-scope .bg-slate-900,
.admin-scope .bg-slate-900\/50,
.admin-scope .bg-slate-900\/80,
.admin-scope .bg-slate-800 { background-color: var(--surface-2); }
.admin-scope .text-white { color: var(--ink); }
.admin-scope .text-slate-200,
.admin-scope .text-slate-300,
.admin-scope .text-slate-400 { color: var(--ink-2); }
.admin-scope .text-slate-500,
.admin-scope .text-slate-600 { color: var(--ink-3); }
.admin-scope .border-white\/10,
.admin-scope .border-white\/5,
.admin-scope .border-slate-700,
.admin-scope .border-slate-600 { border-color: var(--hairline); }
.admin-scope .divide-white\/5 > * + * { border-color: var(--hairline); }
.admin-scope .hover\:bg-white\/5:hover { background-color: rgba(127,127,157,0.12); }

/* Light-only legibility (dark stays untouched). */
[data-theme="light"] .admin-scope .bg-white\/5 { background-color: rgba(255,255,255,0.94) !important; }
[data-theme="light"] .admin-scope .bg-black\/30,
[data-theme="light"] .admin-scope .bg-black\/40,
[data-theme="light"] .admin-scope .bg-black\/50,
[data-theme="light"] .admin-scope .bg-slate-900,
[data-theme="light"] .admin-scope .bg-slate-900\/50,
[data-theme="light"] .admin-scope .bg-slate-900\/80,
[data-theme="light"] .admin-scope .bg-slate-800 { background-color: rgba(255,255,255,0.94) !important; }
[data-theme="light"] .admin-scope input,
[data-theme="light"] .admin-scope select,
[data-theme="light"] .admin-scope textarea { background-color: #ffffff !important; }
[data-theme="light"] .admin-scope table thead { background-color: rgba(15,23,42,0.04) !important; }
[data-theme="light"] .admin-scope tbody tr:hover { background-color: rgba(15,23,42,0.05) !important; }
[data-theme="light"] .admin-scope .hover\:bg-white\/5:hover { background-color: rgba(15,23,42,0.05) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   AdminUI v6 - single admin styling layer (2026-10-19)
   module: css/theme.css -> admin (compat + components)
   inputs: .admin-scope wrapper (kontoljaran.php:346 + login body) and the tokens
           --surface/--surface-2/--surface-3/--ink/--ink-2/--ink-3/--hairline/--primary-*
   outputs: (a) the AdminUnify names that output.css never compiled,
            (b) frozen-build generic utilities the partials already use,
            (c) opt-in .adm-* components for markup that should stop repeating utilities.
   contracts:
     PRE:  header.php defines --primary-*, chrono_theme.js sets data-theme.
     POST: every class used by components/admin/*.php resolves here or in output.css.
     INVARIANT: plain CSS only - output.css is frozen (2026-02-11) and there is no local
                Tailwind toolchain, so never introduce a Tailwind utility into markup.
     INVARIANT: colors come from tokens (both modes) except status colors
                (emerald/amber/rose/cyan/sky/indigo/violet), which keep their meaning.
   ══════════════════════════════════════════════════════════════════════════ */

.admin-scope {
  --adm-radius: 1rem;
  --adm-radius-sm: 0.75rem;
}

/* 1. AdminUnify v5 names that the frozen build never compiled -> tokens. */
.admin-scope .bg-surface-1 { background-color: var(--surface); }
.admin-scope .bg-surface-2 { background-color: var(--surface-2); }
.admin-scope .bg-surface-3 { background-color: var(--surface-3); }
.admin-scope .border-border-light,
.admin-scope .border-light { border-color: var(--hairline); }
.admin-scope .divide-border-light > :not([hidden]) ~ :not([hidden]) { border-color: var(--hairline); }
.admin-scope .text-text-primary { color: var(--ink); }
.admin-scope .text-text-secondary { color: var(--ink-2); }
.admin-scope .text-ink-3 { color: var(--ink-3); }
.admin-scope .text-primary-500 { color: var(--primary-500, #a855f7); }
.admin-scope .bg-primary-500 { background-color: var(--primary-500, #a855f7); }
.admin-scope .bg-primary-600 { background-color: var(--primary-600, #9333ea); }
.admin-scope .accent-primary-500 { accent-color: var(--primary-500, #a855f7); }
.admin-scope .from-primary-600 {
  --tw-gradient-from: var(--primary-600, #9333ea);
  --tw-gradient-to: rgb(147 51 234 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

/* 2. Status palette (Tailwind defaults, intentionally mode-independent). */
.text-cyan-300 { color: #67e8f9; }
.text-sky-300 { color: #7dd3fc; }
.text-indigo-300 { color: #a5b4fc; }
.text-indigo-400 { color: #818cf8; }
.text-violet-400 { color: #a78bfa; }
.text-rose-300 { color: #fda4af; }
.text-rose-500 { color: #f43f5e; }
.bg-amber-600 { background-color: #d97706; }
.bg-rose-600 { background-color: #e11d48; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-violet-600 { background-color: #7c3aed; }
.bg-purple-700 { background-color: #7e22ce; }
.bg-purple-800 { background-color: #6b21a8; }
.accent-amber-500 { accent-color: #f59e0b; }
.from-purple-700 {
  --tw-gradient-from: #7e22ce;
  --tw-gradient-to: rgb(126 34 206 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-blue-700 { --tw-gradient-to: #1d4ed8; }

/* 3. Generic utilities missing from the frozen build (Tailwind v3 defaults). */
.inline-flex { display: inline-flex; }
.ml-auto { margin-left: auto; }
.mr-1 { margin-right: 0.25rem; }
.mx-6 { margin-left: 1.5rem; margin-right: 1.5rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-10 { margin-bottom: 2.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pl-9 { padding-left: 2.25rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.h-9 { height: 2.25rem; }
.w-9 { width: 2.25rem; }
.h-96 { height: 24rem; }
.max-h-40 { max-height: 10rem; }
.max-w-lg { max-width: 32rem; }
.top-3 { top: 0.75rem; }
.left-3 { left: 0.75rem; }
.right-3 { right: 0.75rem; }
.rounded-md { border-radius: 0.375rem; }
.overflow-auto { overflow: auto; }
.cursor-text { cursor: text; }
.resize-none { resize: none; }
.break-words { overflow-wrap: break-word; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.backdrop-blur-sm { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.opacity-40 { opacity: 0.4; }
.scale-95 { transform: scale(0.95); }
.duration-200 { transition-duration: 0.2s; }
.font-sans { font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
.scrollbar-hide { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* 4. .adm-* components - reuse these instead of repeating utility strings. */
.adm-card {
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--adm-radius);
  padding: 1.5rem;
}
.adm-card > * + * { margin-top: 1rem; }
.adm-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}
.adm-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--ink);
}
.adm-title-sm {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}
.adm-subtitle { font-size: 0.75rem; color: var(--ink-2); }
.adm-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-2);
}
.adm-label-sm {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--ink-2);
}
.adm-hint { margin-top: 0.25rem; font-size: 10px; color: var(--ink-2); }
.adm-input,
.adm-select,
.adm-textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: var(--adm-radius-sm);
  background-color: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 0.875rem;
  transition: border-color 0.15s;
}
.adm-input:focus,
.adm-select:focus,
.adm-textarea:focus { outline: none; border-color: var(--primary-500, #a855f7); }
.adm-input-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--adm-radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  transition: background-color 0.15s, border-color 0.15s;
}
.adm-btn-primary { background-color: var(--primary-600, #9333ea); color: #fff; }
.adm-btn-primary:hover { background-color: var(--primary-500, #a855f7); }
.adm-btn-ghost {
  background-color: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.adm-btn-ghost:hover { background-color: var(--surface-3); }
.adm-btn-danger { background-color: #e11d48; color: #fff; }
.adm-btn-danger:hover { background-color: #be123c; }
.adm-panel {
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--adm-radius-sm);
  padding: 1.25rem;
}
.adm-stat {
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--adm-radius-sm);
  padding: 1rem;
  text-align: center;
}
.adm-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.adm-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--hairline);
  color: var(--ink-2);
}
.adm-table { width: 100%; text-align: left; font-size: 0.75rem; }
.adm-th {
  position: sticky;
  top: 0;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  background-color: var(--surface-2);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.adm-td {
  padding: 0.5rem 0.75rem;
  color: var(--ink-2);
  border-top: 1px solid var(--hairline);
  white-space: nowrap;
}
.adm-empty { padding: 3rem 1rem; text-align: center; color: var(--ink-2); }
.adm-icon { width: 1.25rem; height: 1.25rem; color: var(--primary-400, #c084fc); }

/* ══════════════════════════════════════════════════════════════════════════
   5. Ads Manager - moved out of components/admin/ads.php <style> (2026-10-19)
   PRE:  .admin-scope + tokens; DB-driven colors arrive as --badge/--badge-tint hooks.
   POST: the ads tab renders identically in dark and light (all rgba() dark fills tokenized).
   INVARIANT: the only inline styles left in ads.php are CSS-variable hooks (--badge*, --swatch).
   ══════════════════════════════════════════════════════════════════════════ */
.ads-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .ads-grid { grid-template-columns: 1fr; } }

.ads-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
}
.ads-card-header {
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(59,130,246,.1));
  border-bottom: 1px solid var(--hairline);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}
.ads-card-body { padding: 18px; }
.ads-card-body.is-compact { padding: 12px; }
.ads-form-card { position: sticky; top: 20px; }

.ad-slot {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface-3);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.ad-slot:hover { border-color: var(--primary-600, #7c3aed); box-shadow: 0 4px 20px rgba(124,58,237,.1); }
.ad-slot.inactive { opacity: .45; }
.ad-slot-drag {
  width: 28px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  cursor: grab;
  flex-shrink: 0;
}
.ad-slot-banner { width: 72px; flex-shrink: 0; background: var(--surface-2); overflow: hidden; }
.ad-slot-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-noimg {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--ink-3);
}
.ad-slot-info { flex: 1; padding: 10px 12px; min-width: 0; }
.ad-slot-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 3px;
  background: var(--badge-tint, rgba(124,58,237,.13));
  color: var(--badge, #a78bfa);
}
.ad-slot-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-slot-sub {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-slot-actions { display: flex; flex-direction: column; border-left: 1px solid var(--hairline); flex-shrink: 0; }
.ad-slot-actions a,
.ad-slot-actions button {
  flex: 1;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  transition: background .15s;
  text-decoration: none;
}
.ad-slot-actions a:hover { background: rgba(124,58,237,.15); color: var(--primary-400, #c084fc); }
.slot-btn-toggle:hover { background: rgba(34,197,94,.1); }
.slot-btn-del:hover { background: rgba(239,68,68,.1); }
.ads-act-edit { color: var(--ink-2); }
.ads-act-form { flex: 1; display: flex; }
.ads-act-toggle { flex: 1; }
.ads-act-toggle.is-on { color: #86efac; }
.ads-act-toggle.is-off { color: var(--ink-3); }
.ads-act-del { flex: 1; color: #ef4444; }

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.form-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 7px;
  padding: 8px 11px;
  color: var(--ink);
  font-size: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.form-input:focus { border-color: var(--primary-500, #7c3aed); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
textarea.form-input { resize: vertical; min-height: 60px; }
.form-group { margin-bottom: 12px; }
.ads-input-sm { width: 90px; text-align: center; }
.ads-color-input { width: 80px; }
.ads-file { cursor: pointer; padding: 5px; }
.ads-grid-badge { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.ads-grid-cta { display: grid; grid-template-columns: 1fr 80px; gap: 10px; }
.ads-src-row { display: flex; gap: 12px; margin-bottom: 6px; }
.ads-src-lbl { font-size: 11px; color: var(--ink-2); cursor: pointer; }

.banner-prev {
  width: 100%;
  height: 52px;
  background: var(--surface-2);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 7px;
  border: 1px dashed var(--hairline);
}
.banner-prev img { width: 100%; height: 100%; object-fit: cover; }
.banner-prev.empty { display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--ink-3); }
.ads-prev-empty { font-size: 10px; color: var(--ink-3); }

.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.config-row:last-of-type { border-bottom: none; }
.toggle-sw { position: relative; width: 40px; height: 22px; }
.toggle-sw input { opacity: 0; width: 0; height: 0; }
.toggle-sw .sl {
  position: absolute;
  inset: 0;
  background: var(--surface-3);
  border-radius: 22px;
  cursor: pointer;
  transition: background .2s;
}
.toggle-sw input:checked + .sl { background: var(--primary-600, #7c3aed); }
.toggle-sw .sl:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.toggle-sw input:checked + .sl:before { transform: translateX(18px); }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  animation: pdot 2s infinite;
}
.status-dot.green { background: #22c55e; }
.status-dot.red { background: #ef4444; }
@keyframes pdot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.color-row { display: flex; gap: 7px; align-items: center; }
.color-row input[type=color] {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}
.swatch-row { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s, transform .15s;
  background: var(--swatch, transparent);
}
.swatch:hover { transform: scale(1.25); border-color: var(--ink); }

/* ══════════════════════════════════════════════════════════════════════════
   9. Admin layout helpers + islands (2026-10-19)
   Replaces the last inline styles and two arbitrary utilities that the frozen output.css
   never compiled (`bg-[#090a0f]`, `bg-[#0d1520]` -> transparent consoles/editors).
   INVARIANT: .adm-console/.adm-card-dark are intentional dark islands -- never mode-remapped.
   ══════════════════════════════════════════════════════════════════════════ */
.adm-scroll-420 { max-height: 420px; overflow-y: auto; }
.adm-sticky-top { position: sticky; top: 0; }
.adm-mb-3 { margin-bottom: 0.75rem; }
.adm-chartbox { height: 380px; }
.adm-select-wide { min-width: 220px; }
.adm-bar-fill { width: var(--p, 0%); }
.adm-console { background-color: #090a0f; }
.adm-card-dark { background-color: #0d1520; }

/* 6. Subtitles (dlc accordion) - moved out of components/admin/subtitles.php */
/* ── Grid accordion layout ───────────────────────────────────── */
    #dlcGrid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        align-items: start;
    }

    .dlc-card {
        background: var(--surface-2);
        border: 1px solid var(--hairline);
        border-radius: 10px;
        padding: 12px 14px;
        cursor: pointer;
        transition: background .18s, border-color .18s, transform .12s;
        user-select: none;
        position: relative;
    }

    .dlc-card:hover {
        background: var(--surface-3);
        border-color: var(--hairline);
    }

    .dlc-card.active {
        background: rgba(139, 92, 246, .08);
        border-color: rgba(139, 92, 246, .35);
    }

    /* Caret at the bottom of the active card */
    .dlc-card.active::after {
        content: '';
        position: absolute;
        bottom: -9px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid rgba(139, 92, 246, .25);
        z-index: 2;
        pointer-events: none;
    }

    /* Accordion drawer — spans all 3 columns */
    #dlcAccordion {
        grid-column: 1 / -1;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height .35s cubic-bezier(.4, 0, .2, 1), opacity .25s ease, margin .25s ease;
        margin-top: 0;
    }

    #dlcAccordion.open {
        max-height: 700px;
        opacity: 1;
        margin-top: 4px;
    }

    /* Filter tabs */
    .dlc-tab {
        color: var(--ink-3);
    }

    .dlc-tab.active {
        background: var(--surface-3);
        color: var(--ink);
    }

    .dlc-tab:hover:not(.active) {
        background: var(--surface-3);
        color: var(--ink-2);
    }

    /* Status dot */
    .status-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .status-dot.on {
        background: #34d399;
        box-shadow: 0 0 6px rgba(52, 211, 153, .5);
    }

    .status-dot.off {
        background: var(--ink-3);
    }

/* 7. Tickets - moved out of components/admin/tickets.php */
.tk-card {
        border: 1px solid var(--hairline);
        border-radius: 12px;
        padding: 16px;
        background: var(--surface-2);
        transition: all 0.2s;
    }

    .tk-card:hover {
        border-color: var(--hairline);
    }

    .tk-badge {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 6px;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .tk-open {
        background: rgba(245, 158, 11, 0.15);
        color: #fbbf24;
        border: 1px solid rgba(245, 158, 11, 0.3);
    }

    .tk-approved {
        background: rgba(16, 185, 129, 0.15);
        color: #34d399;
        border: 1px solid rgba(16, 185, 129, 0.3);
    }

    .tk-rejected {
        background: rgba(239, 68, 68, 0.15);
        color: #fca5a5;
        border: 1px solid rgba(239, 68, 68, 0.3);
    }

    .tk-feature {
        background: rgba(124, 58, 237, 0.15);
        color: #a78bfa;
    }

    .tk-bug {
        background: rgba(239, 68, 68, 0.15);
        color: #fca5a5;
    }

    .tk-filter-btn {
        padding: 6px 14px;
        border-radius: 8px;
        font-size: 11px;
        font-weight: 700;
        border: 1px solid var(--hairline);
        background: var(--surface-3);
        color: var(--ink-2);
        cursor: pointer;
        transition: all 0.2s;
        text-decoration: none;
    }

    .tk-filter-btn:hover {
        background: var(--surface-3);
    }

    .tk-filter-btn.active {
        background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
        color: var(--ink);
        border-color: var(--primary-500);
    }

    .tk-action-btn {
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
        border: none;
        transition: all 0.2s;
    }

/* 8. Explorer (file editor modal) - moved out of components/admin/explorer.php */
#editor {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 0;
    }

    .editor-container {
        overflow: hidden;
    }

    .edit-modal {
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(12px);
        display: none;
        padding: 0;
        overflow: hidden;
    }

    .edit-modal.active {
        display: block;
    }

    .edit-modal .modal-content-wrapper {
        height: 100vh;
        width: 100vw;
        display: flex;
        flex-direction: column;
    }

    /* Drag and drop styling */
    .drop-zone {
        position: relative;
        transition: all 0.3s ease;
    }

    .drop-zone.drag-over {
        border-color: #3b82f6 !important;
        background: rgba(59, 130, 246, 0.1) !important;
    }

    .drop-zone.drag-over::after {
        content: '📁 Drop files here';
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        font-weight: bold;
        color: #3b82f6;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(8px);
        z-index: 10;
    }

/* 10a. Admin shell (kontoljaran.php) - moved out of the page <style> 2026-10-19
   Shell chrome for the admin console: tab strip, notification badge, logout button, url list, indexnow info box, checkbox rows. Var namespace tokenized onto AdminUI tokens. */
/* Tab System */
    .tab-container {
        display: flex;
        gap: 4px;
        background: var(--surface-2);
        padding: 6px;
        border-radius: 12px;
        border: 1px solid var(--hairline);
        margin-bottom: 20px;
        overflow-x: auto;
    }

    .tab-btn {
        flex: 1;
        padding: 10px 16px;
        background: transparent;
        color: var(--ink-2);
        border: 1px solid transparent;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        white-space: nowrap;
        text-decoration: none;
    }

    .tab-btn:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--ink);
    }

    [data-theme="light"] .tab-btn:hover {
        background: rgba(15, 23, 42, 0.05);
    }

    .tab-btn.active {
        background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
        color: white;
        border-color: var(--primary-500);
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    }

    .tab-btn {
        position: relative;
    }

    .notif-badge {
        min-width: 18px;
        height: 18px;
        background: #ef4444;
        color: white;
        font-size: 10px;
        font-weight: 800;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        margin-left: 6px;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
        animation: badgePulse 2s ease-in-out infinite;
    }

    @keyframes badgePulse {

        0%,
        100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.1);
        }
    }

    .logout-btn {
        background: linear-gradient(135deg, #ef4444, #7f1d1d);
        color: white;
        padding: 8px 16px;
        border-radius: 8px;
        text-decoration: none;
        font-size: 12px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* Common Styles for Components */
    .url-list {
        max-height: 400px;
        overflow-y: auto;
        background: var(--surface-2);
        border-radius: 8px;
        padding: 12px;
    }

    .url-item {
        padding: 8px 12px;
        background: rgba(127, 127, 157, 0.1);
        border-left: 3px solid var(--primary-500);
        margin-bottom: 6px;
        border-radius: 4px;
        font-size: 12px;
        font-family: 'Courier New', monospace;
        word-break: break-all;
        color: var(--ink-2);
    }

    .notification-box {
        background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(168, 85, 247, 0.1));
        border: 1px solid rgba(34, 211, 238, 0.3);
        border-radius: 12px;
        padding: 16px;
        margin-top: 16px;
    }

    .checkbox-container {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px;
        background: rgba(124, 58, 237, 0.1);
        border: 1px solid rgba(124, 58, 237, 0.3);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .checkbox-container:hover {
        background: rgba(124, 58, 237, 0.2);
        border-color: rgba(124, 58, 237, 0.5);
    }

    .checkbox-container input[type="checkbox"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
        accent-color: #7c3aed;
    }

    .indexnow-info {
        background: var(--surface-2);
        border-left: 4px solid #22d3ee;
        padding: 12px;
        border-radius: 8px;
        margin-top: 12px;
        color: var(--ink-2);
    }

/* 10b. Login page body (kontoljaran.php display_login) - moved 2026-10-19
   Standalone login document: dark default + light override. Tailwind CDN remains only for this page. */
.login-body { background: var(--bg-darker, #020617); min-height: 100vh; }
            [data-theme="light"] .login-body { background: var(--surface-3, #eef2f7); }
