/* ══════════════════════════════════════════════════════════════
   BursListele — Tasarım Sistemi
   Token mimarisi shadcn/21st.dev ile aynı isimlendirmeyi kullanır,
   böylece oradan bir bileşen elle port edilmek istendiğinde
   değişkenler birebir örtüşür.
   ══════════════════════════════════════════════════════════════ */

/* ─── 1. Tokenlar ─────────────────────────────────────────────── */
:root {
  color-scheme: light;

  --background:        #FFFFFF;
  --surface:           #FFFFFF;
  --surface-2:         #F5F5F5;
  --surface-3:         #EBEBEB;
  --foreground:        #0A0A0A;
  --muted-foreground:  #6B6B6B;
  --border:            #E5E5E5;
  --border-strong:     #C9C9C9;

  --primary:           #0A0A0A;
  --primary-hover:     #262626;
  --primary-fg:        #FFFFFF;
  --primary-soft:      #F0F0F0;
  --primary-soft-bd:   #DBDBDB;
  --glow:              #D4D4D4;
  --accent:            #0A0A0A;
  --ring:              #0A0A0A;

  /* Anlam artık renkle değil, kenarlık ağırlığı ve ters kontrastla taşınıyor */
  --flag-bg: #F5F5F5;  --flag-fg: #0A0A0A;  --flag-bd: #D4D4D4;   --flag-rule: #0A0A0A;
  /* Monokrom paletin tek iki istisnası: canlılık noktası ve "başvuramaz" ünlemi.
     Ayrı token olmaları kasıtlı — kaza eseri sızan renkten ayırt edilebilsinler. */
  --signal-live:  #16A34A;
  --signal-block: #DC2626;
  --ok-bg:   #EBEBEB;  --ok-fg:   #0A0A0A;  --ok-bd:   #D4D4D4;
  --warn-bg: #0A0A0A;  --warn-fg: #FFFFFF;  --warn-bd: #0A0A0A;
  --info-bg: #FAFAFA;  --info-fg: #262626;  --info-bd: #E5E5E5;
  --neut-bg: #FAFAFA;  --neut-fg: #4A4A4A;  --neut-bd: #E5E5E5;

  --shadow-1: 0 1px 2px rgba(10,10,10,.04), 0 8px 24px rgba(10,10,10,.06);
  --shadow-2: 0 2px 6px rgba(10,10,10,.07), 0 18px 44px rgba(10,10,10,.12);
  --shadow-pop: 0 8px 20px rgba(10,10,10,.11), 0 24px 60px rgba(10,10,10,.17);

  --r-card: 16px;
  --r: 10px;
  --r-pill: 999px;
  --header-h: 60px;

  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.34,1.4,.64,1);
  --font-head: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;

  --background:        #0A0A0A;
  --surface:           #171717;
  --surface-2:         #212121;
  --surface-3:         #2E2E2E;
  --foreground:        #FAFAFA;
  --muted-foreground:  #A1A1A1;
  --border:            #2A2A2A;
  --border-strong:     #454545;

  --primary:           #FAFAFA;
  --primary-hover:     #FFFFFF;
  --primary-fg:        #0A0A0A;
  --primary-soft:      rgba(255,255,255,.09);
  --primary-soft-bd:   rgba(255,255,255,.20);
  --glow:              #4A4A4A;
  --accent:            #FAFAFA;
  --ring:              #FAFAFA;

  --flag-bg: #1F1F1F;  --flag-fg: #FAFAFA;  --flag-bd: #3A3A3A;   --flag-rule: #FAFAFA;
  --signal-live:  #4ADE80;
  --signal-block: #F87171;
  --ok-bg:   #2E2E2E;  --ok-fg:   #FAFAFA;  --ok-bd:   #454545;
  --warn-bg: #FAFAFA;  --warn-fg: #0A0A0A;  --warn-bd: #FAFAFA;
  --info-bg: #1C1C1C;  --info-fg: #D4D4D4;  --info-bd: #333333;
  --neut-bg: #1C1C1C;  --neut-fg: #A1A1A1;  --neut-bd: #333333;

  --shadow-1: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.4);
  --shadow-2: 0 2px 6px rgba(0,0,0,.55), 0 18px 44px rgba(0,0,0,.5);
  --shadow-pop: 0 10px 30px rgba(0,0,0,.6), 0 30px 70px rgba(0,0,0,.55);
}

/* ─── 2. Temel ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* .spotlight/.sheet/.toast gibi sınıflar display tanımladığı için tarayıcının
   [hidden] kuralını ezerler — görünmez overlay tüm tıklamaları yutar. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 90px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  transition: background-color .22s var(--ease), color .22s var(--ease);
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--foreground); color: var(--background); }

/* ─── 3. Yardımcılar ──────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }

.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: 12px; top: -60px; z-index: 200;
  background: var(--primary); color: var(--primary-fg);
  padding: 10px 16px; border-radius: var(--r); font-weight: 700;
  text-decoration: none; transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico--sm { width: 16px; height: 16px; }

.grad { color: var(--foreground); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }

/* ─── 4. Header ───────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 14px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--foreground); flex: none; }
.brand__mark {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; min-width: 32px; min-height: 32px;
  border-radius: 9px;
  background: transparent;
  overflow: hidden;
}
.brand__logo-img { width: 32px; height: 32px; object-fit: cover; display: block; }
.brand__text { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand__accent { color: var(--primary); }

.omni {
  flex: 1; min-width: 0; max-width: 460px; margin-inline: auto;
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 8px 0 12px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface); color: var(--muted-foreground);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.omni:hover { border-color: var(--border-strong); box-shadow: var(--shadow-1); color: var(--foreground); }
.omni__label { flex: 1; text-align: left; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.omni__kbd {
  font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 7px; border-radius: 6px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--muted-foreground); flex: none;
}

.header__actions { display: flex; align-items: center; gap: 6px; flex: none; }

.iconbtn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r);
  color: var(--muted-foreground);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.iconbtn:hover { background: var(--surface-2); color: var(--foreground); }
.iconbtn.is-on { color: var(--primary); }

.badge {
  position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px;
  display: grid; place-items: center; padding: 0 4px;
  font-size: 10px; font-weight: 700; line-height: 1;
  background: var(--primary); color: var(--primary-fg);
  border-radius: var(--r-pill); border: 2px solid var(--background);
}

.ico--moon { display: none; }
[data-theme="dark"] .ico--sun { display: none; }
[data-theme="dark"] .ico--moon { display: block; }

/* ─── 4b. Radial glow arka plan ───────────────────────────────── */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 50% 18%, var(--glow) 0%, transparent 70%);
  opacity: .6;
  mix-blend-mode: multiply;
}
/* multiply siyah zeminde hiçbir şey yapmaz — koyu temada screen gerekir */
[data-theme="dark"] .bg-glow { mix-blend-mode: screen; opacity: .45; }

/* ─── 5. Hero ─────────────────────────────────────────────────── */
.hero { position: relative; padding: 54px 0 30px; text-align: center; overflow: hidden; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--muted-foreground);
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 16px; border-radius: var(--r-pill); box-shadow: var(--shadow-1);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--signal-live);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal-live) 25%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.hero__title { font-size: clamp(34px, 6.2vw, 58px); margin: 18px 0 12px; }
.hero__sub { max-width: 560px; margin: 0 auto; color: var(--muted-foreground); font-size: 17px; }

.searchbox {
  position: relative; display: flex; align-items: center;
  max-width: 620px; margin: 26px auto 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill); box-shadow: var(--shadow-1);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.searchbox:focus-within {
  border-color: color-mix(in srgb, var(--glow) 55%, transparent);
  box-shadow: var(--shadow-2), 0 0 0 4px color-mix(in srgb, var(--glow) 15%, transparent);
}
.searchbox__ico { margin-left: 20px; color: var(--muted-foreground); }
.searchbox__input {
  flex: 1; min-width: 0; height: 56px; padding: 0 12px;
  border: 0; background: none; font-size: 16px; outline: none;
}
.searchbox__input::placeholder { color: var(--muted-foreground); opacity: .85; }
.searchbox__input::-webkit-search-cancel-button { display: none; }
.searchbox__clear {
  display: grid; place-items: center; width: 34px; height: 34px; margin-right: 12px;
  border-radius: 50%; color: var(--muted-foreground); background: var(--surface-2);
}
.searchbox__clear:hover { color: var(--foreground); background: var(--surface-3); }

/* ─── 6. Bento şeridi ─────────────────────────────────────────── */
/* Hücre sayısına kendiliğinden uyum sağlar — bir hücre silinince boşluk kalmaz.
   Üç hücre varsa brief'teki asimetrik bento düzeni korunur. */
.bento { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 30px auto 26px; }
.bento:has(.bento__cell:nth-child(3)) { grid-template-columns: 1.6fr 1fr 1fr; }

.bento__cell {
  position: relative; overflow: hidden; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
  min-height: 118px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.bento__cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.bento__cell.is-on { border-color: color-mix(in srgb, var(--glow) 55%, transparent); box-shadow: var(--shadow-2), 0 0 0 3px color-mix(in srgb, var(--glow) 14%, transparent); }

.bento__num { font-family: var(--font-head); font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.bento__cell--lg .bento__num { font-size: 46px; color: var(--foreground); }
.bento__cell--urgent .bento__num { color: var(--foreground); }
.bento__cell--free .bento__num { color: var(--foreground); }
.bento__label { font-size: 14px; color: var(--muted-foreground); }
.bento__hint { margin-top: auto; font-size: 12.5px; font-weight: 600; color: var(--primary); }
.bento__bg {
  position: absolute; right: -16px; bottom: -16px; width: 96px; height: 96px;
  fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .07; pointer-events: none;
}

/* ─── 7. Filtre çubuğu ────────────────────────────────────────── */
.filterbar {
  position: sticky; top: var(--header-h); z-index: 40;
  padding: 12px 0;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-block: 1px solid var(--border);
}

.chiprow { position: relative; }
/* Şeridin devam ettiğini gösteren kaydırma ipucu */
.chiprow::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 46px;
  background: linear-gradient(to left, var(--background) 12%, transparent);
  pointer-events: none;
}

/* ── Tubelight şerit ──
   21st.dev tubelight-navbar'ın vanilla portu. framer-motion'un layoutId="lamp"
   spring'i yerine tek indicator elemanı + transform/width geçişi. */
.tubelight {
  overflow-x: auto; padding: 9px 0 3px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.tubelight::-webkit-scrollbar { display: none; }

.tubelight__bar {
  position: relative; width: max-content;
  display: flex; align-items: center; gap: 12px;
  padding: 4px; border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-1);
}

.chip {
  position: relative; z-index: 1;         /* lambanın üstünde kalsın */
  flex: none; height: 36px; padding: 0 18px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  color: var(--muted-foreground);
  background: none; border: 0;
  border-radius: var(--r-pill);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.chip:hover { color: var(--foreground); }
.chip[aria-pressed="true"] { color: var(--foreground); background: var(--surface-3); }

/* Lamba: aktif chip'in altındaki hafif dolgu + üstündeki ışık tüpü */
.lamp {
  position: absolute; top: 0; left: 0; height: 100%; width: 0;
  border-radius: var(--r-pill); z-index: 0; pointer-events: none;
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
  transition: transform .42s var(--spring), width .42s var(--spring);
}
.lamp__bar {
  position: absolute; top: -5px; left: 50%; translate: -50% 0;
  width: 32px; height: 4px; border-radius: 4px 4px 0 0;
  background: var(--foreground);
}
.lamp__glow { position: absolute; border-radius: var(--r-pill); background: color-mix(in srgb, var(--foreground) 22%, transparent); }
.lamp__glow--1 { width: 48px; height: 24px; top: -8px; left: -8px; filter: blur(6px); }
.lamp__glow--2 { width: 32px; height: 24px; top: -4px; left: 0;    filter: blur(6px); }
.lamp__glow--3 { width: 16px; height: 16px; top: 0;    left: 8px;  filter: blur(4px); }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.controls__group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.controls__group--end { margin-left: auto; }

.ctrl {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 13px;
  font-size: 13.5px; font-weight: 500; color: var(--muted-foreground);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  transition: all .18s var(--ease);
}
.ctrl:hover { color: var(--foreground); border-color: var(--border-strong); }
.ctrl__count {
  display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  font-size: 11px; font-weight: 700; border-radius: var(--r-pill);
  background: var(--primary); color: var(--primary-fg);
}
.ctrl--select {
  appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 15px;
}
[data-theme="dark"] .ctrl--select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A1A1A1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 13px;
  font-size: 13.5px; font-weight: 500; color: var(--muted-foreground);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  transition: all .18s var(--ease);
}
.toggle:hover { color: var(--foreground); border-color: var(--border-strong); }
.toggle[aria-pressed="true"] {
  color: var(--primary); font-weight: 600;
  background: var(--primary-soft); border-color: var(--primary-soft-bd);
}
.toggle[aria-pressed="true"] .ico { fill: color-mix(in srgb, var(--primary) 22%, transparent); }
#toggle-expired[aria-pressed="true"] .ico { fill: none; }

/* Açılır menü */
.menu { position: relative; }
.menu__panel {
  position: absolute; top: calc(100% + 7px); left: 0; z-index: 60;
  min-width: 232px; padding: 7px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 13px; box-shadow: var(--shadow-pop);
  animation: popIn .16s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.menu__list { display: flex; flex-direction: column; gap: 2px; }
.menu__list--wrap { flex-direction: row; flex-wrap: wrap; gap: 8px; }

.opt {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 10px; border-radius: 8px;
  font-size: 14px; text-align: left; color: var(--foreground);
  transition: background-color .14s var(--ease);
}
.opt:hover { background: var(--surface-2); }
.opt__box {
  display: grid; place-items: center; width: 18px; height: 18px; flex: none;
  border: 1.6px solid var(--border-strong); border-radius: 5px;
  color: transparent; transition: all .16s var(--ease);
}
.opt__box .ico { width: 13px; height: 13px; stroke-width: 3; }
.opt[aria-pressed="true"] .opt__box { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.opt__n { margin-left: auto; font-size: 12px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }

.menu__list--wrap .opt {
  width: auto; padding: 8px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface); font-size: 13.5px;
}
.menu__list--wrap .opt[aria-pressed="true"] {
  background: var(--primary-soft); border-color: var(--primary-soft-bd); color: var(--primary); font-weight: 600;
}
.menu__list--wrap .opt__box { display: none; }
.menu__list--wrap .opt__n { margin-left: 4px; }

/* Aktif filtre özeti */
.activefilters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.afchip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 29px; padding: 0 7px 0 12px;
  font-size: 12.5px; font-weight: 600;
  color: var(--primary); background: var(--primary-soft);
  border: 1px solid var(--primary-soft-bd); border-radius: var(--r-pill);
  transition: all .16s var(--ease);
}
.afchip:hover { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); }
.afchip .ico { width: 13px; height: 13px; opacity: .75; }
.afclear { font-size: 12.5px; font-weight: 600; color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.afclear:hover { color: var(--flag-fg); }

/* ─── 8. Sonuçlar ─────────────────────────────────────────────── */
.results { padding: 22px 0 60px; }
.resultcount { font-size: 14px; color: var(--muted-foreground); margin-bottom: 14px; }
.resultcount strong { color: var(--foreground); font-weight: 700; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(318px, 1fr)); }

/* Sonuç grid'i içinde grup ayıracı */
.griddiv {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 2px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-foreground);
}
.griddiv::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.griddiv__n {
  order: -1; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px;
  font-size: 11px; letter-spacing: 0; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--foreground);
}

.card {
  position: relative; display: flex; flex-direction: column; gap: 11px;
  padding: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  animation: cardIn .38s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 42ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.card.is-expired { opacity: .58; }
.card.is-expired:hover { opacity: .82; }
.card.is-pulsed { animation: pulseCard 1.5s var(--ease); }
@keyframes pulseCard {
  0%, 100% { box-shadow: var(--shadow-1); }
  25%, 60% { box-shadow: var(--shadow-2), 0 0 0 4px color-mix(in srgb, var(--glow) 30%, transparent); }
}

/* Kırmızı çizgiler — kartın en üstünde */
.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px 4px 8px; border-radius: 2px 7px 7px 2px;
  font-size: 12px; font-weight: 600; line-height: 1.35;
  color: var(--flag-fg); background: var(--flag-bg);
  border: 1px solid var(--flag-bd); border-left: 3px solid var(--flag-rule);
}
.flag .ico { width: 13px; height: 13px; flex: none; stroke: var(--signal-block); stroke-width: 2.4; }
.flag--more { color: var(--muted-foreground); background: var(--neut-bg); border-color: var(--neut-bd); }
.flag--more:hover { color: var(--foreground); }
.flags--none {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 7px;
  font-size: 12px; font-weight: 600; color: var(--ok-fg); background: var(--ok-bg); border: 1px solid var(--ok-bd);
}

.card__head { display: flex; align-items: flex-start; gap: 10px; }
.card__titles { flex: 1; min-width: 0; }
.card__title { font-size: 17px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 2px; }
.card__provider { font-size: 13.5px; color: var(--muted-foreground); font-weight: 500; }

.fav {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  margin: -8px -8px 0 0; border-radius: 50%; color: var(--muted-foreground);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.fav:hover { color: var(--flag-fg); background: var(--flag-bg); }
.fav[aria-pressed="true"] { color: var(--foreground); }
.fav[aria-pressed="true"] .ico { fill: var(--foreground); animation: pop .32s var(--ease); }
@keyframes pop { 0% { transform: scale(.6); } 55% { transform: scale(1.25); } 100% { transform: scale(1); } }

.card__summary {
  font-size: 14px; color: var(--muted-foreground); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  background: var(--neut-bg); color: var(--neut-fg); border: 1px solid var(--neut-bd);
}
.pill--free  { background: var(--ok-bg);   color: var(--ok-fg);   border-color: var(--ok-bd); }
.pill--money { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-bd); }
.pill--once  { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-bd); }

.card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 4px;
}
.amount { font-family: var(--font-head); font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.amount--unknown { font-family: var(--font-body); font-size: 13.5px; font-weight: 500; color: var(--muted-foreground); }
.deadline { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted-foreground); }

.urgency {
  display: inline-flex; align-items: center; gap: 5px; margin-left: auto;
  padding: 4px 11px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700;
  background: transparent; color: var(--foreground); border: 1.5px solid var(--foreground);
}
/* Sayfadaki tek dolu-siyah rozet — renksiz ortamda dikkat çekmesi buradan geliyor */
.urgency--hot { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-bd); }
.urgency--hot { animation: heat 1.9s ease-in-out infinite; }
@keyframes heat {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--foreground) 38%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--foreground) 0%, transparent); }
}
.urgency--unsure { background: var(--neut-bg); color: var(--muted-foreground); border: 1.5px dashed var(--border-strong); font-weight: 600; }
/* Henüz açılmamış başvuru: bekleyen durum, aciliyet değil */
.urgency--soon { background: var(--neut-bg); color: var(--muted-foreground); border-color: var(--neut-bd); }
.urgency--open { background: transparent; color: var(--muted-foreground); border: 1.5px solid var(--border-strong); }

/* Başvuru penceresi — kartın alt satırı */
.card__window {
  display: flex; padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.card__window .deadline { margin-left: 0; }
.urgency--dead { background: transparent; color: var(--muted-foreground); border: 1.5px dashed var(--border-strong); }

.card__actions { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 18px; border-radius: var(--r);
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn--primary {
  flex: 1;
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-1);
}
.btn--primary:hover { transform: translateY(-1px); background: var(--primary-hover); box-shadow: var(--shadow-2); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: var(--surface-2); color: var(--muted-foreground); border: 1px solid var(--border); }
.btn--ghost:hover { color: var(--foreground); border-color: var(--border-strong); }
.btn--icon { width: 42px; padding: 0; flex: none; }

/* ─── 9. Durumlar ─────────────────────────────────────────────── */
.skel {
  height: 250px; border-radius: var(--r-card);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 220% 100%; border: 1px solid var(--border);
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.state { text-align: center; padding: 54px 20px 40px; }
.state__art { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px;
  background: var(--surface-2);
  border: 1px solid var(--border); color: var(--foreground); }
.state__art .ico { width: 34px; height: 34px; }
.state__title { font-size: 21px; margin-bottom: 8px; }
.state__text { color: var(--muted-foreground); max-width: 460px; margin: 0 auto 20px; }
.state__actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.state__sub { margin: 36px 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); }
.state code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); padding: 3px 8px; border-radius: 6px; }
.state pre {
  text-align: left; max-width: 460px; margin: 0 auto 20px; padding: 14px 16px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow-x: auto;
}

/* ─── 10. Spotlight ───────────────────────────────────────────── */
.spotlight { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; padding: 12vh 16px 16px; }
.spotlight__backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  animation: fadeIn .2s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }

.spotlight__panel {
  position: relative; width: 100%; max-width: 620px; max-height: 70vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 18px; box-shadow: var(--shadow-pop);
  animation: spotIn .22s var(--ease);
}
@keyframes spotIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }

.spotlight__head { display: flex; align-items: center; gap: 11px; padding: 0 16px; height: 60px; border-bottom: 1px solid var(--border); color: var(--muted-foreground); }
.spotlight__input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16.5px; color: var(--foreground); }
.spotlight__input::placeholder { color: var(--muted-foreground); }
.kbdbtn { padding: 4px 9px; font-size: 11px; font-weight: 600; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted-foreground); }
.kbdbtn:hover { color: var(--foreground); }

.spotlight__body { flex: 1; overflow-y: auto; padding: 8px; overscroll-behavior: contain; }

.sgroup { padding: 10px 10px 5px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-foreground); }

.sres {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 11px; border-radius: 10px; text-align: left;
  transition: background-color .12s var(--ease);
}
.sres:hover, .sres.is-active { background: var(--primary-soft); }
.sres__ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--surface-2); color: var(--muted-foreground); }
.sres.is-active .sres__ico { background: var(--primary); color: var(--primary-fg); }
.sres__body { flex: 1; min-width: 0; }
.sres__title { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sres__sub { display: block; font-size: 12.5px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sres__tail { font-size: 11.5px; font-weight: 700; flex: none; color: var(--muted-foreground); }
.sres mark { background: color-mix(in srgb, var(--glow) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; font-weight: 700; }
.sres.is-active .sres__tail { color: var(--primary); }

.sempty { padding: 30px 16px; text-align: center; color: var(--muted-foreground); font-size: 14px; }

.spotlight__foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted-foreground); }
.spotlight__foot span { display: inline-flex; align-items: center; gap: 5px; }
.spotlight__foot kbd, .sres__tail kbd {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  font-family: var(--font-body); font-size: 11px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--border);
}

/* ─── 11. Mobil filtre paneli ─────────────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(3px); animation: fadeIn .2s var(--ease); }
.sheet__panel {
  position: relative; width: 100%; max-height: 86vh; display: flex; flex-direction: column;
  background: var(--surface); border-top: 1px solid var(--border);
  border-radius: 22px 22px 0 0; box-shadow: var(--shadow-pop);
  animation: sheetUp .26s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes sheetUp { from { transform: translateY(100%); } }

.sheet__head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; }
.sheet__grip { position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 38px; height: 4px; border-radius: 4px; background: var(--border-strong); }
.sheet__title { font-size: 18px; }
.sheet__body { flex: 1; overflow-y: auto; padding: 6px 16px 16px; overscroll-behavior: contain; }
.sheet__group + .sheet__group { margin-top: 20px; }
.sheet__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 10px; }
.sheet__foot { display: flex; gap: 9px; padding: 12px 16px; border-top: 1px solid var(--border); }
.sheet__foot .btn { flex: 1; }

/* ─── 12. Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 26px; translate: -50% 0; z-index: 150;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--foreground); color: var(--background);
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-pop);
  animation: toastIn .26s var(--ease);
  max-width: calc(100vw - 32px);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }

/* ─── 13. Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 26px 0; }
.footer__inner { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted-foreground); }

/* ─── 14. Duyarlı ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .bento, .bento:has(.bento__cell:nth-child(3)) { grid-template-columns: 1fr 1fr; }
  .bento:has(.bento__cell:nth-child(3)) .bento__cell--lg { grid-column: 1 / -1; }
}

@media (min-width: 861px) { .ctrl--sheet { display: none; } }
@media (max-width: 860px) {
  .menu { display: none; }
  .omni__label, .omni__kbd { display: none; }
  /* margin-inline:auto tabandan geliyordu ve butonu ortalıyordu */
  .omni { flex: none; width: 40px; max-width: none; height: 40px; justify-content: center; padding: 0; border-radius: var(--r); margin: 0 0 0 auto; }
  .header__inner { gap: 8px; }

  /* Sticky çubuk 3 satıra yayılıp ekranı yiyordu — tek yatay şeride topla */
  .controls { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .controls::-webkit-scrollbar { display: none; }
  .controls__group { flex-wrap: nowrap; }
  .controls__group--end { margin-left: 0; }
  .ctrl, .toggle { flex: none; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .hero { padding: 34px 0 22px; }
  .hero__sub { font-size: 15.5px; }
  .searchbox__input { height: 52px; }
  .bento { grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px auto 20px; }
  .bento__cell { min-height: 100px; padding: 15px 16px; }
  .bento__cell--lg .bento__num { font-size: 38px; }
  .bento__num { font-size: 27px; }
  .grid { grid-template-columns: 1fr; }
  .brand__text { display: none; }
  .spotlight { padding: 0; }
  .spotlight__panel { max-width: none; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .toast { bottom: 16px; }
}

/* ─── 15. Hareketi azalt ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .card:hover, .bento__cell:hover, .btn--primary:hover { transform: none; }
}

/* ─── 16. Katlanan kırmızı çizgi listesi ──────────────────────── */
.flags[data-collapsed="true"] span.flag:nth-of-type(n+3) { display: none; }
