/*
 * ALES Akademi tasarım sistemi
 * ---------------------------------------------------------------
 * Tek kaynak: renkler, yazı tipleri, boşluklar ve bileşenler burada.
 * Vitrin, öğrenci platformu ve yönetim paneli aynı dosyayı kullanır.
 *
 * Tema: <html data-theme="dark|light">. Koyu tema esastır.
 * Renkleri değiştirmek için yalnızca aşağıdaki değişkenleri değiştir.
 */

/* ---------- Yazı tipleri (kendi sunucumuzdan; Google'a istek gitmez) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/bricolage-latin-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/bricolage-latin.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/jakarta-latin-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/jakarta-latin.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(../fonts/jetbrains-latin-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(../fonts/jetbrains-latin.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Renk ve ölçü değişkenleri ---------- */
:root,
[data-theme="dark"] {
  --bg: #050816;
  --bg-2: #080D22;
  --card: #0B1230;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.08);
  --glass-line: rgba(255, 255, 255, 0.10);
  --glass-line-2: rgba(255, 255, 255, 0.20);
  --window: rgba(12, 19, 44, 0.78);
  --header: rgba(5, 8, 22, 0.62);
  --ink: #F5F3EE;
  --muted: #A3ACC7;
  --faint: #8089A6;
  --gold: #FFC145;
  --amber: #FF8A3D;
  --blue: #5B8CFF;
  --cyan: #2DD4E6;
  --right: #34D399;
  --wrong: #FB7185;
  --on-accent: #0A1020;
  --grid-line: rgba(255, 255, 255, 0.055);
  --glow-a: rgba(91, 140, 255, 0.55);
  --glow-b: rgba(255, 138, 61, 0.42);
  --glow-c: rgba(45, 212, 230, 0.34);
  --shadow: rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F6F7FB;
  --bg-2: #EDF0F8;
  --card: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-2: rgba(255, 255, 255, 0.9);
  --glass-line: rgba(10, 20, 48, 0.09);
  --glass-line-2: rgba(10, 20, 48, 0.18);
  --window: rgba(255, 255, 255, 0.82);
  --header: rgba(246, 247, 251, 0.72);
  --ink: #0A1430;
  --muted: #4C5875;
  --faint: #5F6A87;
  --gold: #9A6200;
  --amber: #C2410C;
  --blue: #2F5BD8;
  --cyan: #0E7490;
  --right: #047857;
  --wrong: #BE123C;
  --on-accent: #0A1020;
  --grid-line: rgba(10, 20, 48, 0.06);
  --glow-a: rgba(61, 107, 240, 0.26);
  --glow-b: rgba(240, 120, 40, 0.2);
  --glow-c: rgba(15, 165, 188, 0.2);
  --shadow: rgba(10, 20, 48, 0.2);
  color-scheme: light;
}
/* Açık temada metin renkleri okunabilirlik için koyulaştırıldı (WCAG AA, 4.5:1);
   butonlar canlı kalsın diye vurgu geçişi ayrı tutulur. */
:root { --accent-from: #FFC145; --accent-to: #FF8A3D; --g1: #FFC145; --g2: #FF8A3D; --g3: #2DD4E6; }
/* Büyük başlıklardaki renk geçişi açık temada canlı kalır ve 3:1 kontrastı geçer. */
[data-theme="light"] { --accent-from: #F5B12E; --accent-to: #F0742A; --g1: #C96A04; --g2: #E04F0B; --g3: #0E8AA8; }

:root {
  --display: 'Bricolage Grotesque', 'Arial Black', Arial, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --gutter: max(16px, env(safe-area-inset-left));
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
main { flex: 1; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--on-accent); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 max(var(--gutter), 24px); }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--gold); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Efektler ---------- */
.grad-text {
  background: linear-gradient(100deg, var(--g1) 0%, var(--g2) 30%, var(--g3) 65%, var(--g1) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
/* Açık temada turuncu ile camgöbeği arası bulanık görünmesin diye renkler OKLCH uzayında karışır. */
@supports (background: linear-gradient(in oklch, red, blue)) {
  [data-theme="light"] .grad-text { background-image: linear-gradient(100deg in oklch, var(--g1) 0%, var(--g2) 30%, var(--g3) 65%, var(--g1) 100%); }
}
@keyframes shimmer { to { background-position: -250% 0; } }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.aurora { position: absolute; border-radius: 999px; filter: blur(90px); pointer-events: none; }
.aurora.a1 { width: 620px; height: 620px; background: var(--glow-a); top: -260px; right: -140px; animation: drift-a 22s ease-in-out infinite alternate; }
.aurora.a2 { width: 520px; height: 520px; background: var(--glow-b); bottom: -260px; left: -120px; animation: drift-b 26s ease-in-out infinite alternate; }
.aurora.a3 { width: 420px; height: 420px; background: var(--glow-c); top: 30%; left: 40%; animation: drift-a 30s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate(-80px, 60px) scale(1.08); } }
@keyframes drift-b { to { transform: translate(90px, -50px) scale(1.12); } }

.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 0;
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; }
.btn-glow {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  color: var(--on-accent);
  box-shadow: 0 12px 34px -14px var(--accent-to);
}
.btn-glow:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 20px 48px -14px var(--accent-to); }
.btn-glow::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg); animation: shine 4s ease-in-out infinite;
}
@keyframes shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.btn-glass { background: var(--glass); border: 1px solid var(--glass-line); color: var(--ink); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn-glass:hover:not(:disabled) { background: var(--glass-2); border-color: var(--glass-line-2); }
.icon-btn {
  width: 44px; height: 44px; padding: 0; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--ink);
}
.icon-btn:hover { background: var(--glass-2); border-color: var(--glass-line-2); }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }

/* ---------- Form alanları ---------- */
.field {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink); font-size: 16px;
}
.field::placeholder { color: var(--faint); }
.field:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
textarea.field { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: 13.5px; color: var(--wrong); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--glass-line); background: var(--glass); }
.alert-ok { border-color: var(--right); }
.alert-error { border-color: var(--wrong); }

/* ---------- Rozet, çip, durum ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--glass); border: 1px solid var(--glass-line-2); color: var(--ink);
}
.badge-dot { position: relative; width: 8px; height: 8px; border-radius: 999px; background: var(--right); color: var(--right); }
.badge-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid currentColor; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); font-size: 14px; font-weight: 600; }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--glass); border: 1px solid var(--glass-line); }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.st-ok { color: var(--right); } .st-warn { color: var(--gold); } .st-bad { color: var(--wrong); } .st-info { color: var(--cyan); } .st-mute { color: var(--faint); }

/* ---------- Üst çubuk ve alt bilgi ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--glass-line);
  background: var(--header);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFC145, #FF8A3D 55%, #2DD4E6);
}
.footer { border-top: 1px solid var(--glass-line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Giriş alanı (hero) ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(56px, 10vw, 120px) 0 clamp(64px, 10vw, 128px); }
/* Arka plan ışıkları bölüm sonunda yumuşakça kaybolur, keskin çizgi oluşmaz. */
.hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero-in { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-title { margin: 0; font-size: clamp(44px, 7.4vw, 96px); text-wrap: balance; }
.hero-title span { display: block; }
.hero-title .grad-text { padding-bottom: .08em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 8px; border-radius: 20px; width: min(100%, 560px); }
.cd-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px; border-radius: 14px; }
.cd-cell:first-child { background: var(--glass-2); }
.cd-num { font-size: clamp(28px, 5vw, 44px); font-weight: 600; line-height: 1; }
.cd-lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); }

.hero-error { min-height: calc(100vh - 160px); display: flex; align-items: center; }
.hero-error .hero-in { gap: 18px; }
.error-code { font-size: clamp(88px, 16vw, 180px); line-height: .9; }
.error-title { margin: 0; font-size: clamp(32px, 5vw, 56px); }
.debug { width: 100%; max-height: 360px; overflow: auto; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--glass-line); font-size: 12.5px; white-space: pre-wrap; }

/* ---------- Kartlar ---------- */
.card { padding: 22px; border-radius: var(--radius-l); }

/* ---------- Telefon ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 var(--gutter); }
  .lead { font-size: 17px; }
  .topbar-in { height: 60px; }
  .brand-name { font-size: 18px; }
  .cd-cell { padding: 12px 2px; }
  .aurora.a1 { width: 380px; height: 380px; }
  .aurora.a2 { width: 340px; height: 340px; }
  .aurora.a3 { display: none; }
}

/* ---------- Hesap ekranları (giriş, kayıt, şifre) ---------- */
.auth {
  position: relative; isolation: isolate;
  min-height: calc(100vh - 160px);
  display: grid; place-items: center;
  padding: clamp(32px, 6vw, 72px) var(--gutter);
}
.auth-card { width: min(100%, 460px); padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-l); display: flex; flex-direction: column; gap: 22px; background: var(--window); border-color: var(--glass-line-2); box-shadow: 0 40px 100px -50px var(--shadow); }
.auth-head { display: flex; flex-direction: column; gap: 8px; }
.auth-head p { margin: 0; line-height: 1.6; }
.auth-title { margin: 0; font-size: clamp(32px, 5vw, 42px); line-height: 1.05; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; font-size: 14.5px; }
.auth-links a { color: var(--muted); text-decoration: none; }
.auth-links a:hover { color: var(--ink); }
.auth-links strong { color: var(--ink); }
.cta-col { display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--faint); }

.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; }
.hint { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--faint); }
.field[aria-invalid="true"] { border-color: var(--wrong); }
.field[readonly] { opacity: .75; }
.pw-wrap { position: relative; }
.pw-wrap .field { padding-right: 52px; }
.pw-toggle {
  position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--ink); background: var(--glass-2); }
.pw-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--gold); cursor: pointer; }
.check a { color: var(--ink); }
.faint { color: var(--faint); }
.btn-block { width: 100%; }
.static-field { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 1px dashed var(--glass-line-2); }

/* ---------- Bildirimler ---------- */
.flash-stack { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.alert { align-items: center; line-height: 1.55; font-size: 15px; }
.alert-dot { width: 9px; height: 9px; border-radius: 999px; flex: none; background: var(--cyan); align-self: center; }
.alert-ok .alert-dot { background: var(--right); }
.alert-warn { border-color: var(--gold); }
.alert-warn .alert-dot { background: var(--gold); }
.alert-error .alert-dot { background: var(--wrong); }
.notice-row { flex-wrap: wrap; }
.notice-text { flex: 1 1 260px; }

/* ---------- Üst çubuk eylemleri ---------- */
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.inline-form { display: inline-flex; margin: 0; }

/* ---------- Panel sayfaları ---------- */
.page { position: relative; isolation: isolate; padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); }
.page-in { display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; flex-direction: column; gap: 8px; }
.page-head p { margin: 0; }
.page-title { margin: 0; font-size: clamp(34px, 5vw, 52px); }
.back-link { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.back-link:hover { color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.card { display: flex; flex-direction: column; gap: 12px; }
.card h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.025em; line-height: 1.2; }
.card p { margin: 0; line-height: 1.6; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.card-link { text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.card-link:hover { border-color: var(--glass-line-2); transform: translateY(-2px); }
.card-feature { border-color: var(--glass-line-2); background: var(--window); }
.small { font-size: 13px; }
.strong { font-weight: 700; }

.device-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--glass-line); }
.device-icon { width: 40px; height: 40px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--glass-2); color: var(--muted); }
.device-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.device-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.device-name { font-weight: 700; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.device-all { padding-top: 14px; border-top: 1px solid var(--glass-line); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 20px; }
.kpi-num { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.03em; line-height: 1.1; }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -8px; }
.tbl { width: 100%; min-width: 640px; border-collapse: collapse; }
.tbl th { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--glass-line); white-space: nowrap; }
.tbl td { padding: 12px 8px; border-bottom: 1px solid var(--glass-line); font-size: 14px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }

@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .auth { padding: 24px var(--gutter) 40px; place-items: start center; }
  .topbar-actions .btn-sm { padding: 0 12px; }
  .device-row { flex-wrap: wrap; }
}

/* ---------- Hareketi azaltmak isteyenler ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =================================================================
 * Adım 3 · Yönetim paneli, içerik ekranları, yasal sayfalar
 * ================================================================= */

.ico-svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
code { font-family: var(--mono); font-size: .9em; padding: 1px 5px; border-radius: 6px; background: var(--glass-2); }
.alert a { color: var(--ink); text-underline-offset: 3px; }
.logo-custom { background: transparent; overflow: hidden; }
.logo-custom img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Duyuru şeridi ---------- */
.announce { background: linear-gradient(90deg, var(--accent-from), var(--accent-to)); color: var(--on-accent); font-size: 14px; font-weight: 700; }
.announce-in { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding-top: 8px; padding-bottom: 8px; text-align: center; text-decoration: none; line-height: 1.4; }
.announce-arrow { transition: transform .2s ease; }
a.announce-in:hover .announce-arrow { transform: translateX(3px); }
.footer-legal { width: 100%; font-size: 13px; }

/* ---------- Yakında sayfasında SSS ---------- */
.faq-section { padding: 0 0 clamp(56px, 8vw, 104px); }
.faq-wrap { display: flex; flex-direction: column; gap: 20px; }
.faq-title { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq-item { border-radius: 18px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; font-weight: 700; font-size: 16.5px; line-height: 1.45; list-style: none; border-radius: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 22px; height: 22px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; border-radius: 2px; background: var(--gold); transition: transform .2s ease; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer { padding: 0 18px 18px; color: var(--muted); line-height: 1.65; }

/* ---------- Yasal metin sayfası ve metin biçimi ---------- */
.legal-wrap { max-width: 920px; }
.legal-title { font-size: clamp(30px, 4.6vw, 48px); }
.legal-page .prose { padding: clamp(20px, 4vw, 40px); }
.prose { display: block; font-size: 16.5px; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 1.6em 0 .5em; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; }
.prose h3, .prose h4 { margin: 1.4em 0 .4em; font-size: 18px; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 0 0 1em; padding: 10px 16px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--glass); }
.prose-sm { max-height: 560px; overflow: auto; font-size: 14.5px; }
mark.ph { padding: 0 3px; border-radius: 4px; background: color-mix(in srgb, var(--gold) 28%, transparent); color: var(--ink); }

/* ---------- Yönetim iskeleti ---------- */
.admin-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.admin { display: flex; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; width: 264px; flex: none;
  display: flex; flex-direction: column; gap: 8px; padding: 20px 14px;
  border-right: 1px solid var(--glass-line); background: var(--header);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 6px; text-decoration: none; }
.side-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.side-brand .brand-name { font-size: 19px; }
.side-tag { font-size: 10.5px; letter-spacing: .14em; color: var(--cyan); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.grp { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--faint); padding: 12px 12px 3px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 34px; padding: 0 12px; border-radius: 10px;
  color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s ease, color .2s ease;
}
a.nav-item:hover { background: var(--glass); color: var(--ink); }
.nav-item.on { background: var(--glass-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--glass-line-2); }
.nav-item .ico { display: inline-flex; width: 20px; justify-content: center; flex: none; }
.nav-item.on .ico { color: var(--gold); }
.nav-item.is-soon { opacity: .45; cursor: default; }
a.st { text-decoration: none; }
.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ftag { margin-left: auto; font-size: 10px; color: var(--faint); border: 1px solid var(--glass-line); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--glass-line); }
.side-user-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.side-user-text .strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.avatar {
  width: 38px; height: 38px; border-radius: 999px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to)); color: var(--on-accent); font-weight: 800; font-size: 13px;
}
.avatar-sm { width: 34px; height: 34px; font-size: 12px; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 32px;
  border-bottom: 1px solid var(--glass-line); background: var(--header); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.admin-top-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.crumb { font-size: 11.5px; letter-spacing: .04em; color: var(--faint); }
.admin-h1 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.03em; }
.admin-top .st { text-decoration: none; }
.admin-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 28px 32px 56px; }
.admin-content .flash-stack { padding-top: 0; }
.admin-intro { margin: 0; max-width: 62em; }
.admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 18px; align-items: start; }

.ib {
  width: 32px; height: 32px; padding: 0; flex: none; border-radius: 9px; border: 1px solid var(--glass-line); background: transparent;
  color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.ib:hover:not(:disabled) { color: var(--ink); border-color: var(--glass-line-2); }
.ib:disabled { opacity: .3; cursor: default; }
.ib.on { color: var(--gold); }
.ib-lg { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
.ib-danger:hover:not(:disabled), .btn-danger:hover:not(:disabled) { color: var(--wrong); border-color: var(--wrong); }

/* Telefonda alt menü ve tüm modüller */
.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  border-top: 1px solid var(--glass-line); background: var(--header); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding-bottom: env(safe-area-inset-bottom);
}
.bn-item {
  position: relative; flex: 1; min-width: 0; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: transparent; color: var(--faint); font: inherit; font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.bn-item.on { color: var(--gold); }
.bn-item.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--accent-from), var(--accent-to)); }
.sheet { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: var(--bg); padding: 18px var(--gutter) calc(40px + env(safe-area-inset-bottom)); }
.sheet[hidden] { display: none; }
.sheet-open { overflow: hidden; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 6px; }
.sheet-title { font-size: 26px; }
.sheet-group { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.sheet-group .grp { padding: 0; }
.sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sheet-item {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: 14px;
  border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; line-height: 1.3;
}
.sheet-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sheet-tag { font-size: 10.5px; font-weight: 500; color: var(--faint); }
.sheet-item.on { background: var(--glass-2); border-color: var(--gold); }
.sheet-item.on .ico-svg { color: var(--gold); }
.sheet-item.is-soon { opacity: .55; }
.sheet-foot { display: grid; gap: 10px; padding-top: 24px; }

@media (max-width: 900px) {
  .side { display: none; }
  .hide-sm { display: none !important; }
  .bottom-nav { display: flex; }
  .admin-top { padding: 12px var(--gutter); }
  .admin-h1 { font-size: 21px; }
  .admin-content { padding: 18px var(--gutter) calc(104px + env(safe-area-inset-bottom)); gap: 16px; }
}

/* ---------- Kartlar içi listeler ---------- */
.meter { height: 8px; border-radius: 999px; background: var(--glass-line); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-from), var(--accent-to)); }
.todo, .people, .versions { list-style: none; margin: 0; padding: 0; }
.todo-row, .person, .version-row { border-top: 1px solid var(--glass-line); }
.todo-row:first-child, .person:first-child, .version-row:first-child { border-top: 0; }
.todo-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.todo-dot { width: 24px; height: 24px; border-radius: 999px; border: 1.5px solid var(--glass-line-2); flex: none; display: inline-flex; align-items: center; justify-content: center; }
.todo-dot.is-ok { background: var(--right); border-color: var(--right); color: var(--on-accent); }
.todo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.4; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.person-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.person-text .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.version-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 11px 0; }
.version-date { width: 200px; }
.version-note { flex: 1 1 200px; min-width: 0; font-size: 14px; }
.summary-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.6; color: var(--muted); }
.summary-list li::marker { color: var(--gold); }

/* ---------- Sekmeler ---------- */
.tabs-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { height: 38px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; flex: none; color: var(--muted); font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--glass-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--glass-line-2); }

/* ---------- Site içeriği ---------- */
.content-grid { display: grid; grid-template-columns: minmax(250px, .85fr) minmax(0, 1.35fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.content-grid-2 { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.legal-grid { grid-template-columns: minmax(250px, .8fr) minmax(0, 2.2fr); }
.sec-list { padding: 14px; gap: 6px; }
.sec-list .card-head { padding: 4px 6px 4px; }
.sec-list .card-head h2 { font-size: 18px; }
.sec-rows { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.secrow { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 12px; border: 1px solid transparent; }
.secrow.on { background: var(--glass-2); border-color: var(--glass-line-2); }
.secname { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 4px 6px; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.secname.off { color: var(--faint); }
.secmeta { font-size: 11px; font-weight: 500; }
.st-dot-only { width: 12px; height: 12px; padding: 0; border: 0; background: transparent; justify-content: center; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.form-actions-note { flex: 1 1 280px; margin: 0; }
.preview-col { display: flex; flex-direction: column; gap: 10px; }
.mini { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 20px; background: var(--bg-2); }
.mbar { padding: 8px 10px; border-radius: 9px; background: linear-gradient(90deg, var(--accent-from), var(--accent-to)); color: var(--on-accent); font-size: 11.5px; font-weight: 700; line-height: 1.4; }
.mbar.on { box-shadow: 0 0 0 2px var(--ink); }
.mhero { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--glass); }
.mhero.on { border: 1.5px solid var(--gold); }
.mhero-title { font-size: 20px; line-height: 1.05; }
.mhero-sub { font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.mhero-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.mbtn { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--glass-line-2); font-size: 11px; font-weight: 700; }
.mbtn-glow { background: linear-gradient(135deg, var(--accent-from), var(--accent-to)); border-color: transparent; color: var(--on-accent); }
.mblock { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 9px; border: 1px dashed var(--glass-line-2); }
.mblock.on { border: 1.5px solid var(--gold); box-shadow: 0 0 22px -12px var(--gold); }
.mblock-name { font-size: 10px; }
.mblock-title { font-size: 12.5px; font-weight: 700; }
.is-off { opacity: .45; }
.publish-card { gap: 12px; }
.sec-editor { scroll-margin-top: 90px; }
.legal-body { min-height: 380px; font-size: 14.5px; line-height: 1.65; }

.faq-editor { display: flex; flex-direction: column; gap: 12px; max-width: 1000px; }
.faq-row { flex-direction: row; gap: 14px; padding: 16px; border-radius: 18px; scroll-margin-top: 96px; }
.faq-n { width: 28px; flex: none; font-size: 22px; line-height: 48px; color: var(--gold); }
.faq-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.faq-q { font-weight: 700; }
.faq-tools { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Ayar formları ---------- */
.settings-form { display: flex; flex-direction: column; gap: 18px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 18px; align-items: start; }
.settings-card { gap: 18px; scroll-margin-top: 96px; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--glass-line); }
.save-bar {
  position: sticky; bottom: 16px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 12px;
  padding: 12px 14px 12px 18px; border-radius: 18px; background: var(--window); border-color: var(--glass-line-2); box-shadow: 0 24px 60px -30px var(--shadow);
}
.save-bar > .muted { margin-right: auto; }
.save-bar-gap { flex: 1; }
.req { color: var(--gold); }
select.field {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238089A6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
}
.field-sm { height: 36px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; }
.field-affix { position: relative; }
.field-affix .field { padding-left: 34px; }
.affix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--faint); pointer-events: none; }
.switch { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track { position: relative; width: 46px; height: 28px; flex: none; border-radius: 999px; border: 1px solid var(--glass-line-2); background: var(--glass-2); transition: background .2s ease, border-color .2s ease; }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: var(--muted); transition: transform .2s ease, background .2s ease; }
.switch input:checked + .switch-track { background: linear-gradient(135deg, var(--accent-from), var(--accent-to)); border-color: transparent; }
.switch input:checked + .switch-track .switch-knob { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--gold); outline-offset: 3px; }
.switch input[aria-invalid="true"] + .switch-track { border-color: var(--wrong); }
.switch-label { font-size: 15px; }
.field-bool .hint { margin-top: 2px; }
input[type="file"] { max-width: 100%; font-size: 14px; color: var(--muted); }
input[type="file"]::file-selector-button {
  margin-right: 10px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--glass-line-2);
  background: var(--glass-2); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.checker { background-color: var(--glass-2); background-image: conic-gradient(var(--glass-line) 25%, transparent 0 50%, var(--glass-line) 0 75%, transparent 0); background-size: 16px 16px; }
.img-field { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.img-preview {
  width: 88px; height: 88px; flex: none; border-radius: 14px; border: 1px solid var(--glass-line); overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background-color: var(--glass-2); background-image: conic-gradient(var(--glass-line) 25%, transparent 0 50%, var(--glass-line) 0 75%, transparent 0); background-size: 16px 16px;
}
.img-preview img { width: 100%; height: 100%; object-fit: contain; }
.img-controls { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.img-preview.is-empty { background: var(--glass); color: var(--faint); }
.file-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.file-btn { cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Görsel kütüphanesi ---------- */
.dropzone { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px; border: 1.5px dashed var(--glass-line-2); border-radius: 20px; background: transparent; transition: border-color .2s ease, background .2s ease; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--gold); background: var(--glass); }
.dropzone-in { flex: 1 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; cursor: pointer; }
.dropzone-in .ico-svg { color: var(--gold); margin-bottom: 4px; }
.dropzone-note { flex-basis: 100%; margin: 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.media-card { padding: 12px; gap: 10px; scroll-margin-top: 96px; }
.media-thumb {
  display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background-color: var(--glass-2); background-image: conic-gradient(var(--glass-line) 25%, transparent 0 50%, var(--glass-line) 0 75%, transparent 0); background-size: 16px 16px;
}
.media-thumb img { width: 100%; height: 100%; object-fit: contain; }
.media-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.media-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-usage { display: flex; flex-wrap: wrap; gap: 4px; }
.media-alt { display: flex; gap: 8px; }
.media-alt .field { flex: 1; min-width: 0; }

@media (max-width: 1240px) {
  .content-grid { grid-template-columns: minmax(240px, .9fr) minmax(0, 1.4fr); }
  .preview-col { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .content-grid, .content-grid-2, .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-n { display: none; }
  .faq-row { padding: 12px; gap: 10px; }
  .version-date { width: auto; }
  .save-bar { bottom: calc(76px + env(safe-area-inset-bottom)); padding: 10px; }
  .save-bar > .muted { display: none; }
  .save-bar .btn { flex: 1 1 auto; }
  .save-bar-gap { display: none; }
}
@media (max-width: 900px) and (min-width: 761px) {
  .save-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
