/* ============================================================
   ABDESTLİ BİSİKLETLİLER · Dawn-to-first-light design system
   - Dark (default): pre-dawn blue hour
   - Light:          after first light · cream paper, deep indigo
   Theming via semantic CSS custom properties. No JS dependencies
   beyond the small theme toggle.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Hanken+Grotesk:wght@300;400;500;600;700&family=Amiri:wght@400;700&display=swap');

/* ---------- RAW PALETTE (do not use directly in components) - */
:root {
  /* Sky — deep indigo night warming to a horizon glow */
  --night-000: #06090f;
  --night-050: #0b1020;
  --night-100: #11172d;
  --night-200: #181f3a;
  --night-300: #222a4a;
  --night-400: #2e375b;
  --night-500: #404a72;
  --indigo-mute: #6a72a3;

  /* Dawn paper — after first light */
  --paper-000: #fffaf0;
  --paper-050: #faf3e2;
  --paper-100: #f1e9d2;
  --paper-200: #e6dcbf;
  --paper-300: #d3c8a6;
  --ink-900: #0b1020;
  --ink-700: #232a48;
  --ink-500: #4a527a;
  --ink-300: #7a82a8;

  /* First light */
  --saffron: #f0a830;
  --saffron-soft: #f6c46c;
  --saffron-deep: #c87a16;
  --ember: #e57a45;

  /* Cream */
  --cream: #f7f1e3;
  --cream-dim: #d8d2c2;
  --cream-mute: #9a957f;

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', 'Helvetica Neue', sans-serif;
  --font-arabic: 'Amiri', serif;

  /* Scale */
  --step--2: clamp(0.69rem, 0.66rem + 0.13vw, 0.75rem);
  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.92rem);
  --step-0:  clamp(1rem, 0.95rem + 0.22vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.13rem + 0.34vw, 1.41rem);
  --step-2:  clamp(1.44rem, 1.34rem + 0.5vw, 1.76rem);
  --step-3:  clamp(1.73rem, 1.58rem + 0.74vw, 2.2rem);
  --step-4:  clamp(2.07rem, 1.85rem + 1.1vw, 2.75rem);
  --step-5:  clamp(2.49rem, 2.16rem + 1.65vw, 3.43rem);
  --step-6:  clamp(2.99rem, 2.5rem + 2.4vw, 4.29rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Radii */
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 14px;
  --r-4: 22px;
  --r-pill: 999px;

  /* Layout */
  --max: 1240px;
  --col-pad: clamp(1rem, 1rem + 2vw, 2.5rem);
}

/* ============================================================
   SEMANTIC TOKENS · DARK (default — blue hour)
   ============================================================ */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg-page:        var(--night-050);
  --bg-deep:        var(--night-000);
  --bg-elev-1:      rgba(17, 23, 45, 0.85);
  --bg-elev-2:      rgba(17, 23, 45, 0.55);
  --bg-input:       rgba(17, 23, 45, 0.6);
  --bg-search:      rgba(17, 23, 45, 0.55);
  --bg-header:      linear-gradient(180deg, rgba(11,16,32,0.92) 0%, rgba(11,16,32,0.72) 100%);

  --fg:             var(--cream);
  --fg-dim:         var(--cream-dim);
  --fg-mute:        var(--cream-mute);

  --line:           rgba(106, 114, 163, 0.22);
  --line-soft:      rgba(106, 114, 163, 0.15);
  --line-dashed:    rgba(106, 114, 163, 0.20);

  --accent:         var(--saffron);
  --accent-soft:    var(--saffron-soft);
  --accent-deep:    var(--saffron-deep);
  --accent-glow:    rgba(240, 168, 48, 0.55);
  --accent-tint:    rgba(240, 168, 48, 0.08);
  --accent-tint-2:  rgba(240, 168, 48, 0.18);
  --accent-tint-3:  rgba(240, 168, 48, 0.35);

  --page-sky:
    radial-gradient(120% 70% at 50% 110%, rgba(240,168,48,0.18) 0%, rgba(240,168,48,0.06) 28%, transparent 60%),
    radial-gradient(80% 50% at 50% 100%, rgba(229,122,69,0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--night-000) 0%, var(--night-050) 40%, var(--night-100) 100%);

  --hero-sky:
    radial-gradient(120% 90% at 50% 130%, rgba(240,168,48,0.42) 0%, rgba(229,122,69,0.18) 20%, transparent 55%),
    radial-gradient(80% 60% at 50% 110%, rgba(240,168,48,0.18) 0%, transparent 60%),
    linear-gradient(180deg, var(--night-100) 0%, var(--night-050) 40%, #1a1428 100%);
  --hero-border:    rgba(240, 168, 48, 0.18);

  --aktif-fg: #b9d28a; --aktif-bg: rgba(185,210,138,0.10); --aktif-line: rgba(185,210,138,0.35);
  --pasif-fg: #6a72a3; --pasif-bg: rgba(106,114,163,0.10); --pasif-line: rgba(106,114,163,0.30);

  --ice-bg:
    radial-gradient(80% 60% at 0% 0%, rgba(229,122,69,0.18), transparent 60%),
    linear-gradient(180deg, #2a1820 0%, #1f1018 100%);
  --ice-edge:    #6b3a3c;
  --ice-fg:      #f3d7c7;
  --ice-fg-soft: rgba(243, 215, 199, 0.7);
  --ice-accent:  var(--ember);
  --ice-contact-bg: rgba(0, 0, 0, 0.25);
  --ice-contact-edge: rgba(229, 122, 69, 0.25);
  --ice-blood-bg: rgba(229, 122, 69, 0.08);
  --ice-blood-edge: rgba(229, 122, 69, 0.50);

  --med-bg:
    radial-gradient(circle at 30% 30%, rgba(240,168,48,0.18), transparent 60%),
    var(--night-200);
  --med-edge: rgba(240, 168, 48, 0.35);
  --med-shadow: inset 0 -8px 18px rgba(240,168,48,0.12);

  --mark-stroke: var(--saffron);

  --shadow-card-hover: 0 24px 40px -24px rgba(0,0,0,0.7);
  --shadow-hero:       0 30px 60px -30px rgba(0,0,0,0.6);

  --girih-opacity: 0.035;
}

/* ============================================================
   SEMANTIC TOKENS · LIGHT (after first light — cream paper)
   ============================================================ */
:root[data-theme="light"] {
  color-scheme: light;

  --bg-page:        var(--paper-050);
  --bg-deep:        var(--paper-000);
  --bg-elev-1:      rgba(255, 250, 240, 0.85);
  --bg-elev-2:      rgba(255, 250, 240, 0.65);
  --bg-input:       rgba(255, 252, 244, 0.85);
  --bg-search:      rgba(255, 252, 244, 0.75);
  --bg-header:      linear-gradient(180deg, rgba(250,243,226,0.92) 0%, rgba(250,243,226,0.72) 100%);

  --fg:             var(--ink-900);
  --fg-dim:         var(--ink-700);
  --fg-mute:        var(--ink-500);

  --line:           rgba(11, 16, 32, 0.12);
  --line-soft:      rgba(11, 16, 32, 0.08);
  --line-dashed:    rgba(11, 16, 32, 0.14);

  --accent:         var(--saffron-deep);
  --accent-soft:    var(--saffron);
  --accent-deep:    #9c5d10;
  --accent-glow:    rgba(200, 122, 22, 0.40);
  --accent-tint:    rgba(200, 122, 22, 0.08);
  --accent-tint-2:  rgba(200, 122, 22, 0.16);
  --accent-tint-3:  rgba(200, 122, 22, 0.32);

  --page-sky:
    radial-gradient(120% 60% at 50% 100%, rgba(240,168,48,0.22) 0%, rgba(229,122,69,0.10) 25%, transparent 60%),
    radial-gradient(80% 40% at 50% 100%, rgba(229,122,69,0.10) 0%, transparent 60%),
    linear-gradient(180deg, #fdf8ea 0%, var(--paper-050) 55%, #f2e6c8 100%);

  --hero-sky:
    radial-gradient(120% 90% at 50% 130%, rgba(240,168,48,0.45) 0%, rgba(229,122,69,0.22) 22%, transparent 60%),
    radial-gradient(80% 60% at 50% 110%, rgba(240,168,48,0.22) 0%, transparent 60%),
    linear-gradient(180deg, #fff6e0 0%, #fbeec8 60%, #f3d59a 100%);
  --hero-border:    rgba(200, 122, 22, 0.30);

  --aktif-fg: #4d7a1f; --aktif-bg: rgba(126,170,72,0.12); --aktif-line: rgba(126,170,72,0.45);
  --pasif-fg: #6a72a3; --pasif-bg: rgba(106,114,163,0.10); --pasif-line: rgba(106,114,163,0.35);

  --ice-bg:
    radial-gradient(80% 60% at 0% 0%, rgba(229,122,69,0.22), transparent 60%),
    linear-gradient(180deg, #fde7d6 0%, #f8d3bb 100%);
  --ice-edge:    #d99a76;
  --ice-fg:      #5b2f1c;
  --ice-fg-soft: rgba(91, 47, 28, 0.7);
  --ice-accent:  #b94e23;
  --ice-contact-bg: rgba(255, 250, 244, 0.7);
  --ice-contact-edge: rgba(185, 78, 35, 0.30);
  --ice-blood-bg: rgba(255, 250, 244, 0.6);
  --ice-blood-edge: rgba(185, 78, 35, 0.45);

  --med-bg:
    radial-gradient(circle at 30% 30%, rgba(240,168,48,0.35), transparent 60%),
    #f2e6c8;
  --med-edge: rgba(200, 122, 22, 0.55);
  --med-shadow: inset 0 -8px 18px rgba(240,168,48,0.22);

  --mark-stroke: var(--saffron-deep);

  --shadow-card-hover: 0 22px 36px -22px rgba(40, 22, 0, 0.22);
  --shadow-hero:       0 28px 52px -28px rgba(40, 22, 0, 0.22);

  --girih-opacity: 0.06;
}

/* ---------- RESET / BASE ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg-page); }

html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg-page);
  background-image: var(--page-sky);
  background-attachment: fixed;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}

/* Faint 8-fold girih atmosphere — extremely subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--girih-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%23f0a830' stroke-width='0.6'><polygon points='80,16 96,64 144,80 96,96 80,144 64,96 16,80 64,64'/><polygon points='80,32 92,68 128,80 92,92 80,128 68,92 32,80 68,68' transform='rotate(22.5 80 80)'/><circle cx='80' cy='80' r='2'/></g></svg>");
  background-size: 220px 220px;
  z-index: 0;
  transition: opacity .35s ease;
}
:root[data-theme="light"] body::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%23c87a16' stroke-width='0.6'><polygon points='80,16 96,64 144,80 96,96 80,144 64,96 16,80 64,64'/><polygon points='80,32 92,68 128,80 92,92 80,128 68,92 32,80 68,68' transform='rotate(22.5 80 80)'/><circle cx='80' cy='80' r='2'/></g></svg>");
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- TYPOGRAPHY ------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-variation-settings: "opsz" 96, "SOFT" 60; }
h2 { font-size: var(--step-4); font-variation-settings: "opsz" 72; }
h3 { font-size: var(--step-2); font-variation-settings: "opsz" 36; }
h4 { font-size: var(--step-1); font-variation-settings: "opsz" 18; font-weight: 500; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.muted   { color: var(--fg-dim); }
.dim     { color: var(--fg-mute); }
.tnum    { font-variant-numeric: tabular-nums; }
.arabic  { font-family: var(--font-arabic); }

/* ---------- HORIZON RULE (the recurring motif) ------------- */
.horizon {
  height: 1px;
  width: 100%;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--line) 12%,
    var(--accent) 50%,
    var(--line) 88%,
    transparent 100%
  );
  position: relative;
}
.horizon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--accent-glow);
}
.horizon--plain::after { display: none; }

/* ---------- APP CHROME ------------------------------------- */
.app { display: flex; flex-direction: column; min-height: 100dvh; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.app-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s-4) var(--col-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.app-header .horizon { position: absolute; left: 0; right: 0; bottom: -1px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--fg);
  min-width: 0;
}
.brand__mark { width: 38px; height: 38px; flex: 0 0 38px; }

.brand__word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-1);
  letter-spacing: 0.16em;
  font-variation-settings: "opsz" 36;
  min-width: 0;
  text-transform: uppercase;
}
.brand__word small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.5em;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--fg-mute);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: lowercase;
}

.app-header__right {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}

.nav-back, .nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--step--1);
  color: var(--fg-dim);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  min-height: 38px;
  background: none;
}
.nav-back:hover, .nav-link:hover { color: var(--fg); border-color: var(--accent); }
.nav-back svg, .nav-link svg { width: 14px; height: 14px; }

.signed-in {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--step--1);
  color: var(--fg-dim);
  text-decoration: none;
  position: relative;
  transition: color .2s ease;
}
.signed-in:hover { color: var(--fg); }
.signed-in:hover .avatar { border-color: var(--accent); }
.signed-in .avatar { width: 30px; height: 30px; font-size: 0.7rem; transition: border-color .2s ease; }
.signed-in__name { display: inline; }
.signed-in__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
  margin-left: 2px;
}

/* Theme toggle */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-elev-2);
  color: var(--fg-dim);
  display: inline-grid;
  place-items: center;
  transition: border-color .25s ease, color .25s ease, transform .25s ease, background .25s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; transition: transform .4s ease, opacity .3s ease; }
.theme-toggle .icon-sun { position: absolute; opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); position: absolute; }

.app-footer {
  margin-top: auto;
  padding: var(--s-6) var(--col-pad) var(--s-5);
  text-align: center;
  color: var(--fg-mute);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
}
.app-footer .horizon { max-width: 320px; margin: 0 auto var(--s-4); }
.app-footer .arabic { font-size: 1.4em; color: var(--fg-dim); display: block; margin-bottom: var(--s-2); }

/* ---------- CONTAINERS ------------------------------------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s-6) var(--col-pad) var(--s-8);
}

/* ---------- MEDALLION (race plate) ------------------------- */
.medallion {
  --size: 64px;
  width: var(--size);
  height: var(--size);
  flex: 0 0 var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--med-bg);
  border: 1px solid var(--med-edge);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 18;
  font-size: calc(var(--size) * 0.36);
  letter-spacing: 0.04em;
  position: relative;
  box-shadow: var(--med-shadow);
}
.medallion::after {
  content: "";
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
}
.medallion.avatar { --size: 32px; border-radius: 50%; box-shadow: none; }
.medallion.avatar::after { display: none; }
.medallion--lg { --size: 96px; }
@media (min-width: 720px) {
  .medallion--lg { --size: 120px; }
}

/* ---------- BUTTONS / TAGS --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.95rem 1.4rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: var(--step-0);
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
  min-height: 52px;
  text-align: center;
}
.btn--primary {
  background: linear-gradient(180deg, var(--saffron-soft) 0%, var(--saffron) 60%, var(--saffron-deep) 100%);
  color: #2a1a05;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 -10px 24px rgba(200,122,22,0.25) inset,
    0 14px 30px -10px rgba(240,168,48,0.55);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 -10px 24px rgba(200,122,22,0.3) inset, 0 18px 36px -10px rgba(240,168,48,0.7); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--accent); }
.btn--block { width: 100%; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.28rem 0.7rem;
  border-radius: var(--r-pill);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--admin   { color: var(--accent);   background: var(--accent-tint); border-color: var(--accent-tint-3); }
.tag--uye     { color: var(--fg-dim);   background: var(--line-soft); border-color: var(--line); }
.tag--bike    { color: var(--fg-dim);   background: var(--line-soft); border-color: var(--line); text-transform: none; letter-spacing: 0.02em; font-weight: 500; }

/* ---------- DAWN REVEAL ------------------------------------ */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(2px); }
  to   { opacity: 1; transform: none;             filter: none; }
}
.reveal > * { opacity: 0; animation: rise 0.9s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal > *:nth-child(1) { animation-delay: 0.05s; }
.reveal > *:nth-child(2) { animation-delay: 0.18s; }
.reveal > *:nth-child(3) { animation-delay: 0.30s; }
.reveal > *:nth-child(4) { animation-delay: 0.42s; }
.reveal > *:nth-child(5) { animation-delay: 0.54s; }
.reveal > *:nth-child(6) { animation-delay: 0.66s; }
.reveal > *:nth-child(7) { animation-delay: 0.78s; }
.reveal > *:nth-child(8) { animation-delay: 0.90s; }
.reveal > *:nth-child(9) { animation-delay: 1.02s; }
.reveal > *:nth-child(10){ animation-delay: 1.14s; }
.reveal > *:nth-child(11){ animation-delay: 1.26s; }
.reveal > *:nth-child(12){ animation-delay: 1.38s; }

@media (prefers-reduced-motion: reduce) {
  .reveal > * { opacity: 1; animation: none; }
}

/* ============================================================
   1 · GİRİŞ (Login)
   ============================================================ */
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--s-5) var(--col-pad) var(--s-5);
}
.login__topbar {
  display: flex;
  justify-content: flex-end;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.login__center {
  align-self: center;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}
.login__mark {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--s-5);
  display: block;
  filter: drop-shadow(0 12px 24px var(--accent-glow));
}
.login__title {
  text-align: center;
  font-size: var(--step-3);
  margin-bottom: var(--s-2);
  font-variation-settings: "opsz" 72, "SOFT" 80;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.login__sub {
  text-align: center;
  color: var(--fg-mute);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  margin-bottom: var(--s-6);
  font-style: italic;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 14, "SOFT" 100;
}
.field {
  display: block;
  margin-bottom: var(--s-4);
}
.field__label {
  display: block;
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: var(--s-2);
  font-weight: 600;
}
.field__input {
  width: 100%;
  padding: 0.95rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  color: var(--fg);
  font-size: var(--step-0);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  min-height: 52px;
}
.field__input::placeholder { color: var(--fg-mute); opacity: 0.7; }
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.login__cta { margin-top: var(--s-5); }
.login__hint {
  text-align: center;
  margin-top: var(--s-5);
  font-size: var(--step--1);
  color: var(--fg-mute);
}
.login__hint .arabic { font-size: 1.2em; color: var(--fg-dim); display: block; margin-bottom: 0.3rem; }
.login__error {
  border: 1px solid var(--ice-edge);
  background: var(--accent-tint);
  color: var(--ice-accent);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-2);
  font-size: var(--step--1);
  margin-bottom: var(--s-4);
  text-align: center;
}

.login__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
@media (max-width: 480px) {
  .login__row { grid-template-columns: 1fr; }
}

.field__err {
  display: block;
  margin-top: 0.35rem;
  color: var(--ice-accent);
  font-size: 0.78rem;
}

.login__footer {
  text-align: center;
  color: var(--fg-mute);
  font-size: var(--step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top: var(--s-5);
}
.login__footer .horizon { max-width: 240px; margin: 0 auto var(--s-3); }

/* ============================================================
   2 · KADRO (Roster)
   ============================================================ */
.page-title {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.page-title h1 { font-size: var(--step-5); }

/* Search */
.search {
  position: relative;
  margin-bottom: var(--s-6);
  display: flex;
  gap: var(--s-2);
  align-items: stretch;
}
.search__input-wrap { position: relative; flex: 1; }
.search input[type="search"] {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 3rem;
  background: var(--bg-search);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--fg);
  font-size: var(--step-0);
  min-height: 52px;
}
.search input::placeholder { color: var(--fg-mute); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.search__input-wrap > svg {
  position: absolute;
  left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--fg-mute);
  pointer-events: none;
}
.search button {
  padding: 0 1.3rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg-elev-2);
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: var(--step--1);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.search button:hover { border-color: var(--accent); color: var(--accent); }

/* Section heading with horizon */
.section-heading {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin: var(--s-7) 0 var(--s-5);
}
.section-heading h3 {
  font-size: var(--step-2);
  white-space: nowrap;
  color: var(--fg-dim);
  font-weight: 400;
  font-variation-settings: "opsz" 36, "SOFT" 100;
}
.section-heading .horizon { flex: 1; }
.section-heading .count { color: var(--fg-mute); font-size: var(--step--1); font-variant-numeric: tabular-nums; }

/* Roster grid */
.roster {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .roster { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .roster { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 1320px) {
  .roster { grid-template-columns: repeat(4, 1fr); }
}

.card {
  display: block;
  position: relative;
  padding: var(--s-5);
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
  color: var(--fg);
}
.card::after {
  content: "";
  position: absolute;
  left: var(--s-5); right: var(--s-5);
  bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-tint-3); box-shadow: var(--shadow-card-hover); }
.card:hover::after { opacity: 1; }

.card__top {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  margin-bottom: var(--s-4);
}
.card__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-variation-settings: "opsz" 36, "SOFT" 60;
  line-height: 1.05;
  margin-bottom: 0.3rem;
}
.card__sub { color: var(--fg-mute); font-size: var(--step--1); }
.card__tags { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--line-dashed);
  font-size: var(--step--1);
  color: var(--fg-dim);
}
.card__meta .where { display: inline-flex; align-items: center; gap: 0.4em; }

/* View toggle (segmented control: table | grid) */
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--bg-elev-2);
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}
.view-toggle__btn {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: calc(var(--r-2) - 2px);
  color: var(--fg-mute);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.view-toggle__btn svg { width: 16px; height: 16px; }
.view-toggle__btn:hover { color: var(--fg); }
.view-toggle__btn[aria-pressed="true"] {
  background: var(--bg-elev-3, var(--bg-elev-1));
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-tint-3);
}

/* Roster table */
.roster-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--bg-elev-1);
  overflow: hidden;
}
.roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}
.roster-table thead th {
  text-align: left;
  font-weight: 400;
  color: var(--fg-mute);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev-2);
  white-space: nowrap;
}
.roster-table tbody td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line-dashed, var(--line));
  vertical-align: middle;
  color: var(--fg-dim);
}
.roster-table tbody tr:last-child td { border-bottom: 0; }
.roster-table tbody tr { transition: background .15s ease; }
.roster-table tbody tr:hover { background: var(--bg-elev-2); }

.row__name a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--fg);
  text-decoration: none;
}
.row__name a:hover .row__fullname { color: var(--accent); }
.row__fullname {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-variation-settings: "opsz" 24, "SOFT" 60;
  line-height: 1.1;
  transition: color .2s ease;
}
.row__sub { display: block; color: var(--fg-mute); font-size: 0.78rem; margin-top: 2px; }

@media (max-width: 720px) {
  .row__hide-sm { display: none; }
}
@media (max-width: 520px) {
  .row__hide-md { display: none; }
}

/* View swap: default = table; grid mode flips it */
:root[data-view="table"] .roster { display: none; }
:root[data-view="grid"] .roster-table-wrap { display: none; }

/* Pager */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-7);
  font-size: var(--step--1);
  color: var(--fg-dim);
}
.pager a {
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: border-color .2s ease, color .2s ease;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .cur { color: var(--fg-mute); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }

/* Empty state */
.empty {
  margin-top: var(--s-7);
  padding: var(--s-7) var(--s-5);
  text-align: center;
  color: var(--fg-dim);
  border: 1px dashed var(--line);
  border-radius: var(--r-3);
  font-size: var(--step--1);
}
.empty a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-tint-3); text-underline-offset: 3px; }

/* ============================================================
   3 · ÜYE PROFİLİ
   ============================================================ */
.profile-hero {
  position: relative;
  border-radius: var(--r-4);
  overflow: hidden;
  padding: var(--s-7) var(--col-pad) var(--s-6);
  margin-bottom: var(--s-6);
  background: var(--hero-sky);
  border: 1px solid var(--hero-border);
}
.profile-hero::before {
  content: "";
  position: absolute;
  left: 6%; right: 6%; bottom: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}
.profile-hero__top {
  display: flex;
  gap: var(--s-5);
  align-items: flex-start;
  flex-wrap: wrap;
}
.profile-hero h1 {
  font-size: var(--step-5);
  font-variation-settings: "opsz" 96, "SOFT" 80;
  margin-bottom: var(--s-2);
}
.profile-hero__role {
  display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-3);
}
.profile-hero__line {
  color: var(--fg-dim);
  font-size: var(--step-0);
}
.profile-hero__line .dot-sep { color: var(--fg-mute); margin: 0 0.4rem; }

@media (min-width: 720px) {
  .profile-hero { padding: var(--s-8) var(--s-7) var(--s-7); }
  .profile-hero h1 { font-size: var(--step-6); }
}

.back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  font-size: var(--step--1);
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  transition: color .2s ease;
}
.back:hover { color: var(--accent); }

.grid-2 {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .grid-2 { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-6); }
}

.panel {
  background: var(--bg-elev-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-3);
  padding: var(--s-5) var(--s-5) var(--s-4);
}
.panel__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.panel__head h3 {
  font-size: var(--step-1);
  font-weight: 500;
  font-variation-settings: "opsz" 24, "SOFT" 60;
  color: var(--fg);
}
.panel__eyebrow { color: var(--accent); }

.fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 480px) { .fields { grid-template-columns: 1fr 1fr; } }
.fld { display: flex; flex-direction: column; gap: 0.3rem; }
.fld--wide { grid-column: 1 / -1; }
.fld__k {
  font-size: var(--step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 600;
}
.fld__v { font-size: var(--step-0); color: var(--fg); }
.fld__v a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-tint-3);
  text-underline-offset: 3px;
}
.fld__v small { color: var(--fg-mute); font-style: italic; }

/* ICE panel — calm-but-prominent */
.ice {
  position: relative;
  background: var(--ice-bg);
  border: 1px solid var(--ice-edge);
  border-radius: var(--r-3);
  padding: var(--s-5);
  color: var(--ice-fg);
  overflow: hidden;
}
.ice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%23e57a45' stroke-width='0.5' opacity='0.5'><polygon points='40,8 48,32 72,40 48,48 40,72 32,48 8,40 32,32'/></g></svg>");
  background-size: 140px 140px;
  opacity: 0.08;
  pointer-events: none;
}
.ice__eyebrow {
  display: flex; align-items: center; gap: var(--s-2);
  color: var(--ice-accent);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.ice__eyebrow svg { width: 16px; height: 16px; }
.ice h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-variation-settings: "opsz" 36, "SOFT" 80;
  color: var(--fg);
  margin-bottom: var(--s-4);
  position: relative;
}
:root[data-theme="light"] .ice h3 { color: #2a1208; }

.ice .fld__k { color: var(--ice-fg-soft); }
.ice .fld__v { color: var(--fg); }
:root[data-theme="light"] .ice .fld__v { color: #2a1208; }

.blood {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--ice-blood-edge);
  border-radius: var(--r-2);
  background: var(--ice-blood-bg);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-variation-settings: "opsz" 36;
  font-weight: 500;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s-4);
  position: relative;
}
:root[data-theme="light"] .blood { color: #2a1208; }
.blood small {
  font-family: var(--font-body);
  font-size: 0.5em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice-accent);
  font-weight: 700;
  margin-right: 0.4rem;
}

.ice__contact {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-4);
  background: var(--ice-contact-bg);
  border-radius: var(--r-2);
  border: 1px solid var(--ice-contact-edge);
  margin-bottom: var(--s-3);
}
.ice__contact .who {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--fg);
  font-variation-settings: "opsz" 24;
}
:root[data-theme="light"] .ice__contact .who { color: #2a1208; }
.ice__contact .rel { color: var(--ice-fg-soft); font-size: var(--step--1); }

.call-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 1rem var(--s-4);
  border-radius: var(--r-2);
  background: linear-gradient(180deg, var(--ember) 0%, #c25a2a 100%);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  font-size: var(--step-1);
  min-height: 56px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 12px 28px -12px rgba(229,122,69,0.6);
  transition: transform .2s ease, box-shadow .2s ease;
}
.call-link:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 16px 32px -12px rgba(229,122,69,0.75); }
.call-link svg { width: 22px; height: 22px; flex: 0 0 22px; }
.call-link .label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.55em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 0.2rem;
}

/* ---------- RESPONSIVE TWEAKS ------------------------------ */
@media (max-width: 420px) {
  .brand__word small { display: none; }
  .signed-in__name { display: none; }
  .nav-back span, .nav-link span { display: none; }
  .nav-back, .nav-link { padding: var(--s-2); }
}

@media (min-width: 720px) {
  .brand__mark { width: 44px; height: 44px; flex-basis: 44px; }
  .brand__word { font-size: var(--step-2); }
}

/* ---------- UTILITIES -------------------------------------- */
.stack > * + * { margin-top: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.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; }

/* ---------- PROFILE EDIT ----------------------------------- */

/* Inside a .fields grid the .field block becomes a grid cell — margin-bottom
   is redundant there (gap handles it) and full-width fields opt in via wide. */
.fields .field { margin-bottom: 0; }
.field--wide { grid-column: 1 / -1; }
.field__label small { color: var(--fg-mute); text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 0.4em; }
.field__hint { display: block; margin-top: 0.35rem; color: var(--fg-mute); font-size: 0.78rem; }

/* Selects + textareas inherit .field__input but need their own sizing tweaks. */
select.field__input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-mute) 50%),
                    linear-gradient(135deg, var(--fg-mute) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}
textarea.field__input {
  min-height: auto;
  resize: vertical;
  line-height: 1.5;
  font-family: inherit;
}

/* Checkbox row */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--bg-input);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.check:hover { border-color: var(--accent-tint-3); }
.check__box {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.check__label {
  display: block;
  color: var(--fg);
  font-weight: 500;
}

/* Form layout */
.profile-form { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.profile-form__cta {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-3);
  margin-top: var(--s-3);
}

/* Nag banner — friendly prompt to complete profile */
.nag {
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-3);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  color: var(--fg);
  font-size: var(--step--1);
  margin: var(--s-5) 0;
}
.nag strong { color: var(--accent); margin-right: 0.4em; }
.nag a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Flash messages (post-submit) */
.flash {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-2);
  font-size: var(--step--1);
  border: 1px solid var(--line);
  margin: var(--s-4) 0;
}
.flash--success {
  background: var(--accent-tint);
  border-color: var(--accent-tint-3);
  color: var(--fg);
}
.flash--error {
  background: var(--ice-bg, var(--accent-tint));
  border-color: var(--ice-edge, var(--line));
  color: var(--ice-accent, var(--fg));
}
