/* HubWeb — temel stil: sıcak siyah zemin, sıcak beyaz yazı, altın vurgu, az kızıl (BestCraft). Palet: aşağıdaki :root. */

@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-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: "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 {
  color-scheme: dark;
  /* MARKA PALETİ (BestCraft logosundan): altın / kızıl / sıcak siyah. Renkler yalnız burada tanımlanır; diğer dosyalar
     bu adları kullanır. Ayrıntı ve gerekçe: docs/marka/BestCraft-marka-kimligi.md.
     Altın vurgudur (birincil düğme, etkin menü, önemli sayı, bölüm işareti) ama küçük alanda kalır; büyük yüzeyler
     koyu, yazı sıcak beyazdır. Kızıl ikincil vurgudur ve azdır: yalnız DOLGU olarak (indirim / "yeni" etiketi, kurdele),
     üstünde --on-crimson yazıyla; koyu zeminde yazı ya da çizgi olarak kullanılmaz (2,9:1).
     Durum renkleri (yeşil / turuncu / gül kırmızısı / mavi) yalnız durum bildirir. */
  /* zemin: sıcak siyah */
  --well: #070605;
  --bg: #0c0a09;
  --bg-2: #110f0d;
  --surface: #181513;
  --surface-2: #201c19;
  --surface-3: #2a2521;
  --border: #2f2925;
  --border-2: #423a34;
  --border-3: #5e544b;
  --well-rgb: 7, 6, 5;
  --bg-rgb: 12, 10, 9;
  --bg-2-rgb: 17, 15, 13;
  --surface-rgb: 24, 21, 19;
  /* metin: sıcak beyaz ölçeği (zemin üstünde 17,6 / 12,9 / 7,8 / 5,4 : 1) */
  --text: #f6f1e7;
  --text-2: #d8d0c3;
  --muted: #aaa194;
  --muted-2: #8c8478;
  /* marka altını ve türevleri. Zemin üstünde yazı olarak 10,6:1, kart üstünde 9,7:1.
     --ink: altın / açık dolgu üstündeki yazı (koyu: 10,6:1; beyaz yalnız 1,9:1, kullanılmaz) */
  --accent: #e8b64c;
  --accent-hover: #f0c768;
  --accent-active: #d4a23c;
  --accent-text: var(--accent);
  --accent-rgb: 232, 182, 76;
  --accent-soft: rgba(var(--accent-rgb), .10);
  --accent-line: rgba(var(--accent-rgb), .40);
  --accent-wash: #241d12;
  --gold-light: #f6d98a;
  --gold-deep: #b8862b;
  --ink: #0c0a09;
  /* marka kızılı: yalnız dolgu; --on-crimson üstündeki yazı (6,4:1) */
  --crimson: #b3151b;
  --crimson-hi: #cc2229;
  --crimson-rgb: 179, 21, 27;
  --maroon: #400506;
  --on-crimson: #fff6e0;
  /* durum renkleri (sadece durum bildirirken). Uyarı TURUNCUDUR (adı eskiden kalma --yellow): sarı, marka altınıyla
     karışırdı. Hata gül kırmızısıdır ve yalnız yazı / çerçeve / soluk zemin olur, dolgu olmaz: marka kızılıyla karışmasın. */
  --green: #6cc08b;
  --green-text: #a9dcbb;
  --green-rgb: 108, 192, 139;
  --green-soft: rgba(var(--green-rgb), .10);
  --green-line: rgba(var(--green-rgb), .32);
  --yellow: #f5923e;
  --yellow-text: #f9bd8a;
  --yellow-rgb: 245, 146, 62;
  --yellow-soft: rgba(var(--yellow-rgb), .09);
  --yellow-line: rgba(var(--yellow-rgb), .32);
  --red: #f2647a;
  --red-text: #f8a6b2;
  --red-rgb: 242, 100, 122;
  --red-soft: rgba(var(--red-rgb), .10);
  --red-line: rgba(var(--red-rgb), .36);
  --blue: #6aa9e9;
  --blue-text: #a9cdf3;
  --blue-rgb: 106, 169, 233;
  --blue-soft: rgba(var(--blue-rgb), .10);
  --blue-line: rgba(var(--blue-rgb), .30);
  /* eski adlar: JS ile üretilen işaretleme bunları kullanır */
  --gold: var(--accent);
  --emerald: var(--green);
  --danger: var(--red);
  --warn: var(--yellow);
  --shadow: 0 1px 2px rgba(0, 0, 0, .32);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .55);
  /* ölçüler */
  --radius: 8px;
  --radius-sm: 6px;
  --radius-xs: 4px;
  --header-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: clip -> tam genişlik (100vw) bölümler kaydırma çubuğu kadar taşıp yatay kaydırma oluşturmasın */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); overflow-x: clip; scrollbar-color: var(--border-2) var(--bg); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border: 3px solid var(--bg); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-3); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--accent-text); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 2px; }
a.btn:hover, a.card:hover, .nav a:hover, .tabs a:hover, .brand:hover, .footer a:hover, .util-link:hover { text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; letter-spacing: -.012em; font-weight: 700; color: var(--text); }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 16px; font-weight: 650; }
h4 { font-size: 14px; font-weight: 650; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
b, strong { font-weight: 650; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 300; padding: 8px 12px; background: var(--accent); color: var(--ink); border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 8px; color: var(--ink); }

/* ---------- üst şerit: sunucu adresi + çevrimiçi */
.utilbar { background: var(--well); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.utilbar-inner { display: flex; align-items: center; gap: 16px; height: 36px; }
.util-online { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.util-online b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.util-ip {
  display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 8px 0 10px; border-radius: var(--radius-xs);
  border: 1px solid var(--border); background: transparent; color: var(--text-2); font: 500 13px/1 var(--font); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s; max-width: 100%;
}
.util-ip:hover { border-color: var(--border-2); background: var(--surface); color: var(--text); }
.util-ip code { font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.util-ip .ico { color: var(--muted); width: 14px; height: 14px; }
.util-ip.copied .ico { color: var(--green); }
.util-spacer { flex: 1; }
.util-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.util-link:hover { color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 3px rgba(var(--green-rgb), .16); }
.off .dot, .dot.off { background: var(--red); box-shadow: 0 0 0 3px rgba(var(--red-rgb), .14); }
.loading .dot, .dot.unk { background: var(--muted-2); box-shadow: none; }

/* ---------- ana başlık */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: -.02em; flex: none; }
.brand:hover { color: var(--text); }
.brand-mark { display: grid; place-items: center; }
.brand-mark svg, .brand-mark img { display: block; }
.brand-name { color: var(--text); }
.brand-logo { height: 28px; width: auto; }
.footer .brand-logo { height: 24px; }
.nav { flex: 1; display: flex; align-items: center; gap: 2px; min-width: 0; }
.nav > a, .nav-group > a:not(.btn):not(.balance-chip):not(.cart-chip) {
  display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); padding: 7px 11px; border-radius: var(--radius-sm);
  font-weight: 550; font-size: 14px; white-space: nowrap; transition: color .15s, background .15s;
}
.nav > a:hover, .nav-group > a:not(.btn):not(.balance-chip):not(.cart-chip):hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent-text); }
.nav-group { display: flex; align-items: center; gap: 6px; }
.nav-sep { flex: 1; }
#nav-guest, #nav-user { flex: none; }
.balance-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 13.5px; white-space: nowrap;
  transition: border-color .15s;
}
.balance-chip:hover { color: var(--text); border-color: var(--border-2); }
.balance-chip .ico { color: var(--accent-text); width: 15px; height: 15px; }
.balance-chip b { font-variant-numeric: tabular-nums; }
.balance-chip.bump { animation: bump .5s var(--ease); }
@keyframes bump { 35% { border-color: var(--accent-line); background: var(--accent-soft); } }
.user-link { display: inline-flex !important; align-items: center; gap: 8px; }
.avatar {
  width: 26px; height: 26px; border-radius: var(--radius-xs); display: inline-grid; place-items: center;
  background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); font-weight: 700; font-size: 12px; flex: none;
}
.avatar.lg { width: 56px; height: 56px; border-radius: var(--radius); font-size: 22px; }
.burger {
  display: none; margin-left: auto; width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; padding: 0; place-items: center;
}
.burger .ico { width: 20px; height: 20px; }
.burger .ico-close { display: none; }
.burger[aria-expanded="true"] .ico-menu { display: none; }
.burger[aria-expanded="true"] .ico-close { display: block; }

/* "Diğer" açılır menüsü */
.nav-more { position: relative; display: inline-flex; }
.nav-more-btn {
  display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; color: var(--text-2);
  padding: 7px 11px; border-radius: var(--radius-sm); font: 550 14px/1.55 var(--font); transition: color .15s, background .15s;
}
.nav-more-btn .ico { width: 14px; height: 14px; color: var(--muted); }
.nav-more-btn:hover, .nav-more.open .nav-more-btn, .nav-more:has(a.active) .nav-more-btn { color: var(--text); background: var(--surface-2); }
.nav-more-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; display: none; flex-direction: column; gap: 2px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 60;
}
.nav-more.open .nav-more-menu { display: flex; }
.nav-more-menu a { color: var(--text-2); padding: 8px 10px; border-radius: var(--radius-xs); font-weight: 550; font-size: 14px; white-space: nowrap; }
.nav-more-menu a:hover, .nav-more-menu a.active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-more-menu a.active { box-shadow: inset 2px 0 0 var(--accent-text); }

/* ---------- düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px;
  padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-2);
  background: var(--surface-2); color: var(--text); font: 600 14px/1 var(--font); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
  text-decoration: none; white-space: nowrap; user-select: none;
}
.btn:hover { background: var(--surface-3); border-color: var(--text-2); color: var(--text); text-decoration: none; }
.btn:active { background: var(--surface-2); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }
.btn .ico { width: 16px; height: 16px; }
.btn-gold, .btn-emerald, .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-gold:hover, .btn-emerald:hover, .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--ink); }
.btn-gold:active, .btn-emerald:active, .btn-primary:active { background: var(--accent-active); border-color: var(--accent-active); }
.btn-gold:focus-visible, .btn-emerald:focus-visible, .btn-primary:focus-visible { outline-color: var(--text); }
.btn-gold:disabled, .btn-emerald:disabled, .btn-primary:disabled { background: var(--surface-3); border-color: var(--border-2); color: var(--muted); opacity: 1; }
.btn-danger { background: transparent; border-color: rgba(var(--red-rgb), .45); color: var(--red-text); }
.btn-danger:hover { background: var(--red-soft); border-color: rgba(var(--red-rgb), .7); color: var(--red-text); }
.btn-ghost { background: transparent; border-color: var(--border-3); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; }
.icon-btn {
  display: inline-grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px;
  border-radius: var(--radius-xs); transition: color .15s, background .15s; font: inherit; line-height: 1;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn .ico { width: 16px; height: 16px; }

/* ---------- kartlar */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h2 { font-size: 19px; }
.card h3 { font-size: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card + .card, .grid-2 + .card, .grid-3 + .card, .grid-4 + .card, .card + .grid-2, .card + .grid-4, .grid-2 + .grid-2, .grid-4 + .grid-2, .alert + .grid-2, .alert + .card { margin-top: 16px; }
.grid-2 > .card, .grid-3 > .card, .grid-4 > .card, .products > .card, .modes > .card, .hero > .card { margin-top: 0; }
#home-ext .section:has(> .ss-teaser), #home-ext .section:has(> .sp-teaser), #home-ext .section:has(> .pay-campaign) { margin-top: 20px; }
#home-ext > div:first-child > .section { margin-top: 48px !important; }
.glow-border::before { content: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stack > * + * { margin-top: 16px; }

/* ---------- sayfa */
main#app { flex: 1; padding-top: 32px; padding-bottom: 72px; outline: none; }
.page { animation: pageIn .25s ease-out; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-title h1 { font-size: 30px; margin: 0; }
.page-title p { margin: 6px 0 0; color: var(--muted); max-width: 720px; }
.page-title > .card { margin-top: 0; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.grad-text { color: var(--text); }
.page-loading { display: grid; place-items: center; min-height: 40vh; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--surface-3); border-top-color: var(--accent-text); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.section { margin-top: 56px; }
.section-head { max-width: 720px; margin: 0 0 20px; }
.section-head h2 { font-size: 24px; margin-bottom: 4px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head .eyebrow { margin-bottom: 4px; }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-row .section-head { margin: 0; }
.balance-box { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.balance-box .bb-label { font-size: 12px; color: var(--muted); }
.balance-box .bb-val { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.balance-box .bb-val .cur { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---------- ana sayfa: giriş bölümü */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: stretch; padding: 16px 0 8px; }
.hero-main { display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 14px; }
.hero .lead { font-size: 17px; color: var(--text-2); max-width: 560px; margin: 0 0 24px; }
.ip-box {
  display: flex; align-items: stretch; max-width: 460px; border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.ip-box .ip-label { display: flex; align-items: center; padding: 0 14px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-right: 1px solid var(--border); background: var(--bg-2); white-space: nowrap; }
.ip-box code { flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 14px; font-size: 16px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-box .btn { border-radius: 0; height: 46px; border-width: 0 0 0 1px; }
/* adres kopyalama: beyaz dolgulu ikincil düğme (yanındaki altın birincil düğmeyle yarışmasın) */
.ip-box .btn, .ip-box .btn:hover { background: var(--text); border-color: var(--text); color: var(--ink); }
.ip-box .btn:hover { background: #fff; }
.hero-cta { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.card.hero-side { padding: 0; }
.hero-side { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.hs-status { padding: 20px 22px; border-bottom: 1px solid var(--border); }
.hs-label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.hs-count { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.hs-count small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.hs-note { font-size: 13px; color: var(--muted); margin-top: 2px; }
.hs-list { list-style: none; margin: 0; padding: 8px 0; }
.hs-list li a { display: flex; align-items: center; gap: 12px; padding: 9px 22px; color: var(--text-2); font-size: 14px; }
.hs-list li a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.hs-list .ico { color: var(--muted); }
.hs-list .hs-go { margin-left: auto; color: var(--muted-2); width: 14px; height: 14px; }
.online-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* oyun modları */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mode { display: flex; flex-direction: column; gap: 10px; padding: 20px; color: var(--text); transition: border-color .15s, background .15s; }
a.mode:hover { border-color: var(--border-2); background: var(--surface-2); color: var(--text); }
.mode-top { display: flex; align-items: center; gap: 12px; }
.mode-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--mc, var(--accent-text)) 14%, transparent); color: var(--mc, var(--accent-text)); border: 1px solid color-mix(in srgb, var(--mc, var(--accent-text)) 30%, transparent); }
.mode-icon .ico { width: 20px; height: 20px; }
.mode h3 { margin: 0; font-size: 17px; }
.mode .mode-kind { font-size: 12.5px; color: var(--muted); }
.mode p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.mode-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.mode-foot code { color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 1px 6px; font-size: 12px; }
.mode-foot .go { margin-left: auto; color: var(--accent-text); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }

/* adımlar */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step { padding: 20px 22px; }
.step + .step { border-left: 1px solid var(--border); }
.step-n { display: block; font-size: 13px; font-weight: 700; color: var(--accent-text); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.step h3 { margin: 0 0 6px; font-size: 15px; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* özellik satırı */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 28px; margin-top: 8px; border-top: 1px solid var(--border); }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); background: transparent; }
.perk-mark { width: 36px; height: 36px; border-radius: var(--radius-sm); display: grid; place-items: center; flex: none; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-2); }
.perk-mark .mark { width: 20px; height: 20px; }
.perk b { display: block; margin-bottom: 2px; }
.perk p { margin: 0; font-size: 13.5px; color: var(--muted); }
.feature p { color: var(--muted); margin: 0; font-size: 14px; }

/* haberler */
.news { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.news-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 18px 22px; }
.news-item + .news-item { border-top: 1px solid var(--border); }
.news-date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.news-item h3 { margin: 0 0 4px; font-size: 16px; }
.news-item p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ---------- formlar */
.auth-wrap { max-width: 440px; margin: 16px auto 0; }
.auth-wrap .card { padding: 32px; }
.auth-head { margin-bottom: 24px; }
.auth-head h1 { font-size: 24px; margin: 0 0 6px; }
.auth-head p { margin: 0; }
.auth-head .big-emoji, .auth-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; margin-bottom: 16px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); font-size: 20px; line-height: 1; }
.auth-icon .ico { width: 20px; height: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field .err { font-size: 12.5px; color: var(--red-text); margin-top: 6px; }
.input, input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: var(--well);
  color: var(--text); font: 15px/1.3 var(--font); transition: border-color .15s, box-shadow .15s; outline: none;
}
textarea { height: auto; padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:hover, select:hover, textarea:hover { border-color: var(--border-3); }
input:focus, select:focus, textarea:focus { border-color: var(--accent-text); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16); }
input:disabled, select:disabled, textarea:disabled { opacity: .6; }
input.bad { border-color: rgba(var(--red-rgb), .7); }
input.good { border-color: var(--green-line); }
textarea { resize: vertical; min-height: 110px; font-family: var(--mono); font-size: 13px; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 10px center; background-size: 16px; background-repeat: no-repeat; padding-right: 34px; }
select option { background: var(--surface); }
input[type=datetime-local] { color-scheme: dark; }
.code-input { text-align: center; height: 52px !important; font: 600 24px/1 var(--mono) !important; letter-spacing: .3em; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--text-2); user-select: none; }
.check input { appearance: none; width: 18px; height: 18px; border-radius: var(--radius-xs); border: 1px solid var(--border-3); background: var(--well); flex: none; margin: 2px 0 0; display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 4px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.strength { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.strength > span { display: block; height: 100%; width: 0; transition: width .25s var(--ease), background .25s; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }
.form-row > .btn { flex: none; }

.grant-card { max-width: 820px; }
.grant-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.grant-tools input { flex: 1; min-width: 0; }
.grant-groups { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.grant-groups button {
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 10px; font: 600 12px/1.2 var(--font); cursor: pointer;
}
.grant-groups button.on { background: var(--accent-soft); color: var(--text); border-color: var(--accent-line); }
.grant-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px; max-height: 280px; overflow: auto; padding: 2px;
}
.grant-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 6px; cursor: pointer; color: var(--text); text-align: center;
}
.grant-item img { width: 32px; height: 32px; image-rendering: pixelated; flex-shrink: 0; }
.grant-item span { font-size: 11px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.grant-item.on { border-color: var(--accent); background: var(--surface-3); }
.grant-enchants { display: flex; flex-direction: column; gap: 8px; }
.grant-enchant {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 8px;
}
.grant-enchant b { flex: 1; min-width: 0; font-size: 13px; }
.grant-enchant input { width: 64px; flex: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.alert { display: block; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; border: 1px solid; border-left-width: 3px; }
.alert-error { background: var(--red-soft); border-color: var(--red-line); border-left-color: var(--red); color: var(--red-text); }
.alert-info { background: var(--blue-soft); border-color: var(--blue-line); border-left-color: var(--blue); color: var(--blue-text); }
.alert-warn { background: var(--surface-2); border-color: var(--border-2); border-left-color: var(--yellow); color: var(--text-2); }
.alert-warn b:first-child { color: var(--yellow-text); }
.alert-ok { background: var(--green-soft); border-color: var(--green-line); border-left-color: var(--green); color: var(--green-text); }
.alert a { color: inherit; text-decoration: underline; }

/* ---------- etiketler */
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: var(--radius-xs); font-size: 12px; font-weight: 550;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border-2); width: fit-content; white-space: nowrap; line-height: 1;
}
.tag .ico { width: 12px; height: 12px; }
.tag.sky { background: var(--blue-soft); color: var(--blue-text); border-color: var(--blue-line); }
.tag.red { background: var(--red-soft); color: var(--red-text); border-color: var(--red-line); }
.tag.green { background: var(--green-soft); color: var(--green-text); border-color: var(--green-line); }
.tag.gold { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-line); }
/* indirim / kampanya etiketi: marka kızılı DOLGU (hata rengi değil; bkz. :root). Yalnız kısa etiketlerde. */
.tag.sale { background: var(--crimson); color: var(--on-crimson); border-color: var(--crimson-hi); font-weight: 700; }
/* rol / kaynak etiketi (eski adı "purple"): beyaz çerçeveli, ikincil vurgu */
.tag.purple, .tag.white { background: transparent; color: var(--text); border-color: var(--text-2); }
.limit-note { font-size: 12.5px; color: var(--muted); }
.p-body > .limit-note { margin-top: auto; padding-top: 8px; }
.p-body > .p-contents + .limit-note { margin-top: 0; }

/* ---------- market */
.market-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font: 550 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s, background .15s;
}
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text); }
.chip .count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.active .count { color: var(--accent-text); }
.server-filter { display: flex; gap: 6px; }

/* mağaza: kategori çubuğu + bölümler */
.store-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.store-search { position: relative; flex: 1 1 260px; max-width: 380px; }
.store-search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; pointer-events: none; }
.store-search input { padding-left: 34px; }
.store-tools select { width: auto; min-width: 180px; flex: none; }
.store-tools .store-total { margin-left: auto; font-size: 13px; color: var(--muted); }
.catbar {
  position: sticky; top: var(--header-h); z-index: 30; background: var(--bg); margin: 0 -24px 8px; padding: 10px 24px;
  border-bottom: 1px solid transparent; transition: border-color .15s, background .15s;
}
/* tam genişlik zemin/çizgi: viewport ortasına hizalı 100vw sözde öğe (100vmax taşması sayfayı genişletiyordu) */
.catbar.stuck { background: var(--bg); }
.catbar.stuck::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; z-index: -1; background: var(--bg); pointer-events: none; }
.catbar.stuck::after { content: ""; position: absolute; left: 50%; width: 100vw; translate: -50% 0; bottom: 0; height: 1px; background: var(--border); }
.catbar-track { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.catbar-track::-webkit-scrollbar { display: none; }
.catbar a {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: var(--radius-sm); flex: none;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 550; white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.catbar a:hover { color: var(--text); border-color: var(--border-2); text-decoration: none; }
.catbar a .count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.catbar a.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text); }
.catbar a.active .count { color: var(--accent-text); }
.catbar a.is-empty { opacity: .45; }
.catbar a .ico { width: 15px; height: 15px; color: var(--muted); }
.catbar a.active .ico { color: var(--accent-text); }
.store-sec { padding-top: 28px; }
.store-sec + .store-sec { margin-top: 12px; border-top: 1px solid var(--border); }
.store-sec-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.store-sec-icon { width: 38px; height: 38px; border-radius: var(--radius-sm); display: grid; place-items: center; flex: none; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.store-sec-icon .ico { width: 19px; height: 19px; }
.store-sec-head h2 { margin: 0; font-size: 21px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.store-sec-head h2 .count { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.store-sec-head p { margin: 3px 0 0; color: var(--muted); font-size: 14px; max-width: 760px; }
.store-empty { margin-top: 24px; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: border-color .15s; }
.product:hover { border-color: var(--border-2); }
.product.featured { border-color: var(--accent-line); }
.p-media { position: relative; height: 140px; display: grid; place-items: center; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.p-media img { width: 100%; height: 100%; object-fit: cover; }
.p-media .p-emoji { font-size: 48px; }
.p-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 0; }
.p-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; flex: none; background: var(--surface-2); border: 1px solid var(--border); color: var(--pc, var(--text)); overflow: hidden; }
.p-icon .ico { width: 20px; height: 20px; }
.p-icon img { width: 100%; height: 100%; object-fit: cover; }
.p-title { flex: 1; min-width: 0; }
.p-title h3 { margin: 0; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.p-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.p-sub .sep { color: var(--muted-2); }
.p-flag { font-size: 11.5px; font-weight: 600; color: var(--accent-text); letter-spacing: .02em; }
.ribbon, .badge-corner { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--radius-xs); font-size: 11.5px; font-weight: 600; background: var(--crimson); color: var(--on-crimson); border: 1px solid var(--crimson-hi); white-space: nowrap; }
.p-body { padding: 12px 16px 4px; flex: 1; display: flex; flex-direction: column; }
.p-body h3 { font-size: 15.5px; margin: 8px 0 6px; }
.p-desc { margin: 0 0 8px; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-2); }
.p-desc li { position: relative; padding-left: 14px; margin-bottom: 3px; line-height: 1.5; }
.p-desc li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 4px; height: 4px; border-radius: 1px; background: var(--muted-2); }
.p-contents { font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.p-contents summary { cursor: pointer; color: var(--text-2); font-weight: 550; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.p-contents summary::-webkit-details-marker { display: none; }
.p-contents summary::before { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.p-contents[open] summary::before { transform: rotate(45deg); }
.p-contents ul { margin: 6px 0 0; padding-left: 16px; }
.p-foot { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); margin-top: 12px; }
.p-actions { display: flex; gap: 8px; align-items: center; }
.p-actions .btn { flex: 1; }
/* ürün kartlarında satın al düğmesi çerçevelidir (yüzlerce kartta altın dolgu sayfayı boğar); üzerine gelince dolar */
.product .btn-gold:not(:disabled) { background: transparent; border-color: var(--text-2); color: var(--text); }
.product .btn-gold:not(:disabled):hover, .product .btn-gold:not(:disabled):focus-visible { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price s { color: var(--muted-2); font-size: 13px; }
.price .cur { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--well); height: 32px; flex: none; }
.qty button { width: 28px; height: 100%; border: 0; background: transparent; color: var(--text-2); font-size: 16px; cursor: pointer; transition: background .15s; }
.qty button:hover { background: var(--surface-3); color: var(--text); }
.qty input { width: 40px; height: 100%; border: 0; border-radius: 0; text-align: center; padding: 0; background: transparent; font-weight: 600; font-size: 14px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { box-shadow: none; }

/* ---------- özet / tablo */
.summary { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin: 14px 0; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14px; }
.summary .row + .row { border-top: 1px solid var(--border); }
.summary .row.total { background: var(--surface-2); font-weight: 650; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: var(--bg-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(255, 255, 255, .018); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--green); font-weight: 600; }
.neg { color: var(--red-text); font-weight: 600; }
.rank-badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: var(--radius-xs); font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-badge.r1 { background: rgba(var(--accent-rgb), .14); color: var(--gold-light); }
.rank-badge.r2 { background: rgba(255, 255, 255, .10); color: var(--text-2); }
.rank-badge.r3 { background: rgba(196, 128, 78, .15); color: #dba57f; }

/* ---------- hesap */
.profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile h1 { margin: 0; font-size: 26px; }
.profile .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: 24px 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--muted); font-weight: 550; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s, border-color .15s; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent-text); }
.mark { width: 22px; height: 22px; display: block; fill: currentColor; }
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.admin-side { position: sticky; top: 84px; }
.admin-group-label { margin: 16px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.admin-group:first-child .admin-group-label { margin-top: 0; }
.admin-side a { display: block; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 14px; font-weight: 550; }
.admin-side a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.admin-side a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.store-sec-icon .mark, .product .p-icon .mark, .catbar a .mark { width: 18px; height: 18px; }
.catbar a .mark { color: var(--muted); }
.catbar a.active .mark { color: var(--accent-text); }
.balance-card { overflow: hidden; }
.balance-big { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 6px 0 6px; font-variant-numeric: tabular-nums; }
.balance-big .cur { font-size: .42em; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.order { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); transition: border-color .3s, background .3s; }
.order + .order { margin-top: 8px; }
.order.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { background: var(--accent-soft); border-color: var(--accent-line); } 100% { background: var(--bg-2); } }
.order-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.order-icon .ico { width: 18px; height: 18px; }
.order-title { font-weight: 650; }
.order-meta { font-size: 13px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: var(--radius-xs); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.status.pending { background: var(--yellow-soft); color: var(--yellow-text); border: 1px solid var(--yellow-line); }
.status.pending::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
.status.claimed { background: var(--green-soft); color: var(--green-text); border: 1px solid var(--green-line); }
@keyframes blink { 50% { opacity: .3; } }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.live .dot { width: 7px; height: 7px; }
.live.off .dot { background: var(--muted-2); box-shadow: none; }
.qr-box { display: grid; grid-template-columns: 184px 1fr; gap: 24px; align-items: start; }
.qr { background: #fff; border-radius: var(--radius-sm); padding: 8px; width: 184px; height: 184px; }
.qr svg { width: 100%; height: 100%; display: block; }
.secret { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; word-break: break-all; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--well); border: 1px dashed var(--border-2); }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; }
.codes code { padding: 10px; text-align: center; border-radius: var(--radius-sm); background: var(--well); border: 1px solid var(--border); font-size: 15px; letter-spacing: .05em; }
.device { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); }
.device + .device { margin-top: 8px; }
.device-icon { width: 38px; height: 38px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; border: 1px solid var(--border); }
.device-icon .ico { width: 18px; height: 18px; }
.device-info { flex: 1; min-width: 0; }
.device-info b { display: block; }
.device-info .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.toggle { position: relative; width: 42px; height: 24px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border-2); transition: background .2s; cursor: pointer; }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: transform .2s var(--ease); }
.toggle input:checked + span { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + span::after { transform: translateX(18px); background: var(--ink); }
.toggle input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- boş / hata durumları */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .e-emoji, .empty .e-icon { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: var(--radius); display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: 22px; line-height: 1; }
.empty .e-icon .ico { width: 20px; height: 20px; }
.empty h3 { color: var(--text); margin-bottom: 4px; }
.empty p { max-width: 460px; margin: 0 auto 14px; font-size: 14px; }
.empty p:last-child { margin-bottom: 0; }
.skeleton { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .03), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-card { height: 260px; }

/* ---------- kurallar */
.rules-list { counter-reset: rule; list-style: none; padding: 0; margin: 0; }
.rules-list li { counter-increment: rule; position: relative; padding: 10px 0 10px 36px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.rules-list li:last-child { border-bottom: 0; }
.rules-list li::before { content: counter(rule) "."; position: absolute; left: 0; top: 10px; width: 24px; text-align: right; font-size: 14px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- yönetim */
.stat { padding: 18px 20px; }
.stat .s-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat .s-val { font-size: 26px; font-weight: 750; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.user-row { cursor: pointer; }
.admin-detail { margin-top: 16px; }

/* ---------- pencere */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(var(--well-rgb), .72);
  display: grid; place-items: center; padding: 16px; animation: fadeIn .15s ease;
}
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; animation: modalIn .18s ease-out; background: var(--surface); border-color: var(--border-2); box-shadow: var(--shadow-lg); }
.modal.wide { max-width: 680px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 16px; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.modal-hero { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); font-size: 22px; line-height: 1; }
.modal-hero .ico { width: 22px; height: 22px; }
.modal-hero.warn { background: var(--yellow-soft); color: var(--yellow); border-color: var(--yellow-line); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- bildirimler */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast {
  display: flex; gap: 10px; align-items: flex-start; min-width: 260px; max-width: 380px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border-2); border-left: 3px solid var(--border-2); box-shadow: var(--shadow-lg); font-size: 14px; color: var(--text);
  animation: toastIn .2s ease-out;
}
.toast .ico { width: 18px; height: 18px; margin-top: 1px; }
.toast.out { animation: toastOut .2s ease forwards; }
.toast.ok { border-left-color: var(--green); }
.toast.ok .ico { color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.error .ico { color: var(--red); }
.toast.info { border-left-color: var(--blue); }
.toast.info .ico { color: var(--blue); }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ---------- alt bilgi */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 40px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { color: var(--muted); margin: 10px 0 0; max-width: 340px; font-size: 13.5px; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--text-2); }
.footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding: 16px 0 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; }
.footer-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- duyarlı */
@media (max-width: 1100px) {
  .burger { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px;
    background: var(--bg-2); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > a, .nav-group > a:not(.btn):not(.balance-chip):not(.cart-chip) { padding: 11px 12px; font-size: 15px; }
  .nav a.active { box-shadow: inset 3px 0 0 var(--accent-text); }
  .nav-sep { flex: none; height: 1px; background: var(--border); margin: 8px 0; }
  .nav-group { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-group .btn, .balance-chip { justify-content: center; }
  .nav-more { display: contents; }
  .nav-more-btn { display: none; }
  .nav-more-menu { display: contents; }
  .nav-more-menu a { padding: 11px 12px; font-size: 15px; color: var(--text-2); }
  .hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1101px) and (max-width: 1320px) {
  #nav-name { display: none; }
  .nav > a, .nav-more-btn { padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .qr-box { grid-template-columns: 1fr; justify-items: center; }
  .util-discord { display: none !important; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  main#app { padding-top: 24px; }
  h1, .page-title h1 { font-size: 25px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 16px; }
  .grid-3, .grid-4, .modes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--border); }
  .card { padding: 18px; }
  .auth-wrap .card { padding: 24px 18px; }
  .ip-box { max-width: none; }
  .ip-box .ip-label { display: none; }
  .hero-cta .btn { flex: 1; }
  .products { grid-template-columns: 1fr; }
  .catbar { margin: 0 -16px 8px; padding: 8px 16px; }
  .store-search { max-width: none; flex-basis: 100%; }
  .store-tools select { flex: 1; }
  .store-tools .store-total { display: none; }
  .order { grid-template-columns: auto 1fr; }
  .order > .status, .order > .o-status { grid-column: 1 / -1; justify-self: start; }
  .news-item { grid-template-columns: 1fr; gap: 4px; padding: 16px; }
  .form-row { flex-direction: column; }
  .codes { grid-template-columns: 1fr; }
  .modal-actions .btn { flex: 1; }
  th, td { padding: 10px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  #toasts { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; max-width: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .util-ip .util-ip-label { display: none; }
  .hs-list { display: none; }
  .utilbar-inner { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Çok sekmeli sayfalar: masaüstünde satır kaydırma, mobilde yatay kaydırma */
@media (min-width: 761px) { .tabs { flex-wrap: wrap; row-gap: 0; overflow: visible; } }
@media (max-width: 760px) { .tabs { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 24px; } }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; gap: 16px; }
  .admin-side { position: static; display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; }
  .admin-group { min-width: 148px; }
}

/* ---------- ilk içerik (index.html içindeki metin; uygulama yüklenince yerini sayfaya bırakır) */
/* Hızlı bağlantıda yalnızca döner simge görünür; uygulama 1,2 sn içinde gelmediyse (yavaş ağ, JavaScript kapalı,
   arama motoru) sitenin ne olduğunu anlatan gerçek metin belirir. */
.boot { max-width: 680px; margin: 0 auto; padding: 8px 0 48px; opacity: 0; animation: bootIn .35s ease 1.2s forwards; }
.boot h1 { font-size: 34px; margin-bottom: 8px; }
.boot h2 { font-size: 18px; margin: 24px 0 8px; }
.boot .lead { font-size: 17px; color: var(--text-2); }
.boot p, .boot li { color: var(--text-2); }
.boot ul, .boot ol { padding-left: 22px; margin: 8px 0; }
.boot li { margin: 6px 0; }
.boot-spinner { min-height: 96px; animation: bootOut .2s ease 1.2s forwards; }
@keyframes bootIn { to { opacity: 1; } }
@keyframes bootOut { to { opacity: 0; min-height: 0; height: 0; overflow: hidden; } }
.noscript-note { margin: 0 0 24px; padding: 12px 14px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-2); }

/* ---------- ana sayfa: kısa bilgiler, üç adım */
.hv-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin: -8px 0 20px; padding: 0; }
.hv-facts li { font-size: 12.5px; font-weight: 550; color: var(--text-2); padding: 4px 9px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-xs); background: rgba(var(--bg-rgb), .62); white-space: nowrap; }
.steps.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step p + p { margin-top: 8px; }
.step p b { color: var(--text-2); font-weight: 650; }
.step code { font-size: 12.5px; overflow-wrap: anywhere; }
.step-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13.5px; font-weight: 600; }
.step-link::after { content: "→"; transition: transform .15s; }
.step-link:hover::after { transform: translateX(2px); }
.step-done { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--green); }
.step-done .ico { width: 14px; height: 14px; }
.steps-note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.steps-note .ico { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--muted-2); }
.steps-note b { color: var(--text-2); }

/* ---------- BestCraft Launcher sayfası */
.lz-get { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-color: var(--border-2); }
.lz-get h2 { font-size: 22px; margin: 8px 0 4px; }
.lz-get p { margin: 0; max-width: 520px; }
.lz-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.lz-get-act { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lz-why { margin: 36px 0 28px; }
.ip-box.ip-inline { margin: 10px 0 2px; max-width: 420px; height: auto; }
.ip-box.ip-inline code { font-size: 14.5px; padding: 0 12px; min-height: 40px; }
.ip-box.ip-inline .btn { height: 40px; }
.lz-cols { align-items: start; }
.lz-verify { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px 32px; align-items: start; }
.lz-verify .field { margin: 0; }

/* ---------- yasal sayfalar */
.legal { max-width: 820px; margin: 0 auto; }
.legal-body section + section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.legal-body h2 { font-size: 17px; margin-bottom: 8px; }
.legal-body p, .legal-body li { color: var(--text-2); line-height: 1.65; }
.legal-body .lead { color: var(--text); font-size: 16px; margin-top: 0; }
.legal-body ul { padding-left: 20px; margin: 8px 0 0; }
.legal-body li + li { margin-top: 6px; }
.legal-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid.has-legal { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); }
.footer ul .tag { margin-left: 4px; font-size: 10.5px; }

/* ---------- kredi koduyla yükleme (çevrim içi ödeme kapalıyken) */
.pay-epin { max-width: 760px; }
.pay-epin h2 { font-size: 21px; margin: 2px 0 8px; }
.pay-epin .rules-list { margin-top: 12px; }

/* değerlendirmesi olmayan ürün: sönük yıldız (yüzlerce kartta "Puan yok" yazısı yerine) */
.rating-chip .star-ico.none { fill: none; stroke: var(--muted-2); color: var(--muted-2); }

@media (max-width: 960px) {
  .steps.steps-3 { grid-template-columns: 1fr; }
  .steps.steps-3 .step + .step { border-left: 0; border-top: 1px solid var(--border); }
  .steps.steps-3 .step:nth-child(n+3) { border-top: 1px solid var(--border); }
  .footer-grid.has-legal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .lz-get-act, .lz-get-act .btn { width: 100%; }
  .lz-verify { grid-template-columns: 1fr; }
  .footer-grid.has-legal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv-facts { margin-top: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .boot { animation-duration: .01s; }
}
