/* =========================================================================
   Pitaya2 — tasarım sistemi
   Bütün renk, biçim ve efektler tema token'larından gelir. Tema değişince
   bileşenler otomatik uyum sağlar: [data-theme="..."] html etiketinde.
   ========================================================================= */

@font-face { font-family: "Gloock"; src: url("../fonts/gloock.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---- Ortak token'lar ---------------------------------------------------- */
:root {
  --font-display: "Gloock", "Times New Roman", serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs: .8125rem;  --fs-sm: .9375rem;  --fs-md: 1.0625rem;  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;    --fs-2xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 1.4rem + 3vw, 3.5rem);
  --fs-hero: clamp(2.6rem, 1.2rem + 5.4vw, 5.25rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem;
  --space-6: 2rem;   --space-7: 3rem;  --space-8: 4rem;   --space-9: 6rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);
  --container: 1240px;
  --gutter: clamp(1rem, .6rem + 1.6vw, 2rem);
  --header-h: 72px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .22s;

  --success: #4fd18b; --danger: #ff5d5d; --warning: #ffc04d; --info: #6ab8ff;
  color-scheme: dark;
}

/* ---- Tema 1: Pitaya Inferno (varsayılan) -------------------------------- */
:root, [data-theme="inferno"] {
  --background: #0f0a09;
  --background-2: #150e0c;
  --surface: #1b1311;
  --surface-secondary: #241a17;
  --surface-raised: #2c201c;
  --primary: #e8452c;
  --secondary: #ff8a3d;
  --accent: #ffc56b;
  --brand: #e3226b;
  --text: #f3e9e2;
  --text-muted: #b09c91;
  --text-faint: #7d6b62;
  --border: rgba(255, 138, 61, .14);
  --border-strong: rgba(255, 138, 61, .34);
  --glow: rgba(255, 90, 31, .42);
  --on-primary: #1a0905;
  --grad-primary: linear-gradient(180deg, #ffb35c 0%, #ff7a32 48%, #e8452c 100%);
  --grad-heading: linear-gradient(180deg, #fff6ec 20%, #e9c6ae 70%, #ff9a4a 100%);
  --grad-edge: linear-gradient(90deg, transparent, rgba(255, 138, 61, .55), transparent);
  --rune-a: #ffe0a0; --rune-b: #ff3c14;
  --btn-radius: 0;
  --btn-clip: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --card-radius: 2px;
  --card-bg: linear-gradient(180deg, rgba(255, 120, 60, .05), rgba(255, 120, 60, 0) 40%), var(--surface);
  --glow-size: 28px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23ff8a3d' fill-opacity='.05'%3E%3Ccircle cx='12' cy='18' r='1.2'/%3E%3Ccircle cx='68' cy='42' r='.9'/%3E%3Ccircle cx='96' cy='96' r='1.4'/%3E%3Ccircle cx='38' cy='88' r='.8'/%3E%3Ccircle cx='104' cy='12' r='.7'/%3E%3C/g%3E%3Cpath d='M0 120 120 0' stroke='%23ff8a3d' stroke-opacity='.025'/%3E%3C/svg%3E");
}

/* ---- Tema 2: Imperial Gold ----------------------------------------------- */
[data-theme="imperial"] {
  --background: #0d0b08;
  --background-2: #13100b;
  --surface: #19140e;
  --surface-secondary: #221a12;
  --surface-raised: #2b2117;
  --primary: #c9a24a;
  --secondary: #e8cf8a;
  --accent: #8c5a2b;
  --brand: #c9a24a;
  --text: #f4ecdc;
  --text-muted: #b3a284;
  --text-faint: #7f715a;
  --border: rgba(201, 162, 74, .16);
  --border-strong: rgba(201, 162, 74, .42);
  --glow: rgba(232, 183, 90, .32);
  --on-primary: #1a1206;
  --grad-primary: linear-gradient(180deg, #f6e3a6 0%, #d8b25e 50%, #a97a2f 100%);
  --grad-heading: linear-gradient(180deg, #fffaf0 15%, #e9d39c 60%, #b98a3c 100%);
  --grad-edge: linear-gradient(90deg, transparent, rgba(232, 207, 138, .55), transparent);
  --rune-a: #fff4cf; --rune-b: #b9832a;
  --btn-radius: 0;
  --btn-clip: none;
  --card-radius: 0;
  --card-bg: linear-gradient(180deg, rgba(232, 207, 138, .045), rgba(232, 207, 138, 0) 50%), var(--surface);
  --glow-size: 22px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M0 32h16v-16h32v32h-16v-16M32 0v8M32 56v8M0 0h8M56 64h8' fill='none' stroke='%23c9a24a' stroke-opacity='.05'/%3E%3C/svg%3E");
}

/* ---- Tema 3: Shadow Empire ----------------------------------------------- */
[data-theme="shadow"] {
  --background: #0b0810;
  --background-2: #100c17;
  --surface: #16101f;
  --surface-secondary: #1f1729;
  --surface-raised: #281e35;
  --primary: #9b4dff;
  --secondary: #c03a5c;
  --accent: #d9b8ff;
  --brand: #c03a5c;
  --text: #efe8f8;
  --text-muted: #a597b8;
  --text-faint: #75688a;
  --border: rgba(155, 77, 255, .16);
  --border-strong: rgba(155, 77, 255, .42);
  --glow: rgba(155, 77, 255, .4);
  --on-primary: #fff;
  --grad-primary: linear-gradient(135deg, #b77dff 0%, #8a3dff 55%, #c03a5c 100%);
  --grad-heading: linear-gradient(180deg, #ffffff 15%, #d7c4f2 60%, #a56cff 100%);
  --grad-edge: linear-gradient(90deg, transparent, rgba(185, 140, 255, .55), transparent);
  --rune-a: #f1e2ff; --rune-b: #8a3dff;
  --btn-radius: 999px;
  --btn-clip: none;
  --card-radius: 14px;
  --card-bg: radial-gradient(120% 80% at 0% 0%, rgba(155, 77, 255, .08), transparent 60%), var(--surface);
  --glow-size: 34px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='none' stroke='%23b98cff' stroke-opacity='.045'%3E%3Ccircle cx='80' cy='80' r='30'/%3E%3Ccircle cx='80' cy='80' r='52'/%3E%3Cpath d='M80 22v116M22 80h116'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- Tema 4: Dragon Jade -------------------------------------------------- */
[data-theme="jade"] {
  --background: #070c0a;
  --background-2: #0a110e;
  --surface: #0f1915;
  --surface-secondary: #15221d;
  --surface-raised: #1c2c26;
  --primary: #2fbf8f;
  --secondary: #6fe3c1;
  --accent: #c8a85a;
  --brand: #2fbf8f;
  --text: #e6f3ee;
  --text-muted: #93ada3;
  --text-faint: #637a71;
  --border: rgba(111, 227, 193, .14);
  --border-strong: rgba(111, 227, 193, .38);
  --glow: rgba(47, 191, 143, .36);
  --on-primary: #03140e;
  --grad-primary: linear-gradient(180deg, #8ff0cf 0%, #3fcf9d 50%, #1d946d 100%);
  --grad-heading: linear-gradient(180deg, #f4fffb 15%, #b9e8d7 60%, #c8a85a 100%);
  --grad-edge: linear-gradient(90deg, transparent, rgba(111, 227, 193, .5), transparent);
  --rune-a: #e6fff5; --rune-b: #1fae7f;
  --btn-radius: 10px;
  --btn-clip: none;
  --card-radius: 10px;
  --card-bg: linear-gradient(160deg, rgba(111, 227, 193, .05), transparent 45%), var(--surface);
  --glow-size: 26px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28'%3E%3Cpath d='M0 28a12 12 0 0 1 24 0M24 28a12 12 0 0 1 24 0M-12 14a12 12 0 0 1 24 0M12 14a12 12 0 0 1 24 0M36 14a12 12 0 0 1 24 0' fill='none' stroke='%236fe3c1' stroke-opacity='.045'/%3E%3C/svg%3E");
}

/* ---- Tema 5: Frozen Kingdom ----------------------------------------------- */
[data-theme="frozen"] {
  --background: #070a12;
  --background-2: #0a0f1a;
  --surface: #0f1625;
  --surface-secondary: #151f33;
  --surface-raised: #1c2840;
  --primary: #4f9dff;
  --secondary: #a8dcff;
  --accent: #e9f6ff;
  --brand: #7fc4ff;
  --text: #eaf3ff;
  --text-muted: #94a6c2;
  --text-faint: #63748f;
  --border: rgba(168, 220, 255, .14);
  --border-strong: rgba(168, 220, 255, .38);
  --glow: rgba(79, 157, 255, .4);
  --on-primary: #04101f;
  --grad-primary: linear-gradient(180deg, #e9f6ff 0%, #9fd2ff 45%, #4f9dff 100%);
  --grad-heading: linear-gradient(180deg, #ffffff 20%, #cfe6ff 60%, #6fb3ff 100%);
  --grad-edge: linear-gradient(90deg, transparent, rgba(168, 220, 255, .55), transparent);
  --rune-a: #ffffff; --rune-b: #4f9dff;
  --btn-radius: 0;
  --btn-clip: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  --card-radius: 4px;
  --card-bg: linear-gradient(180deg, rgba(168, 220, 255, .06), rgba(168, 220, 255, .01)), var(--surface);
  --glow-size: 30px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 0v32M28 65v32M0 16l28 16 28-16M0 81l28-16 28 16' fill='none' stroke='%23a8dcff' stroke-opacity='.04'/%3E%3C/svg%3E");
}

/* ---- Temel ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font: 400 var(--fs-md)/1.65 var(--font-body);
  color: var(--text); background-color: var(--background); background-image: var(--pattern);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--secondary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0 0 var(--space-4); letter-spacing: .005em; text-wrap: balance; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); line-height: 1.25; }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
hr { border: 0; height: 1px; background: var(--grad-edge); margin: var(--space-6) 0; }
code { font-size: .9em; padding: .1em .35em; background: var(--surface-secondary); border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .75rem 1rem; background: var(--primary); color: var(--on-primary); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(760px + var(--gutter) * 2); }
.section { padding-block: var(--section-y); position: relative; }
.section-alt { background: var(--background-2); }
.section-alt::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--grad-edge); }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 62ch; }

/* Bölüm başlığı: büyük başlık + kısa açıklama + (isteğe bağlı) sağda bağlantı */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-7); flex-wrap: wrap; }
.section-head > div { max-width: 640px; }
.section-head h2 { margin-bottom: var(--space-3); }
.section-head p { color: var(--text-muted); margin: 0; }
.text-metal { background: var(--grad-heading); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Butonlar ------------------------------------------------------------------ */
.btn {
  --_bg: var(--surface-secondary); --_fg: var(--text); --_bd: var(--border-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem; border: 1px solid var(--_bd); background: var(--_bg); color: var(--_fg);
  font: 700 var(--fs-sm)/1 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  border-radius: var(--btn-radius);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur), border-color var(--dur), color var(--dur), filter var(--dur);
}
.btn:hover { color: var(--_fg); border-color: var(--secondary); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --_bg: var(--grad-primary); --_fg: var(--on-primary); --_bd: transparent; background: var(--grad-primary); clip-path: var(--btn-clip); box-shadow: 0 8px var(--glow-size) -10px var(--glow); }
/* Kesik köşeli temalarda çerçeveli butonlara köşe çentiği (kenarlık kesilmeden) */
[data-theme="inferno"] .btn-ghost::after, [data-theme="frozen"] .btn-ghost::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-right: 2px solid var(--secondary); border-bottom: 2px solid var(--secondary); opacity: .7; }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px calc(var(--glow-size) + 8px) -8px var(--glow); }
.btn-ghost { --_bg: rgba(255, 255, 255, .02); }
.btn-ghost:hover { --_bg: rgba(255, 255, 255, .06); }
.btn-quiet { --_bg: transparent; --_bd: transparent; padding-inline: .75rem; }
.btn-quiet:hover { --_bd: var(--border); }
.btn-danger { --_bg: rgba(255, 93, 93, .1); --_bd: rgba(255, 93, 93, .45); --_fg: #ffb4b4; }
.btn-lg { min-height: 56px; padding: 1rem 1.9rem; font-size: var(--fs-md); }
.btn-sm { min-height: 38px; padding: .5rem .95rem; font-size: var(--fs-xs); }
.btn-block { width: 100%; }
/* Imperial: çift çerçeveli buton */
[data-theme="imperial"] .btn-primary { outline: 1px solid rgba(232, 207, 138, .45); outline-offset: 3px; }
[data-theme="imperial"] .btn { text-transform: none; letter-spacing: .06em; }
/* Shadow: içten parlayan hap buton */
[data-theme="shadow"] .btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 var(--glow-size) -6px var(--glow); }

/* ---- Form ------------------------------------------------------------------------ */
.form { display: grid; gap: var(--space-5); }
.field { display: grid; gap: .45rem; }
.field label, .label { font-weight: 700; font-size: var(--fs-sm); }
.field .hint { color: var(--text-faint); font-size: var(--fs-xs); margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .7rem .95rem; border: 1px solid var(--border); border-radius: min(var(--card-radius), 10px);
  background: rgba(0, 0, 0, .28); color: var(--text); transition: border-color var(--dur), box-shadow var(--dur);
}
.textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary) 25%, transparent); }
.is-invalid .input, .is-invalid .select, .is-invalid .textarea, .input.is-invalid { border-color: var(--danger); }
.field-error { color: #ff9b9b; font-size: var(--fs-xs); margin: 0; display: flex; gap: .35rem; align-items: start; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.select option { background: var(--surface); }
.check { display: flex; gap: .7rem; align-items: start; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--primary); flex: none; }
.input-group { display: flex; gap: .5rem; align-items: stretch; }
.input-group .input { flex: 1; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 3rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--text-faint); cursor: pointer; display: grid; place-items: center; border-radius: 6px; }
.pw-toggle:hover { color: var(--text); }
.captcha-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.captcha-row img { border: 1px solid var(--border); border-radius: 6px; height: 48px; width: auto; }
.captcha-row .input { max-width: 180px; text-transform: uppercase; letter-spacing: .2em; }
.strength { height: 4px; border-radius: 2px; background: var(--surface-raised); overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; transition: width .3s var(--ease), background-color .3s; background: var(--danger); }
.strength[data-score="2"] i { width: 50%; background: var(--warning); }
.strength[data-score="3"] i { width: 75%; background: var(--secondary); }
.strength[data-score="4"] i { width: 100%; background: var(--success); }
.strength[data-score="1"] i { width: 25%; }

/* ---- Uyarılar / bildirimler ------------------------------------------------------ */
.alert { display: flex; gap: .75rem; align-items: start; padding: .9rem 1.1rem; border: 1px solid var(--border); border-left-width: 3px; background: var(--surface); border-radius: min(var(--card-radius), 8px); font-size: var(--fs-sm); }
.alert .icon { margin-top: .15rem; }
.alert-success { border-left-color: var(--success); } .alert-success .icon { color: var(--success); }
.alert-error { border-left-color: var(--danger); } .alert-error .icon { color: var(--danger); }
.alert-info { border-left-color: var(--info); } .alert-info .icon { color: var(--info); }
.alert-warning { border-left-color: var(--warning); } .alert-warning .icon { color: var(--warning); }
.toasts { position: fixed; z-index: 80; right: var(--gutter); top: calc(var(--header-h) + 12px); display: grid; gap: .6rem; width: min(420px, calc(100vw - var(--gutter) * 2)); }
.toast { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); animation: toast-in .35s var(--ease) both; }
.toast.is-leaving { animation: toast-out .3s var(--ease) forwards; }
.toast-close { margin-left: auto; background: none; border: 0; color: var(--text-faint); cursor: pointer; padding: 0 .2rem; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(16px); } }

/* ---- Rozetler ------------------------------------------------------------------------ */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; font-size: var(--fs-xs); font-weight: 700; border-radius: 999px; background: var(--surface-secondary); color: var(--text-muted); border: 1px solid var(--border); white-space: nowrap; }
.badge-primary { color: var(--secondary); border-color: var(--border-strong); }
.badge-success { color: var(--success); border-color: rgba(79, 209, 139, .35); background: rgba(79, 209, 139, .08); }
.badge-danger { color: #ff9b9b; border-color: rgba(255, 93, 93, .35); background: rgba(255, 93, 93, .08); }
.badge-warning { color: var(--warning); border-color: rgba(255, 192, 77, .35); background: rgba(255, 192, 77, .08); }
.badge-info { color: var(--info); border-color: rgba(106, 184, 255, .35); background: rgba(106, 184, 255, .08); }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--text-faint); flex: none; }
.dot-on { background: var(--success); box-shadow: 0 0 0 3px rgba(79, 209, 139, .18), 0 0 12px rgba(79, 209, 139, .6); }
.dot-off { background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 93, 93, .15); }
.dot-warn { background: var(--warning); box-shadow: 0 0 0 3px rgba(255, 192, 77, .15); }

/* ---- Yüzey (kart) ----------------------------------------------------------------------- */
.surface { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--card-radius); position: relative; }
.surface-pad { padding: clamp(1.25rem, .8rem + 1.5vw, 2rem); }
.surface-edge::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--grad-edge); }

/* ---- Tablolar --------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table th { text-align: left; font-weight: 700; color: var(--text-faint); font-size: var(--fs-xs); padding: .75rem 1rem; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.data-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr { transition: background-color var(--dur); }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.prose .table-wrap table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-5); font-size: var(--fs-sm); }
.prose .table-wrap th, .prose .table-wrap td { padding: .65rem .9rem; border: 1px solid var(--border); text-align: left; }
.prose .table-wrap th { background: var(--surface-secondary); }

/* ---- Sayfalama / sekmeler / kırıntı ------------------------------------------------------ */
.pagination { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin-top: var(--space-6); }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 .8rem; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: min(var(--card-radius), 8px); text-decoration: none; color: var(--text-muted); font-weight: 700; font-size: var(--fs-sm); }
.pagination a:hover { border-color: var(--border-strong); color: var(--text); }
.pagination .is-current { background: var(--surface-secondary); color: var(--text); border-color: var(--border-strong); }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: var(--space-6); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: .85rem 1.1rem; border: 0; background: none; color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: var(--fs-sm); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .is-active, .tabs [aria-selected="true"] { color: var(--text); border-bottom-color: var(--primary); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 var(--space-4); font-size: var(--fs-xs); color: var(--text-faint); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }

/* ---- Modal ------------------------------------------------------------------------------- */
.modal { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: var(--card-radius); padding: 0; width: min(520px, calc(100vw - 2rem)); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); }
.modal::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .28s var(--ease); }
.modal-body { padding: var(--space-6); }
.modal-actions { display: flex; gap: .6rem; justify-content: end; padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* =========================================================================
   Header / navigasyon
   ========================================================================= */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.is-solid, .page-inner .site-header { background: color-mix(in srgb, var(--background) 88%, transparent); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); flex: none; }
.brand .logo-mark { width: 34px; height: auto; }
.brand .logo-word { height: 17px; width: auto; }
.brand-img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: .15rem; margin-inline: auto; }
.nav-link { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .8rem; color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: var(--fs-sm); border-radius: 6px; background: none; border: 0; cursor: pointer; transition: color var(--dur), background-color var(--dur); }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-link.is-current { color: var(--text); }
.nav-link.is-current::after { content: ""; position: absolute; }
.nav-item { position: relative; }
.nav-link .chev { width: .9em; height: .9em; transition: transform var(--dur); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 50%; min-width: 220px; padding: .5rem; background: var(--surface); border: 1px solid var(--border-strong); border-radius: min(var(--card-radius), 10px); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .85); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur); }
.dropdown.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: flex; align-items: center; gap: .65rem; padding: .65rem .8rem; border-radius: 6px; color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: var(--fs-sm); }
.dropdown a:hover { background: var(--surface-secondary); color: var(--text); }
.dropdown .icon { color: var(--secondary); }
.header-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.header-actions form { margin: 0; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--border); background: rgba(0, 0, 0, .25); color: var(--text); border-radius: 8px; cursor: pointer; place-items: center; }
.menu-toggle .icon { width: 22px; height: 22px; }

/* Mobil çekmece menü */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .3s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--surface); border-left: 1px solid var(--border-strong); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .34s var(--ease); background-image: var(--pattern); }
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--gutter); height: var(--header-h); border-bottom: 1px solid var(--border); }
.drawer-nav { flex: 1; overflow-y: auto; padding: 1rem var(--gutter); display: grid; align-content: start; gap: .15rem; }
.drawer-nav a { display: flex; align-items: center; gap: .9rem; padding: .95rem .5rem; color: var(--text); text-decoration: none; font-size: var(--fs-lg); font-weight: 700; border-bottom: 1px solid var(--border); }
.drawer-nav a .icon { color: var(--secondary); width: 1.3rem; height: 1.3rem; }
.drawer-nav .drawer-group { margin-top: .75rem; padding: .5rem .5rem .25rem; color: var(--text-faint); font-size: var(--fs-xs); font-weight: 700; }
.drawer-nav .drawer-sub a { font-size: var(--fs-md); padding-left: 1rem; }
.drawer-foot { padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom)); display: grid; gap: .6rem; border-top: 1px solid var(--border); }
body.no-scroll { overflow: hidden; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; grid-template-rows: 1fr auto; isolation: isolate; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: hero-zoom 18s var(--ease) both; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, color-mix(in srgb, var(--background) 92%, transparent) 0%, color-mix(in srgb, var(--background) 55%, transparent) 38%, transparent 64%),
  linear-gradient(0deg, var(--background) 0%, transparent 32%); }
.hero-embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-embers i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px 2px var(--glow); opacity: 0; animation: ember 9s linear infinite; }
.hero-embers i:nth-child(1) { left: 58%; animation-delay: 0s; }
.hero-embers i:nth-child(2) { left: 66%; animation-delay: 1.6s; animation-duration: 11s; }
.hero-embers i:nth-child(3) { left: 72%; animation-delay: 3.1s; }
.hero-embers i:nth-child(4) { left: 79%; animation-delay: 4.7s; animation-duration: 12s; }
.hero-embers i:nth-child(5) { left: 84%; animation-delay: 2.2s; }
.hero-embers i:nth-child(6) { left: 63%; animation-delay: 6.2s; animation-duration: 10s; }
.hero-embers i:nth-child(7) { left: 75%; animation-delay: 7.5s; }
.hero-embers i:nth-child(8) { left: 90%; animation-delay: 5.4s; animation-duration: 13s; }
[data-theme="frozen"] .hero-embers i { background: #fff; width: 4px; height: 4px; animation-name: snow; }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(-60px, -86vh); opacity: 0; } }
@keyframes snow { 0% { transform: translate(0, -100vh); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(40px, 4vh); opacity: 0; } }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero-inner { display: flex; align-items: center; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 3rem; }
.hero-copy { max-width: 720px; }
.hero-kicker { display: flex; align-items: center; gap: .9rem; color: var(--text-muted); font-size: var(--fs-md); margin-bottom: var(--space-4); }
.hero-kicker::before { content: ""; width: 42px; height: 1px; background: var(--grad-edge); background: linear-gradient(90deg, var(--secondary), transparent); }
.hero-title { margin: 0 0 var(--space-5); }
.hero-wordmark { display: block; width: min(560px, 100%); margin-bottom: var(--space-4); filter: drop-shadow(0 6px 30px var(--glow)); }
.hero-wordmark svg { width: 100%; height: auto; }
.hero-tagline { display: block; font-size: clamp(1.6rem, 1rem + 2.2vw, 2.75rem); line-height: 1.15; color: var(--text); }
.hero-text { font-size: var(--fs-lg); color: var(--text-muted); max-width: 52ch; margin-bottom: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Sunucu durumu şeridi — kahramanın tabanında */
.status-rail { position: relative; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--background) 72%, transparent); backdrop-filter: blur(12px); }
.status-rail::before { content: ""; position: absolute; inset: -1px 0 auto; height: 1px; background: var(--grad-edge); }
.status-inner { display: flex; align-items: center; gap: var(--space-6); min-height: 84px; padding-block: 1rem; flex-wrap: wrap; }
.status-main { display: flex; align-items: center; gap: 1rem; }
.status-main .dot { width: .8rem; height: .8rem; }
.status-title { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.1; }
.status-sub { color: var(--text-muted); font-size: var(--fs-sm); }
.status-players { display: flex; align-items: baseline; gap: .5rem; padding-left: var(--space-6); border-left: 1px solid var(--border); }
.status-players strong { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 400; font-variant-numeric: tabular-nums; }
.status-players span { color: var(--text-muted); font-size: var(--fs-sm); }
.status-services { display: flex; gap: .5rem 1.25rem; flex-wrap: wrap; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.status-services li { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: var(--text-muted); }
.status-checked { color: var(--text-faint); font-size: var(--fs-xs); }

/* =========================================================================
   Ana sayfa bölümleri
   ========================================================================= */
/* Tanıtım: metin + sunucu bilgileri tableti */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-body { font-size: var(--fs-md); color: var(--text-muted); max-width: 64ch; }
.about-body strong { color: var(--text); font-weight: 700; }
.facts { margin: 0; padding: var(--space-5) var(--space-6); }
.facts h3 { font-size: var(--fs-lg); margin-bottom: var(--space-4); }
.facts dl { margin: 0; display: grid; }
.facts dl > div { display: flex; align-items: baseline; gap: .75rem; padding: .7rem 0; border-bottom: 1px dashed var(--border); }
.facts dl > div:last-child { border-bottom: 0; }
.facts dt { color: var(--text-muted); font-size: var(--fs-sm); }
.facts dd { margin: 0 0 0 auto; font-weight: 700; text-align: right; }
.facts .facts-cta { margin-top: var(--space-5); display: grid; gap: .5rem; }

/* Özellikler: kutusuz, üst çizgili ızgara */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7) var(--space-6); list-style: none; padding: 0; margin: 0; }
.feature { padding-top: var(--space-5); border-top: 1px solid var(--border); position: relative; }
.feature::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--grad-primary); }
.feature .feature-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--secondary); margin-bottom: var(--space-4); border: 1px solid var(--border); border-radius: min(var(--card-radius), 10px); background: var(--surface); }
.feature .feature-icon .icon { width: 22px; height: 22px; }
.feature h3 { margin-bottom: var(--space-2); }
.feature p { color: var(--text-muted); margin: 0; font-size: var(--fs-sm); }

/* Sınıf vitrini: yatay akordeon */
.classes { display: flex; gap: .75rem; height: 460px; }
.class-panel { position: relative; flex: 1; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--card-radius); background: var(--card-bg); display: flex; flex-direction: column; justify-content: end; padding: var(--space-6); text-decoration: none; color: var(--text); transition: flex-grow .5s var(--ease), border-color var(--dur); outline-offset: -2px; }
.class-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 38%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 70%); opacity: .55; transition: opacity .5s; }
.class-emblem { position: absolute; left: 50%; top: 38%; width: 150px; height: 150px; transform: translate(-50%, -50%); color: var(--secondary); filter: drop-shadow(0 0 18px var(--glow)); transition: transform .5s var(--ease), color .3s; }
.class-panel h3 { position: relative; font-size: var(--fs-2xl); margin-bottom: var(--space-2); }
.class-role { position: relative; color: var(--secondary); font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--space-3); }
.class-desc { position: relative; color: var(--text-muted); font-size: var(--fs-sm); max-width: 38ch; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; margin: 0; }
.class-panel:hover, .class-panel:focus-within, .class-panel.is-active { flex-grow: 2.2; border-color: var(--border-strong); }
.class-panel:hover::before, .class-panel.is-active::before { opacity: 1; }
.class-panel:hover .class-desc, .class-panel.is-active .class-desc { max-height: 12rem; opacity: 1; }
.class-panel:hover .class-emblem, .class-panel.is-active .class-emblem { transform: translate(-50%, -58%) scale(1.08); color: var(--accent); }

/* Haberler */
.news-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-6); }
.news-list { display: grid; gap: var(--space-5); align-content: start; }
.news-card { display: grid; text-decoration: none; color: var(--text); overflow: hidden; }
.news-card .news-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--card-radius); border: 1px solid var(--border); background: var(--surface-secondary); }
.news-card .news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.04); }
.news-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background:
  radial-gradient(60% 70% at 70% 30%, color-mix(in srgb, var(--primary) 32%, transparent), transparent 70%),
  linear-gradient(160deg, var(--surface-raised), var(--surface)); }
.news-placeholder svg { width: 22%; opacity: .5; color: var(--secondary); }
.news-body { padding-top: var(--space-4); }
.news-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; color: var(--text-faint); font-size: var(--fs-xs); margin-bottom: var(--space-2); }
.news-card h3 { font-size: var(--fs-xl); margin-bottom: var(--space-2); transition: color var(--dur); }
.news-card h3 a, .news-card h2 a { color: inherit; text-decoration: none; }
.news-card:hover h3 { color: var(--accent); }
.news-card p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.news-card.is-lead h3 { font-size: var(--fs-2xl); }
.news-card.is-compact { grid-template-columns: 168px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.news-card.is-compact .news-body { padding-top: 0; }
.news-card.is-compact h3 { font-size: var(--fs-lg); }
.news-card.is-compact p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Sıralama tabloları */
.rank-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.rank-card { padding: var(--space-2) 0 var(--space-4); }
.rank-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: var(--space-4) var(--space-5); }
.rank-card-head h3 { margin: 0; }
.rank-table td, .rank-table th { padding-inline: var(--space-5); }
.rank-pos { width: 3rem; font-family: var(--font-display); font-size: var(--fs-lg); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.rank-table tr.top-1 .rank-pos { color: #ffd36b; }
.rank-table tr.top-2 .rank-pos { color: #d8dde6; }
.rank-table tr.top-3 .rank-pos { color: #e09a62; }
.rank-table tr.top-1 td { background: color-mix(in srgb, var(--primary) 9%, transparent); }
.char-cell { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.char-cell .class-ico { width: 32px; height: 32px; padding: 5px; flex: none; color: var(--secondary); border: 1px solid var(--border); border-radius: 50%; background: var(--surface-secondary); }
.char-name { font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-sub { color: var(--text-faint); font-size: var(--fs-xs); }
.empire { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-xs); color: var(--text-muted); }
.empire::before { content: ""; width: .6rem; height: .6rem; border-radius: 2px; transform: rotate(45deg); background: currentColor; }
.empire-shinsoo { color: #ff6b5b; } .empire-chunjo { color: #ffcf4d; } .empire-jinno { color: #5ea8ff; } .empire-none { color: var(--text-faint); }
.level { font-weight: 700; font-variant-numeric: tabular-nums; }
.empty-state { padding: var(--space-7) var(--space-5); text-align: center; color: var(--text-muted); }
.empty-state .icon { width: 36px; height: 36px; margin: 0 auto var(--space-3); color: var(--text-faint); }

/* Etkinlik takvimi (zaman çizelgesi) */
.events-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.countdown { display: flex; gap: .75rem; margin: var(--space-5) 0 var(--space-6); }
.countdown div { min-width: 82px; padding: .9rem .5rem .7rem; text-align: center; }
.countdown strong { display: block; font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1; }
.countdown span { color: var(--text-faint); font-size: var(--fs-xs); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--border-strong), transparent); }
.timeline li { position: relative; padding: 0 0 var(--space-5) var(--space-6); }
.timeline li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--secondary); background: var(--background); }
.timeline li:first-child::before { background: var(--secondary); box-shadow: 0 0 14px var(--glow); }
.timeline time { display: block; color: var(--secondary); font-weight: 700; font-size: var(--fs-sm); }
.timeline h3 { font-size: var(--fs-lg); margin: .2rem 0; }
.timeline p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.event-type { margin-left: .6rem; vertical-align: middle; font-family: var(--font-body); }
.timeline h3 .badge, .news-card .badge { font-family: var(--font-body); }

/* Discord bandı */
.community { position: relative; overflow: hidden; }
.community-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6); align-items: center; padding: clamp(2rem, 1rem + 3vw, 3.5rem); }
.community-inner::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); opacity: .5; pointer-events: none; }
.community h2 { font-size: var(--fs-2xl); margin-bottom: var(--space-3); }
.community p { color: var(--text-muted); margin: 0; max-width: 56ch; }
.community-actions { display: flex; gap: .75rem; flex-wrap: wrap; position: relative; z-index: 1; }
.discord-widget { width: 100%; max-width: 350px; height: 300px; border: 0; border-radius: var(--card-radius); }

/* Son çağrı: indir */
.final-cta { position: relative; text-align: center; padding-block: clamp(5rem, 3rem + 7vw, 9rem); overflow: hidden; isolation: isolate; }
.final-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 50% 100%, color-mix(in srgb, var(--primary) 28%, transparent), transparent 70%); }
.final-cta .stone-mark { width: 84px; margin: 0 auto var(--space-5); filter: drop-shadow(0 0 24px var(--glow)); }
.final-cta h2 { margin-bottom: var(--space-3); }
.final-cta p { color: var(--text-muted); margin: 0 auto var(--space-6); max-width: 52ch; }
.final-cta .hero-actions { justify-content: center; }
.final-cta .client-meta { margin-top: var(--space-5); color: var(--text-faint); font-size: var(--fs-xs); display: flex; justify-content: center; gap: .4rem 1.25rem; flex-wrap: wrap; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { border-top: 1px solid var(--border); background: var(--background-2); padding-block: var(--space-8) var(--space-5); position: relative; }
.site-footer::before { content: ""; position: absolute; inset: -1px 0 auto; height: 1px; background: var(--grad-edge); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.footer-brand .brand .logo-mark { width: 44px; }
.footer-brand .brand .logo-word { height: 22px; }
.footer-brand p { color: var(--text-muted); font-size: var(--fs-sm); margin: var(--space-4) 0; max-width: 40ch; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.socials a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .75rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); text-decoration: none; font-size: var(--fs-xs); font-weight: 700; transition: color var(--dur), border-color var(--dur); }
.socials a:hover { color: var(--text); border-color: var(--border-strong); }
.footer-col h2 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--space-4); color: var(--text); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--text-faint); font-size: var(--fs-xs); }
.footer-bottom p { margin: 0; }

/* =========================================================================
   İç sayfalar
   ========================================================================= */
.page-head { padding-top: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 3vw, 4.5rem)); padding-bottom: clamp(2rem, 1rem + 2vw, 3rem); position: relative; isolation: isolate; border-bottom: 1px solid var(--border); overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 85% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%), var(--background-2); }
.page-head h1 { font-size: var(--fs-3xl); margin-bottom: var(--space-3); }
.page-head .lead { margin: 0; }
.page-body { padding-block: var(--space-8) var(--section-y); }

/* Kimlik doğrulama sayfaları */
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.auth-aside h2 { font-size: var(--fs-2xl); }
.auth-steps { list-style: none; padding: 0; margin: var(--space-5) 0 0; counter-reset: step; display: grid; gap: var(--space-5); }
.auth-steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); }
.auth-steps li::before { content: counter(step); width: 44px; height: 44px; display: grid; place-items: center; font-family: var(--font-display); font-size: var(--fs-lg); border: 1px solid var(--border-strong); border-radius: 50%; color: var(--secondary); }
.auth-steps h3 { font-size: var(--fs-lg); margin: .35rem 0 .2rem; }
.auth-steps p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.auth-card { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.auth-card h2 { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.auth-alt { text-align: center; color: var(--text-muted); font-size: var(--fs-sm); margin: var(--space-5) 0 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* İndirme sayfası */
.download-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.package { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.package + .package { margin-top: var(--space-5); }
.package-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: var(--space-5); }
.package-head h2 { font-size: var(--fs-2xl); margin: 0; }
.package-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: 0 0 var(--space-5); }
.package-specs div { padding: var(--space-4); background: rgba(0, 0, 0, .2); border: 1px solid var(--border); border-radius: min(var(--card-radius), 8px); }
.package-specs dt { color: var(--text-faint); font-size: var(--fs-xs); }
.package-specs dd { margin: .2rem 0 0; font-weight: 700; }
.mirrors { display: grid; gap: .6rem; }
.mirror { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border: 1px solid var(--border); border-radius: min(var(--card-radius), 8px); text-decoration: none; color: var(--text); background: rgba(0, 0, 0, .15); transition: border-color var(--dur), background-color var(--dur), transform var(--dur); }
.mirror:hover { border-color: var(--border-strong); background: var(--surface-secondary); color: var(--text); transform: translateX(2px); }
.mirror .icon { color: var(--secondary); }
.mirror strong { flex: 1; }
.mirror .mirror-host { color: var(--text-faint); font-size: var(--fs-xs); }
.mirror.is-primary { border-color: var(--border-strong); background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 16%, transparent), transparent); }
.checksum { margin-top: var(--space-5); display: grid; gap: .5rem; font-size: var(--fs-xs); }
.checksum div { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: .6rem; align-items: center; }
.checksum code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.copy-btn { border: 1px solid var(--border); background: none; color: var(--text-muted); border-radius: 6px; padding: .3rem .5rem; cursor: pointer; display: inline-flex; gap: .3rem; align-items: center; font-size: var(--fs-xs); }
.copy-btn:hover { color: var(--text); border-color: var(--border-strong); }
.requirements { white-space: pre-line; color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.steps-list li { counter-increment: s; position: relative; padding-left: 2.6rem; color: var(--text-muted); font-size: var(--fs-sm); }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--secondary); font-weight: 700; font-size: var(--fs-xs); }
.steps-list strong { color: var(--text); display: block; }

/* Sıralama sayfası */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: var(--space-5); }
.filters .input, .filters .select { min-height: 44px; width: auto; }
.filters .input { min-width: 220px; flex: 1; max-width: 320px; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { padding: .45rem .9rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: var(--fs-xs); }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active { background: var(--surface-secondary); color: var(--text); border-color: var(--secondary); }

/* Haber listesi */
.news-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7) var(--space-6); }
.news-index .news-card.is-featured { grid-column: span 2; }
.article { max-width: 760px; margin-inline: auto; }
.article-cover { margin: 0 0 var(--space-7); border-radius: var(--card-radius); overflow: hidden; border: 1px solid var(--border); }
.article-cover img { width: 100%; }
.related { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }

/* Uzun metin (haber, rehber, sayfa) */
.prose { font-size: var(--fs-md); line-height: 1.75; color: color-mix(in srgb, var(--text) 86%, var(--text-muted)); max-width: 70ch; }
.prose h2 { font-size: var(--fs-2xl); margin: var(--space-7) 0 var(--space-4); }
.prose h3 { font-size: var(--fs-xl); margin: var(--space-6) 0 var(--space-3); }
.prose h4 { margin: var(--space-5) 0 var(--space-3); }
.prose img { border-radius: var(--card-radius); border: 1px solid var(--border); margin: var(--space-5) 0; }
.prose blockquote { margin: var(--space-5) 0; padding: var(--space-4) var(--space-5); border-left: 3px solid var(--secondary); background: var(--surface); color: var(--text-muted); border-radius: 0 var(--card-radius) var(--card-radius) 0; }
.prose blockquote p { margin: 0; }
.prose li { margin-bottom: .35rem; }
.prose > :first-child { margin-top: 0; }

/* Rehber */
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.guide-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.guide-nav h2 { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--text-faint); margin: var(--space-5) 0 var(--space-2); }
.guide-nav h2:first-child { margin-top: 0; }
.guide-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; }
.guide-nav a { display: block; padding: .45rem .75rem; border-left: 2px solid var(--border); color: var(--text-muted); text-decoration: none; font-size: var(--fs-sm); }
.guide-nav a:hover { color: var(--text); border-left-color: var(--border-strong); }
.guide-nav a.is-current { color: var(--text); border-left-color: var(--primary); }
.guide-groups { display: grid; gap: var(--space-7); }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); list-style: none; padding: 0; margin: 0; }
.guide-item { display: block; height: 100%; padding: var(--space-5); text-decoration: none; color: var(--text); transition: border-color var(--dur), transform var(--dur); }
.guide-item:hover { border-color: var(--border-strong); transform: translateY(-2px); color: var(--text); }
.guide-item h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.guide-item p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

/* =========================================================================
   Oyuncu paneli
   ========================================================================= */
.panel-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--space-6); padding-top: calc(var(--header-h) + var(--space-6)); padding-bottom: var(--space-9); align-items: start; }
.panel-side { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
.panel-user { display: flex; align-items: center; gap: .8rem; padding: var(--space-4); margin-bottom: var(--space-3); }
.panel-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--grad-primary); color: var(--on-primary); font-family: var(--font-display); font-size: var(--fs-lg); flex: none; }
.panel-user strong { display: block; line-height: 1.2; }
.panel-user span { color: var(--text-faint); font-size: var(--fs-xs); }
.panel-nav { display: grid; gap: .15rem; }
.panel-nav a, .panel-nav button { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: min(var(--card-radius), 8px); color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: var(--fs-sm); background: none; border: 0; width: 100%; cursor: pointer; text-align: left; }
.panel-nav a:hover, .panel-nav button:hover { background: var(--surface); color: var(--text); }
.panel-nav a.is-current { background: var(--surface-secondary); color: var(--text); box-shadow: inset 2px 0 0 var(--primary); }
.panel-nav .icon { color: var(--secondary); }
.panel-nav .count { margin-left: auto; }
.panel-main h1 { font-size: var(--fs-2xl); margin-bottom: var(--space-2); }
.panel-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: var(--space-6); }
.panel-head p { margin: 0; color: var(--text-muted); }
.panel-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-5); }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; }
.stat { padding: var(--space-5); }
.stat-label { color: var(--text-faint); font-size: var(--fs-xs); font-weight: 700; display: flex; align-items: center; gap: .45rem; }
.stat-label .icon { color: var(--secondary); }
.stat-value { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.1; margin-top: .4rem; font-variant-numeric: tabular-nums; }
.stat-note { color: var(--text-muted); font-size: var(--fs-xs); margin-top: .25rem; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); }
.box-head h2 { font-size: var(--fs-lg); margin: 0; }
.box-body { padding: var(--space-5); }
.kv { margin: 0; display: grid; }
.kv > div { display: flex; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--text-muted); min-width: 140px; }
.kv dd { margin: 0; font-weight: 700; word-break: break-word; }
.char-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); }
.char-card { padding: var(--space-5); display: grid; gap: var(--space-4); }
.char-card-head { display: flex; align-items: center; gap: .9rem; }
.char-card-head .class-ico { width: 52px; height: 52px; padding: 8px; color: var(--secondary); border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface-secondary); flex: none; }
.char-card-head strong { display: block; font-size: var(--fs-lg); font-family: var(--font-display); font-weight: 400; }
.char-card .kv dt { min-width: 90px; }
.ticket-list { list-style: none; margin: 0; padding: 0; }
.ticket-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: center; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.ticket-row:hover { background: rgba(255, 255, 255, .02); color: var(--text); }
.ticket-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-row .ticket-meta { color: var(--text-faint); font-size: var(--fs-xs); }
.thread { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
.msg { padding: var(--space-4) var(--space-5); max-width: 86%; }
.msg-user { justify-self: end; background: var(--surface-secondary); }
.msg-staff { justify-self: start; border-color: var(--border-strong); }
.msg-system { justify-self: center; max-width: 100%; padding: .4rem .9rem; background: none; border: 0; color: var(--text-faint); font-size: var(--fs-xs); text-align: center; }
.msg-head { display: flex; gap: .75rem; align-items: center; font-size: var(--fs-xs); color: var(--text-faint); margin-bottom: .35rem; flex-wrap: wrap; }
.msg-head strong { color: var(--text); font-size: var(--fs-sm); }
.msg-body { white-space: pre-wrap; word-break: break-word; font-size: var(--fs-sm); }
.activity { list-style: none; padding: 0; margin: 0; }
.activity li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.activity li:last-child { border-bottom: 0; }
.activity time { color: var(--text-faint); font-size: var(--fs-xs); white-space: nowrap; }
.banner-ban { margin-bottom: var(--space-5); }

/* =========================================================================
   Hata / bakım sayfaları
   ========================================================================= */
.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--space-7) var(--gutter); position: relative; isolation: isolate; overflow: hidden; }
.error-page::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 55% at 50% 45%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%); }
.error-stone { width: 140px; margin: 0 auto var(--space-5); filter: drop-shadow(0 0 30px var(--glow)); }
.error-stone.is-broken { animation: none; }
.error-code { font-family: var(--font-display); font-size: clamp(4rem, 2rem + 8vw, 8rem); line-height: 1; margin: 0; }
.error-page h1 { font-size: var(--fs-2xl); margin: var(--space-3) 0; }
.error-page p { color: var(--text-muted); max-width: 48ch; margin: 0 auto var(--space-6); }
.error-page .hero-actions { justify-content: center; }
.maint-eta { display: inline-flex; gap: .5rem; align-items: center; color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-5); }

/* Bakım ön izleme şeridi (yalnızca yönetici görür) */
.has-notice { --notice-h: 34px; }
.has-notice .site-header { top: var(--notice-h); }
.has-notice .hero { min-height: min(calc(100svh - var(--notice-h)), 980px); }
.notice-bar { height: 34px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 51; background: var(--surface-secondary); border-bottom: 1px solid var(--border-strong); font-size: var(--fs-xs); color: var(--text-muted); text-align: center; padding: .45rem var(--gutter); }

/* =========================================================================
   Duyarlı yerleşim
   ========================================================================= */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header-actions .hide-md { display: none; }
  .header-inner { justify-content: space-between; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .about-grid, .news-grid, .rank-grid, .events-grid, .download-layout, .auth-layout, .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { order: 2; }
  .guide-nav { position: static; }
  .panel-shell { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--header-h) + var(--space-4)); }
  .panel-side { position: static; }
  .panel-nav { display: flex; overflow-x: auto; gap: .35rem; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .25rem; }
  .panel-nav a, .panel-nav button { white-space: nowrap; width: auto; border: 1px solid var(--border); }
  .panel-nav form { flex: none; }
  .panel-user { display: none; }
  .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; }
  .span-3 { grid-column: span 6; }
  .classes { height: auto; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; gap: .75rem; padding-bottom: .5rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .class-panel { min-height: 420px; scroll-snap-align: start; }
  .class-panel .class-desc { max-height: 12rem; opacity: 1; }
  .community-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .hero { min-height: 100svh; }
  .hero-art img { object-position: 74% 50%; }
  .hero::before { background: linear-gradient(0deg, var(--background) 6%, color-mix(in srgb, var(--background) 82%, transparent) 46%, color-mix(in srgb, var(--background) 25%, transparent) 78%, transparent); }
  .hero-inner { align-items: end; padding-top: calc(var(--header-h) + 30vh); padding-bottom: 2rem; }
  .hero-wordmark { width: min(420px, 92%); }
  .hero-text { font-size: var(--fs-md); }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .btn-primary { grid-column: 1 / -1; }
  .hero-actions .btn { min-height: 52px; }
  .status-inner { gap: var(--space-4); }
  .status-players { padding-left: 0; border-left: 0; }
  .status-services { margin-left: 0; width: 100%; }
  .features { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .news-index, .related-grid, .guide-list { grid-template-columns: minmax(0, 1fr); }
  .news-index .news-card.is-featured { grid-column: auto; }
  .news-card.is-compact { grid-template-columns: 112px minmax(0, 1fr); }
  .package-specs { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rank-table .hide-sm { display: none; }
  .rank-table td, .rank-table th { padding-inline: .75rem; }
  .countdown div { min-width: 0; flex: 1; }
  .msg { max-width: 100%; }
  .kv > div { flex-direction: column; gap: .15rem; }
  .filters .input { max-width: none; min-width: 100%; }
  .header-actions .btn-sm { padding-inline: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-embers { display: none; }
}
@media print {
  .site-header, .site-footer, .drawer, .hero-embers, .status-rail { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---- Logo renkleri (tema token'larından) ---------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: .65rem; }
.lg-stone-a { stop-color: var(--surface-raised); }
.lg-stone-b { stop-color: var(--background); }
.lg-rim-a { stop-color: var(--secondary); }
.lg-rim-b { stop-color: color-mix(in srgb, var(--primary) 70%, #000); }
.lg-rune-a { stop-color: var(--rune-a); }
.lg-rune-b { stop-color: var(--rune-b); }
.lg-word-a { stop-color: var(--text); }
.lg-word-b { stop-color: color-mix(in srgb, var(--text) 70%, var(--secondary)); }
.lg-word-c { stop-color: var(--secondary); }

.logo-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

@media (max-width: 720px) {
  .notice-bar { font-size: 11px; }
  .notice-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .hero-actions .btn-lg { padding-inline: .9rem; font-size: var(--fs-sm); white-space: nowrap; }
  .class-panel { min-height: 400px; }
  .class-emblem { top: 24%; width: 112px; height: 112px; }
}

.h3 { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.25; font-weight: 400; }
.chips + .surface, .filters + .surface { margin-top: var(--space-5); }
.page-body > .container > .faint { margin-top: var(--space-4); font-size: var(--fs-xs); }
.timeline .faint .icon { display: inline; vertical-align: -2px; }
.field { align-content: start; }
.news-card h2 { font-size: var(--fs-xl); line-height: 1.25; margin-bottom: var(--space-2); transition: color var(--dur); }
.news-card:hover h2 { color: var(--accent); }
.news-card.is-featured h2 { font-size: var(--fs-2xl); }
.stat-value-sm { font-size: var(--fs-xl); padding-top: .35rem; }

/* Telefonlarda ikincil tablo sütunlarını gizle */
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
}


/* Sunucu seçimi */
.server-switch { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; padding: .3rem; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.server-switch-label { display: inline-flex; align-items: center; gap: .4rem; padding: 0 .5rem 0 .6rem; color: var(--text-muted); font-size: var(--fs-xs); }
.server-switch-label .icon { width: .95rem; height: .95rem; }
.server-switch a { padding: .4rem .9rem; border-radius: 999px; color: var(--text-muted); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; transition: color .2s, background .2s; }
.server-switch a:hover { color: var(--text); }
.server-switch a.is-active { color: var(--on-primary); background: var(--grad-primary); }
.server-switch-page { margin-bottom: var(--space-5); }
.panel-head .server-switch { align-self: center; }

/* ---- Dil seçici (TR / EN / DE) --------------------------------------------------------------- */
.lang-btn { padding-inline: .6rem; }
.lang-btn .icon { width: 1.05em; height: 1.05em; }
.dropdown.dropdown-end { left: auto; right: 0; min-width: 180px; transform: translate(0, -6px); }
.dropdown.dropdown-end.is-open { transform: translate(0, 0); }
.dropdown a.is-active { color: var(--text); background: var(--surface-secondary); }
.dropdown .lang-check { margin-left: auto; color: var(--primary); }
.lang-code { display: inline-grid; place-items: center; min-width: 2.1em; padding: .1em .35em; border: 1px solid var(--border-strong); border-radius: 4px; font-size: .72em; letter-spacing: .06em; color: var(--text-muted); }
.dropdown a.is-active .lang-code, .lang-inline a.is-active .lang-code { border-color: var(--primary); color: var(--text); }
.lang-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.lang-inline a { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .6rem .4rem; border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: var(--fs-sm); }
.lang-inline a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.lang-inline a.is-active { color: var(--text); border-color: var(--primary); }
.drawer-lang { padding: 0 var(--gutter) 1rem; }
@media (max-width: 720px) { .header-actions .lang-switch { display: none; } }
