/* ==========================================================================
   pingtesti.com — tasarım sistemi (açık / koyu tema)
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  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;
}

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f5f7fb;
  --bg-grad: radial-gradient(1200px 500px at 85% -10%, #e8f0ff 0%, rgba(232, 240, 255, 0) 60%);
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --border: #e5eaf2;
  --border-strong: #d5dcea;
  --text: #0e1525;
  --text-2: #334155;
  --muted: #64748b;
  --primary: #1f6bf5;
  --primary-hover: #1758d6;
  --primary-soft: #eaf1ff;
  --primary-ring: rgba(31, 107, 245, .18);
  --green: #16a34a;
  --green-ink: #15803d;
  --green-soft: #e8f7ee;
  --amber: #d97706;
  --amber-soft: #fef3e2;
  --red: #dc2626;
  --red-soft: #fdecec;
  --track: #e6ebf3;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .10);
  --shadow-lg: 0 18px 50px -20px rgba(15, 23, 42, .25);
  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --header-h: 76px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a101d;
  --bg-grad: radial-gradient(1200px 500px at 85% -10%, rgba(37, 99, 235, .16) 0%, rgba(37, 99, 235, 0) 60%);
  --surface: #111a2b;
  --surface-2: #0e1626;
  --border: #1f2a40;
  --border-strong: #2b3954;
  --text: #e8eef9;
  --text-2: #c3cee2;
  --muted: #8e9bb5;
  --primary: #3d82ff;
  --primary-hover: #5b96ff;
  --primary-soft: rgba(61, 130, 255, .14);
  --primary-ring: rgba(61, 130, 255, .30);
  --green: #22c55e;
  --green-ink: #4ade80;
  --green-soft: rgba(34, 197, 94, .13);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, .14);
  --red: #f05252;
  --red-soft: rgba(240, 82, 82, .14);
  --track: #1f2a40;
  --shadow-sm: none;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 10px 30px -15px rgba(0, 0, 0, .6);
  --shadow-lg: 0 20px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Temel
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-grad), var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary-ring); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
[hidden] { display: none !important; }
.ic { flex-shrink: 0; }

.container { width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 28px; }
.section { margin-top: 56px; }
.muted { color: var(--muted); }
.sep { color: var(--border-strong); margin: 0 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   Header / navigasyon
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 14px; color: var(--text); font-weight: 750; font-size: 27px; letter-spacing: -.02em; white-space: nowrap; }
.logo:hover { color: var(--text); }
.logo .logo-mark { color: var(--primary); }
.logo-sm { font-size: 21px; gap: 10px; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 16px; border-radius: 13px; border: 0; background: transparent;
  color: var(--text-2); font-weight: 500; font-size: 16.5px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.is-active { background: var(--primary-soft); color: var(--primary); }
.nav-link .caret { opacity: .6; transition: transform .2s; }
.has-menu { position: relative; }
.has-menu.is-open > .nav-link .caret { transform: rotate(180deg); }
.only-mobile { display: none; }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 10px; display: none; z-index: 60;
}
.has-menu.is-open > .dropdown { display: block; }
.dropdown-right { left: auto; right: 0; min-width: 190px; }
.dropdown-wide { display: none; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 560px; left: 50%; transform: translateX(-50%); }
.has-menu.is-open > .dropdown-wide { display: grid; }
.dd-title { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 12px 6px; }
.dd-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 15px; }
.dd-link:hover { background: var(--surface-2); color: var(--text); }
.dd-link.is-active { color: var(--primary); background: var(--primary-soft); }
.dd-link .flag { width: 20px; height: 20px; }
.dd-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--primary-soft); color: var(--primary); }

.nav-tools { display: flex; align-items: center; gap: 6px; }
.nav-sep { width: 1px; height: 28px; background: var(--border); margin: 0 10px; }

.theme-switch { display: inline-flex; align-items: center; gap: 12px; border: 0; background: none; padding: 6px; color: var(--text-2); }
.ts-track { position: relative; width: 58px; height: 32px; border-radius: 99px; background: var(--track); border: 1px solid var(--border-strong); transition: background .2s; }
.ts-thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .22s cubic-bezier(.3, .7, .4, 1); }
[data-theme="dark"] .ts-track { background: var(--primary); border-color: var(--primary); }
[data-theme="dark"] .ts-thumb { transform: translateX(26px); }
[data-theme="dark"] .ts-sun { opacity: .5; }
[data-theme="light"] .ts-moon { opacity: .75; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.nav-toggle { display: none; margin-left: auto; }
.nav-toggle .when-open { display: none; }
.nav-open .nav-toggle .when-open { display: block; }
.nav-open .nav-toggle .when-closed { display: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding-top: 44px; padding-bottom: 36px; }
.hero h1 { font-size: clamp(34px, 4.3vw, 62px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.hero .accent { color: var(--primary); }
.hero .lead { margin-top: 14px; font-size: clamp(18px, 1.7vw, 26px); color: var(--muted); font-weight: 450; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 6px 12px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); font-size: 14px; font-weight: 600; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-chips li { display: inline-flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 17.5px; }
.chip-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.hero-tip { position: relative; display: flex; align-items: flex-end; gap: 18px; }
.tip-card { display: flex; align-items: center; gap: 22px; max-width: 420px; padding: 24px 28px; border-radius: 18px; background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--primary-soft) 40%, transparent)); color: var(--text-2); font-size: 16.5px; line-height: 1.5; }
.tip-ic { color: var(--primary); }
.tip-bars { display: flex; align-items: flex-end; gap: 9px; height: 110px; opacity: .55; }
.tip-bars i { width: 14px; border-radius: 99px; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 30%, transparent), color-mix(in srgb, var(--primary) 8%, transparent)); }
.tip-bars i:nth-child(1) { height: 28%; } .tip-bars i:nth-child(2) { height: 50%; } .tip-bars i:nth-child(3) { height: 74%; } .tip-bars i:nth-child(4) { height: 100%; }

/* --------------------------------------------------------------------------
   Kartlar
   -------------------------------------------------------------------------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 26px 28px; }
.card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.card-ic { color: var(--primary); display: grid; place-items: center; }
.card-title { font-size: 24px; font-weight: 700; }
.card-sub { color: var(--muted); font-size: 15.5px; }
.card-settings .card-sub { margin-left: auto; }
.block-title { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 650; }
.block-title .ic { color: var(--primary); }

/* --------------------------------------------------------------------------
   Butonlar / formlar
   -------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15.5px; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px -8px var(--primary); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-soft { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-soft:hover { border-color: var(--border-strong); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-danger { background: var(--red); color: #fff; }
.btn-xl { height: 64px; font-size: 21px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn .when-running, .is-running .btn .when-idle { display: none; }
.is-running .btn .when-running { display: inline; }
.is-running #startBtn { background: var(--text); box-shadow: none; }
[data-theme="dark"] .is-running #startBtn { background: #26324b; }

.input, .textarea, .select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 15.5px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 150px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.form-row { display: grid; gap: 8px; margin-bottom: 16px; }
.form-row label { font-weight: 600; font-size: 14.5px; color: var(--text-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; font-weight: 500; margin-bottom: 16px; }
.alert-ok { background: var(--green-soft); color: var(--green-ink); }
.alert-err { background: var(--red-soft); color: var(--red); }

/* --------------------------------------------------------------------------
   Ping aracı
   -------------------------------------------------------------------------- */
.tool-grid { display: grid; grid-template-columns: minmax(0, 41fr) minmax(0, 59fr); gap: 24px; align-items: start; }

.field-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.field-label { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; font-size: 17px; }
.field-label .ic { color: var(--text-2); }
.field-hint { color: var(--muted); font-size: 15px; }
.empty-note { display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-weight: 500; }

.server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.server-card {
  position: relative; display: flex; align-items: center; gap: 16px; min-height: 82px; padding: 14px 18px; text-align: left;
  border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s;
}
.server-card:hover { border-color: var(--border-strong); }
.server-card.is-selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary-soft) 55%, var(--surface)); box-shadow: 0 0 0 3px var(--primary-ring); }
.server-card .flag { width: 40px; height: 40px; }
.server-card.is-offline { opacity: .55; }
.srv-text { display: grid; line-height: 1.3; min-width: 0; }
.srv-text strong { font-weight: 650; font-size: 16.5px; }
.srv-text span { color: var(--text-2); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-lat { margin-left: auto; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.srv-lat.good { color: var(--green-ink); } .srv-lat.mid { color: var(--amber); } .srv-lat.bad { color: var(--red); }
.srv-check { display: none; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; place-items: center; flex-shrink: 0; }
.server-card.is-selected .srv-check { display: grid; }
.server-card.is-selected .srv-lat { margin-left: auto; }

.flag { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08); flex-shrink: 0; }
.flag-txt { width: var(--s, 28px); height: var(--s, 28px); display: inline-grid; place-items: center; background: var(--surface-2); color: var(--text-2); font-size: 11px; font-weight: 700; border: 1px solid var(--border); }

.sliders { display: grid; gap: 24px; margin: 30px 0 30px; }
.slider-row { display: grid; grid-template-columns: 168px minmax(0, 1fr) 150px; align-items: center; gap: 18px; }
.slider-row label { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16.5px; }
.slider-row label .ic { color: var(--text-2); }
.slider-row output { display: grid; place-items: center; height: 42px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 15.5px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(var(--primary), var(--primary)) 0 / var(--p) 100% no-repeat, var(--track); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--track); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--primary); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .3); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .3); }
input[type="range"]:disabled { opacity: .6; }

/* Canlı analiz */
.card-live { padding-top: 26px; overflow: hidden; }
.progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .25s linear; }
.status-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; border-radius: 99px; font-weight: 600; font-size: 15.5px; background: var(--green-soft); color: var(--green-ink); white-space: nowrap; }
.status-pill i { width: 11px; height: 11px; border-radius: 50%; background: currentColor; }
.status-pill[data-state="busy"] { background: var(--primary-soft); color: var(--primary); }
.status-pill[data-state="busy"] i { animation: pulse 1.1s ease-in-out infinite; }
.status-pill[data-state="error"] { background: var(--red-soft); color: var(--red); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

.live-top { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.gauge-box { display: grid; justify-items: center; }
.gauge { position: relative; width: 300px; max-width: 100%; aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; }
.g-track, .g-value { fill: none; stroke-width: 15; stroke-linecap: round; }
.g-track { stroke: var(--track); }
.g-value { stroke: var(--primary); transition: stroke-dasharray .45s ease, stroke .3s, opacity .2s; }
.gauge[data-q=""] .g-value { opacity: 0; }
.gauge[data-q="mid"] .g-value { stroke: var(--amber); }
.gauge[data-q="bad"] .g-value { stroke: var(--red); }
.gauge-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding-top: 6px; }
.g-num { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.g-num strong { font-size: 58px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.g-num span { font-size: 22px; color: var(--text-2); font-weight: 500; }
.g-label { margin-top: 12px; color: var(--text-2); font-size: 17px; }
.gauge-minmax { margin-top: -26px; color: var(--muted); font-size: 15.5px; font-variant-numeric: tabular-nums; }
.gauge-minmax b { font-weight: 500; color: var(--text-2); }

.live-right { display: grid; gap: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { border: 1px solid var(--border); border-radius: 14px; padding: 20px 20px 18px; background: var(--surface); }
.stat-head { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--text-2); font-size: 16.5px; font-weight: 500; }
.stat-val { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.stat-val strong { font-size: 36px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.stat-val small { font-size: 22px; font-weight: 650; }
.stat-blue .stat-head .ic, .stat-blue .stat-val { color: var(--primary); }
.stat-green .stat-head .ic, .stat-green .stat-val { color: var(--green); }
.stat-amber .stat-head .ic, .stat-amber .stat-val { color: var(--amber); }
.stat-red .stat-head .ic, .stat-red .stat-val { color: var(--red); }
.stat .stat-head span { color: var(--text-2); }

.seg { display: flex; justify-content: flex-end; gap: 12px; }
.seg-btn { min-width: 86px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-size: 15px; font-weight: 500; }
.seg-btn:hover { border-color: var(--border-strong); }
.seg-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.chart-block { margin-top: 8px; }
.chart-wrap { position: relative; height: 220px; margin-top: 12px; }
.chart-wrap canvas { width: 100%; height: 100%; }

.games-row { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.games-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15.5px; }
.game-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.game-chip { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-weight: 500; font-size: 15.5px; background: var(--surface); transition: border-color .15s, transform .15s; }
.game-chip:hover { border-color: var(--primary); color: var(--text); transform: translateY(-1px); }
.game-badge { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--g, #333); color: var(--gi, #fff); font-size: 12px; font-weight: 800; letter-spacing: -.02em; flex-shrink: 0; }
.game-badge.sm { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
.game-badge.lg { width: 64px; height: 64px; font-size: 22px; border-radius: 16px; }

/* Rapor */
.report { margin-top: 24px; }
.report-top { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.grade { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; font-size: 38px; font-weight: 800; background: var(--surface-2); color: var(--muted); flex-shrink: 0; }
.grade[data-g="A"], .grade[data-g="B"] { background: var(--green-soft); color: var(--green-ink); }
.grade[data-g="C"] { background: var(--amber-soft); color: var(--amber); }
.grade[data-g="D"], .grade[data-g="F"] { background: var(--red-soft); color: var(--red); }
.verdict { font-size: 19px; font-weight: 600; }
.report-meta { color: var(--muted); margin-top: 4px; font-size: 15px; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0; }
.report-grid > div { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); }
.report-grid dt { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.report-grid dd { margin: 6px 0 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.report-actions .btn-primary { margin-left: auto; }

/* --------------------------------------------------------------------------
   İçerik bölümleri
   -------------------------------------------------------------------------- */
.section-title { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 750; margin-bottom: 20px; }
.section-title .ic { color: var(--primary); }

.card-prose { padding: 36px 40px; }
.prose { color: var(--text-2); font-size: 17px; line-height: 1.78; }
.prose > * + * { margin-top: 1em; }
.prose h2 { color: var(--text); font-size: 26px; font-weight: 750; margin-top: 1.7em; }
.prose h3 { color: var(--text); font-size: 20px; font-weight: 700; margin-top: 1.5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--text); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose blockquote { margin-left: 0; padding: 14px 20px; border-left: 4px solid var(--primary); background: var(--primary-soft); border-radius: 0 12px 12px 0; color: var(--text); }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
.prose pre { overflow-x: auto; background: var(--surface-2); border: 1px solid var(--border); padding: 16px; border-radius: 12px; }
.prose pre code { border: 0; padding: 0; background: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.prose th { color: var(--text); font-weight: 650; background: var(--surface-2); }
.prose img { border-radius: 14px; height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }

.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 650; font-size: 17px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .caret { color: var(--muted); transition: transform .2s; }
.faq-item[open] summary .caret { transform: rotate(180deg); }
.faq-item p { padding: 0 22px 20px; color: var(--text-2); line-height: 1.7; }

.city-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.city-grid a { display: block; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-2); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-grid a:hover { border-color: var(--primary); color: var(--primary); }

.page-head { padding: 44px 0 28px; }
.page-head h1 { font-size: clamp(32px, 3.6vw, 50px); font-weight: 800; letter-spacing: -.03em; }
.page-head .lead { margin-top: 12px; font-size: 19px; color: var(--muted); max-width: 760px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 14px; list-style: none; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--radius); background: linear-gradient(120deg, var(--primary), #4f8dff); color: #fff; }
.cta-band h2 { font-size: 23px; }
.cta-band p { opacity: .9; margin-top: 4px; }
.cta-band .btn { background: #fff; color: var(--primary); }

/* Generic metric cards (hız, IP, oyun) */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric { border: 1px solid var(--border); border-radius: 16px; padding: 20px; background: var(--surface); }
.metric-head { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 500; }
.metric-head .ic { color: var(--primary); }
.metric-val { margin-top: 12px; display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.metric-val strong { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.metric-val small { color: var(--muted); font-size: 17px; font-weight: 600; }
.metric.is-active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }

.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }

.region-table { width: 100%; border-collapse: collapse; }
.region-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 0 12px 12px; }
.region-table td { padding: 12px; border-top: 1px solid var(--border); vertical-align: middle; }
.region-name { display: flex; align-items: center; gap: 12px; }
.region-name strong { display: block; font-weight: 650; }
.region-name span { color: var(--muted); font-size: 14px; }
.lat-bar { position: relative; height: 10px; border-radius: 99px; background: var(--track); overflow: hidden; min-width: 120px; }
.lat-bar span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: var(--green); transition: width .4s ease; }
.lat-val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.q-badge { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.q-great, .q-good { background: var(--green-soft); color: var(--green-ink); }
.q-ok { background: var(--amber-soft); color: var(--amber); }
.q-bad, .q-fail { background: var(--red-soft); color: var(--red); }
tr.is-best td { background: color-mix(in srgb, var(--green-soft) 60%, transparent); }

.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 15px; }
.note .ic { color: var(--primary); margin-top: 2px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.tool-head { display: flex; align-items: center; gap: 18px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; color: var(--text); }
.post-card:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--text); }
.post-card h2 { font-size: 19px; font-weight: 700; line-height: 1.35; }
.post-card p { color: var(--muted); font-size: 15px; line-height: 1.6; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13.5px; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; }
.pagination .is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .gap { border: 0; background: none; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.post-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.aside-card { padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.aside-card h3 { font-size: 16px; margin-bottom: 12px; }
.aside-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aside-links a { color: var(--text-2); font-size: 15px; line-height: 1.45; }
.aside-links a:hover { color: var(--primary); }

/* 404 */
.error-page { text-align: center; padding: 90px 0 60px; }
.error-code { font-size: clamp(80px, 14vw, 150px); font-weight: 850; letter-spacing: -.06em; color: var(--primary); line-height: 1; }
.error-page p { color: var(--muted); font-size: 19px; margin: 14px 0 28px; }

/* Kulaklık testi */
.channel-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.channel-btn { display: grid; justify-items: center; gap: 10px; padding: 22px 12px; border: 1.5px solid var(--border); border-radius: 16px; background: var(--surface); font-weight: 600; }
.channel-btn .ic { color: var(--primary); }
.channel-btn.is-playing { border-color: var(--primary); background: var(--primary-soft); }
.meter { height: 16px; border-radius: 99px; background: var(--track); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--amber) 75%, var(--red)); transition: width .06s linear; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 36px; }
.footer-brand p { color: var(--muted); margin: 14px 0 16px; max-width: 360px; font-size: 15px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-langs a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); color: var(--text-2); font-size: 14px; }
.footer-langs a[aria-current] { background: var(--primary-soft); border-color: transparent; color: var(--primary); font-weight: 600; }
.footer-title { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--text-2); font-size: 15px; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.footer-bottom strong { color: var(--text-2); font-weight: 600; }

/* Reklam alanı */
.ad-slot { margin: 28px auto 0; min-height: 100px; text-align: center; }

/* --------------------------------------------------------------------------
   Duyarlı tasarım
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .live-top { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; }
  .gauge { width: 250px; }
  .g-num strong { font-size: 48px; }
  .stat { padding: 16px; }
  .stat-val strong { font-size: 30px; }
  .slider-row { grid-template-columns: 140px minmax(0, 1fr) 128px; gap: 14px; }
}

@media (max-width: 1120px) {
  .nav-toggle { display: inline-grid; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px 32px; overflow-y: auto;
    background: var(--surface); border-top: 1px solid var(--border); display: none;
  }
  .nav-open .main-nav { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .only-mobile { display: block; }
  .nav-link { width: 100%; height: 52px; font-size: 17px; }
  .dropdown, .dropdown-wide { position: static; transform: none; min-width: 0; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
  .has-menu.is-open > .dropdown-wide { grid-template-columns: 1fr; }
  .nav-tools { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); justify-content: space-between; }
  .nav-tools .lang-menu { flex: 1; }
  .nav-sep { display: none; }
  body.nav-open { overflow: hidden; }
  .tool-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-tip { display: none; }
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .logo { font-size: 22px; gap: 10px; }
  .logo .logo-mark { width: 28px; height: 28px; }
  .hero { padding-top: 28px; padding-bottom: 24px; }
  .hero-chips { gap: 10px 18px; margin-top: 20px; }
  .hero-chips li { font-size: 15.5px; }
  .chip-ic { width: 34px; height: 34px; }
  .card { padding: 20px 18px 22px; border-radius: 18px; }
  .card-prose { padding: 24px 20px; }
  .card-settings .card-sub { margin-left: 0; width: 100%; }
  .card-title { font-size: 21px; }
  .status-pill { margin-left: 0; height: 36px; font-size: 14.5px; }
  .live-top { grid-template-columns: 1fr; }
  .gauge { width: 260px; }
  .seg { justify-content: stretch; }
  .seg-btn { flex: 1; min-width: 0; }
  .slider-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
  .slider-row input[type="range"] { grid-column: 1 / -1; grid-row: 2; }
  .slider-row output { height: 34px; padding: 0 12px; }
  .game-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .post-grid { grid-template-columns: 1fr; }
  .two-col, .cols-2, .form-grid { grid-template-columns: 1fr; }
  .report-actions .btn-primary { margin-left: 0; }
  .field-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 560px) {
  .server-grid { gap: 10px; }
  .server-card { gap: 10px; padding: 12px; min-height: 70px; }
  .server-card .flag { width: 32px; height: 32px; }
  .srv-text strong { font-size: 15px; }
  .srv-text span { font-size: 13.5px; }
  .srv-lat { display: none; }
  .server-card.is-selected .srv-check { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px 10px; }
  .stat-head { font-size: 13.5px; gap: 6px; }
  .stat-head .ic { width: 18px; height: 18px; }
  .stat-val strong { font-size: 24px; }
  .stat-val small { font-size: 15px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-val strong { font-size: 30px; }
  .btn-xl { height: 58px; font-size: 19px; }
  .channel-btns { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   Sayfa özel ekler
   -------------------------------------------------------------------------- */
.ip-val strong { font-size: clamp(22px, 2.6vw, 34px); word-break: break-all; line-height: 1.2; }
.ip-hero-card .metric .btn { margin-top: 16px; }
.stun-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; margin-bottom: 10px; }
.stun-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stun-result { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.stun-result strong { font-family: var(--mono); font-size: 14px; word-break: break-all; }
.stun-result.ok { border-color: transparent; background: var(--green-soft); color: var(--green-ink); }
.stun-result.fail { border-color: transparent; background: var(--red-soft); color: var(--red); }
@media (max-width: 860px) {
  .stun-row { grid-template-columns: 1fr 1fr 44px; }
  .stun-row [name="url"] { grid-column: 1 / -1; }
}

/* Oyun logoları — her temada okunur olması için açık zemin */
.game-logo { display: inline-grid; place-items: center; width: 52px; height: 34px; padding: 3px 5px; border-radius: 9px; background: #fff; border: 1px solid #e5eaf2; flex-shrink: 0; overflow: hidden; }
.game-logo img { width: 100%; height: 100%; object-fit: contain; }
.game-logo.sm { width: 44px; height: 28px; border-radius: 7px; }
.game-logo.lg { width: 120px; height: 72px; border-radius: 16px; padding: 6px 10px; }

/* --------------------------------------------------------------------------
   Kompakt hero — "Testi Başlat" ilk ekranda görünsün
   -------------------------------------------------------------------------- */
.hero { padding-top: 26px; padding-bottom: 22px; gap: 24px; }
.hero h1 { font-size: clamp(28px, 3.1vw, 50px); }
.hero .lead { margin-top: 8px; font-size: clamp(16px, 1.35vw, 21px); }
.hero-chips { margin-top: 16px; gap: 10px 28px; }
.hero-chips li { font-size: 16px; gap: 10px; }
.chip-ic { width: 32px; height: 32px; }
.chip-ic .ic { width: 17px; height: 17px; }
.tip-card { padding: 18px 22px; font-size: 15px; gap: 16px; }
.tip-bars { height: 84px; }
.card-head { padding-bottom: 14px; margin-bottom: 16px; }
.card-settings, .card-live { padding-top: 22px; padding-bottom: 22px; }
.server-card { min-height: 72px; padding: 12px 16px; }
.sliders { gap: 16px; margin: 20px 0 22px; }
.slider-row output { height: 38px; }
.btn-xl { height: 58px; font-size: 20px; }
.gauge { width: 270px; }

/* Kısa ekranlar (laptop 768p vb.) */
@media (min-width: 1121px) and (max-height: 860px) {
  .hero { padding-top: 16px; padding-bottom: 14px; }
  .hero-chips, .hero-tip { display: none; }
  .hero h1 { font-size: clamp(26px, 2.6vw, 40px); }
}

@media (max-width: 860px) {
  .hero { padding-top: 18px; padding-bottom: 16px; }
  .hero h1 { font-size: 27px; }
  .hero .lead { font-size: 16px; }
  .hero-chips { display: none; }
  .server-card { min-height: 62px; }
  .sliders { gap: 12px; margin: 16px 0 18px; }
}
@media (max-width: 1280px) { .gauge { width: 250px; } }
@media (max-width: 1500px) {
  .stat-head { white-space: normal; font-size: 15px; gap: 8px; line-height: 1.25; }
  .stat-head .ic { width: 20px; height: 20px; }
}
@media (max-width: 860px) {
  .card-settings .card-sub, .card-settings .field-hint { display: none; }
  .card-settings .card-head { padding-bottom: 12px; margin-bottom: 14px; }
  .field-head { margin-bottom: 12px; }
}

/* Dil menüsü (23 dil) */
.dropdown-langs { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; min-width: 400px; max-height: min(70vh, 560px); overflow-y: auto; }
.has-menu.is-open > .dropdown-langs { display: grid; }
.footer-langs a { font-size: 13px; padding: 4px 10px; }
@media (max-width: 1120px) { .dropdown-langs { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; } }

/* Sağdan sola diller (ar, fa, he) */
[dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .card-settings .card-sub, [dir="rtl"] .status-pill, [dir="rtl"] .srv-lat, [dir="rtl"] .report-actions .btn-primary { margin-left: 0; margin-right: auto; }
[dir="rtl"] .dropdown-right { right: auto; left: 0; }
[dir="rtl"] .dropdown-wide { left: auto; right: 50%; transform: translateX(50%); }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] .prose blockquote { border-left: 0; border-right: 4px solid var(--primary); border-radius: 12px 0 0 12px; }
[dir="rtl"] .link-arrow .ic, [dir="rtl"] .icon-arrow-right { transform: scaleX(-1); }
[dir="rtl"] .seg { justify-content: flex-start; }
[dir="rtl"] .server-card, [dir="rtl"] .region-table th, [dir="rtl"] .prose th, [dir="rtl"] .prose td { text-align: right; }
[dir="rtl"] input[type="range"] { direction: ltr; }
[dir="rtl"] .chart-wrap, [dir="rtl"] .gauge, [dir="rtl"] .g-num, [dir="rtl"] .stat-val, [dir="rtl"] .metric-val, [dir="rtl"] .report-grid dd { direction: ltr; }
@media (max-width: 1120px) { [dir="rtl"] .main-nav { margin-right: 0; } [dir="rtl"] .dropdown-wide { transform: none; } }

/* Oyun hızlı test — sol kartta */
.card-settings .games-row { margin-top: 22px; }
.card-settings .game-chips { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.card-settings .game-chip { min-height: 52px; font-size: 15px; }
.card-settings .games-head .link-arrow { font-size: 14.5px; }
[dir="rtl"] .srv-lat, [dir="rtl"] .lat-val, [dir="rtl"] .gauge-minmax b { direction: ltr; unicode-bidi: isolate; }

/* Test bitiş şeridi (Canlı Analiz) */
.done-banner { display: flex; align-items: center; gap: 16px; margin: -4px 0 20px; padding: 14px 16px; border-radius: 14px; background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); }
.done-banner[data-g="C"] { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.done-banner[data-g="D"], .done-banner[data-g="F"] { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.done-banner.pop { animation: donePop .5s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes donePop { 0% { transform: scale(.96); opacity: 0; } 100% { transform: none; opacity: 1; } }
.done-grade { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; font-weight: 800; background: var(--surface); color: var(--green-ink); flex-shrink: 0; box-shadow: var(--shadow-sm); }
.done-grade[data-g="C"] { color: var(--amber); } .done-grade[data-g="D"], .done-grade[data-g="F"] { color: var(--red); }
.done-text { min-width: 0; flex: 1; }
.done-text strong { display: flex; align-items: center; gap: 6px; font-size: 17px; color: var(--text); }
.done-text strong .ic { color: var(--green); }
.done-text p { color: var(--text-2); font-size: 14.5px; margin-top: 2px; }
.done-nums { font-variant-numeric: tabular-nums; color: var(--muted) !important; }
.done-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.progress.is-done span { background: var(--green); }
@media (max-width: 860px) {
  .done-banner { flex-wrap: wrap; }
  .done-actions { flex-direction: row; width: 100%; }
  .done-actions .btn { flex: 1; }
}
