:root {
  --bg: #0a0c10;
  --bg-2: #0e1118;
  --panel: #12161f;
  --panel-2: #171c27;
  --soft: #1c2330;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f3f5f8;
  --text-2: #c7ceda;
  --muted: #8b94a7;
  --accent: #c9a227;
  --accent-2: #f0d36a;
  --accent-soft: rgba(201, 162, 39, 0.14);
  --accent-text: #f3d56a;
  --ok: #2fbf7a;
  --ok-soft: rgba(47, 191, 122, 0.14);
  --warn: #e0a045;
  --warn-soft: rgba(224, 160, 69, 0.14);
  --danger: #ef5f6d;
  --danger-soft: rgba(239, 95, 109, 0.14);
  --info: #5b8def;
  --info-soft: rgba(91, 141, 239, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Plus Jakarta Sans", Inter, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sidebar: 268px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  overflow-x: clip;
  max-width: 100%;
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { max-width: 100%; }
input, select, textarea { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(201, 162, 39, 0.35); }

/* ---------- SCROLLBAR ---------- */
html, body, .main, .sidebar-nav, .table-wrap {
  scrollbar-width: thin;
  scrollbar-color: #c9a227 #12161f;
}
html::-webkit-scrollbar, body::-webkit-scrollbar,
.main::-webkit-scrollbar, .sidebar-nav::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track,
.main::-webkit-scrollbar-track, .sidebar-nav::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track { background: #12161f; }
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb,
.main::-webkit-scrollbar-thumb, .sidebar-nav::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f0d36a, #c9a227);
  border-radius: 99px;
  border: 2px solid #12161f;
}
html::-webkit-scrollbar-thumb:hover, .main::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffe08a, #d4ae2e);
}

/* ---------- AUTH ---------- */
.auth-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow-x: hidden;
  width: 100%;
}
.auth-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 0 0 auto;
  background:
    radial-gradient(720px 420px at 8% 0%, rgba(201, 162, 39, 0.16), transparent 58%),
    radial-gradient(520px 320px at 90% 90%, rgba(139, 124, 255, 0.1), transparent 55%),
    linear-gradient(160deg, #0b0c10 0%, #12141c 48%, #0b0c10 100%);
  border-bottom: 1px solid var(--line);
}
.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 24% 16%, black, transparent 72%);
  pointer-events: none;
}
.auth-hero-top,
.auth-hero-bottom { position: relative; z-index: 1; }
.auth-hero-top {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.auth-hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
}
.auth-hero-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}
.auth-hero-brand-text small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-kicker {
  margin: 8px 0 6px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.auth-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  font-weight: 700;
  max-width: none;
  letter-spacing: -0.03em;
}
.auth-lead {
  margin: 0 auto 14px;
  color: var(--text-2);
  max-width: 52ch;
  line-height: 1.65;
  font-size: 0.95rem;
}
.auth-pipeline { display: none; }
.auth-stages-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 780px;
  margin: 0 auto;
}
.auth-stage-gt {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  opacity: 0.7;
  line-height: 1;
  user-select: none;
}
.auth-stages-top .auth-mobile-stage { display: inline-flex; }
.auth-stage {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  min-height: 78px;
  opacity: 0.4;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.auth-stage.is-active { opacity: 1; transform: translateX(4px); }
.auth-stage-rail { display: flex; flex-direction: column; align-items: center; }
.auth-stage-dot {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-strong);
}
.auth-stage.is-active .auth-stage-dot {
  color: #0b0c10;
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(201, 162, 39, 0.28);
}
.auth-stage-line {
  flex: 1;
  width: 1px;
  margin: 6px 0 2px;
  min-height: 28px;
  background: linear-gradient(180deg, rgba(201,162,39,0.4), rgba(255,255,255,0.06));
}
.auth-stage-body { padding-bottom: 18px; }
.auth-stage-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.auth-stage-head strong { font-size: 0.98rem; font-weight: 700; }
.auth-stage-tag {
  font-size: 0.68rem;
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.auth-stage.is-active .auth-stage-tag {
  color: var(--accent);
  border-color: rgba(201, 162, 39, 0.28);
  background: var(--accent-soft);
}
.auth-stage-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  max-width: 40ch;
}
.auth-stage.is-active .auth-stage-body p { color: var(--text-2); }
.auth-progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-bottom: 14px;
}
.auth-progress-bar {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #f0d36a, #c9a227);
  transition: width 0.55s var(--ease);
  box-shadow: 0 0 16px rgba(201, 162, 39, 0.35);
}
.auth-hero-foot { margin: 0; color: var(--muted); font-size: 0.78rem; }
.auth-hero-bottom { display: none; }
.auth-panel {
  display: grid;
  place-items: center;
  padding: 28px 16px 40px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  overflow-x: hidden;
  background:
    radial-gradient(480px 260px at 90% 0%, rgba(201, 162, 39, 0.07), transparent 60%),
    var(--bg-2);
}
.auth-body--solo {
  grid-template-columns: minmax(0, 1fr);
}
.auth-body--solo .auth-panel {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px 16px;
}
.auth-wrap { width: min(420px, 100%); min-width: 0; max-width: 100%; }
.auth-mobile-stages {
  display: none;
  gap: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  padding-bottom: 2px;
}
.auth-mobile-stage {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0.55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-mobile-stage em { font-style: normal; font-family: var(--mono); font-size: 0.68rem; color: var(--accent); }
.auth-mobile-stage.is-active { opacity: 1; color: var(--text); border-color: rgba(201,162,39,0.35); background: var(--accent-soft); }
.auth-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 42%), var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
  animation: rise 0.55s var(--ease) both;
}
.auth-card-top { margin-bottom: 22px; }
.auth-card-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(201, 162, 39, 0.22);
}
.auth-card h1 { margin: 0 0 6px; font-size: 1.7rem; letter-spacing: -0.03em; }
.auth-card .auth-sub { margin: 0; color: var(--muted); font-size: 0.92rem; }
.auth-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0b0c10;
  background: linear-gradient(145deg, #f0d36a, #c9a227);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.22);
}
.auth-note { margin: 16px 0 0; color: var(--muted); font-size: 0.78rem; text-align: center; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- APP SHELL ---------- */
html.app-html, body.app-body {
  height: 100%;
  overflow: hidden;
}
.app-body {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  height: 100dvh;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 100% -8%, rgba(201, 162, 39, 0.06), transparent 50%),
    var(--bg);
}
.sidebar {
  background: #0e1015;
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  z-index: 30;
}
.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 10px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.sidebar-brand strong { display: block; font-size: 0.92rem; letter-spacing: -0.02em; }
.sidebar-brand small { color: var(--muted); font-size: 0.72rem; }
.sidebar-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 2px 10px;
  flex-shrink: 0;
}
.sidebar-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.sidebar-cta .cta-mint {
  background: var(--accent);
  color: #0b0c10;
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.18);
}
.sidebar-cta .cta-mint:hover { filter: brightness(1.06); }
.sidebar-cta .cta-dark {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--line-strong);
}
.sidebar-cta .cta-dark:hover { background: rgba(255,255,255,0.07); }
.sidebar-cta .cta-purple {
  background: linear-gradient(135deg, #6b4dff, #9b6cff);
  color: #fff;
}
.sidebar-cta .cta-orange {
  background: linear-gradient(135deg, #ff7a3c, #ff4d7a);
  color: #fff;
}
.nav-label {
  padding: 8px 12px 6px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 8px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #a8aeb8;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.sidebar-nav a svg { width: 18px; height: 18px; opacity: 0.8; flex-shrink: 0; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.045); color: var(--text); }
.sidebar-nav a.active {
  background: var(--accent-soft);
  color: var(--accent-text);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.22);
}
.sidebar-nav a.active svg { opacity: 1; }
.sidebar-nav .nav-divider {
  height: 1px;
  margin: 10px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
}
.sidebar-nav .nav-label { pointer-events: none; margin-top: 4px; }
.main {
  min-width: 0;
  max-width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px 8px;
}
.topbar-left { min-width: 0; }
.topbar .crumb {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.topbar h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.03em;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-right { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 7px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #111;
  background: linear-gradient(145deg, #f0d36a, #c9a227);
}
.user-chip .user-name { font-size: 0.82rem; font-weight: 600; color: var(--text-2); }
.topbar-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(239, 107, 120, 0.28);
  background: rgba(239, 107, 120, 0.1);
  color: #f1a0a8;
  font-size: 0.82rem;
  font-weight: 700;
}
.topbar-logout svg { width: 16px; height: 16px; flex-shrink: 0; }
.topbar-logout:hover { background: rgba(239, 107, 120, 0.18); }
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.55);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(201, 162, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.content { padding: 10px 32px 48px; min-width: 0; max-width: 100%; overflow-x: hidden; animation: rise 0.45s var(--ease) both; }

/* ---------- STATS / PANELS ---------- */
.grid-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 18px 16px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.stat-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow, rgba(201,162,39,0.14)), transparent 70%);
  pointer-events: none;
}
.stat-card .stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--glow-soft, var(--accent-soft));
  color: var(--glow-text, var(--accent-text));
}
.stat-card .stat-icon svg { width: 18px; height: 18px; }
.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.stat-card strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat-card em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
}
.stat-card.tone-ok { --glow: rgba(201,162,39,0.18); --glow-soft: var(--ok-soft); --glow-text: #7ee0b0; }
.stat-card.tone-info { --glow: rgba(122,163,255,0.18); --glow-soft: var(--info-soft); --glow-text: #9bbbff; }
.stat-card.tone-warn { --glow: rgba(240,180,90,0.18); --glow-soft: var(--warn-soft); --glow-text: #f0c48a; }
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 18px;
  min-width: 0;
  max-width: 100%;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.panel-body { padding: 18px; }
.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.84rem;
  table-layout: auto;
}
table.data th,
table.data td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data th {
  color: #9aa3b5;
  font-weight: 650;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.028);
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}
table.data td {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
table.data td.cell-wrap,
table.data td.actions {
  max-width: none;
  overflow: visible;
  white-space: normal;
}
table.data td.actions {
  text-align: right;
}
table.data td.actions form { display: inline; }
table.data table {
  width: 100%;
  min-width: 0;
  font-size: 0.78rem;
}
table.data table th,
table.data table td {
  padding: 8px 10px;
  max-width: 180px;
}
table.kv {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
}
table.kv th,
table.kv td {
  max-width: none;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}
table.kv th {
  width: 36%;
  color: var(--muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
}
table.data th:first-child,
table.data td:first-child { padding-left: 18px; }
table.data tbody tr { transition: background 0.15s ease; }
table.data tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.mono,
.mono { font-family: var(--mono); font-size: 0.78rem; }
table.data .oto-col-actions,
table.data th.oto-col-actions { text-align: right; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--soft);
  color: var(--text-2);
  border: 1px solid var(--line);
}

/* ---------- FORMS / BUTTONS ---------- */
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field span { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #12141a;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 12px;
  outline: none;
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input,
.field select {
  height: 46px;
  padding: 0 14px;
  line-height: 46px;
}
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  background-color: transparent;
  transition: background-color 99999s ease-out;
}
.field textarea { min-height: 120px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s var(--ease), filter 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(145deg, #f0d36a, #c9a227);
  color: #14110a;
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.2);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); }
.btn-danger {
  background: var(--danger-soft);
  color: #ffb4bc;
  border: 1px solid rgba(239, 107, 120, 0.3);
}
.btn-sm { padding: 7px 10px; font-size: 0.8rem; border-radius: 10px; }
.btn-block { width: 100%; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.toolbar form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}
.toolbar input,
.toolbar select {
  background: #12141a;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 12px;
  min-width: 0;
  flex: 1 1 200px;
  outline: none;
}
.toolbar input:focus,
.toolbar select:focus { border-color: rgba(201, 162, 39, 0.5); }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--soft);
  color: var(--muted);
  border: 1px solid var(--line);
}
.badge-ok { background: var(--ok-soft); color: #8be0b3; border-color: rgba(201,162,39,0.25); }
.badge-warn { background: var(--warn-soft); color: #f0c48a; border-color: rgba(240,180,90,0.25); }
.badge-danger { background: var(--danger-soft); color: #f0a0a8; border-color: rgba(239,107,120,0.25); }
.alert {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
}
.alert-error,
.alert-danger {
  background: var(--danger-soft);
  border-color: rgba(239, 107, 120, 0.35);
  color: #ffc2c8;
}
.alert-ok,
.alert-success {
  background: var(--ok-soft);
  border-color: rgba(201, 162, 39, 0.35);
  color: #b7efd0;
}
.muted { color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pagination a.active {
  background: var(--accent);
  color: #0b0c10;
  border-color: transparent;
}

/* ---------- MODAL ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(4, 6, 10, 0.76);
  display: none;
  place-items: center;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  backdrop-filter: blur(8px);
}
.modal-backdrop.open {
  display: flex;
  animation: fade 0.2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(480px, 100%);
  margin: auto;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: var(--shadow);
  animation: rise 0.28s var(--ease);
  /* Kısa ekranda alt alanlar ve butonlar kesilmesin */
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.modal > form,
.modal > .modal-scroll {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
.modal-head,
.modal-foot {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 0 0 auto;
}
.modal-foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  gap: 8px;
}
.modal-body {
  padding: 16px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 25;
}

/* ---------- INFRA / PIPELINE ---------- */
.infra-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(201, 162, 39, 0.1), transparent 55%),
    radial-gradient(420px 200px at 100% 100%, rgba(139, 124, 255, 0.08), transparent 50%),
    var(--panel);
}
.infra-hero.compact { align-items: center; padding: 16px 20px; }
.eyebrow {
  margin: 0 0 6px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.infra-title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pipeline li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-2);
}
.pipeline li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
}
.infra-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.04);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
}
.infra-pill.ok { background: var(--ok-soft); border-color: rgba(201,162,39,0.35); color: #b7efd0; }
.infra-pill.warn { background: var(--warn-soft); border-color: rgba(240,180,90,0.35); color: #f0d2a0; }
.soft-hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.section-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.checklist { display: flex; flex-direction: column; gap: 10px; }
.check-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.check-item strong { min-width: 140px; }
.check-item span { color: var(--muted); font-size: 0.88rem; flex: 1; }
.check-item.done { border-color: rgba(201,162,39,0.28); background: rgba(201,162,39,0.06); }
.buy-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.buy-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--info-soft);
  border: 1px solid rgba(122, 163, 255, 0.18);
  font-size: 0.8rem;
  color: var(--text-2);
}
.buy-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.72rem;
  background: var(--info-soft);
  color: #9bbcff;
}
.field-toggle {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(201, 162, 39, 0.07);
  margin-bottom: 12px;
}
.field-toggle input { width: auto !important; margin-top: 3px; }
.field-toggle span { display: flex; flex-direction: column; gap: 2px; }
.field-toggle small { color: var(--muted); font-size: 0.8rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  font-size: 0.8rem;
  color: var(--text-2);
  cursor: pointer;
}
.chip-check input { width: auto; }
.modal-lg { width: min(640px, 100%); }
.nav-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-card:hover {
  border-color: rgba(201, 162, 39, 0.35);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.nav-card strong { font-size: 1rem; }
.nav-card span { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }

/* ---------- MODULE SHELL ---------- */
.mod-title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  letter-spacing: -0.04em;
  font-weight: 800;
}
.mod-desc {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.6;
  font-size: 0.94rem;
}
.mod-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.mod-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.mod-status-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.mod-status-item span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mod-status-item strong {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  word-break: break-word;
}
.mod-status-item.ok {
  border-color: rgba(201,162,39,0.22);
  background: linear-gradient(180deg, rgba(201,162,39,0.08), transparent 70%), var(--panel);
}
.mod-status-item.warn {
  border-color: rgba(240,180,90,0.22);
  background: linear-gradient(180deg, rgba(240,180,90,0.08), transparent 70%), var(--panel);
}
.mod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mod-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.mod-link:hover {
  border-color: rgba(201, 162, 39, 0.35);
  background: linear-gradient(180deg, rgba(201,162,39,0.06), transparent 60%), var(--panel);
  transform: translateY(-1px);
}
.mod-link strong { font-size: 0.98rem; }
.mod-link span { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.mod-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.form-stack .field { margin-bottom: 14px; }
.form-stack textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #12141a;
  padding: 12px 14px;
  outline: none;
  color: inherit;
  font: inherit;
}

.pipe-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
}
.pipe-arrow { color: var(--muted); opacity: 0.6; }
.oto-baked-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.oto-baked,
.oto-baked--muted {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
}
.oto-baked { border-color: rgba(201,162,39,0.22); color: var(--accent); background: var(--accent-soft); }

@media (max-width: 900px) {
  .mod-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-grid,
  .mod-split { grid-template-columns: 1fr; }
  .mod-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  .buy-steps { grid-template-columns: 1fr; }
}

.fm-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  font-size: 0.82rem;
  font-family: var(--mono);
}
.fm-crumbs a { color: var(--accent-text); }
.fm-crumbs span { color: var(--muted); }
.fm-editor {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.45;
  background: #0b0e14;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  color: var(--text);
  resize: vertical;
  min-height: 360px;
}
.fm-table .fm-ico {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}
.fm-table .fm-ico.is-dir { background: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
.fm-table .fm-ico.is-file { background: var(--muted); }

.term-shell {
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid #1e2a1e;
  overflow: hidden;
  background: #0b120c;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.term-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #1a241c, #121a14);
  border-bottom: 1px solid #243028;
}
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; background: #3d4a40; }
.term-dots i:nth-child(1) { background: #ff5f56; }
.term-dots i:nth-child(2) { background: #ffbd2e; }
.term-dots i:nth-child(3) { background: #27c93f; }
.term-title { flex: 1; text-align: center; font-family: var(--mono); font-size: 0.78rem; color: #8fa894; }
.term-actions { display: flex; gap: 10px; }
.term-actions a { font-family: var(--mono); font-size: 0.75rem; color: #6dcf7a; }
.term-body {
  padding: 14px 16px 18px;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.55;
  color: #c8e6cc;
  min-height: 420px;
  background: radial-gradient(800px 300px at 10% 0%, rgba(39, 201, 63, 0.05), transparent 50%), #0b120c;
}
.term-line { margin: 0 0 4px; word-break: break-all; }
.term-line.dim { color: #5f7a63; }
.term-line.out { color: #9fd8a8; }
.term-line.err { color: #ff8b8b; }
.term-line.hint { margin-top: 10px; font-size: 0.75rem; }
.term-ls { margin: 6px 0 14px; display: flex; flex-direction: column; gap: 1px; }
.term-row {
  display: grid;
  grid-template-columns: 110px 72px 1fr;
  gap: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #c8e6cc;
}
.term-row:hover { background: rgba(109, 207, 122, 0.1); }
.term-row .perm { color: #6a8f72; }
.term-row .size { color: #7a9a80; text-align: right; }
.term-row.is-dir .name { color: #6dcf7a; font-weight: 600; }
.term-row.is-file .name { color: #d7ecd9; }
.term-prompt { margin-top: 8px; border-top: 1px dashed #243028; padding-top: 12px; }
.term-prompt label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.term-prompt .who { color: #6dcf7a; font-weight: 700; }
.term-prompt .path { color: #5b8def; }
.term-prompt .dollar { color: #c8e6cc; }
.term-prompt input {
  flex: 1;
  min-width: 180px;
  background: transparent;
  border: 0;
  outline: 0;
  color: #e8ffe9;
  font-family: var(--mono);
  font-size: 0.84rem;
}
.term-nano { margin: 8px 0 16px; border: 1px solid #2a3a2e; border-radius: 8px; overflow: hidden; background: #07100a; }
.term-nano-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: #1a2e20;
  color: #b7efd0;
  font-size: 0.78rem;
}
.term-nano-bar button,
.term-nano-bar a { background: transparent; border: 0; color: #6dcf7a; font-family: var(--mono); cursor: pointer; padding: 0; text-decoration: underline; }
.term-nano textarea {
  width: 100%;
  min-height: 380px;
  border: 0;
  resize: vertical;
  background: #07100a;
  color: #d7ecd9;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 12px;
  outline: none;
}

@media (max-width: 1100px) {
  .grid-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-body { flex-direction: column; }
  .auth-hero { display: flex; }
  .auth-panel { padding: 20px 16px; align-content: center; }
  .auth-mobile-stages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-card { padding: 22px 18px; border-radius: 18px; }
  .auth-card h1 { font-size: 1.35rem; }
}
@media (max-width: 860px) {
  html.app-html, body.app-body { height: auto; overflow: auto; }
  .app-body { grid-template-columns: minmax(0, 1fr); height: auto; overflow: visible; }
  .main { height: auto; overflow: visible; }
  .menu-toggle { display: inline-flex; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.28s var(--ease);
    width: min(300px, 86vw);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open { display: block; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
  .user-chip .user-name { display: none; }
  .topbar-logout span { display: none; }
  .topbar-logout { padding: 8px; }
  table.data { min-width: 560px; }
  .toolbar input,
  .toolbar select { flex-basis: 100%; }
}
@media (max-width: 420px) {
  .auth-mobile-stages { grid-template-columns: minmax(0, 1fr); }
  .auth-card { padding: 18px 14px; }
  .grid-stats { grid-template-columns: minmax(0, 1fr); }
}

.oto-progress-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 24px !important;
  z-index: 99999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(10px);
}
.oto-progress-backdrop.open { display: flex !important; animation: fade 0.2s ease; }
.oto-progress-dialog {
  width: min(420px, calc(100vw - 48px));
  max-height: min(90vh, 640px);
  overflow: auto;
  text-align: center;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: var(--shadow);
  animation: rise 0.28s var(--ease);
}
.oto-progress-backdrop:not(.is-finished) { cursor: wait; }
.oto-progress-body { padding: 28px 24px 22px; display: grid; gap: 10px; justify-items: center; }
.oto-progress-ring { --p: 0; width: 148px; height: 148px; position: relative; margin-bottom: 4px; }
.oto-progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.oto-progress-track,
.oto-progress-val { fill: none; stroke-width: 8; }
.oto-progress-track { stroke: rgba(255, 255, 255, 0.08); }
.oto-progress-val {
  stroke: #c9a227;
  stroke-linecap: round;
  stroke-dasharray: 326.726;
  stroke-dashoffset: calc(326.726 - (326.726 * var(--p) / 100));
  transition: stroke-dashoffset 0.45s var(--ease);
}
.oto-progress-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1;
}
.oto-progress-pct small { font-size: 0.95rem; margin-left: 2px; color: var(--muted); }
.oto-progress-title { margin: 6px 0 0; font-size: 1.15rem; font-weight: 700; }
.oto-progress-domain { margin: 0; color: var(--muted); font-size: 0.88rem; }
.oto-progress-label { margin: 0; color: var(--text-2); font-size: 0.95rem; min-height: 1.4em; }
.oto-progress-steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  width: 100%;
  max-height: 140px;
  overflow: auto;
  text-align: left;
  display: grid;
  gap: 6px;
}
.oto-progress-steps li {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  display: flex;
  gap: 8px;
}
.oto-progress-steps li.ok { color: var(--text-2); }
.oto-progress-steps li.fail { color: #f0a0a0; }
.oto-progress-steps .mark { font-family: var(--mono); flex: 0 0 auto; }
.oto-progress-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.oto-progress-backdrop.is-error .oto-progress-val { stroke: #e07070; }
.oto-progress-backdrop.is-done .oto-progress-val { stroke: #c9a227; }

/* ---------- YONETIM ---------- */
.app-body.yonetim-shell { --sidebar: 248px; }
.yonetim-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 2px 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 650;
}
.kv-list {
  display: grid;
  gap: 0;
}
.kv-row {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.kv-row:last-child { border-bottom: 0; }
.kv-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.kv-row dd {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ---------- ClickBoost hedef ülkeler ---------- */
.cb-target {
  margin-top: 4px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}
.cb-target-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cb-target-head strong { font-size: 0.95rem; }
.cb-cc-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-text);
  font-family: var(--mono);
}
.cb-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.cb-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--mono);
}
.cb-quick-btn img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}
.cb-quick-btn:hover { border-color: rgba(201, 162, 39, 0.35); }
.cb-quick-btn.is-on {
  border-color: rgba(201, 162, 39, 0.55);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.cb-target-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cb-search {
  flex: 1 1 220px;
  position: relative;
  display: block;
}
.cb-search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.cb-search input {
  width: 100%;
  padding-left: 34px;
}
.cb-link-btn {
  border: 0;
  background: none;
  color: #8be0b3;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 6px 2px;
  white-space: nowrap;
}
.cb-link-btn.is-mute { color: var(--muted); }
.cb-link-btn:hover { color: var(--accent-text); }
.cb-cc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}
.cb-cc {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
}
.cb-cc:hover { background: rgba(255, 255, 255, 0.04); }
.cb-cc:has(input:checked) {
  background: var(--accent-soft);
  border-color: rgba(201, 162, 39, 0.25);
}
.cb-cc input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cb-flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.cb-cc span {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cb-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.22);
  flex: 0 0 auto;
}
.cb-cc:has(input:checked) .cb-dot {
  border-color: #c9a227;
  background: radial-gradient(circle at center, #f0d36a 0 5px, transparent 6px);
}
.cb-target-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
.cb-target-foot em { font-style: italic; }
table.data td.cb-url-cell {
  max-width: 280px;
  min-width: 200px;
  overflow: visible;
  white-space: normal;
}
.cb-urls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 160px;
  max-width: 280px;
}
.cb-url {
  display: block;
  font-family: inherit;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cb-url:hover { text-decoration: underline; }
.cb-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cb-row-actions form { margin: 0; }
@media (max-width: 900px) {
  .cb-cc-grid { grid-template-columns: 1fr; }
  .cb-target-foot { flex-direction: column; }
}

.cb-tgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 12px;
}
.cb-tcard {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
}
.cb-tcard:last-child { grid-column: 1 / -1; }
.cb-tcard:last-child .cb-tlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
}
.cb-tcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.cb-tcard-head strong { font-size: 0.9rem; }
.cb-tlist {
  max-height: 240px;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.cb-topt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 4px 6px;
  border-radius: 10px;
  cursor: pointer;
}
.cb-topt:hover { background: rgba(255,255,255,0.04); }
.cb-topt:has(input:checked) { background: var(--accent-soft); }
.cb-topt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cb-topt span { flex: 1 1 auto; font-size: 0.82rem; }
.cb-box {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.22);
  flex: 0 0 auto;
}
.cb-topt.is-check:has(input:checked) .cb-box {
  border-color: #c9a227;
  background: #c9a227;
  box-shadow: inset 0 0 0 2px #14110a;
}
.cb-topt:has(input:checked) .cb-dot {
  border-color: #c9a227;
  background: radial-gradient(circle at center, #f0d36a 0 5px, transparent 6px);
}
.cb-tcard .cb-tclear { margin-top: 6px; padding-left: 0; }
@media (max-width: 900px) {
  .cb-tgrid { grid-template-columns: 1fr; }
  .cb-tcard:last-child { grid-column: auto; }
}
.sorgu-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.sorgu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 2px;
}
.waf-head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.waf-search {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 300px;
  margin: 0;
}
.waf-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  background: #12141a;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.waf-search input::placeholder { color: var(--muted); }
.waf-search input:focus {
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
}
.waf-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b5' stroke-width='2'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 12px no-repeat;
  cursor: pointer;
}

/* ---------- LOGIN V2 ---------- */
.auth-v2.auth-body {
  background:
    radial-gradient(720px 380px at 50% -8%, rgba(201, 162, 39, 0.14), transparent 55%),
    radial-gradient(480px 260px at 100% 110%, rgba(139, 124, 255, 0.07), transparent 50%),
    var(--bg);
}
.auth-v2 .auth-panel {
  background: transparent;
  padding: 36px 16px 48px;
}
.auth-v2 .auth-wrap { width: min(400px, 100%); }
.auth-brand-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}
.auth-brand-bar strong {
  display: block;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}
.auth-brand-bar small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth-v2 .auth-card {
  border-radius: 20px;
  padding: 28px 26px;
}
.auth-v2 .auth-card h1 { font-size: 1.45rem; }
.auth-v2 .field { gap: 8px; }
.auth-v2 .ui-input {
  display: block;
  height: 48px;
  border-radius: 12px;
  background: #0c0f16;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.auth-v2 .ui-input:focus-within {
  box-shadow:
    inset 0 0 0 1px rgba(201, 162, 39, 0.55),
    0 0 0 4px rgba(201, 162, 39, 0.12);
}
.auth-v2 .ui-input input {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 48px;
  color: #f3f5f8;
  -webkit-text-fill-color: #f3f5f8;
  caret-color: #f3f5f8;
}
.auth-v2 .ui-input input:focus {
  border: 0;
  box-shadow: none;
}
.auth-v2 .ui-input input::placeholder {
  color: #6d7688;
  -webkit-text-fill-color: #6d7688;
  opacity: 1;
  font-weight: 400;
}
.auth-v2 .ui-input input:-webkit-autofill,
.auth-v2 .ui-input input:-webkit-autofill:hover,
.auth-v2 .ui-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f3f5f8;
  caret-color: #f3f5f8;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  transition: background-color 99999s ease-out;
}
.auth-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.auth-flow li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 650;
}
.auth-flow li em {
  font-style: normal;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.66rem;
}

/* ---------- PAGE UI ---------- */
.topbar--compact { padding-bottom: 14px; }
.topbar--compact .crumb { margin-bottom: 0; }
.ui-page { display: flex; flex-direction: column; gap: 16px; }
.ui-page .panel { margin-bottom: 0; }
.ui-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.ui-kicker {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.ui-head h1 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
  font-weight: 750;
}
.ui-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 58ch;
}
.ui-head-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ui-stat {
  min-width: 76px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}
.ui-stat em {
  display: block;
  font-style: normal;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--accent-text);
  line-height: 1;
}
.ui-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.ui-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ui-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text-2);
}
.ui-step b {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 700;
}
.ui-toolbar { gap: 12px; }
.ui-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ui-search-form { margin: 0; }
.ui-search {
  width: 220px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft, #171c27);
  color: var(--text);
  font-size: 0.85rem;
}
.ui-search:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
}
.ui-host {
  display: block;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 700;
  word-break: break-all;
}
.ui-meta {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
  word-break: break-all;
}
a.ui-meta { color: var(--muted); }
a.ui-meta:hover { color: var(--accent-text); }
.ui-url {
  display: inline-block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.ui-list-body { padding: 0; }
.ui-empty { margin: 0; padding: 20px; color: var(--muted); }
.ui-list { display: flex; flex-direction: column; }
.ui-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.ui-row:first-child { border-top: 0; }
.ui-row:hover { background: rgba(255,255,255,0.025); }
.ui-row-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.oto-col-actions form { display: inline; margin: 0; }

@media (max-width: 860px) {
  .ui-head { flex-direction: column; }
  .ui-head-side { width: 100%; justify-content: space-between; }
  .ui-search { width: 160px; }
}
