@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg0: #02050c;
  --bg1: #050a17;
  --surface: rgba(11, 17, 34, 0.76);
  --surface-hover: rgba(16, 25, 50, 0.85);
  --surface2: rgba(13, 20, 42, 0.94);
  --glass: rgba(255, 255, 255, 0.035);
  --border: rgba(0, 240, 255, 0.13);
  --border-subtle: rgba(255, 255, 255, 0.065);
  --border-glow: rgba(0, 240, 255, 0.48);
  --text: #f1f7ff;
  --muted: #93a7c8;
  --muted2: #5b7094;
  --cyan: #00f0ff;
  --blue: #3d7bff;
  --purple: #a855ff;
  --magenta: #ff3d9a;
  --orange: #ff8a3d;
  --accent-grad: linear-gradient(135deg, #00f0ff 0%, #3d7bff 50%, #a855ff 100%);
  --ok: #3ee08a;
  --warn: #ffb020;
  --danger: #ff5c7a;
  --sidebar-w: 284px;
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg0);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: rgba(4, 8, 20, 0.6); }
::-webkit-scrollbar-thumb { background: rgba(0, 240, 255, 0.22); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 240, 255, 0.45); }

/* Ambient Background Layers */
.fx-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.032) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 25%, transparent 80%);
}
.fx-aurora {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 55% 40% at 22% 8%, rgba(0, 240, 255, 0.12), transparent 70%),
    radial-gradient(ellipse 45% 40% at 85% 15%, rgba(168, 85, 255, 0.11), transparent 70%),
    radial-gradient(ellipse 50% 45% at 60% 92%, rgba(61, 123, 255, 0.09), transparent 70%);
}
.fx-orbs::before,
.fx-orbs::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(95px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.fx-orbs::before {
  width: 460px; height: 460px;
  top: -110px; left: 8%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.34), transparent 70%);
}
.fx-orbs::after {
  width: 420px; height: 420px;
  bottom: -90px; right: 4%;
  background: radial-gradient(circle, rgba(168, 85, 255, 0.25), transparent 70%);
}
.fx-scan {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.025) 50%, transparent 100%);
  background-size: 100% 140px;
  animation: scanMove 10s linear infinite;
  opacity: 0.32;
}
@keyframes scanMove { from { background-position: 0 -140px; } to { background-position: 0 100vh; } }

/* App Shell */
.layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, rgba(7, 11, 25, 0.94), rgba(4, 8, 19, 0.96));
  backdrop-filter: blur(28px);
  border-right: 1px solid var(--border);
  box-shadow: inset -1px 0 0 rgba(0, 240, 255, 0.06), 12px 0 44px rgba(0, 0, 0, 0.35);
  padding: 24px 0 22px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  padding: 0 22px 20px;
  display: flex; align-items: center; gap: 14px;
}
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #020c14;
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.38), 0 8px 24px rgba(0, 0, 0, 0.45);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 16px;
  border: 1px solid rgba(0, 240, 255, 0.45);
  opacity: 0.65;
}
.brand-mark-lg { width: 54px; height: 54px; border-radius: 16px; }
.brand-text b {
  display: block;
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, #b9f6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-text small {
  display: block;
  font-size: 10px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 2px;
  opacity: 0.85;
}

.sidebar-cta { padding: 0 16px 14px; }
.btn-sidebar-cta {
  width: 100%;
  padding: 12px 16px;
  border-radius: 13px;
  font-size: 13px;
}

.nav-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted2); padding: 12px 22px 7px;
}
.nav { flex: 1; overflow-y: auto; padding-bottom: 12px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  margin: 3px 12px;
  border-radius: 13px;
  color: var(--muted);
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
}
.nav a .ico {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--glass);
  border: 1px solid var(--border-subtle);
  color: var(--muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.nav a .nav-txt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--border-subtle);
}
.nav-badge-emerald {
  background: rgba(62, 224, 138, 0.12);
  color: var(--ok);
  border-color: rgba(62, 224, 138, 0.28);
}
.nav a:hover {
  color: var(--text);
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.12);
  transform: translateX(2px);
}
.nav a:hover .ico {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.25);
}
.nav a.active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.15), rgba(61, 123, 255, 0.06));
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.09);
}
.nav a.active::before {
  content: "";
  position: absolute;
  left: -12px; top: 8px; bottom: 8px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.nav a.active .ico {
  background: rgba(0, 240, 255, 0.18);
  border-color: rgba(0, 240, 255, 0.42);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}
.nav-sub a { font-size: 12.5px; }

.sidebar-footer { padding: 12px 14px 0; }
.ns-quick-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.05), rgba(168, 85, 255, 0.04));
  border: 1px solid var(--border);
}
.ns-quick-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em;
  color: var(--cyan); margin-bottom: 8px;
}
.ns-quick-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 8px;
  margin-top: 4px;
  border-radius: 8px;
  background: rgba(3, 6, 15, 0.65);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ns-quick-row:hover {
  border-color: var(--border-glow);
  background: rgba(0, 240, 255, 0.08);
}
.ns-quick-row span { font-size: 9.5px; font-weight: 700; color: var(--muted2); }
.ns-quick-row code { font-family: var(--mono); font-size: 11px; color: var(--text); }

/* Main & Topbar */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(3, 6, 15, 0.78);
  backdrop-filter: blur(22px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.search-wrap { flex: 1; max-width: 480px; position: relative; display: flex; align-items: center; }
.search-ico {
  position: absolute; left: 15px;
  color: var(--cyan); opacity: 0.8; pointer-events: none;
}
.search {
  width: 100%;
  padding: 11px 54px 11px 42px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(7, 13, 29, 0.92);
  color: var(--text);
  font-size: 13px; font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.18s ease;
}
.search:focus {
  outline: none;
  border-color: var(--border-glow);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12), 0 0 24px rgba(0, 240, 255, 0.08);
}
.search-kbd {
  position: absolute; right: 12px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  padding: 3px 7px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--muted2);
  pointer-events: none;
}

.topbar-right { display: flex; align-items: center; gap: 10px; }
.telemetry-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px;
  border-radius: 12px;
  background: rgba(62, 224, 138, 0.07);
  border: 1px solid rgba(62, 224, 138, 0.22);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--ok);
}
.telemetry-sep { opacity: 0.45; }
.mono-clock { font-family: var(--mono); color: var(--text); font-weight: 500; }

.btn-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(8, 14, 32, 0.9);
  color: var(--muted);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-icon:hover {
  color: var(--cyan);
  border-color: var(--border-glow);
  background: rgba(0, 240, 255, 0.08);
}
.btn-icon.spinning svg { animation: ringSpin 0.6s linear infinite; }

.lang {
  display: flex; gap: 2px; padding: 4px;
  border-radius: 12px;
  background: rgba(8, 14, 32, 0.9);
  border: 1px solid var(--border);
}
.lang span { padding: 6px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; color: var(--muted2); }
.lang span.on { background: rgba(0, 240, 255, 0.14); color: var(--cyan); }

.user-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 13px 6px 7px;
  border-radius: 13px;
  background: rgba(8, 14, 32, 0.9);
  border: 1px solid var(--border);
}
.user-av {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  font-weight: 800; font-size: 12px; color: #031018;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.25);
}
.user-meta { display: flex; flex-direction: column; line-height: 1.15; }
.user-meta span { color: var(--text); font-weight: 700; font-size: 12.5px; }
.user-meta small { color: var(--muted2); font-size: 10px; font-weight: 600; }

/* Content Area */
.content { padding: 28px 34px 56px; flex: 1; max-width: 1520px; width: 100%; margin: 0 auto; }

/* Hero Command Banner */
.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 28px 32px;
  margin-bottom: 24px;
  background:
    linear-gradient(125deg, rgba(12, 22, 48, 0.92) 0%, rgba(9, 15, 34, 0.88) 55%, rgba(24, 15, 48, 0.88) 100%);
  border: 1px solid rgba(0, 240, 255, 0.24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-banner-glow {
  position: absolute;
  right: -60px; top: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.18), rgba(168, 85, 255, 0.12) 45%, transparent 70%);
  filter: blur(25px);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 10px;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.hero-banner h1 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(95deg, #ffffff 30%, #9beeff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-banner p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 8px;
  max-width: 620px;
}
.hero-banner-actions { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }

/* Page Header */
.page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-eyebrow {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.15em;
  color: var(--cyan); margin-bottom: 6px;
}
.page-head h1 {
  font-family: var(--display);
  font-size: 28px; font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-head p { color: var(--muted); font-size: 13.5px; margin-top: 6px; line-height: 1.55; max-width: 580px; }
.page-head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.filter-pills {
  display: inline-flex; gap: 4px; padding: 4px;
  border-radius: 13px;
  background: rgba(8, 14, 32, 0.9);
  border: 1px solid var(--border);
}
.filter-pill {
  padding: 7px 14px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-pill:hover { color: var(--text); }
.filter-pill.active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 13px;
  border: none;
  font-weight: 700; font-size: 13px; font-family: inherit;
  cursor: pointer;
  background: var(--accent-grad);
  color: #020e17;
  box-shadow: 0 6px 26px rgba(0, 240, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 10px 34px rgba(0, 240, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  filter: brightness(1.04);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--border-glow);
  color: var(--cyan);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.1);
}
.btn-danger-hover:hover {
  background: rgba(255, 92, 122, 0.14);
  border-color: rgba(255, 92, 122, 0.45);
  color: var(--danger);
}
.btn-sm { padding: 7px 13px; font-size: 12px; border-radius: 10px; }

/* Stats Cards */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
@media (max-width: 1150px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

.stat {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.stat:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.32);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.08);
}
.stat::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2.5px;
  background: var(--accent-grad);
  opacity: 0.85;
}
.stat:nth-child(2)::before { background: linear-gradient(90deg, var(--ok), var(--cyan)); }
.stat:nth-child(3)::before { background: linear-gradient(90deg, var(--warn), var(--orange)); }
.stat:nth-child(4)::before { background: linear-gradient(90deg, var(--purple), var(--cyan)); }
.stat-kasa-highlight {
  background: linear-gradient(145deg, rgba(16, 22, 46, 0.88), rgba(26, 16, 52, 0.82));
  border-color: rgba(168, 85, 255, 0.28);
}
.stat h3 {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin: 0;
}
.stat .num {
  font-family: var(--display);
  font-size: 34px; font-weight: 800; letter-spacing: -0.04em;
  margin-top: 6px;
  text-shadow: 0 0 36px rgba(0, 240, 255, 0.18);
}
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 8px; font-weight: 500; }

.stat-head { display: flex; justify-content: space-between; align-items: center; }
.stat-glyph {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--cyan);
  background: rgba(0, 240, 255, 0.09);
  border: 1px solid rgba(0, 240, 255, 0.22);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.12);
}
.stat-glyph.ok { color: var(--ok); border-color: rgba(62, 224, 138, 0.35); background: rgba(62, 224, 138, 0.1); }
.stat-glyph.warn { color: var(--warn); border-color: rgba(255, 176, 32, 0.35); background: rgba(255, 176, 32, 0.1); }
.stat-glyph.purple { color: #d4a5ff; border-color: rgba(168, 85, 255, 0.4); background: rgba(168, 85, 255, 0.14); }

.stat-spark { width: 100%; height: 38px; margin-top: 10px; display: block; }
.stat-spark polyline {
  fill: none; stroke: var(--cyan);
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.4));
}
.stat-spark.spark-ok polyline { stroke: var(--ok); filter: drop-shadow(0 0 5px rgba(62, 224, 138, 0.45)); }
.stat-spark.spark-warn polyline { stroke: var(--warn); filter: drop-shadow(0 0 5px rgba(255, 176, 32, 0.45)); }
.stat-spark.spark-purple polyline { stroke: #c084fc; filter: drop-shadow(0 0 5px rgba(168, 85, 255, 0.5)); }

/* Bento Grid */
.bento {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 18px;
  margin-bottom: 12px;
}
.bento .span-2 { grid-column: 1 / -1; }
@media (max-width: 1100px) { .bento { grid-template-columns: 1fr; } .bento .span-2 { grid-column: 1; } }

.bento-card {
  background: var(--surface);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.bento-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.bento-card h2 { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--text); margin: 0; }
.bento-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

.pill-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ok); padding: 6px 11px; border-radius: 999px;
  background: rgba(62, 224, 138, 0.1); border: 1px solid rgba(62, 224, 138, 0.28);
  white-space: nowrap;
}
.live-dot, .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
  animation: pulseDot 1.8s ease-in-out infinite;
  display: inline-block;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.85); } }

.chart-bars {
  display: flex; align-items: flex-end; gap: 12px; height: 132px;
  padding: 18px 8px 6px;
  border-bottom: 1px solid var(--border-subtle);
}
.bar-col {
  flex: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  gap: 6px;
}
.bar-val { font-family: var(--mono); font-size: 10.5px; color: var(--cyan); }
.bar-col span {
  width: 100%; border-radius: 9px 9px 4px 4px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  opacity: 0.88;
  min-height: 10px;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.22);
  transition: height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.2s;
}
.bar-col:hover span { filter: brightness(1.25); opacity: 1; }
.chart-days {
  display: flex; gap: 12px; padding: 8px 8px 0;
}
.chart-days span {
  flex: 1; text-align: center;
  font-size: 11px; font-weight: 600; color: var(--muted2);
}

.quick-actions-strip {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.qa-chip {
  flex: 1; min-width: 130px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}
.qa-chip .qa-ico { color: var(--cyan); font-weight: 800; }
.qa-chip:hover {
  background: rgba(0, 240, 255, 0.09);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}

.viz-ring-wrap { position: relative; width: 146px; margin: 10px auto 18px; }
.viz-ring { width: 146px; height: 146px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 10; }
.ring-fg {
  fill: none; stroke: url(#ringGrad); stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}
.viz-ring-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 800; font-size: 28px; letter-spacing: -0.04em;
}
.viz-ring-label small {
  font-family: var(--font);
  font-size: 9.5px; font-weight: 700; color: var(--muted2);
  text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px;
}
.infra-list { list-style: none; font-size: 12.5px; }
.infra-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--border-subtle); color: var(--muted);
}
.infra-list li:first-child { border-top: none; padding-top: 0; }
.dot-ok {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); margin-right: 8px; box-shadow: 0 0 8px var(--ok);
}
.infra-ok { color: var(--ok); font-weight: 600; font-size: 11.5px; }

/* Cards & Site Rows */
.card {
  background: var(--surface);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.table-card { padding: 8px 18px 18px; }
.card h2 { font-family: var(--display); font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--cyan); }

.recent-sites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 920px) { .recent-sites-grid { grid-template-columns: 1fr; } }

.site-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  gap: 14px;
  cursor: pointer;
  background: rgba(6, 11, 26, 0.65);
  border: 1px solid var(--border-subtle);
  transition: all 0.18s ease;
}
.site-row:hover {
  background: rgba(0, 240, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}
.site-row-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.site-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(61, 123, 255, 0.14));
  border: 1px solid rgba(0, 240, 255, 0.28);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 800; font-size: 15px; color: var(--cyan);
  flex-shrink: 0;
}
.site-avatar.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 12.5px; }
.site-row .dom { font-weight: 700; font-size: 14px; color: var(--text); }
.site-row .meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.site-row .subline { font-size: 11px; color: var(--muted2); margin-top: 3px; font-family: var(--mono); }
.kasa-mini-chip {
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(62, 224, 138, 0.12);
  color: var(--ok);
  border: 1px solid rgba(62, 224, 138, 0.25);
}
.arrow { color: var(--cyan); font-size: 20px; opacity: 0.75; }

/* Badges & Pills */
.badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(62, 224, 138, 0.12);
  color: var(--ok);
  border: 1px solid rgba(62, 224, 138, 0.28);
  white-space: nowrap;
}
.badge.pending { background: rgba(255, 176, 32, 0.12); color: var(--warn); border-color: rgba(255, 176, 32, 0.3); }
.badge.error { background: rgba(255, 92, 122, 0.12); color: var(--danger); border-color: rgba(255, 92, 122, 0.3); }

.script-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(61, 123, 255, 0.12);
  border: 1px solid rgba(61, 123, 255, 0.28);
  color: #9ec5ff;
  font-size: 11.5px; font-weight: 600;
}
.iban-code {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.16);
  cursor: pointer;
  transition: all 0.15s;
}
.iban-code:hover {
  background: rgba(0, 240, 255, 0.14);
  border-color: var(--border-glow);
}
.tg-pill {
  display: inline-block;
  font-size: 11.5px; font-weight: 600;
  color: var(--cyan);
}

/* Tables */
.table-responsive { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 15px 12px; border-bottom: 1px solid var(--border-subtle); }
.table th {
  color: var(--muted2); font-weight: 700; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.11em;
  border-bottom: 1px solid var(--border);
}
.table code { font-family: var(--mono); font-size: 11.5px; color: var(--cyan); }
.table tbody tr { cursor: pointer; transition: background 0.14s; }
.table tbody tr:hover td { background: rgba(0, 240, 255, 0.04); }

/* Kasa KPI Strip */
.kasa-kpi-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px;
}
@media (max-width: 800px) { .kasa-kpi-strip { grid-template-columns: 1fr; } }
.kasa-kpi-box {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.kasa-kpi-box.highlight {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(168, 85, 255, 0.1));
  border-color: var(--border-glow);
}
.kasa-kpi-lbl { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--muted); }
.kasa-kpi-val {
  display: block; font-family: var(--display);
  font-size: 28px; font-weight: 800; margin-top: 6px;
}
.kasa-kpi-val.ok { color: var(--ok); }
.kasa-kpi-val.danger { color: var(--danger); }
.kasa-kpi-val.cyan { color: var(--cyan); }

/* Guide Steps & Script Cards */
.guide-steps { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.guide-steps li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(5, 10, 24, 0.65);
  border: 1px solid var(--border-subtle);
}
.step-num {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  padding: 6px 9px; border-radius: 9px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan); border: 1px solid rgba(0, 240, 255, 0.28);
}
.guide-steps b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.guide-steps p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.scripts-pool-list { display: flex; flex-direction: column; gap: 12px; }
.script-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 16px; border-radius: 14px;
  background: rgba(5, 10, 24, 0.7);
  border: 1px solid var(--border-subtle);
}
.script-card-main { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
.script-ico {
  width: 38px; height: 38px; border-radius: 11px;
  background: rgba(168, 85, 255, 0.14);
  border: 1px solid rgba(168, 85, 255, 0.32);
  color: #d8b4fe;
  display: grid; place-items: center; font-size: 16px; flex-shrink: 0;
}
.script-preview {
  display: block; margin-top: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--muted2);
  word-break: break-all;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center; padding: 36px 20px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: rgba(4, 8, 20, 0.45);
}
.empty-ico { font-size: 28px; color: var(--cyan); margin-bottom: 8px; opacity: 0.8; }
.empty-state b { display: block; font-size: 14px; margin-bottom: 4px; }
.empty-state p { font-size: 12.5px; color: var(--muted); }

/* Modals */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(2, 4, 12, 0.82);
  backdrop-filter: blur(14px);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 24px;
}
.modal-back.show { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface2);
  border: 1px solid var(--border-glow);
  border-radius: 22px;
  width: min(680px, 100%);
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 0 90px rgba(0, 240, 255, 0.14), var(--shadow);
  display: flex; flex-direction: column;
  position: relative;
}
.modal-eyebrow {
  display: block; font-size: 10px; font-weight: 800;
  letter-spacing: 0.14em; color: var(--cyan); margin-bottom: 3px;
}
.modal-head {
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-head h3 { font-family: var(--display); font-size: 19px; font-weight: 800; }
.modal-body { padding: 22px 26px 26px; overflow-y: auto; flex: 1; }
.modal-foot {
  padding: 16px 26px 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
  background: rgba(4, 8, 20, 0.6);
}

/* Forms */
.form-section { margin-bottom: 24px; }
.form-section-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--cyan); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.form-section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-glow), transparent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.field-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea, .field select, input, textarea {
  width: 100%; padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(4, 8, 20, 0.92);
  color: var(--text);
  font-size: 13.5px; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--border-glow);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12), 0 0 20px rgba(0, 240, 255, 0.06);
}
.field-hint { font-size: 11px; color: var(--muted2); margin-top: 6px; }
textarea { min-height: 92px; resize: vertical; font-size: 13px; }
.field select { cursor: pointer; }
.field input:read-only { opacity: 0.8; cursor: default; color: var(--muted); }

.form-details {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 16px;
  background: rgba(0, 240, 255, 0.025);
}
.form-details summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cyan);
  list-style: none;
  user-select: none;
}
.form-details summary::-webkit-details-marker { display: none; }

.ns-box {
  background: rgba(4, 8, 20, 0.95);
  border: 1px dashed var(--border-glow);
  border-radius: 14px;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--cyan);
  white-space: pre-wrap;
}

/* Slide-Over Drawer */
.drawer-back {
  position: fixed; inset: 0;
  background: rgba(1, 3, 10, 0.65);
  backdrop-filter: blur(6px);
  z-index: 150; display: none;
}
.drawer-back.show { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(470px, 100vw);
  background: var(--surface2);
  border-left: 1px solid var(--border-glow);
  z-index: 160;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.65);
}
.drawer-back.show .drawer { transform: translateX(0); }
.drawer-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--border); background: rgba(4, 8, 20, 0.55); }
.drawer-quick-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.drawer-body { padding: 22px 24px 32px; overflow-y: auto; flex: 1; }
.drawer-section-title {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--cyan); margin-bottom: 12px;
}
.kv {
  display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px;
  font-size: 12.5px; padding: 14px 16px; border-radius: 14px;
  background: rgba(4, 8, 20, 0.65); border: 1px solid var(--border-subtle);
}
.kv dt { color: var(--muted2); font-weight: 500; }
.kv dd { color: var(--text); font-weight: 600; word-break: break-word; font-family: var(--mono); font-size: 12px; }

.drawer-kasa {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.kasa-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px;
}
.kasa-summary .ks {
  padding: 12px 10px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(4, 8, 20, 0.75); text-align: center;
}
.kasa-summary .ks b { display: block; font-size: 15px; margin-top: 4px; font-family: var(--mono); }
.kasa-summary .ks small { font-size: 10px; color: var(--muted2); text-transform: uppercase; font-weight: 700; }
.kasa-tx-form { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); }
.kasa-tx-list { margin-top: 10px; max-height: 220px; overflow-y: auto; }
.kasa-tx-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px; margin-bottom: 6px; border-radius: 10px;
  background: rgba(4, 8, 20, 0.55); border: 1px solid var(--border-subtle);
  font-size: 12px;
}
.kasa-tx-row .in { color: var(--ok); font-weight: 700; font-family: var(--mono); }
.kasa-tx-row .out { color: var(--danger); font-weight: 700; font-family: var(--mono); }

/* Setup Flow Modal */
.setup-modal { max-width: 560px; }
.setup-phase { font-size: 15px; font-weight: 700; color: var(--cyan); margin-bottom: 14px; min-height: 1.4em; }
.setup-progress {
  height: 7px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden; margin-bottom: 20px;
}
.setup-progress div {
  height: 100%; width: 0%;
  background: var(--accent-grad);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  transition: width 0.5s ease;
}
.setup-checklist { list-style: none; margin: 0; padding: 0; }
.setup-checklist li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--border-subtle);
  font-size: 13px; color: var(--muted);
}
.setup-checklist li.done { color: var(--text); font-weight: 500; }
.setup-checklist li .dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--muted2); flex-shrink: 0;
}
.setup-checklist li.done .dot {
  border-color: var(--ok); background: var(--ok);
  box-shadow: 0 0 12px rgba(62, 224, 138, 0.5);
}
.setup-checklist li.pending .dot { animation: pulseDot 1.2s ease-in-out infinite; border-color: var(--cyan); }
.ns-pair { display: flex; flex-direction: column; gap: 10px; }
.ns-chip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border-glow);
  background: rgba(0, 240, 255, 0.05);
}
.ns-tag { font-size: 10px; font-weight: 800; color: var(--cyan); letter-spacing: 0.1em; }
.ns-chip code { flex: 1; font-family: var(--mono); font-size: 13px; color: var(--text); }

/* ==========================================
   LOGIN PAGE LUXURY STYLING
   ========================================== */
.login-page {
  min-height: 100vh; display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  position: relative; z-index: 1;
}
@media (max-width: 960px) { .login-page { grid-template-columns: 1fr; } }

.login-hero {
  padding: 48px 56px;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero-top-badge {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.22);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 28px;
}
.badge-sep { opacity: 0.35; }
.mono-tag { font-family: var(--mono); color: var(--text); opacity: 0.85; }

.hero-brand-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
}
.hero-brand-title {
  font-family: var(--display);
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
}
.hero-brand-sub {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--muted); margin-top: 3px;
}

.login-hero h1 {
  font-family: var(--display);
  font-size: 46px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.08;
  margin-bottom: 18px;
  color: #fff;
}
.grad-text {
  background: linear-gradient(120deg, var(--cyan) 0%, #6aa2ff 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 500px;
}

.login-ring {
  position: absolute; right: -50px; bottom: 8%;
  width: 240px; height: 240px;
  border: 1.5px solid rgba(255, 138, 61, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(255, 138, 61, 0.12), inset 0 0 40px rgba(255, 61, 154, 0.08);
  animation: ringSpin 26s linear infinite;
  pointer-events: none;
}
.login-ring-2 {
  width: 160px; height: 160px; right: 7%; bottom: 26%;
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.18);
  animation-direction: reverse; animation-duration: 18s;
}
.login-ring-3 {
  width: 320px; height: 320px; right: -90px; top: -70px;
  border-color: rgba(168, 85, 255, 0.18);
  animation-duration: 34s;
}
@keyframes ringSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-mock {
  position: absolute; right: 4%; top: 14%;
  width: min(390px, 38vw);
  perspective: 950px;
  opacity: 0.94;
  pointer-events: none;
}
@media (max-width: 1220px) { .hero-mock { display: none; } }
.mock-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.18), transparent 65%);
  filter: blur(22px);
}
.mock-shell {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: linear-gradient(145deg, rgba(10, 16, 36, 0.92), rgba(5, 9, 22, 0.9));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(0, 240, 255, 0.12);
  padding: 14px 16px 18px;
  transform: rotateY(-12deg) rotateX(6deg);
}
.mock-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.mock-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.mock-bar span:first-child { background: #ff5c7a; }
.mock-bar span:nth-child(2) { background: var(--warn); }
.mock-bar span:nth-child(3) { background: var(--ok); }
.mock-url { margin-left: auto; font-family: var(--mono); font-size: 9.5px; color: var(--muted2); }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-tile {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 240, 255, 0.04);
  padding: 11px;
  min-height: 76px;
  position: relative;
  overflow: hidden;
}
.mock-tile.wide { grid-column: 1 / -1; min-height: 96px; }
.mock-tile-head { display: flex; justify-content: space-between; font-size: 9.5px; font-weight: 700; margin-bottom: 6px; }
.mock-lbl { color: var(--muted); letter-spacing: 0.08em; }
.mock-val { color: var(--ok); font-family: var(--mono); }
.mock-chart { width: 100%; height: 56px; }
.mock-chart polyline { fill: none; stroke: var(--cyan); stroke-width: 2.2; filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6)); }
.mock-donut {
  width: 52px; height: 52px; border-radius: 50%;
  border: 5px solid rgba(255, 138, 61, 0.3);
  border-top-color: var(--orange);
  border-right-color: var(--magenta);
  margin: 2px auto 0;
  animation: ringSpin 6s linear infinite;
}
.mock-kpi { display: block; text-align: center; font-size: 10px; font-weight: 700; color: var(--orange); margin-top: 7px; letter-spacing: 0.06em; }
.mock-bars { display: flex; align-items: flex-end; gap: 5px; height: 48px; justify-content: center; }
.mock-bars i {
  display: block; width: 9px; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  animation: barPulse 2.4s ease-in-out infinite;
}
.mock-bars i:nth-child(1) { height: 26px; animation-delay: 0s; }
.mock-bars i:nth-child(2) { height: 42px; animation-delay: 0.2s; }
.mock-bars i:nth-child(3) { height: 22px; animation-delay: 0.4s; }
.mock-bars i:nth-child(4) { height: 36px; animation-delay: 0.6s; }
.mock-bars i:nth-child(5) { height: 46px; animation-delay: 0.8s; }
@keyframes barPulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; transform: scaleY(1.06); } }

.login-features { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.login-feat {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 15px;
  background: rgba(8, 14, 32, 0.72);
  border: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.login-feat:hover {
  transform: translateX(4px);
  border-color: rgba(0, 240, 255, 0.3);
}
.feat-ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan);
  display: grid; place-items: center; flex-shrink: 0;
}
.feat-ico-purple { background: rgba(168, 85, 255, 0.12); border-color: rgba(168, 85, 255, 0.3); color: #c084fc; }
.feat-ico-emerald { background: rgba(62, 224, 138, 0.12); border-color: rgba(62, 224, 138, 0.3); color: var(--ok); }
.login-feat b { color: var(--text); display: block; font-size: 13.5px; margin-bottom: 3px; }

.login-form-side {
  display: flex; align-items: center; justify-content: center; padding: 40px 32px;
}
.login-card {
  width: min(430px, 100%);
  padding: 38px 36px 30px;
  background: rgba(10, 16, 35, 0.82);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 24px;
  backdrop-filter: blur(26px);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55), 0 0 60px rgba(0, 240, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.login-card-glow {
  position: absolute; top: -80px; right: -80px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.security-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(62, 224, 138, 0.1);
  border: 1px solid rgba(62, 224, 138, 0.26);
  color: var(--ok);
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.login-card h2 { font-family: var(--display); font-size: 25px; font-weight: 800; margin-bottom: 6px; }
.login-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; line-height: 1.5; }

.input-icon-wrap { position: relative; display: flex; align-items: center; }
.input-ico {
  position: absolute; left: 15px;
  color: var(--muted); pointer-events: none;
  transition: color 0.15s;
}
.input-icon-wrap input { padding-left: 44px; padding-right: 44px; }
.input-icon-wrap:focus-within .input-ico { color: var(--cyan); }
.pwd-toggle {
  position: absolute; right: 12px;
  background: transparent; border: none;
  color: var(--muted2); cursor: pointer;
  padding: 4px; display: grid; place-items: center;
}
.pwd-toggle:hover, .pwd-toggle.active { color: var(--cyan); }

.btn-login-submit { width: 100%; padding: 14px 22px; font-size: 14px; border-radius: 14px; }

.login-alert {
  margin-top: 16px; padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 92, 122, 0.12);
  border: 1px solid rgba(255, 92, 122, 0.35);
  color: var(--danger);
  font-size: 12.5px; font-weight: 600;
}

.login-card-footer {
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.sys-node {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
}

/* Utilities */
.hidden { display: none !important; }
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--surface2);
  border: 1px solid var(--border-glow);
  color: var(--cyan);
  padding: 13px 22px; border-radius: 14px;
  font-size: 13px; font-weight: 600;
  display: none; z-index: 350;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 32px rgba(0, 240, 255, 0.22);
}
.toast.show { display: block; animation: toastIn 0.25s ease; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }
.meta { color: var(--muted); font-size: 13px; }

/* ==========================================
   V3.0 ULTRA FINTECH ADDITIONS
   (TAWK.TO, LIVE TICKER, DEPOSIT ALERTS)
   ========================================== */
.stat-glyph.gold {
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.42);
  background: rgba(255, 209, 102, 0.12);
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.2);
}
.stat-spark.spark-gold polyline {
  stroke: #ffd166;
  filter: drop-shadow(0 0 5px rgba(255, 209, 102, 0.5));
}
.kasa-kpi-val.gold { color: #ffd166; }

/* Topbar Deposit Test & Sound Toggle */
.btn-deposit-sim {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 209, 102, 0.4);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(62, 224, 138, 0.1));
  color: #ffd166;
  font-size: 11.5px; font-weight: 700; font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.12);
}
.btn-deposit-sim:hover {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.24), rgba(62, 224, 138, 0.18));
  border-color: #ffd166;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 209, 102, 0.25);
}
.coin-spin {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #ffd166; color: #050a14;
  font-weight: 800; font-size: 11px;
}
.sound-toggle.active {
  color: var(--ok);
  border-color: rgba(62, 224, 138, 0.35);
  background: rgba(62, 224, 138, 0.09);
}

/* Live Financial Ticker Bar */
.live-ticker-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 9px 32px;
  background: linear-gradient(90deg, rgba(6, 12, 28, 0.92), rgba(10, 18, 38, 0.85));
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  overflow: hidden;
}
.ticker-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.32);
  color: #ffd166;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track {
  display: flex; align-items: center; gap: 12px;
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
}
.ticker-track::-webkit-scrollbar { display: none; }
.ticker-empty { color: var(--muted); font-size: 12px; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
}
.ticker-item.ticker-in b { color: var(--ok); }
.ticker-item.ticker-out b { color: var(--danger); }
.ticker-item small { color: var(--muted2); font-family: var(--mono); font-size: 10.5px; }
.ticker-sep { color: var(--cyan); opacity: 0.5; }

/* Optional Tags & Tawk.to Selector */
.opt-tag {
  font-size: 9.5px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan);
  letter-spacing: 0.08em;
}
.opt-inline {
  color: var(--muted2);
  font-weight: 500;
  font-size: 11px;
}

.tawk-selector {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 560px) { .tawk-selector { grid-template-columns: 1fr; } }
.tawk-option {
  cursor: pointer;
  display: block;
}
.tawk-option input[type="radio"] {
  display: none;
}
.tawk-opt-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(4, 8, 20, 0.85);
  border: 1px solid var(--border);
  transition: all 0.18s ease;
  height: 100%;
}
.tawk-option:hover .tawk-opt-box {
  border-color: rgba(0, 240, 255, 0.3);
}
.tawk-option.active .tawk-opt-box {
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.1), rgba(61, 123, 255, 0.07));
  border-color: var(--border-glow);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.1);
}
.tawk-opt-head {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 6px;
}
.tawk-radio-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--muted2);
  display: inline-block; position: relative;
}
.tawk-option.active .tawk-radio-dot {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.tawk-opt-head b { font-size: 13.5px; color: var(--text); }
.tawk-opt-box p { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.tawk-custom-wrap {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 240, 255, 0.035);
  border: 1px dashed var(--border-glow);
}

.tawk-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px;
  white-space: nowrap;
}
.tawk-pill.custom {
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}
.tawk-pill.orig {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--border-subtle);
}

/* ==========================================
   VIP DEPOSIT NOTIFICATION STACK (PARA YATIRMA BİLDİRİMİ)
   ========================================== */
.deposit-alert-stack {
  position: fixed;
  top: 78px;
  right: 26px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(410px, calc(100vw - 32px));
  pointer-events: none;
}
.deposit-alert-card {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(10, 22, 36, 0.96) 0%, rgba(16, 32, 28, 0.96) 55%, rgba(28, 24, 12, 0.96) 100%);
  border: 1.5px solid #ffd166;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 45px rgba(255, 209, 102, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: depSlideIn 0.38s cubic-bezier(0.2, 0.9, 0.2, 1);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.deposit-alert-card.out {
  opacity: 0;
  transform: translateX(40px) scale(0.95);
}
@keyframes depSlideIn {
  from { opacity: 0; transform: translateX(60px) scale(0.92); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
.dep-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.35), rgba(62, 224, 138, 0.2) 50%, transparent 70%);
  filter: blur(16px);
  pointer-events: none;
}
.dep-ico-wrap {
  flex-shrink: 0;
}
.dep-coin {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffd166 0%, #ffb020 55%, #3ee08a 100%);
  color: #04100c;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 28px rgba(255, 209, 102, 0.55);
  animation: coinPulse 1.4s ease-in-out infinite;
}
@keyframes coinPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.08) rotate(-6deg); }
}
.dep-body { flex: 1; min-width: 0; }
.dep-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
  color: #ffd166;
  margin-bottom: 3px;
}
.dep-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}
.dep-amount {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ok);
  text-shadow: 0 0 24px rgba(62, 224, 138, 0.45);
  line-height: 1.1;
}
.dep-meta {
  font-size: 12.5px;
  color: var(--text);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dep-meta b { color: var(--cyan); }
.dep-bal {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  font-family: var(--mono);
}
.dep-bal b { color: #ffd166; }
.dep-close {
  position: absolute;
  top: 10px; right: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
}
.dep-close:hover { color: #fff; }

/* Pending Deposits & Bot Command Grid */
.pending-dep-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px; margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(255, 209, 102, 0.05);
  border: 1px solid rgba(255, 209, 102, 0.25);
  flex-wrap: wrap;
}
.pending-dep-main { display: flex; align-items: center; gap: 12px; }
.pending-dep-code {
  font-family: var(--mono); font-size: 12px; font-weight: 800;
  padding: 6px 10px; border-radius: 9px;
  background: rgba(255, 209, 102, 0.14);
  color: #ffd166; border: 1px solid rgba(255, 209, 102, 0.35);
}
.pending-dep-actions { display: flex; gap: 8px; }

.cmd-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
@media (max-width: 720px) { .cmd-grid { grid-template-columns: 1fr; } }
.cmd-item {
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(4, 8, 20, 0.72);
  border: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; gap: 5px;
}
.cmd-item code {
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  color: var(--cyan);
}
.cmd-item span {
  font-size: 11.5px; color: var(--muted); line-height: 1.45;
}




/* Canlı Aktif Ziyaretçi Göz Rozeti (👁️) */
.live-eye-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  line-height: 1.2;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.live-eye-badge .eye-ico {
  font-size: 12.5px;
  line-height: 1;
}
.live-eye-badge b {
  font-family: var(--mono, monospace);
  font-size: 12px;
  font-weight: 800;
}
.live-eye-badge small {
  font-size: 10.5px;
  opacity: 0.85;
}
.live-eye-badge.is-online {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.18);
}
.live-eye-badge.is-online b {
  color: #ecfdf5;
}

/* Pro LiveDesk v2 (/Komut & Hızlı Temsilci Stüdyosu) */
.lc-cat-tab.active {
  background: rgba(0, 240, 255, 0.14) !important;
  border-color: var(--cyan) !important;
  color: #fff !important;
}
.lc-quick-btn:hover {
  border-color: var(--cyan) !important;
  background: rgba(0, 240, 255, 0.08) !important;
}
.lc-slash-item:hover {
  background: rgba(0, 240, 255, 0.12) !important;
}
.lc-var-chip {
  font-family: var(--mono);
  font-size: 11px !important;
  padding: 2px 7px !important;
  color: var(--cyan) !important;
  border-color: rgba(0, 240, 255, 0.3) !important;
}
.lc-var-chip:hover {
  background: rgba(0, 240, 255, 0.15) !important;
}
@media (max-width: 1200px) {
  .lc-ProGrid {
    grid-template-columns: 1fr !important;
  }
  #formLcShortcutAdd > div {
    grid-template-columns: 1fr !important;
  }
}

