/* KUPONMATİK — AI Sports Intelligence (by mero) */
:root {
  --bg: #07090e;
  --bg-soft: #0b0f16;
  --panel: rgba(16, 21, 30, 0.76);
  --panel-solid: #10151f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --txt: #f0f4f8;
  --muted: #8b99aa;
  --muted-2: #596778;
  --accent: #a3ff2e;
  --accent-2: #00f5c4;
  --accent-dim: rgba(163, 255, 46, 0.14);
  --danger: #ff4d6d;
  --warn: #ffb703;
  --ok: #38ef7d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(163, 255, 46, 0.3); color: #fff; }

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 5% -10%, rgba(163, 255, 46, 0.11), transparent 65%),
    radial-gradient(850px 500px at 95% 0%, rgba(0, 245, 196, 0.09), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(88, 101, 242, 0.08), transparent 70%);
}
.bg-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at 50% 25%, #000 25%, transparent 75%);
}

.app { position: relative; z-index: 1; display: flex; min-height: 100vh; }

/* ------------------------------- sidebar ------------------------------- */
.sidebar {
  width: 252px;
  flex: 0 0 252px;
  display: flex;
  flex-direction: column;
  padding: 26px 18px 20px;
  border-right: 1px solid var(--line);
  background: rgba(9, 12, 17, 0.78);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 0 6px 26px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
  color: #07090c;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 26px rgba(163, 255, 46, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  letter-spacing: -0.5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--display);
  font-size: 16.5px;
  letter-spacing: 0.06em;
  font-weight: 900;
}
.brand-text strong span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-text small { color: var(--muted-2); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3px; font-weight: 600; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-btn {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: all 0.18s ease;
}
.nav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.nav-btn:hover { color: var(--txt); background: rgba(255, 255, 255, 0.04); transform: translateX(2px); }
.nav-btn.active {
  color: var(--accent);
  background: linear-gradient(90deg, rgba(163, 255, 46, 0.14), rgba(163, 255, 46, 0.02));
  border-color: rgba(163, 255, 46, 0.22);
  box-shadow: inset 0 0 16px rgba(163, 255, 46, 0.05);
}
.nav-btn.active::before {
  content: "";
  position: absolute; left: -18px; top: 9px; bottom: 9px;
  width: 3px; border-radius: 0 4px 4px 0;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(163, 255, 46, 0.8);
}

.side-foot { margin-top: auto; padding: 18px 4px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.status { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); font-weight: 500; }
.status i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 10px currentColor;
  flex: 0 0 8px;
}
.status.ok i { background: var(--ok); box-shadow: 0 0 10px rgba(56, 239, 125, 0.6); }
.status.err i { background: var(--danger); }

/* mero discord card */
.mero-card {
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  cursor: default;
}
.mero-card:hover {
  background: rgba(88, 101, 242, 0.08);
  border-color: rgba(88, 101, 242, 0.35);
  transform: translateY(-1px);
}
.mero-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865F2, #7289DA);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  position: relative;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.35);
}
.mero-badge-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #23a55a;
  border: 2px solid #090c11;
}
.mero-details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.mero-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--txt);
  letter-spacing: 0.02em;
}
.mero-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #8c97a8;
  margin-top: 2px;
}
.discord-icon {
  width: 12px;
  height: 12px;
  fill: #5865F2;
  flex-shrink: 0;
}
.mini-link {
  padding: 0; border: 0; background: none;
  color: var(--muted-2); font-size: 10.5px; cursor: pointer; text-decoration: underline;
  align-self: flex-start;
}
.mini-link:hover { color: var(--accent); }

/* -------------------------------- main -------------------------------- */
.main { flex: 1; min-width: 0; padding: 0 34px 70px; }
.topbar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 30px 0 26px;
}
.title-wrap h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.title-wrap p { margin: 5px 0 0; color: var(--muted); font-size: 13.5px; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.badge {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #07090c;
  font-size: 11px; font-weight: 800;
}

.tab { display: none; animation: fadeUp 0.35s ease; }
.tab.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.col-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.col-side { min-width: 0; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  transition: border-color 0.2s ease;
}
.card:hover { border-color: rgba(255, 255, 255, 0.12); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-head h2 { margin: 0; font-family: var(--display); font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.hint { color: var(--muted-2); font-size: 11.5px; }
.hint-line { color: var(--muted); font-size: 12.5px; margin: -6px 0 16px; }
.tools { display: flex; align-items: center; gap: 12px; }
.muted { color: var(--muted); }
.fine { color: var(--muted-2); font-size: 11px; line-height: 1.5; margin: 12px 0 0; }

/* ------------------------------- fields ------------------------------- */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--muted); font-weight: 500; }
label > span b, label b { color: var(--accent); font-weight: 700; }
label.full { margin-top: 14px; }
input, textarea, select {
  width: 100%;
  background: rgba(5, 7, 9, 0.66);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  color: var(--txt);
  font-family: var(--font);
  font-size: 13.5px;
  outline: none;
  transition: 0.16s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, textarea:focus, select:focus {
  border-color: rgba(163, 255, 46, 0.55);
  box-shadow: 0 0 0 3px rgba(163, 255, 46, 0.12);
  background: rgba(9, 13, 19, 0.95);
}
textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
input[type="datetime-local"]::-webkit-calendar-picker-indicator { filter: invert(0.7); }
select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 51%, calc(100% - 13px) 51%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }

/* ------------------------------- buttons ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--txt);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #7fe824 55%, var(--accent-2) 100%);
  border-color: transparent;
  color: #07090c;
  font-weight: 800;
  box-shadow: 0 8px 26px rgba(163, 255, 46, 0.28);
}
.btn.primary:hover { box-shadow: 0 12px 34px rgba(163, 255, 46, 0.42); filter: brightness(1.05); transform: translateY(-1.5px); }
.btn.big { width: 100%; padding: 14px 18px; font-size: 14px; margin-top: 18px; }
.btn.sm { padding: 8px 12px; font-size: 12px; }
.btn.icon { padding: 0; width: 36px; height: 36px; font-size: 20px; font-weight: 400; border-radius: 10px; color: var(--muted); }
.btn.icon:hover { color: var(--txt); }
.linkbtn { border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 2px 0; }
.linkbtn:hover { color: var(--accent); }
.linkbtn.danger { color: var(--danger); font-size: 11.5px; margin-top: 10px; align-self: center; }

/* ------------------------------- presets ------------------------------- */
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }

/* ------------------------------ fixtures ------------------------------- */
.fixture-bar { display: grid; grid-template-columns: 150px 190px 1fr; gap: 12px; align-items: end; }
.fixture-pick select { font-weight: 600; }
.fixture-meta { color: var(--muted-2); font-size: 11.5px; margin-top: 12px; line-height: 1.5; }
.fixture-meta b { color: var(--accent); font-weight: 700; }
.fixture-meta .live { color: #ff5d5d; font-weight: 800; letter-spacing: 0.04em; }
@media (max-width: 900px) {
  .fixture-bar { grid-template-columns: 1fr; }
}
.preset {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
  transition: 0.16s ease;
}
.preset:hover { color: var(--accent); border-color: rgba(182, 255, 60, 0.35); background: var(--accent-dim); }

/* ------------------------------- markets ------------------------------- */
.market-groups { display: flex; flex-direction: column; gap: 10px; }
.mgroup {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
.mgroup[open] { background: rgba(0, 0, 0, 0.24); }
.mgroup summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 15px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--txt);
  user-select: none;
}
.mgroup summary::-webkit-details-marker { display: none; }
.mgroup summary::before {
  content: "＋";
  color: var(--muted-2);
  font-weight: 400;
  margin-right: 10px;
  transition: 0.2s;
}
.mgroup[open] summary::before { content: "−"; color: var(--accent); }
.mgroup summary .gtitle { margin-right: auto; }
.gmeta { color: var(--muted-2); font-size: 11px; font-weight: 500; padding-left: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 15px 16px; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-family: var(--font);
  cursor: pointer;
  transition: 0.14s ease;
  line-height: 1.3;
}
.chip:hover { color: var(--txt); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.chip.on {
  color: var(--accent);
  border-color: rgba(182, 255, 60, 0.5);
  background: var(--accent-dim);
  box-shadow: inset 0 0 18px rgba(182, 255, 60, 0.06);
}
.chip.on::before { content: "✓ "; font-size: 10px; }

/* ------------------------------- side panel ------------------------------- */
.sticky { position: sticky; top: 22px; }
.range-row { margin-bottom: 18px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); }
.range-top b { color: var(--accent); font-family: var(--display); font-size: 18px; }
input[type="range"] {
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 99px;
  padding: 0;
  margin: 12px 0 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--fill, 45%), rgba(255, 255, 255, 0.1) var(--fill, 45%));
  border: 0;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #f2ffdc;
  border: 4px solid var(--accent);
  box-shadow: 0 0 14px rgba(182, 255, 60, 0.55);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: #f2ffdc; border: 4px solid var(--accent); cursor: pointer;
}
.range-scale { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 10px; }

.switch { flex-direction: row; align-items: flex-start; gap: 11px; cursor: pointer; padding: 12px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.switch input { display: none; }
.switch-ui {
  width: 36px; height: 20px; flex: 0 0 36px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  position: relative; transition: 0.2s; margin-top: 1px;
}
.switch-ui::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #cdd6df; transition: 0.2s;
}
.switch input:checked + .switch-ui { background: rgba(182, 255, 60, 0.35); }
.switch input:checked + .switch-ui::after { left: 19px; background: var(--accent); box-shadow: 0 0 10px rgba(182, 255, 60, 0.6); }
.switch-text { font-size: 12px; color: var(--txt); display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.switch-text small { color: var(--muted-2); font-size: 10.5px; font-weight: 400; }
.mini-switch { border: 0; padding: 0; gap: 7px; align-items: center; }
.mini-switch .switch-ui { width: 28px; height: 16px; flex-basis: 28px; }
.mini-switch .switch-ui::after { width: 10px; height: 10px; }
.mini-switch input:checked + .switch-ui::after { left: 15px; }
.mini-switch .switch-text { font-size: 10.5px; color: var(--muted); font-weight: 400; }
.mini-switch .switch-text small { display: none; }

.side-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.side-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.side-models { display: flex; flex-direction: column; gap: 6px; }
.side-model {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11.5px;
}
.side-model i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 6px; box-shadow: 0 0 8px rgba(182, 255, 60, 0.6); }
.side-model span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--txt); }
.side-model button { border: 0; background: none; color: var(--muted-2); cursor: pointer; font-size: 14px; padding: 0 2px; }
.side-model button:hover { color: var(--danger); }
.empty-mini { color: var(--muted-2); font-size: 11.5px; padding: 4px 0; }

/* ------------------------------- results ------------------------------- */
.results-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 26px 0 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  color: var(--muted);
}
.results-bar b { color: var(--txt); font-weight: 600; }
.rb-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rb-left .match-name { font-family: var(--display); font-size: 14px; color: var(--txt); font-weight: 700; }
.rb-right { display: flex; align-items: center; gap: 14px; }
.source-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.source-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); }
.source-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.source-dot.ok i { background: var(--ok); box-shadow: 0 0 7px rgba(92, 224, 138, 0.6); }
.source-dot.err i { background: var(--danger); }

.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 18px; align-items: start; }
.rescard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
  animation: fadeUp 0.35s ease;
  min-width: 0;
}
.res-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.res-model { display: flex; align-items: center; gap: 10px; min-width: 0; }
.res-model .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(182, 255, 60, 0.7); flex: 0 0 9px; }
.res-model b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-sub { color: var(--muted-2); font-size: 10.5px; letter-spacing: 0.02em; }
.pill { padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; }
.pill.ok { color: var(--ok); background: rgba(92, 224, 138, 0.1); border-color: rgba(92, 224, 138, 0.25); }
.pill.err { color: var(--danger); background: rgba(255, 92, 122, 0.09); border-color: rgba(255, 92, 122, 0.24); }
.pill.run { color: var(--warn); background: rgba(255, 181, 69, 0.09); border-color: rgba(255, 181, 69, 0.24); }
.summary { margin: 0; color: #c3ccd6; font-size: 12.5px; line-height: 1.65; }

.warnbox {
  border: 1px solid rgba(255, 181, 69, 0.22);
  background: rgba(255, 181, 69, 0.055);
  color: #e8c68c;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11.5px;
}
.warnbox ul { margin: 0; padding-left: 16px; }
.warnbox li { margin: 2px 0; }
.errbox {
  border: 1px solid rgba(255, 92, 122, 0.24);
  background: rgba(255, 92, 122, 0.06);
  color: #ffb3c1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11.5px;
}

.sel-list { display: flex; flex-direction: column; gap: 9px; }
.sel {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.18);
  transition: 0.16s ease;
}
.sel:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.02); }
.ring {
  --p: 70;
  --ring-color: var(--accent);
  width: 52px; height: 52px; flex: 0 0 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--ring-color) calc(var(--p) * 1%), rgba(255, 255, 255, 0.07) 0);
  position: relative;
  margin-top: 1px;
}
.ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #0d1115; }
.ring span { position: relative; font-family: var(--display); font-size: 13px; font-weight: 800; color: var(--txt); }
.ring.low { --ring-color: var(--accent); }
.ring.mid { --ring-color: var(--warn); }
.ring.high { --ring-color: var(--danger); }
.sel-main { flex: 1; min-width: 0; }
.sel-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.market { font-size: 10.5px; color: var(--muted); letter-spacing: 0.02em; }
.pick { font-family: var(--display); font-size: 15px; font-weight: 800; margin-top: 2px; letter-spacing: -0.01em; }
.reason { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.risk { font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.04em; }
.risk.low { color: var(--ok); background: rgba(92, 224, 138, 0.1); }
.risk.mid { color: var(--warn); background: rgba(255, 181, 69, 0.1); }
.risk.high { color: var(--danger); background: rgba(255, 92, 122, 0.1); }
.odds-pill {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  color: #ffde59;
  background: rgba(255, 222, 89, 0.12);
  border: 1px solid rgba(255, 222, 89, 0.25);
  letter-spacing: 0.02em;
}
.banko {
  font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 99px;
  color: #07090c; background: var(--accent); letter-spacing: 0.06em;
}
.addbtn {
  width: 28px; height: 28px; flex: 0 0 28px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 15px; line-height: 1;
  cursor: pointer;
  transition: 0.15s ease;
}
.addbtn:hover { color: #07090c; background: var(--accent); border-color: var(--accent); }

.combo {
  border: 1px dashed rgba(182, 255, 60, 0.32);
  background: rgba(182, 255, 60, 0.035);
  border-radius: 13px;
  padding: 13px;
}
.combo-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.combo-head b { font-size: 12.5px; color: var(--accent); font-family: var(--display); }
.combo-head button { border: 1px solid rgba(182, 255, 60, 0.3); background: transparent; color: var(--accent); font-size: 10.5px; padding: 4px 8px; border-radius: 7px; cursor: pointer; }
.combo-head button:hover { background: rgba(182, 255, 60, 0.12); }
.legs { margin: 9px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.legs li { font-size: 11.5px; color: #c9d3dc; display: flex; gap: 7px; align-items: baseline; }
.legs li::before { content: "›"; color: var(--accent); }
.combo-stats { display: flex; gap: 18px; margin-top: 8px; padding-top: 9px; border-top: 1px dashed rgba(182, 255, 60, 0.18); }
.combo-stats .stat { display: flex; flex-direction: column; gap: 1px; }
.combo-stats .stat span { color: var(--muted-2); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.combo-stats .stat b { font-family: var(--display); font-size: 14px; color: var(--txt); }
.combo-note { margin: 8px 0 0; font-size: 11px; color: var(--muted); }

.raw { margin-top: 2px; }
.raw summary { cursor: pointer; color: var(--muted-2); font-size: 11px; list-style: none; }
.raw summary:hover { color: var(--muted); }
.raw summary::-webkit-details-marker { display: none; }
.raw pre {
  max-height: 260px; overflow: auto;
  background: #07090b; border: 1px solid var(--line); border-radius: 9px;
  padding: 11px; font-size: 10.5px; color: #9fb0c0;
  white-space: pre-wrap; word-break: break-word;
  margin: 8px 0 0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.skel { padding: 4px 0; }
.skel-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; margin: 10px 0; }
.skel-line.short { width: 55%; }
.skel-line.ringline { height: 52px; width: 100%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: #07090c;
  display: inline-block; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.012);
}
.empty-state .big-glyph { font-family: var(--display); font-size: 34px; font-weight: 800; color: rgba(182, 255, 60, 0.25); letter-spacing: 0.1em; margin-bottom: 10px; }
.empty-state h3 { margin: 0 0 6px; color: var(--txt); font-family: var(--display); font-size: 16px; }
.empty-state p { margin: 0; font-size: 12.5px; }

/* ------------------------------- comparison ------------------------------- */
.compare-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.compare-title h2 { margin: 0; font-family: var(--display); font-size: 20px; }
.compare-title p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.cmp-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cmp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.cmp-head b { font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; }
.cmp-head small { color: var(--muted-2); font-size: 10px; }
.cmp-list { display: flex; flex-direction: column; gap: 9px; }
.cmp-item { display: flex; gap: 10px; align-items: center; }
.cmp-item .ring { width: 40px; height: 40px; flex: 0 0 40px; }
.cmp-item .ring span { font-size: 10.5px; }
.cmp-item .ci-main { min-width: 0; flex: 1; }
.cmp-item .ci-market { font-size: 9.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.04em; }
.cmp-item .ci-pick { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-summary { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.consensus { margin-top: 24px; }
.consensus h3 { font-family: var(--display); font-size: 15px; margin: 0 0 4px; }
.consensus > p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.cons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.cons-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
}
.cons-row.unanimous { border-color: rgba(182, 255, 60, 0.35); background: rgba(182, 255, 60, 0.045); }
.cons-row .ring { width: 44px; height: 44px; flex: 0 0 44px; }
.cons-row .ring span { font-size: 11px; }
.cons-main { flex: 1; min-width: 0; }
.cons-market { font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.05em; }
.cons-pick { font-family: var(--display); font-size: 13.5px; font-weight: 700; }
.votes { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.vote { font-size: 9px; padding: 2px 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.055); color: var(--muted); border: 1px solid var(--line); }
.unanimous .vote { color: var(--accent); border-color: rgba(182, 255, 60, 0.25); background: rgba(182, 255, 60, 0.08); }
.uni-badge { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 0.06em; }

.split-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px; margin-top: 12px; }
.split-card { border: 1px solid rgba(255, 92, 122, 0.18); background: rgba(255, 92, 122, 0.035); border-radius: 13px; padding: 13px 15px; }
.split-card h4 { margin: 0 0 8px; font-size: 11px; color: #ff9fb1; text-transform: uppercase; letter-spacing: 0.05em; }
.split-line { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.05); }
.split-line:last-child { border-bottom: 0; }
.split-line span:first-child { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split-line span:last-child { color: var(--txt); font-weight: 600; white-space: nowrap; }

/* ------------------------------- models tab ------------------------------- */
.model-toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.model-toolbar input { flex: 1; }
.model-toolbar select { width: 210px; flex: 0 0 210px; }
.model-list { display: flex; flex-direction: column; gap: 6px; }
.model-list.tall { max-height: 68vh; overflow: auto; padding-right: 4px; }
.model-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  transition: 0.14s ease;
}
.model-row:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.model-row.on { border-color: rgba(182, 255, 60, 0.35); background: rgba(182, 255, 60, 0.05); }
.model-check {
  width: 17px; height: 17px; border-radius: 5px; flex: 0 0 17px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 11px; color: #07090c;
  background: transparent;
}
.model-row.on .model-check { background: var(--accent); border-color: var(--accent); }
.model-row.on .model-check::after { content: "✓"; font-weight: 800; }
.model-meta { flex: 1; min-width: 0; }
.model-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.model-meta b { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-badge {
  font-size: 9px; font-weight: 800; padding: 1px 6px; border-radius: 5px; letter-spacing: 0.05em; text-transform: uppercase;
}
.model-badge.free {
  background: rgba(56, 239, 125, 0.15); color: #38ef7d; border: 1px solid rgba(56, 239, 125, 0.35);
}
.model-badge.ag {
  background: rgba(163, 255, 46, 0.12); color: var(--accent); border: 1px solid rgba(163, 255, 46, 0.3);
}
.model-badge.nv {
  background: rgba(118, 185, 0, 0.16); color: #76b900; border: 1px solid rgba(118, 185, 0, 0.4);
}
.model-status {
  font-size: 9px; font-weight: 800; padding: 1px 6px; border-radius: 5px; letter-spacing: 0.05em;
}
.model-status.ok { background: rgba(56, 239, 125, 0.14); color: #38ef7d; border: 1px solid rgba(56, 239, 125, 0.35); }
.model-status.bad { background: rgba(255, 92, 92, 0.13); color: #ff6b6b; border: 1px solid rgba(255, 92, 92, 0.32); }
.model-row.muted-row { opacity: 0.5; }
.model-row.muted-row:hover { opacity: 0.85; }
.verify-progress {
  display: flex; flex-direction: column; gap: 3px;
  margin: -4px 0 14px; padding: 11px 14px;
  border: 1px solid rgba(163, 255, 46, 0.28); border-radius: 10px;
  background: rgba(163, 255, 46, 0.05);
}
.verify-progress b { font-size: 12px; color: var(--accent); font-family: var(--display); }
.verify-progress b.ok { color: #38ef7d; }
.verify-progress b.err { color: #ff6b6b; }
.verify-progress span { font-size: 11.5px; color: var(--muted); }
.model-meta small { color: var(--muted-2); font-size: 10px; display: block; margin-top: 2px; }
.provider-tag { font-size: 9px; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; flex: 0 0 auto; }

.model-quick-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 14px; }
.btn-filter-pill {
  padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease;
}
.btn-filter-pill:hover { background: rgba(255, 255, 255, 0.08); color: var(--txt); border-color: var(--line-strong); }
.btn-filter-pill.active { background: rgba(163, 255, 46, 0.14); color: var(--accent); border-color: rgba(163, 255, 46, 0.4); }

/* ------------------------------- guide ------------------------------- */
.guide-intro { margin-bottom: 18px; }
.guide-intro h2 { margin: 0 0 6px; font-family: var(--display); font-size: 18px; }
.guide-intro p { margin: 0; color: var(--muted); font-size: 12.5px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.guide-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.guide-card h3 { margin: 0 0 4px; font-family: var(--display); font-size: 14px; }
.guide-card > p { margin: 0 0 14px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.guide-items { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; background: rgba(255, 255, 255, 0.018); }

/* ------------------------------- settings ------------------------------- */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; align-items: start; }
.set-row { margin-bottom: 15px; }
.set-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.set-row label { margin-bottom: 7px; }
.set-row label small { color: var(--muted-2); font-weight: 400; }
.key-row { display: flex; gap: 8px; align-items: center; }
.key-row input { flex: 1; }
.set-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.src-test { font-size: 11px; color: var(--muted-2); }
.src-test.ok { color: var(--ok); }
.src-test.err { color: var(--danger); }
.health {
  margin-top: 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 11px;
  background: rgba(0, 0, 0, 0.2);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10.5px; color: var(--muted);
  word-break: break-all; line-height: 1.7;
}
.health b { color: var(--accent); font-weight: 600; }
.save-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.save-bar p { margin: 3px 0 0; font-size: 11.5px; }
.api-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.api-info h3 { margin: 0 0 6px; font-family: var(--display); font-size: 14px; }
.api-info h3 small { color: var(--muted-2); font-weight: 400; font-size: 10px; }
.api-info p { margin: 0 0 10px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.api-info a { color: var(--accent); font-size: 11.5px; text-decoration: none; }
.api-info a:hover { text-decoration: underline; }
code { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 0.92em; color: #cfe0ee; }

/* ------------------------------- modal ------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(3, 5, 7, 0.7);
  backdrop-filter: blur(8px);
}
.modal.open { display: flex; }
.modal-card {
  width: min(720px, 100%);
  max-height: min(82vh, 780px);
  background: #0d1115;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  display: flex; flex-direction: column;
  animation: popIn 0.22s ease;
}
@keyframes popIn { from { opacity: 0; transform: scale(0.98) translateY(6px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-family: var(--display); font-size: 17px; }
.modal-head p { margin: 3px 0 0; color: var(--muted); font-size: 11.5px; }
.modal-body { padding: 16px 22px; overflow: auto; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.foot-actions { display: flex; gap: 8px; }

/* ------------------------------- drawer ------------------------------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(400px, 92vw);
  background: #0b0e12;
  border-left: 1px solid var(--line-strong);
  box-shadow: -30px 0 90px rgba(0, 0, 0, 0.6);
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.3, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-family: var(--display); font-size: 17px; }
.drawer-head p { margin: 3px 0 0; font-size: 11px; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 20px 26px; }
.basket-legs { display: flex; flex-direction: column; gap: 8px; }
.basket-leg {
  border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 11px; background: rgba(255, 255, 255, 0.02);
  display: flex; gap: 10px; align-items: flex-start;
}
.basket-leg .bl-main { flex: 1; min-width: 0; }
.basket-leg .bl-market { font-size: 9.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.04em; }
.basket-leg .bl-pick { font-size: 12px; font-weight: 600; }
.basket-leg .bl-meta { font-size: 10px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.basket-leg .bl-prob { font-family: var(--display); font-size: 13px; font-weight: 800; color: var(--accent); }
.basket-leg button { border: 0; background: none; color: var(--muted-2); cursor: pointer; font-size: 15px; padding: 0 2px; }
.basket-leg button:hover { color: var(--danger); }
.basket-summary { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; }
.sum-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 4px 0; }
.sum-row b { color: var(--txt); font-family: var(--display); }
.sum-row.total { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; }
.sum-row.total b { color: var(--accent); font-size: 17px; }
.stake-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 4px; font-size: 12px; color: var(--muted); }
.stake-row input { width: 130px; text-align: right; }
.drawer-actions { display: flex; gap: 8px; margin-top: 14px; }
.drawer-actions .btn { flex: 1; }
.saved-wrap { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.saved-wrap h4 { margin: 0 0 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.saved-list { display: flex; flex-direction: column; gap: 7px; }
.saved-item {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 10px; font-size: 11px;
}
.saved-item .si-main { flex: 1; min-width: 0; }
.saved-item b { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-item small { color: var(--muted-2); font-size: 9.5px; }
.saved-item button { border: 0; background: none; color: var(--muted-2); cursor: pointer; font-size: 13px; }
.saved-item button:hover { color: var(--accent); }
.scrim {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(2, 4, 6, 0.56);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: 0.25s ease;
}
.scrim.on { opacity: 1; pointer-events: auto; }

/* ------------------------------- toasts ------------------------------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast {
  min-width: 220px; max-width: 380px;
  padding: 12px 15px;
  border-radius: 11px;
  background: #141a20;
  border: 1px solid var(--line-strong);
  color: var(--txt);
  font-size: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.24s ease;
}
.toast.ok { border-color: rgba(182, 255, 60, 0.4); }
.toast.err { border-color: rgba(255, 92, 122, 0.45); }
.toast small { display: block; color: var(--muted); margin-top: 2px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------- scrollbar ------------------------------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.09); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.16); background-clip: content-box; }

/* ------------------------------- responsive ------------------------------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .results { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .app { flex-direction: column; }
  .sidebar {
    width: 100%; flex: none; height: auto; position: sticky; top: 0; z-index: 40;
    flex-direction: row; align-items: center; gap: 16px;
    padding: 12px 16px;
    border-right: 0; border-bottom: 1px solid var(--line);
    background: rgba(7, 9, 12, 0.92);
  }
  .brand { padding: 0; flex: 0 0 auto; }
  .brand-text { display: none; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 13px; }
  .nav { flex-direction: row; overflow-x: auto; gap: 4px; flex: 1; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-btn { width: auto; padding: 8px 12px; font-size: 12px; white-space: nowrap; }
  .nav-btn span { display: inline; }
  .nav-btn.active::before { display: none; }
  .nav-btn svg { width: 16px; height: 16px; }
  .side-foot { display: none; }
  .main { padding: 0 18px 60px; }
  .topbar { padding: 20px 0 18px; }
  .layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .fields { grid-template-columns: 1fr; }
  .title-wrap h1 { font-size: 22px; }
  .results { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .results-bar { align-items: flex-start; }
}
@media (max-width: 640px) {
  .nav-btn span { display: none; }
  .nav-btn { padding: 9px 11px; }
  .top-actions .btn { font-size: 12px; }
  .card { padding: 16px; }
  .rescard { padding: 16px; }
  .sel { gap: 9px; padding: 10px; }
  .ring { width: 46px; height: 46px; flex-basis: 46px; }
  .combo-stats { gap: 12px; }
  .set-row.two { grid-template-columns: 1fr; }
  .model-toolbar { flex-direction: column; }
  .model-toolbar select { width: 100%; flex: none; }
  .save-bar { flex-direction: column; align-items: flex-start; }
  .compare-head { align-items: flex-start; }
}

/* ------------------------------------------------------------------ */
/* coupon factory                                                      */
/* ------------------------------------------------------------------ */

.coupon-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.coupon-toolbar .muted { margin-left: auto; font-size: 12px; }

.coupon-match-list {
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 6px;
  max-height: 520px; overflow-y: auto;
  padding-right: 4px;
}
.coupon-match-list::-webkit-scrollbar { width: 8px; }
.coupon-match-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 8px; }

.cm-group {
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700;
  padding: 12px 4px 4px;
  position: sticky; top: 0; background: var(--panel-solid); z-index: 1;
}

.cm-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.015);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.cm-row:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.035); }
.cm-row.on { border-color: rgba(182,255,60,0.55); background: rgba(182,255,60,0.07); }
.cm-row input { accent-color: var(--accent); width: 15px; height: 15px; flex: 0 0 15px; cursor: pointer; }
.cm-main { flex: 1; min-width: 0; }
.cm-teams { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-sub { font-size: 10.5px; color: var(--muted-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-time { font-family: var(--font-mono, monospace); font-size: 10.5px; color: var(--muted); flex: 0 0 auto; }
.cm-live { color: #ff5d5d; font-weight: 800; font-size: 10.5px; }

.coupon-stake {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.coupon-stake input {
  width: 110px; padding: 8px 10px; text-align: right;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong);
  border-radius: 9px; color: var(--txt); font-family: var(--font-mono, monospace); font-size: 13px;
}

.coupon-progress {
  margin-top: 20px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
}
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.cp-head b { color: var(--accent); font-weight: 700; }
.cp-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; margin-top: 10px; }
.cp-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .35s ease; }
.cp-note { margin-top: 8px; font-size: 11px; color: var(--muted-2); }

.coupon-card {
  margin-top: 20px;
  border: 1px solid rgba(182,255,60,0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(182,255,60,0.09), transparent 60%),
    var(--panel);
  overflow: hidden;
}
.cc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.cc-title { display: flex; flex-direction: column; gap: 3px; }
.cc-title strong { font-family: var(--display); font-size: 16px; letter-spacing: 0.01em; }
.cc-title small { color: var(--muted-2); font-size: 11.5px; }
.cc-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.cc-stat { display: flex; flex-direction: column; gap: 2px; }
.cc-stat span { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); font-weight: 700; }
.cc-stat b { font-family: var(--font-mono, monospace); font-size: 17px; color: var(--txt); }
.cc-stat b.acc { color: var(--accent); }
.cc-stat b.warn { color: var(--warn); }

.cc-legs { display: flex; flex-direction: column; }
.cc-leg {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.cc-leg-num {
  width: 24px; height: 24px; flex: 0 0 24px;
  display: grid; place-items: center;
  border-radius: 50%; background: rgba(182,255,60,0.12);
  color: var(--accent); font-size: 10.5px; font-weight: 800;
  font-family: var(--font-mono, monospace);
}
.cc-leg-main { flex: 1; min-width: 0; }
.cc-leg-match { font-size: 11px; color: var(--muted-2); margin-bottom: 3px; }
.cc-leg-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-leg-pick .mk { font-weight: 700; font-size: 13.5px; }
.cc-leg-pick .pk { color: var(--accent); font-weight: 800; font-size: 13.5px; }
.cc-leg-odds { font-family: var(--font-mono, monospace); font-size: 12px; color: var(--warn); font-weight: 700; }
.cc-leg-prob { font-family: var(--font-mono, monospace); font-size: 12px; color: var(--muted); min-width: 32px; text-align: right; }
.cc-leg-rm {
  width: 24px; height: 24px; border-radius: 7px; flex: 0 0 24px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted-2);
  cursor: pointer; font-size: 13px; line-height: 1;
}
.cc-leg-rm:hover { color: var(--danger); border-color: rgba(255,92,122,0.4); }

.cc-alt { padding: 4px 20px 14px 58px; display: flex; gap: 6px; flex-wrap: wrap; }
.cc-alt span.lbl { font-size: 10px; color: var(--muted-2); align-self: center; }
.alt-chip {
  font-size: 11px; padding: 4px 9px; border-radius: 99px;
  border: 1px dashed rgba(255,255,255,0.16); background: transparent;
  color: var(--muted); cursor: pointer; font-family: inherit;
}
.alt-chip:hover { color: var(--accent); border-color: rgba(182,255,60,0.5); }
.alt-chip b { font-family: var(--font-mono, monospace); color: var(--warn); font-weight: 700; }

.cc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px;
  background: rgba(0,0,0,0.25);
}
.cc-foot .note { font-size: 11px; color: var(--muted-2); max-width: 520px; line-height: 1.5; }
.cc-foot .btns { display: flex; gap: 8px; flex-wrap: wrap; }

.cm-missing {
  margin-top: 16px; display: flex; flex-direction: column; gap: 8px;
}
.miss-row {
  padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,92,122,0.25); background: rgba(255,92,122,0.06);
  font-size: 12px;
}
.miss-row b { display: block; margin-bottom: 3px; font-weight: 700; }
.miss-row span { color: var(--muted); font-size: 11px; }

@media (max-width: 980px) {
  .coupon-match-list { max-height: none; }
  .cc-head { flex-direction: column; align-items: flex-start; }
  .cc-alt { padding-left: 20px; }
}

/* ------------------------------------------------------------------ */
/* Live Match Ticker Bar                                              */
/* ------------------------------------------------------------------ */

.live-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -10px 0 20px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(16, 21, 31, 0.65);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ticker-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(163, 255, 46, 0.12);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.ticker-track::-webkit-scrollbar { height: 4px; }
.ticker-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--txt);
  font-family: var(--font);
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.ticker-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(163, 255, 46, 0.4);
  transform: translateY(-1px);
}
.tc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}
.ticker-chip.ticker-live .tc-dot {
  background: #ff4d6d;
  box-shadow: 0 0 8px #ff4d6d;
}
.ticker-chip.ticker-live {
  border-color: rgba(255, 77, 109, 0.35);
  background: rgba(255, 77, 109, 0.08);
}
.tc-teams b { font-weight: 600; }
.tc-time {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  color: var(--muted);
}
.ticker-chip.ticker-live .tc-time {
  color: #ff4d6d;
  font-weight: 800;
}

/* ------------------------------------------------------------------ */
/* Quick Preset Buttons (Ak�ll� Kupon Sihirbaz�)                      */
/* ------------------------------------------------------------------ */

.quick-preset-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
}
.qpb-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt);
  display: flex;
  align-items: center;
  gap: 6px;
}
.qpb-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-preset-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-strong);
  color: var(--txt);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-preset-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot.banko { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.dot.ideal { background: var(--accent-2); box-shadow: 0 0 6px var(--accent-2); }
.dot.surpriz { background: var(--warn); box-shadow: 0 0 6px var(--warn); }

/* ------------------------------------------------------------------ */
/* Discord Share Ticket Slip                                          */
/* ------------------------------------------------------------------ */

.share-card-modal {
  max-width: 480px;
}
.slip-ticket {
  background: #090c12;
  border: 1px solid rgba(163, 255, 46, 0.35);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(163, 255, 46, 0.03);
  position: relative;
}
.slip-ticket-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.st-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.st-brand-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}
.st-brand-sub {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.st-badge-verified {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(56, 239, 125, 0.15);
  color: #38ef7d;
  border: 1px solid rgba(56, 239, 125, 0.3);
}
.st-line-dashed {
  height: 1px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  margin: 4px 0;
}
.st-legs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.st-leg-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.st-match-name {
  font-size: 11.5px;
  color: var(--muted);
}
.st-pick-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.st-pick-txt b {
  color: var(--accent);
  font-weight: 700;
}
.st-odds-txt {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--warn);
  font-weight: 700;
}
.st-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.st-stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.st-stat-box span {
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.st-stat-box b {
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  color: var(--txt);
}
.st-stat-box b.st-acc { color: var(--accent); }
.st-stat-box b.st-gold { color: var(--warn); }
.st-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.st-barcode {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.15em;
}
.st-discord-credit {
  font-size: 11px;
  font-weight: 600;
  color: #5865F2;
}

/* ------------------------------------------------------------------ */
/* 4 Pillars Analysis Doctrine                                        */
/* ------------------------------------------------------------------ */

.doctrine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.doctrine-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.dc-num {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 900;
  color: var(--accent);
  background: rgba(163, 255, 46, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
}
.dc-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
}
.dc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.dc-list li b {
  color: var(--txt);
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Transfermarkt Integration                                          */
/* ------------------------------------------------------------------ */

.tm-link-row {
  margin-top: 14px;
}
.tm-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tm-input-group input {
  flex: 1;
}
.tm-preview-box {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(163, 255, 46, 0.05);
  border: 1px solid rgba(163, 255, 46, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.tm-meta-line {
  font-size: 12px;
  color: var(--muted);
}
.tm-missing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .tm-missing-grid { grid-template-columns: 1fr; }
}
.tm-team-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tm-team-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--txt);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tm-pill-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tm-pill {
  font-size: 11.5px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(255, 92, 92, 0.12);
  border: 1px solid rgba(255, 92, 92, 0.28);
  color: #ff8585;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tm-pill b {
  color: #fff;
}
.tm-pill small {
  color: #ffaaaa;
  font-size: 10.5px;
  margin-left: 6px;
}
.tm-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* ------------------------------------------------------------------ */
/* Kupon Kontrol / Audit Tab                                          */
/* ------------------------------------------------------------------ */

.audit-input-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.audit-dropzone {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 14px;
  border: 2px dashed rgba(163, 255, 46, 0.35);
  background: rgba(163, 255, 46, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}
.audit-dropzone:hover, .audit-dropzone.dragover {
  border-color: var(--accent);
  background: rgba(163, 255, 46, 0.08);
  transform: translateY(-1px);
}
.drop-icon {
  font-size: 32px;
  line-height: 1;
}
.drop-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drop-text strong {
  font-size: 14px;
  color: var(--txt);
}
.drop-text p {
  margin: 0;
  font-size: 12px;
}
.drop-text code {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
}
.audit-text-block details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
}
.audit-text-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.audit-legs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.audit-leg-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) minmax(130px, 1.2fr) minmax(110px, 1fr) 90px 36px;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}
@media (max-width: 680px) {
  .audit-leg-row {
    grid-template-columns: 1fr 1fr;
  }
}
.audit-leg-row input {
  padding: 8px 10px;
  font-size: 13px;
}
.audit-del-btn {
  background: transparent;
  border: none;
  color: #ff6b6b;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.audit-del-btn:hover {
  background: rgba(255, 107, 107, 0.15);
}
.audit-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.audit-model-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.audit-model-picker label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.as-box {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.as-box span {
  font-size: 10px;
  color: var(--muted-2);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.as-box b {
  font-family: var(--font-mono, monospace);
  font-size: 18px;
  color: var(--txt);
}
.as-box b.acc {
  color: var(--accent);
}
.audit-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audit-res-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 140px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.15s ease;
}
@media (max-width: 768px) {
  .audit-res-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.audit-res-item:hover {
  border-color: rgba(163, 255, 46, 0.3);
}
.ari-match {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ari-teams {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--txt);
}
.ari-pick-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ari-pick-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(163, 255, 46, 0.12);
  color: var(--accent);
  border: 1px solid rgba(163, 255, 46, 0.3);
}
.ari-odds {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--warn);
  font-weight: 700;
}
.ari-analysis {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ari-reason {
  font-size: 12.5px;
  color: var(--txt);
  line-height: 1.45;
}
.ari-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.ari-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.ari-tag.value { background: rgba(56, 239, 125, 0.14); color: #38ef7d; border: 1px solid rgba(56, 239, 125, 0.35); }
.ari-tag.neutral { background: rgba(255, 255, 255, 0.08); color: var(--muted); border: 1px solid var(--line); }
.ari-tag.trap { background: rgba(255, 92, 92, 0.15); color: #ff6b6b; border: 1px solid rgba(255, 92, 92, 0.35); }
.ari-alt {
  font-size: 11.5px;
  color: var(--accent-2);
}
.ari-chance-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.ari-chance-label {
  font-size: 9.5px;
  color: var(--muted-2);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ari-chance-num {
  font-family: var(--font-mono, monospace);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}
.ari-chance-num.high { color: #38ef7d; text-shadow: 0 0 10px rgba(56, 239, 125, 0.25); }
.ari-chance-num.mid { color: var(--warn); text-shadow: 0 0 10px rgba(255, 181, 69, 0.25); }
.ari-chance-num.low { color: #ff6b6b; text-shadow: 0 0 10px rgba(255, 92, 92, 0.25); }
.ari-risk-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
