/* Musteri paneli, yonetim paneli ve giris sayfasinin ortak stili.
   Yon: gece vardiyasinda bir kontrol odasi. Lacivert zemin, krem murekkep, tek vurgu
   altin (birincil eylem, odak, secim); deniz mavisi "oz" ilerleme ve canli veri icin.
   Derinlik yalnizca ince cizgilerle; golge yok. Sinif adlari JS sablonlariyla ortak,
   degistirilmez (panel.js, dashboard.js, admin.js). */

/* Fontlar yerel: CSP font-src 'self'. Hepsi OFL (fonts/OFL-*.txt). */
@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  font-stretch: 75% 100%;
  src: url(fonts/ibm-plex-sans-latin-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  font-stretch: 75% 100%;
  src: url(fonts/ibm-plex-sans-latin-ext-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Saira";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/saira-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Saira";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/saira-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Belirtecler. Gunduz: parsomen; gece (varsayilan tasarim): lacivert. --- */
:root {
  color-scheme: light dark;

  --abyss: #f3f0e8;          /* sayfa */
  --slate: #fffdf8;          /* bolum */
  --slate-hi: #f7f3ea;       /* uzerine gelme, ust bar */
  --inset: #ece7dc;          /* giris kutusu, ayrinti satiri */
  --rule: rgb(48 40 22 / 0.13);
  --rule-soft: rgb(48 40 22 / 0.07);
  --rule-strong: rgb(48 40 22 / 0.24);

  --ink: #18212c;
  --ink-2: #4b5361;
  --ink-3: #6d7380;

  --gold: #9a7631;           /* metin/odak */
  --gold-fill: #c9a55c;      /* birincil dugme */
  --gold-ink: #13202e;       /* altin ustu metin */
  --essence: #0b8378;
  --ok: #18793c;
  --warn: #a8590a;
  --bad: #be3128;

  --rarity-epic: #0b6fae;
  --rarity-legendary: #c2410c;
  --rarity-mythic: #8b3fc6;
  --rarity-ultimate: #a16207;

  --font-text: "Plex Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-display: "Saira", "Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --gutter: 18px;
  --r-control: 6px;
  --r-box: 8px;
  --r-section: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --abyss: #0a0f16;
    --slate: #0f1620;
    --slate-hi: #141d29;
    --inset: #070b10;
    --rule: rgb(160 180 210 / 0.11);
    --rule-soft: rgb(160 180 210 / 0.065);
    --rule-strong: rgb(160 180 210 / 0.22);

    --ink: #ece5d6;
    --ink-2: #aaa395;
    --ink-3: #868275;

    --gold: #c8aa6e;
    --gold-fill: #c8aa6e;
    --gold-ink: #0a0f16;
    --essence: #3cc7b9;
    --ok: #4cc38a;
    --warn: #e9963e;
    --bad: #ef6a5e;

    --rarity-epic: #5cb8f0;
    --rarity-legendary: #fb8a5c;
    --rarity-mythic: #c58cff;
    --rarity-ultimate: #f2c14e;
  }
}

/* --- Temel --- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--ink);
  font: 400 14px/1.5 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main {
  max-width: 1760px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}
a { color: var(--gold); text-decoration-color: color-mix(in srgb, var(--gold) 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
strong { font-weight: 600; color: var(--ink); }
code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  font-variant-ligatures: none;
}
::selection { background: color-mix(in srgb, var(--gold) 30%, transparent); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Hextech kristali: marka isareti ve bolum basliklarinin imi. */
.brand-mark {
  width: 22px;
  height: 25px;
  flex: none;
  display: inline-grid;
  place-items: center;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.brand-mark::before {
  content: "";
  width: 14px;
  height: 16px;
  grid-area: 1 / 1;
  background: var(--abyss);
  clip-path: inherit;
}
.brand-mark::after {
  content: "";
  grid-area: 1 / 1;
  width: 7px;
  height: 8px;
  background: var(--essence);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* --- Ust bar: marka, baglanti, kullanici; altinda bolum gezintisi --- */
.chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--abyss) 86%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
header {
  max-width: 1760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  padding: 12px 24px;
}
header .spacer { flex: 1; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: 6px; }
h1 {
  margin: 0;
  font: 600 18px/1 var(--font-display);
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
h1 span {
  font: 500 12px/1 var(--font-text);
  font-stretch: 85%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--rule-strong);
  vertical-align: 2px;
}
header .who { color: var(--ink-3); font-size: 13px; }
header > a {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: var(--r-control);
}
header > a:hover { background: var(--slate-hi); }

/* Baglanti durumu: canliyken nabiz atan isaret. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  background: var(--slate);
}
.dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.up { background: var(--ok); }
.dot.down { background: var(--bad); }
.dot.up::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ok);
  animation: beacon 2.4s var(--ease-out) infinite;
}
@keyframes beacon {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

nav.jump {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
nav.jump::-webkit-scrollbar { display: none; }
nav.jump a {
  flex: none;
  padding: 8px 12px 10px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav.jump a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }

/* --- Bolumler --- */
section {
  background: var(--slate);
  border: 1px solid var(--rule);
  border-radius: var(--r-section);
  margin-bottom: 20px;
  overflow: hidden;
  scroll-margin-top: 112px;
}
section > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px var(--gutter) 13px;
  border-bottom: 1px solid var(--rule-soft);
  font: 600 12px/1.2 var(--font-text);
  font-stretch: 85%;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
}
section > h2::before {
  content: "";
  width: 10px;
  height: 11px;
  flex: none;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 2px 14px;
  font: 600 11px/1 var(--font-text);
  font-stretch: 85%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  align-items: start;
}
section .pad { height: 14px; }

/* --- KPI seridi: tek bir gosterge paneli, hucreler kil cizgiyle ayrik --- */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin-bottom: 20px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-section);
  overflow: hidden;
}
.kpis:empty { display: none; }
.kpi {
  background: var(--slate);
  padding: 14px var(--gutter) 15px;
  min-width: 0;
}
.kpi .label {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 11px/1.2 var(--font-text);
  font-stretch: 85%;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi .value {
  margin-top: 8px;
  font: 600 28px/1 var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.kpi .hint { margin-top: 6px; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .hint.ok { color: var(--ok); }
.kpi .mark { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: none; }
.kpi .mark.ok { background: var(--ok); }
.kpi .mark.warn { background: var(--warn); }
.kpi .mark.bad { background: var(--bad); }
.kpi:has(.mark.warn) .value { color: var(--warn); }
.kpi:has(.mark.bad) .value { color: var(--bad); }

/* --- Tablolar --- */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule-soft); white-space: nowrap; vertical-align: middle; }
.scroll > table > * > tr > :first-child { padding-left: var(--gutter); }
.scroll > table > * > tr > :last-child { padding-right: var(--gutter); }
th {
  font: 600 11px/1.2 var(--font-text);
  font-stretch: 85%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 11px;
  padding-bottom: 10px;
  border-bottom-color: var(--rule);
}
th.sortable { cursor: pointer; user-select: none; transition: color 0.12s; }
th.sortable:hover { color: var(--ink); }
th.sorted { color: var(--ink); }
th.sorted::after { content: " ▾"; color: var(--gold); }
th.sorted.asc::after { content: " ▴"; }
th.check, td.check { width: 1%; padding-right: 0; }
tr:last-child td { border-bottom: none; }
.scroll > table > tbody > tr:not(.detail):hover > td { background: color-mix(in srgb, var(--ink) 3.5%, transparent); }
tr.selected > td,
.scroll > table > tbody > tr.selected:hover > td { background: color-mix(in srgb, var(--gold) 9%, transparent); }
tr.selected > td:first-child { box-shadow: inset 2px 0 var(--gold); }
td strong { font-weight: 600; }
.empty { padding: 22px var(--gutter); color: var(--ink-3); font-size: 13px; }

/* --- Rozetler --- */
.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: 1px;
}
.chip.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.chip.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.chip.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, transparent); }
.chip.info { color: var(--essence); background: color-mix(in srgb, var(--essence) 13%, transparent); }

/* Anlik durum: renkli isaret + metin; oyundaki botun isareti nabiz atar. */
.live { position: relative; display: inline-block; padding-left: 13px; font-size: 13px; font-weight: 500; }
.live::before,
.live.info::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: currentColor;
}
.live.muted::before { width: 5px; height: 5px; margin-top: -2.5px; left: 1px; opacity: 0.6; }
.live.info::after { animation: beacon 2.4s var(--ease-out) infinite; }
.live.ok { color: var(--ok); }
.live.warn { color: var(--warn); }
.live.bad { color: var(--bad); }
.live.info { color: var(--essence); }
.live.muted { color: var(--ink-3); }

/* Seviye cubugu: hedefe giden yol, 10 dilimli XP seridi. */
.bar {
  position: relative;
  width: 120px;
  height: 6px;
  background: var(--inset);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--rule-soft);
}
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--gold); border-radius: inherit; }
.bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--slate) calc(10% - 1px) 10%);
}
.level { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.level .bar { width: 80px; }
.level + div { margin-top: 4px; }

/* --- Dugmeler --- */
button {
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  padding: 4px 10px;
  margin-right: 4px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-control);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s, transform 0.12s var(--ease-out);
}
button:hover { background: var(--slate-hi); border-color: color-mix(in srgb, var(--gold) 55%, transparent); color: var(--ink); }
button:active:not(:disabled) { transform: scale(0.97); }
button:disabled { opacity: 0.4; cursor: not-allowed; }
button.danger:hover { border-color: color-mix(in srgb, var(--bad) 60%, transparent); color: var(--bad); background: color-mix(in srgb, var(--bad) 7%, transparent); }
td > button:last-child { margin-right: 0; }

.btn {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.btn.primary {
  background: var(--gold-fill);
  border-color: var(--gold-fill);
  color: var(--gold-ink);
}
.btn.primary:hover {
  background: color-mix(in srgb, var(--gold-fill) 86%, white);
  border-color: color-mix(in srgb, var(--gold-fill) 86%, white);
  color: var(--gold-ink);
}

.link {
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  border-radius: 3px;
}
.link:hover { background: none; color: var(--gold); }
.link.toggle::before {
  content: "▸";
  display: inline-block;
  width: 14px;
  color: var(--ink-3);
  transition: transform 0.15s var(--ease-out);
}
.link.toggle.open::before { content: "▾"; color: var(--gold); }
.link.small { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.link.small:hover { color: var(--gold); }
.link.small.rename { margin-left: 6px; }

/* --- Formlar ve arac cubugu --- */
.form-row, .toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px var(--gutter) 0;
}
.toolbar {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
}
.toolbar .spacer { flex: 1; }
.toolbar .count { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
/* Aralik suzgeci: "Skin [en az] – [en cok]", "Mavi oz [en az] – [en cok]". */
.toolbar .range { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 12px; }
.toolbar .range input[type=number] { width: 92px; }
.toolbar [data-role="bulk"] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 3px 4px 3px 10px;
  border-radius: var(--r-box);
  background: color-mix(in srgb, var(--gold) 9%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 28%, transparent);
}
.toolbar [data-role="bulk"] .count { color: var(--gold); font-weight: 500; margin-right: 4px; }

input[type=text], input[type=password], input[type=email], input[type=search], input[type=number], select, textarea {
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r-control);
  background: var(--inset);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  transition: border-color 0.12s, box-shadow 0.12s;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 0.85; }
input[type=text], input[type=password], input[type=email] { width: 200px; }
input[type=search] { width: 280px; }
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8578' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
input:hover, select:hover, textarea:hover { border-color: var(--rule-strong); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--gold) 70%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 16%, transparent);
}
input[type=checkbox] { accent-color: var(--gold-fill); width: 14px; height: 14px; margin: 0; vertical-align: -2px; cursor: pointer; }
td select { font-size: 12px; padding: 3px 26px 3px 8px; background-position: right 8px center; }
td input[type=number] { font-size: 12px; padding: 3px 8px; }
textarea { font-family: var(--font-mono); font-size: 12px; margin: 6px 0; }
/* Toplu hesap ekleme: her satir bir hesap; dugmeler altindaki satirda. */
.add-accounts textarea, .login-proxies textarea { flex: 1 1 100%; max-width: 560px; margin: 0; resize: vertical; }
.add-accounts + .form-row { padding-top: 8px; }
label.inline { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 13px; }
.form-status { color: var(--ink-3); font-size: 12px; }

/* --- Aciklama, kutu, alt metin --- */
.note {
  padding: 12px var(--gutter);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
  text-wrap: pretty;
}
.note strong { color: var(--ink); }
.note code { color: var(--ink); }
.box {
  margin: 14px var(--gutter) 0;
  padding: 12px 14px;
  background: var(--inset);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-box);
  font-size: 13px;
  line-height: 1.6;
}
.box .form-row { padding-left: 0; padding-right: 0; }
/* Hesap ve grup ayar formu (panel.js settingsFields): yer tutucu "gruptan: 30" sigsin. */
.settings-fields input[type=number] { width: 150px; }
.detail .account-settings { margin: 0 0 10px; }
.detail .account-settings .form-row { padding: 6px 0 0; }
/* Kopyalanacak komut ve anahtarlar: komut satiri gibi. */
.box code, .form-row > code {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--r-control);
  background: var(--slate);
  border: 1px solid var(--rule-soft);
  color: var(--ink);
  line-height: 1.5;
}
.sub { color: var(--ink-3); font-size: 12px; margin-left: 6px; }
.sub.ok { color: var(--ok); }
.sub.below { display: block; margin-left: 0; }

/* Grubun takviye stoku (dashboard.js boostCell / boostCard / renderBoostStock). */
.boost-stock { margin-bottom: 14px; }
.boost-stock h3 { margin: 0 0 10px; }
.boost-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.boost-card { padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r-box); }
.boost-card p { margin: 6px 0 0; }
.boost-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.boost-answer { font-size: 16px; font-weight: 600; color: var(--ink); }
.boost-card .bad { color: var(--bad); }
.boost-card .warn { color: var(--warn); }
.boost-stock details { margin-top: 8px; color: var(--ink-2); }
.boost-stock summary { cursor: pointer; color: var(--ink-3); }
.boost-formula { margin-top: 12px; }

/* --- Hesap ayrintisi (acilir satir) --- */
tr.detail > td {
  background: var(--inset);
  white-space: normal;
  padding: 16px var(--gutter) 20px calc(var(--gutter) + 22px);
  box-shadow: inset 2px 0 var(--gold);
  border-bottom: 1px solid var(--rule);
}
.detail { font-size: 13px; }
.detail p { margin: 0 0 10px; }
.detail h3 {
  margin: 14px 0 6px;
  font: 600 11px/1.2 var(--font-text);
  font-stretch: 85%;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.detail table { width: auto; }
.detail th, .detail td { padding: 4px 18px 4px 0; border: none; }
.detail th { font-size: 10.5px; padding-top: 4px; padding-bottom: 4px; }
.detail tbody th { text-transform: none; letter-spacing: 0; font: 500 12px/1.4 var(--font-text); color: var(--ink-3); }
.detail .cols { display: flex; gap: 8px 48px; flex-wrap: wrap; }

/* Ekran goruntusu / log */
.shot img { display: block; max-width: 100%; margin-top: 10px; border-radius: var(--r-control); outline: 1px solid var(--rule); outline-offset: -1px; }
.shot-head { display: block; }
.shot button { margin-left: 4px; }
.info-grid { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 10px 0 0; }
.info-grid dt { color: var(--ink-3); }
.info-grid dd { margin: 0; }
.sub.spec { display: block; margin-left: 0; }

/* --- Bildirim --- */
#toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: min(440px, calc(100vw - 40px));
  padding: 11px 16px 11px 14px;
  background: var(--slate-hi);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-left: 2px solid var(--gold);
  border-radius: var(--r-box);
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translateY(0); }

/* --- Giris sayfasi --- */
body.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 70%),
    var(--abyss);
}
.login {
  width: 100%;
  max-width: 380px;
  background: var(--slate);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px 28px 22px;
}
.login .brand { margin: 0 0 22px; }
.login h1 { font-size: 20px; }
.login label { display: block; color: var(--ink-2); font-size: 13px; font-weight: 500; margin: 14px 0 6px; }
.login input { width: 100%; padding: 9px 12px; font-size: 14px; }
.login .btn { width: 100%; margin: 22px 0 0; padding: 10px 14px; font-size: 14px; }
.login .error { color: var(--bad); font-size: 13px; margin-top: 12px; min-height: 1.5em; }

/* --- Hesap tablosu: Riot ID kullanici adinin altinda, uzun hata tek satirda kisalir --- */
.sub.riot { margin-left: 0; font-size: 12px; }
td .link.toggle + .sub.riot { padding-left: 14px; }
.sub.riot a { color: inherit; text-decoration: none; }
.sub.riot a:hover { color: var(--gold); text-decoration: underline; }
.error-line { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.chip.error { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td > div > .chip { margin-top: 3px; }

/* Kostum / totem / ifade parcasi nadirligi: istemcinin tas renkleri. Standart ve
   bilinmeyen renksiz kalir; ayrintida satirin solunda nadirlik cizgisi. */
.r-default, .r-none { --r: var(--ink-3); }
.r-epic { --r: var(--rarity-epic); }
.r-legendary { --r: var(--rarity-legendary); }
.r-mythic { --r: var(--rarity-mythic); }
.r-ultimate { --r: var(--rarity-ultimate); }
/* Skin listesinde gorulen ust/alt nadirlikler; ayri renk yerine en yakin tasin rengi. */
.r-rare { --r: var(--rarity-epic); }
.r-exalted, .r-transcendent { --r: var(--rarity-mythic); }

/* Profil: adlar uzun liste olabilir (yuzlerce sampiyon / simge); tablo hucresinde sarar. */
.detail .names { max-width: 960px; white-space: normal; line-height: 1.65; color: var(--ink-2); font-size: 13px; }
.detail .names.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip.rarity { color: var(--r); background: color-mix(in srgb, var(--r) 13%, transparent); font-weight: 600; }
.chip.rarity.r-default, .chip.rarity.r-none { font-weight: 500; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.detail tr.shard > td:first-child { box-shadow: inset 2px 0 var(--r); padding-left: 10px; }
.detail tr.shard:not(.r-default):not(.r-none) .shard-name { color: var(--r); font-weight: 600; }
.shard-hits { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; padding-left: 14px; align-items: center; }
.shard-hits .chip { font-size: 11px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shard-hits .sub { margin-left: 0; }

/* --- Dar ekran --- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 14px; }
  main { padding: 16px 16px 48px; }
  header { padding: 10px 16px; }
  nav.jump { padding: 0 10px; }
  h1 span { display: none; }
  input[type=text], input[type=password], input[type=email], input[type=search] { width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Tek sayida kutuda son satir bos hucre birakmasin. */
  .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kpi .value { font-size: 22px; }
  section { scroll-margin-top: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .dot.up::after, .live.info::after { animation: none; opacity: 0; }
  #toast { transform: none; }
  button:active:not(:disabled) { transform: none; }
}
