/* ==========================================================================
   ilge Academy — Tasarım sistemi
   Koyu sidebar + açık içerik + yeşil vurgu + yaşayan devre
   ========================================================================== */

:root {
  /* Marka */
  --primary-green: #43B063;
  --primary-hover: #389A55;
  --dark-green: #087A45;
  --deep-green: #003D2C;
  --sidebar: #061B19;
  --sidebar-2: #0B2623;
  --sidebar-text: #B9CCC7;

  /* Marka tonları (öğrenci paneli okul teması bunları yeniden renklendirir: src/lib/theme.js — değerler orada da aynı olmalı) */
  --brand-rgb: 67, 176, 99;
  --brand-soft: #8BEAB5;       --brand-soft-rgb: 139, 234, 181;
  --brand-bright: #3FDC86;
  --brand-2: #2EAF7D;          --brand-2-rgb: 46, 175, 125;
  --brand-3: #34BE6B;          --brand-3-rgb: 52, 190, 107;
  --brand-soft-2: #9FE3C4;
  --brand-pale: #C3EBD4;
  --brand-mid: #2F8F4E;
  /* Koyu zemin tonları (üst bar, devre zemini, kod alanı) */
  --ink: #061B19;              --ink-rgb: 6, 27, 25;
  --ink-2: #0B2623;
  --ink-3: #04130F;            --ink-3-rgb: 4, 19, 15;
  --ink-4: #0B382C;
  --ink-5: #104431;
  --ink-6: #041210;            --ink-6-rgb: 4, 18, 16;
  --ink-7: #0A1F1C;
  --ink-8: #07181A;
  --ink-9: #0E2A26;
  --ink-10: #1F4A42;
  --ink-line: #16312D;
  --ink-line-2: #1B3E38;

  /* Yüzeyler */
  --background: #F7F9F8;
  --surface: #FFFFFF;
  --surface-2: #F1F6F3;
  --tint: #EAF8F0;
  --tint-strong: #D3F2E0;

  /* Metin */
  --text: #102329;
  --muted: #5E6E72;           /* açık yeşil zeminlerde (surface-2, tint) de 4.5:1 kontrast */
  --subtle: #6C7C7F;          /* ikincil zaman / sayaç metinleri; beyaz zeminde ~4.3:1 */

  /* Çizgiler */
  --border: #E4EBE8;
  --border-strong: #D2DEDA;

  /* Durum (renk tek başına bilgi taşımaz; daima ikon + metinle) */
  --info: #1D6FB8;       --info-bg: #EAF3FB;
  --warning: #9A5B00;    --warning-bg: #FFF4E0;
  --danger: #B42318;     --danger-bg: #FDEDEC;
  --success: var(--dark-green); --success-bg: var(--tint);

  /* Ölçü */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 41, .04);
  --shadow: 0 1px 2px rgba(16, 35, 41, .04), 0 8px 24px -12px rgba(16, 35, 41, .10);
  --shadow-lg: 0 24px 48px -24px rgba(16, 35, 41, .25);
  --focus: 0 0 0 3px rgba(67, 176, 99, .35);

  --sidebar-w: 264px;
  --topbar-h: 72px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
::selection { background: var(--tint-strong); }

.i { display: inline-block; vertical-align: -.2em; width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-xs { width: 13px; height: 13px; }
.i-sm { width: 15px; height: 15px; }
.i-lg { width: 22px; height: 22px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

[hidden] { display: none !important; }
.sr-only { position: absolute; 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: 16px; top: -60px; z-index: 100; background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ Tipografi */
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
.h1 { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.h2 { font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.015em; }
.h3 { font-size: 17px; font-weight: 700; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 16px; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { font-weight: 700; }
.accent { color: var(--primary-green); }
.accent-dark { color: var(--dark-green); }
.mono { font-family: var(--font-mono); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
code { font-family: var(--font-mono); font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); }
.card-dark code, .report code { background: var(--ink-line); border-color: var(--ink-line-2); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ------------------------------------------------------------------ Kabuk */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--sidebar); color: var(--sidebar-text);
  padding: 18px 14px;
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: #1E3C37 transparent;
  z-index: 40;
}
/* ------------------------------------------------------------------ Marka logosu
   Tüm paneller ve web sitesi logoyu tek yardımcıdan <img> olarak basar (lib/brand.js → logo()).
   Yükseklik --brand-h ile bağlama göre ayarlanır; genişlik orana göre gelir, kapsayıcıdan taşmaz. */
.brand-img { display: block; flex: none; width: auto; max-width: 100%; height: var(--brand-h, 36px); object-fit: contain; object-position: left center; }
.brand-pic { display: block; flex: none; max-width: 100%; line-height: 0; }

/* Yan menü (Yönetim ve Öğretmen panelleri): koyu zemin, logo + panel adı */
.brand { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 4px 10px 20px; color: #fff; }
.brand-link { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: inherit; text-decoration: none; }
.brand .brand-img { --brand-h: 52px; }
.brand-sub { font-size: 11px; color: #7FA49B; letter-spacing: .04em; }

/* Sertifika doğrulama: açık zemin */
.cert-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cert-brand .brand-img { --brand-h: 42px; }

/* Yönetim > Sistem > Marka ve logo */
.brand-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.brand-slot { display: grid; gap: 12px; align-content: start; padding: 14px; border: 1px solid var(--border); border-radius: 14px; }
.brand-slot-preview { display: grid; place-items: center; height: 96px; padding: 14px; border-radius: 10px; }
.brand-slot-preview.is-light { background: #fff; border: 1px solid var(--border); }
.brand-slot-preview.is-dark { background: var(--ink); }
.brand-slot-preview .brand-img { --brand-h: 56px; object-position: center; }

.nav { display: grid; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6F948A; padding: 16px 12px 6px; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 11px;
  font-size: 14.5px; font-weight: 600; color: var(--sidebar-text);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-link .i { color: #88A9A1; transition: color .15s var(--ease); }
.nav-link:hover { background: rgba(var(--brand-rgb),  .08); color: #fff; }
.nav-link:hover .i { color: #C9F3DB; }
.nav-link.is-active { background: var(--primary-green); color: #fff; box-shadow: 0 6px 18px -8px rgba(var(--brand-rgb),  .7); }
.nav-link.is-active .i { color: #fff; }
.nav-link.is-active::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary-green); }
.nav-count { margin-left: auto; min-width: 22px; padding: 0 7px; height: 20px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.1); color: #D9EFE6; }
.nav-link.is-active .nav-count { background: rgba(255,255,255,.25); color: #fff; }
.nav-sep { height: 1px; background: var(--ink-line); margin: 10px 10px; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--ink-line); }
.sidebar-cta { margin: 16px 4px 4px; padding: 14px; border-radius: 14px; background: var(--sidebar-2); border: 1px solid var(--ink-line); }
.sidebar-cta p { font-size: 12.5px; color: #9EBDB5; margin: 4px 0 10px; }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.icon-btn.menu-btn { display: none; }
.search { position: relative; width: min(360px, 100%); }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.search input {
  width: 100%; height: 44px; padding: 0 16px 0 42px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
  font-size: 14px; transition: border-color .15s, background .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--subtle); }
.search input:hover { border-color: var(--border-strong); }
.search input:focus { outline: none; background: #fff; border-color: var(--primary-green); box-shadow: var(--focus); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 11px var(--font-body); color: var(--subtle); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; background: #fff; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--text);
  transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border); }
.icon-btn .dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary-green); box-shadow: 0 0 0 2px #fff; }
.icon-btn .count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--primary-green); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.topbar-sep { width: 1px; height: 28px; background: var(--border); margin: 0 8px; }
.user-btn { display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 5px; border-radius: 14px; border: 1px solid transparent; background: none; cursor: pointer; text-align: left; }
.user-btn:hover { background: var(--surface-2); border-color: var(--border); }
.user-btn .name { font-size: 14px; font-weight: 700; line-height: 1.2; }
.user-btn .role { font-size: 12px; color: var(--muted); line-height: 1.2; }

.dropdown { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden;
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility .15s;
}
.dropdown.is-open .menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; border: 0; background: none; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.menu-notif { width: min(380px, calc(100vw - 32px)); padding: 0; }
.menu-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.notif-list { max-height: 360px; overflow: auto; padding: 6px; }
.notif { display: flex; gap: 12px; padding: 10px; border-radius: 10px; }
.notif:hover { background: var(--surface-2); }
.notif .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--dark-green); flex: none; }
.notif.unread .t::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary-green); margin-left: 6px; vertical-align: middle; }
.notif .t { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.notif .b { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.content { width: 100%; max-width: 1360px; margin: 0 auto; padding: 32px var(--gutter) 64px; }
.with-panel { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.with-panel > * { min-width: 0; container-type: inline-size; }
.panel-col { position: sticky; top: calc(var(--topbar-h) + 24px); display: grid; gap: 20px; }
/* Geniş tablolu paneller (öğretmen, mentör): 1500 px altında yan sütun tablonun üstüne yan yana kartlar olarak geçer;
   tablolar yatay kaydırmasız tam genişlik kullanır. */
@media (max-width: 1500px) {
  .with-panel.panel-wraps { grid-template-columns: minmax(0, 1fr); }
  .with-panel.panel-wraps > .panel-col { order: -1; position: static; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
}

/* ------------------------------------------------------------------ Bölüm başlığı */
.section { margin-top: 48px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head .eyebrow { margin-bottom: 6px; display: block; }
.section-head p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head .h1 { margin-top: 8px; }
.page-head .lead { margin-top: 8px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--dark-green); }
.breadcrumb .i { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ Butonlar */
.btn {
  --bg: var(--surface); --fg: var(--text); --bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font-size: 14.5px; font-weight: 700; white-space: nowrap; cursor: pointer; user-select: none;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { --bg: var(--primary-green); --fg: #fff; --bd: var(--primary-green); box-shadow: 0 8px 20px -10px rgba(var(--brand-rgb),  .8); }
.btn-primary:hover { --bg: var(--primary-hover); --bd: var(--primary-hover); background: var(--bg); border-color: var(--bd); }
.btn-dark { --bg: var(--dark-green); --fg: #fff; --bd: var(--dark-green); }
.btn-dark:hover { background: #066637; border-color: #066637; }
.btn-soft { --bg: var(--tint); --fg: var(--deep-green); --bd: transparent; }
.btn-soft:hover { background: var(--tint-strong); border-color: transparent; }
.btn-ghost { --bg: transparent; --bd: transparent; }
.btn-danger-soft { --bg: var(--danger-bg); --fg: var(--danger); --bd: transparent; }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: .7; }
.btn .spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-icon { display: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.link { color: var(--dark-green); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ Chip / etiket */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--muted);
}
.chip .i { width: 14px; height: 14px; }
.chip-success { background: var(--success-bg); color: var(--success); }
.chip-info { background: var(--info-bg); color: var(--info); }
.chip-warning { background: var(--warning-bg); color: var(--warning); }
.chip-danger { background: var(--danger-bg); color: var(--danger); }
.chip-soft, .chip-brand { background: rgba(var(--brand-rgb), 0.12); color: var(--dark-green); border: 1px solid rgba(var(--brand-rgb), 0.25); }
.chip-dark { background: var(--sidebar); color: #CFEBDD; }
.chip-outline { background: #fff; border: 1px solid var(--border); color: var(--text); }
.chip-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--primary-green); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .2); }
.tag { display: inline-flex; padding: 3px 9px; border-radius: 7px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.price-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; padding: 5px 10px; border-radius: 9px; background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.price-tag.free { color: var(--dark-green); }
.price-tag.free::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--primary-green); }

/* ------------------------------------------------------------------ Kartlar */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.card-pad-lg { padding: 32px; }
.card-primary { box-shadow: var(--shadow); }
.card-mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.card-tint { background: var(--tint); border-color: transparent; }
.card-dark { background: var(--sidebar); color: #E4F2EC; border-color: var(--ink-line); }
.card-dark .muted { color: #93B2AA; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.divider { height: 1px; background: var(--border); margin: 20px 0; border: 0; }

/* İkon kutusu */
.ibox { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--dark-green); flex: none; }
.ibox-sm { width: 36px; height: 36px; border-radius: 10px; }
.ibox-lg { width: 56px; height: 56px; border-radius: 16px; }
.ibox-lg .i { width: 26px; height: 26px; }
.ibox-dark { background: var(--sidebar); color: var(--primary-green); }
.ibox-muted { background: var(--surface-2); color: var(--subtle); }

/* Avatar */
.avatar {
  --h: 150; display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  background: hsl(var(--h) 55% 90%); color: hsl(var(--h) 60% 24%); font-weight: 800; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px hsl(var(--h) 40% 80%);
}
.avatar-sm { width: 30px; height: 30px; font-size: 11px; }
.avatar-md { width: 40px; height: 40px; font-size: 13.5px; }
.avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.avatar-xl { width: 88px; height: 88px; font-size: 28px; }
.avatar-stack { display: flex; }
.avatar-stack > * { margin-left: -8px; box-shadow: 0 0 0 2px #fff; }
.avatar-stack > *:first-child { margin-left: 0; }

/* İlerleme çubuğu */
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-green), var(--brand-bright)); transition: width .6s var(--ease); }
.progress-thin { height: 6px; }
.card-dark .progress { background: var(--ink-line); }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center;
  padding: 48px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border);
}
.hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--brand-rgb), .10), transparent 65%); pointer-events: none; }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -.03em; margin: 18px 0 18px; }
.hero-title em { font-style: normal; color: var(--primary-green); display: block; }
.hero .lead { font-size: 17px; }
.hero-actions { margin-top: 28px; }
.hero-meta { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta .v { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.hero-meta .k { font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; z-index: 1; }

@container (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 40px; }
  .hero .circuit-scene { aspect-ratio: 16 / 7; }
}
@container (max-width: 560px) {
  .hero .circuit-scene { aspect-ratio: 5 / 4; }
}
@container (max-width: 520px) {
  .hero { padding: 26px 20px; }
  .scene-card.optional { display: none; }
}

/* Panel yanındaki dar sütunda ızgaralar kendi genişliğine göre uyarlanır */
@container (max-width: 960px) {
  .grid.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 560px) {
  .grid.grid-2, .grid.grid-3, .grid.grid-4 { grid-template-columns: minmax(0, 1fr); }
}
/* Sayaç kartları (card-mini) telefonda tek sütuna düşünce dört kart ilk ekranı kaplıyordu: iki sütunda kalır */
@media (max-width: 768px) {
  .grid.grid-4:has(> .card-mini) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Hero devre sahnesi */
.circuit-scene { position: relative; aspect-ratio: 5 / 4; border-radius: 24px; background: linear-gradient(160deg, #0B2521, var(--ink)); border: 1px solid var(--ink-line); overflow: hidden; padding: 28px; color: #E4F2EC; }
.circuit-scene svg.traces { position: absolute; inset: 0; width: 100%; height: 100%; }
.traces path { fill: none; stroke: var(--ink-line-2); stroke-width: 2; }
.traces path.lit { stroke: var(--primary-green); stroke-dasharray: 6 8; animation: flow 3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -56; } }
.scene-card { position: absolute; background: rgba(12, 38, 34, .92); border: 1px solid var(--ink-10); border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.scene-card .t { font-size: 13px; font-weight: 700; color: #fff; }
.scene-card .s { font-size: 12px; color: #93B2AA; }
.scene-node { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #133530; border: 2px solid #2A5A51; transform: translate(-50%, -50%); }
.scene-node.done { background: var(--primary-green); border-color: var(--primary-green); }
.scene-node.active { background: #fff; border-color: var(--primary-green); box-shadow: 0 0 0 6px rgba(var(--brand-rgb), .22); }

/* Bilgi kartları (hero altı) */
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.feature .h3 { font-size: 15.5px; margin-bottom: 3px; }
.feature p { font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------------------------ Ders kartı */
.course-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s; }
.course-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); transform: translateY(-2px); }
.cover { position: relative; aspect-ratio: 16 / 9; background: var(--tint); overflow: hidden; }
.cover > svg { width: 100%; height: 100%; }
img.cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Yönetim formu: görsel alanı (kurs kapak görseli) */
.img-field { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.img-field-preview { width: 240px; max-width: 100%; border-radius: 12px; border: 1px solid var(--border); display: grid; place-items: center; }
.img-field-preview > span { display: inline-flex; gap: 6px; align-items: center; }
.img-field-ctrl { flex: 1; min-width: 220px; display: grid; gap: 10px; }
.cover .price-tag { position: absolute; left: 12px; top: 12px; }
.cover .overlay-chip { position: absolute; left: 12px; bottom: 12px; }
.cover .tech { position: absolute; right: 12px; bottom: 12px; background: rgba(var(--ink-rgb),  .82); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; }
.fav-btn { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); color: var(--muted); transition: transform .15s, color .15s; }
.fav-btn:hover { color: var(--danger); transform: scale(1.06); }
.fav-btn[aria-pressed="true"] { color: #E0445A; }
.fav-btn[aria-pressed="true"] .i { fill: currentColor; }
.course-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.course-body .cat { font-size: 12px; font-weight: 700; color: var(--dark-green); letter-spacing: .02em; }
.course-title { font-size: 16px; font-weight: 800; line-height: 1.35; }
.course-title a:hover { color: var(--dark-green); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta .i { width: 15px; height: 15px; color: var(--subtle); }
.course-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.course-foot .price { font-weight: 800; font-size: 16px; }
.course-foot .price.free { color: var(--dark-green); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--text); }
.rating .i { color: #E8A317; fill: #E8A317; width: 15px; height: 15px; }

/* ------------------------------------------------------------------ Devre (ilerleme hattı) */
.circuit { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); padding-top: 8px; }
.circuit-track { position: absolute; top: 36px; left: calc(100% / var(--n, 4) / 2); right: calc(100% / var(--n, 4) / 2); height: 3px; background: var(--border); border-radius: 3px; }
.circuit-track > span { display: block; height: 100%; background: var(--primary-green); border-radius: inherit; transition: width .8s var(--ease); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 8px; }
.step-node { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--border); color: var(--subtle); margin-bottom: 10px; }
.step-node .i { width: 22px; height: 22px; }
.step.done .step-node { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }
.step.active .step-node { background: var(--dark-green); border-color: var(--dark-green); color: #fff; box-shadow: 0 0 0 7px rgba(var(--brand-rgb),  .16); }
.step.locked { opacity: .7; }
.step-text { display: grid; justify-items: center; gap: 2px; }
.step-k { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.step.active .step-k { color: var(--dark-green); }
.step-t { font-size: 15px; font-weight: 800; }
.step-s { font-size: 13px; color: var(--muted); }
.step.active .step-s { color: var(--dark-green); font-weight: 700; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* Sıradaki adım kartı */
.next-step { position: relative; overflow: hidden; }
.next-step::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary-green); }
.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); font-size: 13.5px; font-weight: 600; }
.check-item .i { color: var(--subtle); }
.check-item.ok { background: var(--tint); border-color: transparent; color: var(--deep-green); }
.check-item.ok .i { color: var(--dark-green); }

/* Telemetri (koyu kart) */
.telemetry .metric { background: var(--ink-9); border: 1px solid var(--ink-line-2); border-radius: 14px; padding: 16px; }
.telemetry .metric .v { font-family: var(--font-display); font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--primary-green); }

/* ------------------------------------------------------------------ Sağ panel */
.panel-list a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; transition: background .15s; }
.panel-list a:hover { background: var(--surface-2); }
.panel-list .t { font-size: 14px; font-weight: 700; line-height: 1.25; }
.panel-list .s { font-size: 12.5px; color: var(--muted); }
.panel-list .chev { margin-left: auto; color: var(--subtle); }
.ring { --p: 50; --size: 76px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--primary-green) calc(var(--p) * 1%), var(--surface-2) 0); }
.ring::before { content: ''; grid-area: 1 / 1; width: calc(var(--size) - 16px); height: calc(var(--size) - 16px); border-radius: 50%; background: #fff; }
.ring > * { grid-area: 1 / 1; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.card-dark .ring { background: conic-gradient(var(--primary-green) calc(var(--p) * 1%), var(--ink-line) 0); }
.card-dark .ring::before { background: var(--sidebar); }

/* ------------------------------------------------------------------ Sekmeler / segment */
.segmented { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); flex-wrap: wrap; }
.segmented a, .segmented button { padding: 7px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--muted); border: 0; background: none; cursor: pointer; white-space: nowrap; }
.segmented a:hover, .segmented button:hover { color: var(--text); }
.segmented .is-active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.segmented .n { font-weight: 600; color: var(--subtle); margin-left: 4px; }

/* ------------------------------------------------------------------ Tablo */
.table-wrap { overflow-x: auto; position: relative; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 20px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #FBFDFC; }
.table .title { font-weight: 700; }
/* Toplu seçim kutuları tarayıcının 13 px varsayılanında kalıyordu (telefonda zor dokunuluyor); formlardaki 18 px ile aynı */
.table input[type="checkbox"] { width: 18px; height: 18px; margin: 0; vertical-align: middle; accent-color: var(--primary-green); }
/* Geniş tablo dizüstü ekranda yatay kayınca son sütundaki işlem düğmeleri görünür kalır */
.table-sticky-end th:last-child, .table-sticky-end td:last-child { position: sticky; right: 0; z-index: 1; background: var(--surface); box-shadow: -10px 0 12px -12px rgba(16, 35, 41, .35); }
.table-sticky-end thead th:last-child { background: var(--surface-2); }
/* Başlığın altındaki ikincil satır: tablolarda, liste satırlarında ve kartlarda aynı görünür */
.sub, .table .sub { font-size: 12.5px; color: var(--muted); }
.due-late { color: var(--warning); font-weight: 700; }
.score { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.score small { font-family: var(--font-body); font-size: 12px; color: var(--muted); font-weight: 600; }

/* Mobil liste kartları (tablo yerine) */
.list-cards { display: none; }

/* ------------------------------------------------------------------ Formlar */
.field { display: grid; gap: 7px; }
.label { font-size: 13.5px; font-weight: 700; }
.label .opt { color: var(--muted); font-weight: 600; }
.hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: #fff; font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: #B9CBC5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary-green); box-shadow: var(--focus); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-2); color: var(--subtle); cursor: not-allowed; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--danger); background: #FFFBFA; }
.field.has-error .input:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .18); }
.field-error { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--danger); font-weight: 600; }
.field-error .i { width: 16px; height: 16px; margin-top: 2px; }
.field.is-valid .input { border-color: var(--primary-green); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23657579' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.form-grid { display: grid; gap: 18px; }

/* ------------------------------------------------------------------ Uyarı / flash / boş durum */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 14px; border: 1px solid transparent; }
.alert .i { margin-top: 2px; }
/* Uyarının sağındaki işlem düğmesi metinle dikeyde ortalanır */
.alert > .btn { align-self: center; flex: none; }
/* Telefonda düğme metnin altına iner; metin dar bir sütuna sıkışmaz */
@media (max-width: 600px) {
  .alert:has(> .btn) { flex-wrap: wrap; }
  .alert:has(> .btn) > div { flex: 1 1 calc(100% - 34px) !important; }
  .alert > .btn { margin-left: 30px; align-self: flex-start; }
}
.alert-success { background: var(--success-bg); color: var(--deep-green); border-color: var(--brand-pale); }
.alert-info { background: var(--info-bg); color: #164E80; border-color: #CFE2F4; }
.alert-warning { background: var(--warning-bg); color: #7A4800; border-color: #F6DDB0; }
.alert-danger { background: var(--danger-bg); color: #8E1C13; border-color: #F5CAC6; }
.alert strong { display: block; }

.toast-wrap { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.toast { box-shadow: var(--shadow-lg); animation: toast-in .25s var(--ease); }
.toast.is-leaving { animation: toast-out .2s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }
.toast .close { margin-left: auto; background: none; border: 0; cursor: pointer; color: inherit; opacity: .6; padding: 0; }

.empty { text-align: center; padding: 56px 24px; display: grid; justify-items: center; gap: 10px; }
.empty .ibox { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 44ch; }

/* ------------------------------------------------------------------ Erişim ve sayfa hataları */
.error-page {
  display: grid;
  min-height: min(68vh, 700px);
  place-items: center;
  padding: clamp(20px, 5vw, 64px);
}
.error-card {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 820px);
  padding: clamp(36px, 7vw, 72px) clamp(22px, 6vw, 64px);
  overflow: hidden;
  text-align: center;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 0, rgba(var(--brand-rgb),  .09), transparent 54%),
    var(--surface);
  box-shadow: 0 22px 70px -48px rgba(var(--ink-rgb),  .45);
}
.error-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(var(--brand-rgb),  .16);
  border-radius: 24px;
  background: var(--tint);
  color: var(--deep-green);
}
.error-icon .i { width: 32px; height: 32px; }
.error-code {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}
.error-card h1 { margin: 12px 0 0; }
.error-message {
  max-width: 48ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.6;
}
.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.error-actions .btn { min-height: 52px; padding: 0 22px; }
@media (max-width: 520px) {
  .error-page { min-height: 60vh; padding: 20px 14px; }
  .error-card { border-radius: 22px; }
  .error-actions { width: 100%; }
  .error-actions .btn { width: 100%; }
}

/* ------------------------------------------------------------------ Filtre çubuğu (Dersler) */
.filters { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 99px; background: var(--tint); color: var(--deep-green); font-size: 13px; font-weight: 700; }
.filter-chip a { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.filter-chip a:hover { background: var(--tint-strong); }
.filter-chip .i { width: 13px; height: 13px; }

/* ------------------------------------------------------------------ Ders detayı */
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.buy-card { position: sticky; top: calc(var(--topbar-h) + 24px); overflow: hidden; }
.buy-card .price { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.outcomes li { display: flex; gap: 10px; font-size: 14.5px; }
.outcomes .i { color: var(--primary-green); margin-top: 3px; }
.module { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.module + .module { margin-top: 12px; }
.module summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 800; }
.module summary::-webkit-details-marker { display: none; }
.module summary .chev { margin-left: auto; transition: transform .2s var(--ease); color: var(--subtle); }
.module[open] summary .chev { transform: rotate(180deg); }
.module[open] summary { border-bottom: 1px solid var(--border); }
.lesson { display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: 14px; }
.lesson + .lesson { border-top: 1px dashed var(--border); }
.lesson .dur { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.lesson-toggle { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border-strong); background: #fff; display: grid; place-items: center; cursor: pointer; color: transparent; flex: none; transition: all .15s; }
.lesson-toggle:hover { border-color: var(--primary-green); }
.lesson-toggle.done { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }
.lesson-toggle .i { width: 14px; height: 14px; stroke-width: 3; }
.lesson-toggle:disabled { cursor: default; opacity: .6; }
.lesson.is-done .lt { color: var(--muted); }

/* ------------------------------------------------------------------ Paketler */
.pkg { position: relative; display: flex; flex-direction: column; gap: 16px; }
.pkg.is-highlight { border: 2px solid var(--primary-green); box-shadow: var(--shadow); }
.pkg .ribbon { position: absolute; top: -13px; left: 24px; }
.pkg .price { font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1; }
.pkg .old { text-decoration: line-through; color: var(--subtle); font-weight: 600; }
.pkg ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 5px 0; }
.pkg ul li .i { color: var(--primary-green); margin-top: 2px; }
.pkg-course { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; font-weight: 600; }
.pkg-course .i { color: var(--dark-green); }

/* ------------------------------------------------------------------ Atölyeler */
.ws { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.ws-date { text-align: center; border-radius: 16px; padding: 12px 6px; background: var(--tint); color: var(--deep-green); }
.ws-date .d { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1; }
.ws-date .m { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.ws.is-past .ws-date { background: var(--surface-2); color: var(--muted); }
.ws.is-past { opacity: .85; }
.seat-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.seat-bar .progress { width: 140px; }

/* ------------------------------------------------------------------ Stüdyo */
.studio-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 40px; border-radius: 24px; background: #fff; border: 1px solid var(--border); position: relative; overflow: hidden; }
.studio-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--brand-rgb), .09), transparent 65%); }
.hackathon { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; padding: 24px; }
.hackathon .cover { border-radius: 16px; aspect-ratio: 4 / 3; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.facts > div { padding: 14px 16px; }
.facts > div + div { border-left: 1px solid var(--border); }
.facts .k { font-size: 12.5px; color: var(--muted); }
.facts .v { font-weight: 800; font-size: 15.5px; }
.facts .v.accent { color: var(--dark-green); font-family: var(--font-display); font-weight: 600; }
.project-card .cover { aspect-ratio: 16 / 10; }
.project-card .cover .cat-chip { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.95); color: var(--text); font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.author { display: flex; align-items: center; gap: 10px; }
.author .n { font-size: 14px; font-weight: 700; line-height: 1.2; }
.author .r { font-size: 12.5px; color: var(--muted); }
.score-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; background: var(--tint); color: var(--deep-green); font-weight: 800; font-size: 13px; }
.score-pill .i { width: 14px; height: 14px; }
.score-pill.none { background: var(--surface-2); color: var(--muted); font-weight: 600; }
.engage { display: flex; gap: 8px; align-items: center; }
.engage-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.engage-btn:hover { border-color: var(--border-strong); color: var(--text); }
.engage-btn[aria-pressed="true"] { color: #D63A52; border-color: #F7C9D1; background: #FFF5F7; }
.engage-btn[aria-pressed="true"] .i { fill: currentColor; }
.engage-btn .i { width: 16px; height: 16px; }
.pop { animation: pop .3s var(--ease); }
@keyframes pop { 50% { transform: scale(1.18); } }

.comment { display: flex; gap: 12px; padding: 16px 0; }
.comment + .comment { border-top: 1px solid var(--border); }

/* ------------------------------------------------------------------ Rozetler */
.badge-tile { text-align: center; padding: 22px 16px; border-radius: 18px; border: 1px solid var(--border); background: #fff; display: grid; justify-items: center; gap: 6px; position: relative; }
.badge-medal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--dark-green); margin-bottom: 8px; }
.badge-medal .i { width: 28px; height: 28px; }
.badge-tile.earned .badge-medal { background: var(--primary-green); color: #fff; box-shadow: 0 0 0 6px var(--tint); }
.badge-tile.locked { background: var(--surface-2); }
.badge-tile.locked .badge-medal { background: #E6ECEA; color: var(--subtle); }
.badge-tile.locked .bt { color: var(--muted); }
.badge-tile.is-new { border: 2px solid var(--primary-green); }
.badge-tile.is-new .new { position: absolute; top: -11px; right: 12px; }
.badge-tile .bt { font-weight: 800; font-size: 14.5px; }
.badge-tile .bd { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.badge-state { margin-top: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; gap: 5px; align-items: center; }
.badge-state .i { width: 13px; height: 13px; }
.badge-state.ok { color: var(--dark-green); }
.badge-state.lock { color: var(--subtle); }
@media (prefers-reduced-motion: no-preference) {
  .badge-tile.is-new .badge-medal { animation: medal .6s var(--ease) .2s both; }
  @keyframes medal { from { transform: scale(.6) rotate(-20deg); opacity: 0; } }
}

/* Sertifika */
.cert { position: relative; overflow: hidden; }
.cert .code { font-family: var(--font-mono); font-weight: 700; font-size: 13px; }
.cert-visual { border-radius: 16px; border: 1px solid var(--border); background: linear-gradient(135deg, #fff, var(--tint)); padding: 22px; position: relative; overflow: hidden; }
.cert-visual::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 18px solid rgba(var(--brand-rgb), .12); }
.cert.locked .cert-visual { background: var(--surface-2); }

/* ------------------------------------------------------------------ Ödev detay + AI sonucu */
.req-list { display: grid; gap: 8px; }
.req { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: #fff; font-size: 14px; }
.req .rid { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--dark-green); background: var(--tint); padding: 2px 7px; border-radius: 6px; flex: none; margin-top: 1px; }
.req.pass { border-color: var(--brand-pale); background: #F7FDF9; }
.req.fail { border-color: #F6DDB0; background: #FFFCF6; }
.req .state { margin-left: auto; flex: none; }
.req .ev { font-size: 13px; color: var(--muted); margin-top: 3px; }

.rubric-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px 52px; gap: 14px; align-items: center; padding: 10px 0; }
.rubric-row + .rubric-row { border-top: 1px dashed var(--border); }
.rubric-row .w { font-size: 12px; color: var(--muted); font-weight: 600; }

.editor { border: 1px solid var(--ink-line-2); border-radius: 16px; overflow: hidden; background: var(--ink-7); }
.editor-tabs { display: flex; align-items: center; gap: 2px; padding: 6px 6px 0; background: var(--ink-8); border-bottom: 1px solid var(--ink-line); overflow-x: auto; }
.editor-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px 8px 12px; border-radius: 9px 9px 0 0; font: 600 12.5px var(--font-mono); color: #8FB2A9; background: transparent; border: 0; cursor: pointer; white-space: nowrap; }
.editor-tab.is-active { background: var(--ink-7); color: #E4F2EC; }
.editor-tab .x { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; opacity: .6; }
.editor-tab .x:hover { background: var(--ink-line); opacity: 1; }
.editor-tab .x .i { width: 12px; height: 12px; }
.editor-add { color: #8FB2A9; background: none; border: 0; padding: 8px 10px; cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.editor-add:hover { color: #fff; background: var(--ink-line); }
.editor-body { display: grid; grid-template-columns: 48px minmax(0, 1fr); max-height: 520px; overflow: auto; }
.editor-gutter { padding: 14px 10px 14px 0; text-align: right; font: 13px/1.65 var(--font-mono); color: #3F6A60; user-select: none; white-space: pre; background: var(--ink-7); }
.editor textarea { display: block; width: 100%; min-height: 320px; padding: 14px 16px 14px 8px; border: 0; resize: none; overflow: hidden; background: transparent; color: #DDEFE8; font: 13px/1.65 var(--font-mono); tab-size: 2; white-space: pre; overflow-wrap: normal; }
.editor textarea:focus { outline: none; box-shadow: none; }
.editor-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; background: var(--ink-8); border-top: 1px solid var(--ink-line); font: 600 12px var(--font-body); color: #7FA49B; }
.editor-name { background: transparent; border: 1px solid var(--ink-line-2); color: #E4F2EC; border-radius: 7px; padding: 3px 8px; font: 12px var(--font-mono); width: 170px; }
.editor-top { display: flex; align-items: center; gap: 8px; background: var(--ink-8); border-bottom: 1px solid var(--ink-line); }
.editor-top .editor-tabs { flex: 1; min-width: 0; border-bottom: 0; }
/* Kod çalıştırma: "Çalıştır" düğmesi ve sandbox'lı çalıştırma alanı (/kod-calistir) */
.editor-run { flex: none; display: inline-flex; align-items: center; gap: 6px; margin: 4px 8px 4px 0; padding: 7px 14px; border: 0; border-radius: 9px; background: var(--primary-green); color: #04140F; font: 700 13px var(--font-body); cursor: pointer; box-shadow: 0 4px 14px rgba(var(--brand-2-rgb),  .28); transition: transform .12s, background .15s; }
.editor-run:hover { background: #39C891; transform: translateY(-1px); }
.editor-run:focus-visible { outline: 2px solid var(--brand-soft-2); outline-offset: 2px; }
.editor-run.is-busy { background: #F0B429; box-shadow: 0 4px 14px rgba(240, 180, 41, .25); }
.editor-run.is-busy:hover { background: #F5C451; }
.run-fail { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 14px; color: #FFD8B0; background: #2A1A12; border-bottom: 1px solid #5A3A22; font-size: 13.5px; }
.run-fail .i { flex: none; margin-top: 2px; }

/* Ödev çalışma ekranı: 1 Kod · 2 Çıktı · 3 Animasyon (partials/task-panel.ejs, public/js/app.js).
   2 ve 3 sandbox'lı iframe'de (/kod-calistir). Yerleşim app.js'te genişliğe göre: odv--wide / odv--split / odv--tabs. */
.odv { --ws-h: clamp(480px, 74vh, 780px); display: grid; gap: 12px; }
.odv--wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.odv--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.odv--tabs { --ws-h: clamp(440px, 70vh, 680px); grid-template-columns: minmax(0, 1fr); gap: 8px; }
.odv-tabs { display: none; }
.odv--tabs .odv-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ink-8); }
.odv-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 8px; border: 0; border-radius: 9px; background: transparent; color: #8FB2A9; font: 700 13.5px var(--font-body); cursor: pointer; }
.odv-tabs button[aria-selected="true"] { background: var(--ink-line); color: #E4F2EC; }
.odv-tabs button:focus-visible { outline: 2px solid var(--brand-soft-2); outline-offset: 1px; }
.odv--tabs[data-tab="code"] .odv-run, .odv--tabs:not([data-tab="code"]) .odv-code { display: none; }
.odv-num { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: rgba(var(--brand-2-rgb),  .18); color: #39C891; font: 800 11.5px var(--font-mono); flex: none; }
.odv-code, .odv-run { height: var(--ws-h); min-width: 0; border: 1px solid var(--ink-line-2); border-radius: 16px; overflow: hidden; }
.odv-code { display: flex; flex-direction: column; background: var(--ink-7); }
.odv-head { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 8px 6px 10px; background: var(--ink-7); border-bottom: 1px solid var(--ink-line); color: #E4F2EC; }
.odv-head h3 { margin: 0; font-size: 14px; font-weight: 800; }
.odv-head .editor-run { margin: 0; }
.odv-icon { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--ink-10); background: var(--ink-9); color: #C9DDD6; cursor: pointer; }
.odv-icon:hover { border-color: var(--brand-2); color: #fff; }
.odv-icon:focus-visible { outline: 2px solid var(--brand-soft-2); outline-offset: 2px; }
.odv-code .editor { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 0; border-radius: 0; }
.odv-code [data-editor-panes] { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.editor-body { position: relative; }
/* Çalışan satır: kod animasyonu oynarken editörde kayan sarı şerit */
.editor-hl { position: absolute; left: 0; right: 0; pointer-events: none; background: rgba(255, 210, 63, .14); border-left: 3px solid #FFD23F; transition: top .18s ease; }
.odv-live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--ink-10); background: var(--ink-9); color: #C9DDD6; font: 700 12px var(--font-body); cursor: pointer; user-select: none; }
.odv-live input { width: 14px; height: 14px; margin: 0; accent-color: var(--brand-2); }
.odv-live:has(input:checked) { border-color: var(--brand-2); color: var(--brand-soft-2); }
.odv-live + .odv-icon { margin-left: 0; }
.odv-code .editor-body { flex: 1; min-height: 0; max-height: none; }
.odv-draft { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 8px 12px; background: #2A2512; border-top: 1px solid #5A4A22; color: #FFE7A6; font-size: 13px; }
.odv-draft .link { color: #FFD23F; font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.task-submit .odv-draft { border-radius: 10px; margin-top: 8px; border: 1px solid #5A4A22; }
.odv-run { display: flex; flex-direction: column; background: var(--ink-8); }
.odv-run .run-frame { flex: 1; min-height: 0; }
.odv-run iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--ink-8); }
.odv.is-full { position: fixed; inset: 0; z-index: 2000; padding: 10px; background: var(--ink-6); --ws-h: calc(100vh - 20px); }
.odv--tabs.is-full { --ws-h: calc(100vh - 76px); }
html.odv-full-open { overflow: hidden; }
.odv-video { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--tint); color: var(--text); text-decoration: none; transition: border-color .15s; }
.odv-video:hover { border-color: var(--primary-green); }
.odv-video-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-green); color: #fff; flex: none; }
.odv-video strong { display: block; font-size: 14.5px; }
.odv-video small { display: block; color: var(--muted); font-size: 12.5px; }
.odv-video > .i:last-child { margin-left: auto; color: var(--muted); flex: none; }
.odv-hint { margin-top: 10px; }
.odv-submit { display: grid; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.odv-extra summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); }
.odv-extra summary:hover { color: var(--text); }

.dropzone { border: 2px dashed var(--border-strong); border-radius: 14px; padding: 20px; text-align: center; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--primary-green); background: var(--tint); }
.dropzone input { display: none; }
.file-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--border); font: 600 12.5px var(--font-mono); }
.file-pill button { border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; padding: 2px; border-radius: 5px; }
.file-pill button:hover { background: var(--surface-2); color: var(--danger); }

/* AI değerlendirme durumu */
.ai-status { display: grid; gap: 16px; }
.ai-steps { display: grid; gap: 0; }
.ai-step { display: flex; gap: 14px; align-items: flex-start; position: relative; padding-bottom: 18px; }
.ai-step:last-child { padding-bottom: 0; }
.ai-step::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--border); }
.ai-step:last-child::before { display: none; }
.ai-step .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--subtle); border: 2px solid var(--border); z-index: 1; }
.ai-step .n .i { width: 16px; height: 16px; }
.ai-step.done .n { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }
.ai-step.done::before { background: var(--primary-green); }
.ai-step.active .n { background: #fff; border-color: var(--primary-green); color: var(--dark-green); box-shadow: 0 0 0 5px rgba(var(--brand-rgb), .15); }
.ai-step .t { font-weight: 800; font-size: 14.5px; }
.ai-step .s { font-size: 13px; color: var(--muted); }

.result-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.score-ring { --p: 0; --c: var(--primary-green); width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0); transition: --p 1s; }
.score-ring::before { content: ''; grid-area: 1/1; width: 108px; height: 108px; border-radius: 50%; background: #fff; }
.score-ring .v { grid-area: 1/1; position: relative; text-align: center; line-height: 1; }
.score-ring .v b { font-family: var(--font-display); font-size: 36px; font-weight: 600; display: block; }
.score-ring .v small { font-size: 12px; color: var(--muted); font-weight: 700; }
.score-ring.tone-warning { --c: #E0A21A; }
.score-ring.tone-info { --c: #2F8FD8; }
.bullets li { display: flex; gap: 10px; padding: 6px 0; font-size: 14px; }
.bullets .i { margin-top: 3px; }
.bullets.plus .i { color: var(--primary-green); }
.bullets.arrow .i { color: var(--info); }
.report { background: var(--ink-7); color: #CDE4DC; border-radius: 12px; padding: 16px; font: 12.5px/1.6 var(--font-mono); white-space: pre-wrap; max-height: 360px; overflow: auto; }
.history a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.history a:hover { background: var(--surface-2); }
.history a.is-active { background: var(--tint); }

/* ------------------------------------------------------------------ Yönetim paneli */
.admin-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-layout > * { min-width: 0; container-type: inline-size; }
@container (max-width: 860px) { [data-stack-md] { grid-template-columns: minmax(0, 1fr) !important; } }
.admin-nav { position: sticky; top: calc(var(--topbar-h) + 24px); padding: 10px; display: grid; gap: 6px; max-height: calc(100vh - var(--topbar-h) - 48px); overflow-y: auto; }
.admin-group { display: grid; gap: 1px; }
.admin-group + .admin-group { border-top: 1px solid var(--border); padding-top: 6px; }
.admin-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); padding: 6px 10px 4px; }
.admin-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.admin-link:hover { background: var(--surface-2); color: var(--text); }
.admin-link.is-active { background: var(--tint); color: var(--deep-green); }
.admin-link.is-active .i { color: var(--dark-green); }
.admin-row { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--border); }
.admin-row:hover { background: #FBFDFC; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.admin-form > .field { grid-column: 1 / -1; }
.admin-form > .field.half { grid-column: auto; }
/* Ders formu: yerinde ödev kutusu ve animasyon seçimi */
.asg-box { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 18px 20px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); }
.asg-legend { display: inline-flex; align-items: center; gap: 8px; padding: 0 8px; font-weight: 800; font-size: 15px; }
.asg-legend .i { color: var(--primary-green); }
.asg-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.asg-fields > .field { grid-column: 1 / -1; }
.asg-fields > .field.half { grid-column: auto; }
.asg-anim-note { display: flex; align-items: center; gap: 6px; grid-column: 1 / -1; margin: 0; }
.asg-locked { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 14px; }
.asg-fields textarea.mono { white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.textarea.mono { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; padding: 4px 0; }
.check-row input { width: 18px; height: 18px; accent-color: var(--primary-green); flex: none; }
.multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; max-height: 260px; overflow: auto; }
.kpi { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin: 6px 0 2px; }
.kv { display: grid; gap: 10px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 700; text-align: right; }
.metric-dark { background: var(--ink-9); border: 1px solid var(--ink-line-2); border-radius: 12px; padding: 12px 14px; }
.metric-dark .v { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: #fff; }

/* Tek serili çubuk grafik: ince çubuk, 4px yuvarlak üst, 2px boşluk, üzerine gelince değer */
.bar-chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px; height: 180px; padding-bottom: 22px; border-bottom: 1px solid var(--border); position: relative;
  background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--surface-2) calc(25% - 1px) 25%); background-size: 100% calc(100% - 22px); background-repeat: no-repeat; }
/* Grafik kartı yan kartla aynı yüksekliğe uzadığında çubuklar boşluğu doldurur */
.chart-card { display: flex; flex-direction: column; }
.chart-card .bar-chart { flex: 1 1 auto; height: auto; min-height: 180px; }
.bar-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; cursor: default; outline: none; }
.bar { width: min(22px, 70%); background: var(--primary-green); border-radius: 4px 4px 0 0; transition: filter .15s; }
.bar.is-today { background: var(--dark-green); }
.bar-x { position: absolute; bottom: -22px; font-size: 11px; color: var(--muted); }
.bar-tip { position: absolute; bottom: calc(100% - 22px); left: 50%; transform: translate(-50%, 4px); background: var(--text); color: #fff; font-size: 12px; line-height: 1.35; padding: 6px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s, transform .15s; z-index: 2; text-align: center; }
.bar-col:hover .bar-tip, .bar-col:focus-visible .bar-tip { opacity: 1; transform: translate(-50%, 0); }
.bar-col:hover .bar, .bar-col:focus-visible .bar { filter: brightness(.9); }
.bar-col:focus-visible { box-shadow: var(--focus); border-radius: 6px; }

/* ------------------------------------------------------------------ Kimlik doğrulama: Tam Ekran Devre Teması */
.auth-body {
  background: var(--ink);
  min-height: 100vh;
  color: #E4F2EC;
  position: relative;
  overflow-x: hidden;
}

/* Tam ekran sabit devre arka planı */
.auth-circuit-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.auth-bg-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(1000px 650px at 20% 15%, rgba(var(--brand-rgb),  0.22), transparent 65%),
              radial-gradient(900px 600px at 85% 80%, rgba(var(--brand-rgb),  0.16), transparent 60%),
              radial-gradient(800px 500px at 50% 50%, rgba(var(--brand-rgb),  0.07), transparent 70%),
              linear-gradient(180deg, var(--ink), #03110E);
}
.auth-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 30%, transparent 85%);
}
.auth-traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Ana düzen: 2 sütun */
.auth {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

/* Sol panel */
.auth-side {
  background: transparent;
  color: #E4F2EC;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

/* Logo (sol panel, koyu zemin) */
.auth-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
  transition: opacity 0.2s;
}
.auth-brand:hover { opacity: 0.9; }
.auth-brand .brand-img { --brand-h: 60px; }

/* Sol panel içerik */
.auth-side-content {
  position: relative;
  max-width: 500px;
  margin: 32px 0;
}
.auth-side-pill {
  margin-bottom: 22px;
}
.auth-side-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 20px;
}
.auth-side-headline em {
  font-style: normal;
  background: linear-gradient(92deg, var(--primary-green) 10%, var(--brand-soft) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-side-desc {
  color: #B2CFC5;
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 440px;
}
.auth-side-desc strong {
  color: #fff;
  font-weight: 700;
}

/* Özellik listesi */
.auth-features {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.auth-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #CFE3DC;
  font-size: 15px;
  font-weight: 500;
}
.auth-feat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(var(--brand-rgb),  0.12);
  border: 1px solid rgba(var(--brand-rgb),  0.25);
  display: grid;
  place-items: center;
  color: var(--primary-green);
  flex: none;
  transition: background 0.2s, transform 0.2s;
}
.auth-features li:hover .auth-feat-icon {
  background: rgba(var(--brand-rgb),  0.22);
  transform: scale(1.06);
}

/* Sol alt telif */
.auth-side-foot {
  font-size: 12.5px;
  color: #7FA89D;
  margin: 0;
}

/* Sağ panel (Form Alanı) - BEYAZ YOK, DEVREYLE BÜTÜNLEŞİK */
.auth-main {
  display: grid;
  place-items: center;
  padding: 48px 32px;
  background: transparent;
  position: relative;
  z-index: 1;
}

/* Devre temalı cam kart */
.auth-card {
  width: min(440px, 100%);
  background: rgba(7, 26, 23, 0.78);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(var(--brand-rgb),  0.26);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(255, 255, 255, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
}

/* Giriş / Kayıt Sekmeleri (Switcher) */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(var(--ink-6-rgb),  0.7);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(var(--brand-rgb),  0.22);
  margin-bottom: 24px;
}
.auth-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #8CAFA3;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}
.auth-tab .i {
  width: 16px;
  height: 16px;
}
.auth-tab:hover {
  color: #FFFFFF;
  background: rgba(var(--brand-rgb),  0.14);
}
.auth-tab.active {
  background: linear-gradient(135deg, rgba(var(--brand-rgb),  0.35), rgba(47, 143, 78, 0.45));
  color: #FFFFFF;
  border: 1px solid rgba(var(--brand-rgb),  0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Kart içi tipografi */
.auth-card .h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 6px;
}
.auth-card .muted {
  color: #92B5A8;
  font-size: 14px;
}
/* Koyu form kartında yardım metinleri açık yeşil-gri (genel --muted koyu zeminde okunmuyordu) */
.auth-card .hint { color: #8FB3A7; }
.auth-card .hint.is-error { color: #FF9C94; }
.auth-card .label .opt { color: #8FB3A7; }
.auth-card .label {
  color: #CFE3DC;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.auth-card .link {
  color: var(--primary-green);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.auth-card .link:hover {
  color: var(--brand-soft);
  text-decoration: underline;
}

/* Kart içi form inputları: Koyu devre teması */
.auth-card .input,
.auth-card .select,
.auth-card .textarea {
  background: rgba(var(--ink-6-rgb),  0.82);
  border: 1px solid rgba(var(--brand-rgb),  0.28);
  border-radius: 12px;
  color: #FFFFFF;
  padding: 12px 14px;
  font-size: 14.5px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.auth-card .input:hover,
.auth-card .select:hover {
  border-color: rgba(var(--brand-rgb),  0.45);
  background: rgba(var(--ink-6-rgb),  0.92);
}
.auth-card .input:focus,
.auth-card .select:focus,
.auth-card .textarea:focus {
  border-color: var(--primary-green);
  background: rgba(4, 20, 17, 0.98);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb),  0.25), 0 0 18px rgba(var(--brand-rgb),  0.2);
  outline: none;
}
.auth-card .input::placeholder {
  color: rgba(146, 181, 168, 0.45);
}
.auth-card .input-group .btn {
  background: rgba(var(--ink-6-rgb),  0.82);
  border-color: rgba(var(--brand-rgb),  0.28);
  color: #7FA49B;
}
.auth-card .input-group .btn:hover {
  color: var(--primary-green);
  background: rgba(var(--brand-rgb),  0.12);
}
.auth-card .check-row {
  color: #CFE3DC;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.auth-card .check-row input[type="checkbox"] {
  accent-color: var(--primary-green);
  width: 17px;
  height: 17px;
}

/* Buton */
.auth-card .btn-primary {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--brand-mid) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 8px 24px -4px rgba(var(--brand-rgb),  0.55);
  transition: transform 0.18s, box-shadow 0.18s;
}
.auth-card .btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -4px rgba(var(--brand-rgb),  0.75);
}

/* Demo hesaplar kutusu */
.auth-card .demo-box {
  background: rgba(var(--brand-rgb),  0.08);
  border: 1px dashed rgba(var(--brand-rgb),  0.35);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  color: #CFE3DC;
}
.auth-card .demo-box strong {
  color: var(--primary-green);
  font-weight: 700;
}
.auth-card .demo-box code {
  background: rgba(0, 0, 0, 0.45);
  color: var(--brand-soft);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 12px;
  border: 1px solid rgba(var(--brand-rgb),  0.2);
}

/* Kart logosu (Masaüstünde sol panelde olduğu için gizli, mobilde görünür) */
.auth-card-brand {
  display: none;
  align-items: center;
  max-width: 100%;
  margin-bottom: 24px;
  text-decoration: none;
}
.auth-card-brand .brand-img { --brand-h: 48px; }

/* Uyarı kutuları (Koyu mod uyumlu) */
.auth-card .alert-danger {
  background: rgba(220, 53, 69, 0.16);
  border: 1px solid rgba(220, 53, 69, 0.38);
  color: #FFA8A8;
}
.auth-card .alert-success {
  background: rgba(var(--brand-rgb),  0.16);
  border: 1px solid rgba(var(--brand-rgb),  0.38);
  color: var(--brand-soft);
}
.auth-card .alert-info {
  background: rgba(13, 110, 253, 0.16);
  border: 1px solid rgba(13, 110, 253, 0.38);
  color: #9EC5FE;
}
.auth-card .field-error {
  color: #FFA8A8;
  font-size: 12.5px;
}

/* Mobil görünüm */
@media (max-width: 960px) {
  .auth {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-side {
    display: none;
  }
  .auth-card-brand {
    display: inline-flex;
  }
  .auth-main {
    padding: 32px 18px;
  }
  .auth-card {
    padding: 32px 22px;
  }
}




/* ------------------------------------------------------------------ Nasıl çalışır */
.how { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how::before { content: ''; position: absolute; top: 46px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--primary-green) 0 8px, transparent 8px 16px); opacity: .6; }
.how-step { position: relative; text-align: center; padding: 24px; }
.how-step .ibox { margin: 0 auto 16px; position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--background); }
.how-step .n { font-size: 12px; font-weight: 800; color: var(--dark-green); letter-spacing: .08em; }

/* ------------------------------------------------------------------ Mobil çekmece */
.backdrop { position: fixed; inset: 0; background: rgba(var(--ink-rgb),  .5); z-index: 35; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
body.nav-open .backdrop { opacity: 1; visibility: visible; }
.icon-btn.sidebar-close { display: none; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1280px) {
  .with-panel { grid-template-columns: minmax(0, 1fr) 300px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters .field:first-child { grid-column: 1 / -1; }
  .hackathon { grid-template-columns: 280px minmax(0, 1fr); }
}

@media (max-width: 1100px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-nav { position: static; max-height: none; display: flex; overflow-x: auto; gap: 4px; padding: 8px; scrollbar-width: thin; }
  .admin-group { display: flex; gap: 2px; }
  .admin-group + .admin-group { border-top: 0; padding-top: 0; border-left: 1px solid var(--border); padding-left: 6px; }
  .admin-label { display: none; }
  .with-panel { grid-template-columns: minmax(0, 1fr); }
  .panel-col { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero { grid-template-columns: minmax(0, 1fr); }
  .buy-card { position: static; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 40px; }
  .circuit-scene { aspect-ratio: 16 / 7; }
  .hackathon { grid-template-columns: minmax(0, 1fr); }
  .hackathon .cover { aspect-ratio: 16 / 7; }
  [data-stack-md] { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open { overflow: hidden; }
  .icon-btn.menu-btn { display: grid; }
  .icon-btn.sidebar-close { display: grid; margin-left: auto; color: #B9CCC7; }
  .sidebar-close:hover { background: var(--ink-line); border-color: transparent; }
  .nav-link.is-active::before { display: none; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; --topbar-h: 64px; }
  body { font-size: 14.5px; }
  .content { padding-top: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .grid-auto { grid-template-columns: minmax(0, 1fr); }
  .panel-col { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 28px 22px; border-radius: 22px; }
  .circuit-scene { aspect-ratio: 5 / 4; }
  .hero-meta { gap: 18px; }
  .card-pad { padding: 20px; }
  .card-pad-lg { padding: 22px; }
  .topbar .user-btn .who, .topbar .user-btn > .i { display: none; }
  .topbar-sep { display: none; }
  .search kbd { display: none; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .outcomes { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .studio-hero { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .ws { grid-template-columns: 68px minmax(0, 1fr); }
  .ws > .ws-action { grid-column: 1 / -1; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .how::before { top: 40px; bottom: 40px; left: 50%; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--primary-green) 0 8px, transparent 8px 16px); }
  .how-step { background: var(--background); }
  .table-wrap.responsive { display: none; }
  .list-cards { display: grid; gap: 10px; }
  .result-hero { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .rubric-row { grid-template-columns: minmax(0, 1fr) 52px; }
  .rubric-row .progress { grid-column: 1 / -1; grid-row: 2; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .admin-form { grid-template-columns: minmax(0, 1fr); }
  .admin-form > .field.half { grid-column: 1 / -1; }
  .asg-fields { grid-template-columns: minmax(0, 1fr); }
  .asg-fields > .field.half { grid-column: 1 / -1; }
  .asg-box { padding: 14px; }
  .admin-row { padding: 12px 16px; }
  .auth-side { display: none; }
  .auth-main { place-items: start; padding: 40px 24px; }
  .toast-wrap { right: 16px; bottom: 16px; }
  /* Devre: dikey düzen */
  .circuit { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .circuit-track { display: none; }
  .step { flex-direction: row; text-align: left; align-items: center; gap: 14px; padding: 8px 0; }
  .step-node { margin: 0; width: 46px; height: 46px; }
  .step:not(:last-child)::after { content: ''; position: absolute; left: 22px; top: 54px; height: calc(100% - 46px); width: 3px; background: var(--border); border-radius: 3px; }
  .step.done:not(:last-child)::after { background: var(--primary-green); }
  .step-text { justify-items: start; }
}

@media (max-width: 480px) {
  .h1 { font-size: 26px; }
  .hero-title { font-size: 32px; }
  .btn-row > .btn { flex: 1 1 auto; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .page-head { margin-bottom: 20px; }
  .editor-body { grid-template-columns: 36px minmax(0, 1fr); }
  .segmented { width: 100%; }
  .segmented a, .segmented button { flex: 1; text-align: center; padding: 7px 8px; }
  .search { width: 100%; }
  .topbar { gap: 8px; }
}

@media (max-width: 380px) {
  .icon-btn { width: 38px; height: 38px; }
  .course-foot { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ Canlı ders, yoklama, ödeme */
.live-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; }
.live-row.is-past { background: #FBFDFC; }
.att-options { display: flex; flex-wrap: wrap; gap: 4px; border: 0; margin: 0; padding: 0; }
.att-opt { position: relative; cursor: pointer; }
.att-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.att-opt span { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border); background: #fff; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.att-opt:hover span { border-color: var(--border-strong); color: var(--text); }
.att-opt input:focus-visible + span { box-shadow: var(--focus); }
.att-opt input:checked + span { border-color: transparent; background: var(--surface-2); color: var(--text); }
.att-opt.tone-success input:checked + span { background: var(--success-bg); color: var(--success); }
.att-opt.tone-info input:checked + span { background: var(--info-bg); color: var(--info); }
.att-opt.tone-warning input:checked + span { background: var(--warning-bg); color: var(--warning); }
.bank-box { display: grid; gap: 10px; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.bank-box > div { display: grid; gap: 2px; }
.bank-box dt { font-size: 12px; color: var(--muted); }
.bank-box dd { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; word-break: break-all; }
.copy-btn { border: 1px solid var(--border); background: #fff; border-radius: 7px; width: 28px; height: 28px; display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); }
.copy-btn:hover { color: var(--dark-green); border-color: var(--primary-green); }
.step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--tint); color: var(--dark-green); font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.pay-tabs .segmented button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ================================================================ Video Modal Lightbox */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(var(--ink-rgb),  .85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.video-modal-overlay.is-open { opacity: 1; }
.video-modal-overlay[hidden] { display: none; }

.video-modal-box {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  transform: translateY(12px) scale(.97);
  transition: transform .25s var(--ease);
}
.video-modal-overlay.is-open .video-modal-box {
  transform: translateY(0) scale(1);
}

.video-modal-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-modal-body iframe,
.video-modal-body video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
  backdrop-filter: blur(4px);
}
.video-modal-close:hover { background: rgba(255,255,255,.3); }
.video-modal-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.video-modal-close .i { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ Mesajlaşma (/mesajlar) */
.msg-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.msg-list { overflow: hidden; }
.msg-convs { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; max-height: 62vh; overflow-y: auto; }
.msg-convs a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: inherit; text-decoration: none; }
.msg-convs a:hover { background: var(--surface-2); }
.msg-convs a.is-active { background: var(--tint); }
.msg-conv-main { display: grid; min-width: 0; flex: 1; }
.msg-conv-main .xs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-conv-meta { display: grid; justify-items: end; gap: 4px; }
.msg-thread { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 60vh; overflow: hidden; }
.msg-items { display: flex; flex-direction: column; gap: 10px; padding: 18px; max-height: 58vh; overflow-y: auto; background: var(--surface-2); }
.msg-bubble { max-width: min(78%, 560px); padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--border); align-self: flex-start; }
.msg-bubble p { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-bubble .xs { color: var(--muted); }
.msg-bubble.is-mine { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--deep-green, var(--ink-4)); border-color: transparent; color: #fff; }
.msg-bubble.is-mine .xs { color: rgba(255, 255, 255, .7); }
.msg-compose { display: flex; gap: 10px; align-items: flex-end; border-top: 1px solid var(--border); }
.msg-compose .textarea { flex: 1; min-height: 52px; }
@media (max-width: 860px) {
  .msg-layout { grid-template-columns: minmax(0, 1fr); }
  .msg-convs { max-height: 32vh; }
}

/* Bilgi listesi (Veli Paneli → öğrencimin bilgileri) */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px 20px; margin: 0; }
.info-grid dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.info-grid dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.child-sections { overflow-x: auto; flex-wrap: nowrap; }

/* ------------------------------------------------------------------ Kullanıcı olarak görüntüle şeridi (yönetici) */
.impersonation-bar { position: relative; z-index: 95; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; padding: 8px 16px; background: #92400E; color: #FFFFFF; font-size: 13px; }
.impersonation-text { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.impersonation-text strong { color: inherit; }
.impersonation-bar form { margin: 0; }
.impersonation-bar .btn { background: #FFFFFF; color: #7A3300; border-color: transparent; }

/* ------------------------------------------------------------------ İl → İlçe → Okul seçicisi
   Betik yoksa "okul adı" alanı her zaman görünür; betikle yalnızca "Okulum listede yok" seçilince açılır. */
.school-picker { display: grid; gap: 12px; }
.js .sp-other.is-hidden { display: none; }

/* ------------------------------------------------------------------ Başvuru sayfası: tür kartları */
.apply-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.apply-type { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--border); color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
.apply-type:hover { border-color: var(--primary-green); transform: translateY(-1px); box-shadow: var(--shadow); }
.apply-type strong { display: block; font-size: 15px; }
.apply-type small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.apply-type .apply-go { margin-left: auto; flex: none; color: var(--subtle); }
.apply-type[data-apply-type] .apply-go { opacity: 0; }
.apply-type.is-active { border-color: var(--primary-green); background: var(--tint); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),  .16); }
.apply-type.is-active .apply-go { opacity: 1; color: var(--dark-green); }

/* ------------------------------------------------------------------ Keşfet sayfası (/kesfet)
   Üst menüdeki "Keşfet" açılır pencere yerine tam sayfadır: koyu başlık kartı + bölüm kartları içinde döşemeler. */
.explore-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: end;
  padding: 34px 36px; border-radius: 26px; color: #CFE3DB;
  background: radial-gradient(640px 320px at 100% 0%, rgba(var(--brand-rgb),  .32), transparent 62%), linear-gradient(135deg, #0B3A2C, var(--ink) 70%); }
.explore-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse at 80% 0%, #000 15%, transparent 70%); }
.explore-hero > * { position: relative; }
.explore-hero .eyebrow { color: #7FE6AC; }
.explore-hero .h1 { color: #fff; margin: 8px 0 10px; }
.explore-hero .h1 em { font-style: normal; color: var(--primary-green); }
.explore-hero .lead { color: #A9C8BF; margin: 0; }
.explore-search { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.explore-search:focus-within { border-color: var(--primary-green); background: rgba(255, 255, 255, .12); }
.explore-search > .i { color: var(--brand-soft); flex: none; }
.explore-search input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; color: #fff; font-size: 15px; }
.explore-search input::placeholder { color: rgba(255, 255, 255, .6); }
.explore-search input:focus { outline: none; }
.explore-sections { display: grid; gap: 20px; margin-top: 24px; }
.explore-section { padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.explore-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.explore-section-head .h3 { margin: 0; }
.explore-section-head p { margin: 2px 0 0; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.explore-tile { position: relative; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid transparent; color: var(--text);
  transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease); }
.explore-tile:hover { background: var(--surface); border-color: var(--primary-green); transform: translateY(-2px); box-shadow: var(--shadow); }
.explore-tile .ibox { flex: none; }
.explore-tile-text { display: grid; gap: 2px; min-width: 0; }
.explore-tile-text strong { font-size: 14.5px; }
.explore-tile-text small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.explore-badge { margin-left: auto; flex: none; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--deep-green); font-size: 12px; font-weight: 800; white-space: nowrap; }
.explore-go { flex: none; color: var(--subtle); transition: transform .15s var(--ease), color .15s var(--ease); }
.explore-badge + .explore-go { margin-left: 4px; }
.explore-tile-text + .explore-go { margin-left: auto; }
.explore-tile:hover .explore-go { color: var(--dark-green); transform: translateX(3px); }
@media (max-width: 1024px) { .explore-sections { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .explore-hero { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; border-radius: 22px; }
  .explore-grid { grid-template-columns: minmax(0, 1fr); }
  .explore-section { padding: 18px 16px; }
}

/* ---------------------------------------------------------------- Güvenlik: şifre gücü, doğrulama sorusu, hareketsizlik uyarısı */
.pw-meter { height: 6px; border-radius: 999px; background: var(--surface-2, #EEF2F0); overflow: hidden; margin-top: 8px; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--danger, #D64545); transition: width var(--duration-fast, .2s) ease, background-color var(--duration-fast, .2s) ease; }
.pw-meter[data-level="2"] span { background: var(--warning, #E8A317); }
.pw-meter[data-level="3"] span { background: #7CB342; }
.pw-meter[data-level="4"] span { background: var(--primary-green, var(--primary-green)); }
.pw-meter-text { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-muted, #5B6B66); }
.captcha-field .captcha-q { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; letter-spacing: .02em; color: var(--text); }
.captcha-field .captcha-input { max-width: 160px; }
.idle-warn { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(440px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #0B2A24; color: #fff;
  box-shadow: 0 20px 48px -16px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .12); }
.idle-warn[hidden] { display: none; }
.idle-warn .i { flex: none; color: #F4C04E; }
.idle-warn p { margin: 0; font-size: 14px; line-height: 1.45; flex: 1; }
.idle-warn .btn { flex: none; }
@media (max-width: 768px) { .idle-warn { bottom: 84px; } }
/* Giriş / kayıt kartı koyu zeminli: gösterge izi ve soru metni açık renkte */
.auth-card .pw-meter { background: rgba(255, 255, 255, .14); }
.auth-card .pw-meter-text { color: #A9C7BC; }
.auth-card .captcha-field .captcha-q { color: #fff; }

/* ---------------------------------------------------------------- Öğrenci vitrini: çalışma önizlemesi (kart, onay ekranı, ayrıntı) */
.wk-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: hsl(var(--h, 160) 45% 14%); isolation: isolate; }
.wk-media > img, .wk-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-smooth-out, ease); }
.wk-art { position: absolute; inset: 0; background: radial-gradient(120% 90% at 15% 0%, hsl(var(--h, 160) 75% 48% / .55), transparent 60%), linear-gradient(140deg, hsl(var(--h, 160) 55% 22%), hsl(calc(var(--h, 160) + 40) 60% 10%)); }
.wk-art-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000, transparent); mask-image: radial-gradient(80% 70% at 50% 45%, #000, transparent); }
.wk-art-orb { position: absolute; width: 62%; aspect-ratio: 1; right: -12%; bottom: -34%; border-radius: 50%; background: radial-gradient(circle, hsl(calc(var(--h, 160) + 60) 85% 62% / .5), transparent 70%); }
.wk-art-ico { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border-radius: 24px; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wk-art-ico .i { width: 36px; height: 36px; }
.wk-type { position: absolute; z-index: 1; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff;
  background: rgba(var(--ink-3-rgb),  .62); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.wk-play { position: absolute; z-index: 1; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 11px; border-radius: 999px; font-size: 13px; color: #06231C;
  background: rgba(255, 255, 255, .94); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); transition: transform var(--duration-fast, .2s) var(--ease-smooth-out, ease); }
.wk-play .i { width: 16px; height: 16px; color: var(--primary-green, var(--primary-green)); }
.wk-play b { font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .wk-media > img, .wk-media > video, .wk-play { transition: none; } }

/* Metin / prompt ödevi: kod editörü yerine düz yazı alanı */
.editor.is-text { background: var(--surface); border-color: var(--border-strong, var(--border)); }
.editor.is-text .editor-top, .editor.is-text .editor-gutter { display: none; }
.editor.is-text .editor-body { grid-template-columns: minmax(0, 1fr); background: var(--surface); }
.editor.is-text textarea { min-height: 280px; padding: 18px 20px; color: var(--text); font: 16px/1.7 var(--font-body); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
.editor.is-text textarea::placeholder { color: var(--subtle, #9AA9A4); }
.editor.is-text .editor-foot { background: var(--surface-2); border-top-color: var(--border); color: var(--muted); }
.editor.is-text:focus-within { border-color: var(--primary-green); box-shadow: var(--focus); }

/* ------------------------------------------------------------------ Serbest teslim ödevi (task-panel, review-detail) */
.fs-pick { display: flex; align-items: stretch; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.fs-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fs-pick-btn { display: inline-flex; align-items: center; padding: 11px 16px; background: var(--surface); border-right: 1px solid var(--border); font-weight: 700; white-space: nowrap; }
.fs-pick-name { display: flex; align-items: center; min-width: 0; padding: 0 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-pick:hover .fs-pick-btn { background: var(--tint); }
.fs-pick:focus-within { outline: 2px solid var(--primary-green); outline-offset: 2px; }
.rt { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.rt:focus-within { border-color: var(--primary-green); box-shadow: var(--focus); }
.rt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.rt-bar button { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--text); font: 700 15px/1 Georgia, 'Times New Roman', serif; cursor: pointer; }
.rt-bar button:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.rt-bar button:focus-visible { outline: 2px solid var(--primary-green); outline-offset: 1px; }
.rt-hl { padding: 0 3px; background: #FFF176; }
.rt-size { height: 32px; padding: 0 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font: 600 13px var(--font-body); }
.rt-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--border); }
.rt-area { min-height: 200px; max-height: 520px; overflow: auto; padding: 14px 16px; font-size: 16px; line-height: 1.65; outline: none; overflow-wrap: anywhere; }
.rt-area:empty::before { content: attr(data-placeholder); color: var(--subtle, #9AA9A4); }
.rt-area ul, .rt-view ul { list-style: disc; padding-left: 22px; margin: 6px 0; }
.rt-area ol, .rt-view ol { list-style: decimal; padding-left: 22px; margin: 6px 0; }
.rt-area a, .rt-view a { color: var(--dark-green); text-decoration: underline; }
.rt-area mark, .rt-view mark { background: #FFF176; padding: 0 2px; }
.rt-view { font-size: 15.5px; line-height: 1.65; overflow-wrap: anywhere; }
.rt-view p { margin: 0 0 8px; }
.rt-s1 { font-size: 11px; } .rt-s2 { font-size: 14px; } .rt-s3 { font-size: 16px; } .rt-s4 { font-size: 18px; }
.rt-s5 { font-size: 24px; } .rt-s6 { font-size: 32px; } .rt-s7 { font-size: 40px; }
.rt-area font[size="2"] { font-size: 14px; } .rt-area font[size="3"] { font-size: 16px; } .rt-area font[size="4"] { font-size: 18px; }
.rt-area font[size="5"] { font-size: 24px; } .rt-area font[size="6"] { font-size: 32px; }
.fs-progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.fs-progress > span { display: block; width: 0; height: 100%; background: var(--primary-green); transition: width .2s ease; }
.fs-last { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.fs-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; min-width: 0; }
.fs-file span { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-file small { color: var(--muted); white-space: nowrap; }
.fs-file:hover { border-color: var(--primary-green); }
.rd-free { display: grid; gap: 12px; margin: 12px 0; }
.rd-free-file { display: grid; gap: 8px; }
.rd-free-file img, .rd-free-file video { display: block; max-width: 100%; max-height: 480px; border-radius: 12px; border: 1px solid var(--border); background: #000; object-fit: contain; }
.rd-free-file audio { width: 100%; }
.rd-free-desc { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.fs-req { color: #E5484D; }

/* ------------------------------------------------------------------ Ödev kartı (task-panel): öğrencinin ne yapacağı üstte açık ve net */
.task-brief { display: grid; gap: 16px; padding: 22px 24px; border-radius: 18px; background: linear-gradient(180deg, var(--tint), var(--surface) 70%); border: 1px solid var(--border); }
.task-brief-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.task-brief-ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-green); color: #fff; box-shadow: 0 10px 22px -12px rgba(var(--brand-rgb), .8); }
.task-brief-ic .i { width: 24px; height: 24px; }
.task-brief-titles { flex: 1; min-width: 220px; }
.task-brief-kicker { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-green); }
.task-brief-titles h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--text); overflow-wrap: anywhere; }
.task-brief-sub { margin: 6px 0 0; font-size: 16px; font-weight: 700; color: var(--text); }
.task-brief-chips { gap: 6px; }
.task-brief-label { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--dark-green); }
.task-brief-body { padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary-green); }
.task-brief-body .task-desc { font-size: 17px; line-height: 1.75; color: var(--text); }
.task-brief-body .task-desc + .task-desc { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.task-brief-body .task-desc h3, .task-brief-body .task-desc h4, .task-brief-body .task-desc h5 { margin: 14px 0 6px; font-size: 19px; color: var(--text); }
.task-brief-body .task-desc strong { color: var(--text); font-weight: 800; }
.task-brief-reqs ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.task-brief-reqs li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 15.5px; line-height: 1.5; }
.task-brief-reqs li .i { flex: none; margin-top: 3px; color: var(--primary-green); }
.task-answer-h { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 17px; font-weight: 800; color: var(--text); }
.task-answer-h .i { color: var(--primary-green); }
@media (max-width: 640px) { .task-brief { padding: 16px; } .task-brief-body { padding: 14px 16px; } .task-brief-body .task-desc { font-size: 16px; } }
/* Ödev açıklaması editörü (md-editor.js): biçim çubuğu ve "Öğrenci böyle görecek" önizlemesi */
.md-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; margin-bottom: -1px; border: 1px solid var(--border); border-radius: 12px 12px 0 0; background: var(--surface-2); }
.md-bar button { min-width: 34px; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--text); font: 600 14px var(--font-body); cursor: pointer; }
.md-bar button:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.md-bar button:focus-visible { outline: 2px solid var(--primary-green); outline-offset: 1px; }
.md-bar-hint { margin-left: auto; padding: 0 6px; font-size: 12px; color: var(--muted); }
textarea[data-md] { border-top-left-radius: 0; border-top-right-radius: 0; }
.md-preview { margin-top: 10px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--border-strong, var(--border)); border-left: 4px solid var(--primary-green); background: var(--surface); }
.md-preview-h { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dark-green); }
.md-preview .task-desc { font-size: 15.5px; }

/* ------------------------------------------------------------------ Yasal metin sayfaları (pages/legal.ejs) ve çerez bilgilendirmesi */
.ld-legal { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; padding-top: 28px; padding-bottom: 72px; }
.ld-legal-body { min-width: 0; padding: 28px 32px; border-radius: 20px; background: var(--surface, #fff); border: 1px solid var(--border, #E3EAE7); color: var(--text, #102329); }
.ld-legal-body .prose { font-size: 16px; line-height: 1.75; }
.ld-legal-body .prose h3 { margin: 0 0 12px; font-size: 24px; }
.ld-legal-body .prose h4 { margin: 22px 0 8px; font-size: 18px; }
.ld-legal-draft { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; background: #FFF7E6; border: 1px solid #F3D9A4; color: #8A5A00; font-size: 14px; font-weight: 700; }
.ld-legal-nav { position: sticky; top: 96px; display: grid; gap: 4px; padding: 16px; border-radius: 18px; background: var(--surface, #fff); border: 1px solid var(--border, #E3EAE7); }
.ld-legal-nav strong { padding: 4px 10px 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #5B6B66); }
.ld-legal-nav a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; color: var(--text, #102329); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.ld-legal-nav a:hover { background: var(--surface-2, #F3F6F5); }
.ld-legal-nav a[aria-current] { background: var(--tint, #EAF8F0); color: var(--dark-green, #087A45); }
@media (max-width: 900px) { .ld-legal { grid-template-columns: 1fr; } .ld-legal-nav { position: static; } .ld-legal-body { padding: 20px; } }
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; max-width: 760px; margin: 0 auto; padding: 14px 16px; border-radius: 16px; background: #0B1F1C; color: #DCEDE6; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); font-size: 14px; }
.cookie-note p { margin: 0; flex: 1; min-width: 220px; line-height: 1.5; }
.cookie-note a { color: #8BEAB5; text-decoration: underline; }
.cookie-note button { padding: 8px 18px; border: 0; border-radius: 10px; background: var(--primary-green, #43B063); color: #fff; font-weight: 800; cursor: pointer; }
.consent-field { display: grid; gap: 8px; }
.consent-field .check-row { align-items: flex-start; }
.consent-field .check-row input { margin-top: 3px; flex: none; }
.lg-list { display: grid; gap: 18px; max-width: 1100px; }
.lg-note { max-width: 1100px; margin-bottom: 18px; }
.lg-card { padding: 20px 22px; scroll-margin-top: 90px; }
.lg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lg-head > div { flex: 1; min-width: 0; }
.lg-head .h3 { margin: 0; font-size: 17px; }
.lg-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--primary-green); }
.ld-legal-body .prose ul { list-style: disc; padding-left: 22px; margin: 8px 0; }
.ld-legal-body .prose ol { list-style: decimal; padding-left: 22px; margin: 8px 0; }
.ld-legal-body .prose li { margin: 4px 0; }
.ld-legal-body .prose p + p { margin-top: 10px; }
