/* ==========================================================================
   qrandqr UI Kit
   Kaynak tasarım: ui/ui-kit.html · Canlı bileşen kataloğu: /ui-kit (debug)

   1. Token'lar (renk, tipografi, yarıçap, gölge) — açık + koyu tema
   2. Temel (reset, tipografi, yardımcılar)
   3. Bileşenler (buton, form, seçim kontrolleri, rozet, uyarı, toast,
      kart, menü, modal, ipucu, SSS)
   4. Düzen (header, footer, landing, oluşturucu, üyelik, panel)
   ========================================================================== */

/* 1. TOKEN'LAR ============================================================ */

:root {
  /* Mor skala */
  --purple-50: #F6F2FF;
  --purple-100: #EEE7FE;
  --purple-200: #DDD0FD;
  --purple-300: #C3AEFB;
  --purple-400: #A283F7;
  --purple-500: #8457F3;
  --purple-600: #6D3EF0;
  --purple-700: #5A2BD9;
  --purple-800: #4822AE;
  --purple-900: #33197A;
  --purple-950: #1E1048;

  /* Durum renkleri (tema bağımsız dolgu) */
  --green-600: #16A34A;
  --amber-600: #D97706;
  --red-600: #DC2626;
  --red-700: #B91C1C;

  /* Tipografi */
  --font-sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Yarıçaplar */
  --r-xs: 7px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 16px;
  --r-2xl: 20px;
  --r-3xl: 24px;
  --r-4xl: 32px;
  --r-full: 999px;

  /* Hareket */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .15s var(--ease);
  --t: .2s var(--ease);
}

/* Açık tema (varsayılan) */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #FBFAFE;
  --surface: #FFFFFF;
  --surface-2: #F4F1FC;
  --border: #E7E2F4;
  --border-strong: #D5CDEB;
  --text: #17122B;
  --muted: #5F587A;
  --primary: #6D3EF0;
  --primary-hover: #5A2BD9;
  --primary-text: #6232E8;
  --on-primary: #FFFFFF;
  --soft: #EFE9FE;
  --soft-hover: #E4DAFD;
  --soft-text: #5A2FD4;
  --ring: rgba(109, 62, 240, .18);
  --danger: #DC2626;
  --danger-hover: #B91C1C;
  --dot: rgba(109, 62, 240, .16);
  --scrim: rgba(23, 18, 43, .28);
  --toast-bg: #17122B;
  --toast-fg: #F4F1FC;
  --tab-shadow: 0 1px 2px rgba(23, 18, 43, .08), 0 2px 8px -2px rgba(23, 18, 43, .1);
  --shadow: 0 1px 2px rgba(40, 20, 90, .05), 0 40px 80px -40px rgba(76, 40, 180, .35);
  --shadow-pop: 0 24px 60px -20px rgba(40, 20, 90, .35);
  --shadow-toast: 0 20px 40px -18px rgba(20, 10, 50, .55);

  --ok-bg: #EAF7EF;   --ok-bd: #C3E7D1;   --ok-fg: #14532D;   --ok-ic: #16A34A;   --ok-ic-fg: #FFFFFF;
  --info-bg: #F1ECFF; --info-bd: #DCD0FF; --info-fg: #3F1F9E; --info-ic: #6D3EF0; --info-ic-fg: #FFFFFF;
  --warn-bg: #FFF6E6; --warn-bd: #F5DCA8; --warn-fg: #713F12; --warn-ic: #D97706; --warn-ic-fg: #FFFFFF;
  --err-bg: #FDEEEE;  --err-bd: #F5C9C9;  --err-fg: #7F1D1D;  --err-ic: #DC2626;  --err-ic-fg: #FFFFFF;
  --err-text: #B91C1C;
  --err-ring: rgba(220, 38, 38, .15);
}

/* Koyu tema. Aşağıdaki @media bloğu JS kapalıyken sistem tercihini uygular;
   iki bloktaki değerler aynı tutulmalı. */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D0A17;
  --surface: #161228;
  --surface-2: #1E1934;
  --border: #2A2445;
  --border-strong: #3A3358;
  --text: #F2EFFA;
  --muted: #A7A0C2;
  --primary: #7C4DFF;
  --primary-hover: #6D3EF0;
  --primary-text: #B39AFF;
  --on-primary: #FFFFFF;
  --soft: #241C45;
  --soft-hover: #2E2458;
  --soft-text: #C7B6FF;
  --ring: rgba(124, 77, 255, .32);
  --danger: #DC2626;
  --danger-hover: #EF4444;
  --dot: rgba(167, 139, 255, .16);
  --scrim: rgba(0, 0, 0, .55);
  --toast-bg: #F2EFFA;
  --toast-fg: #17122B;
  --tab-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
  --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, .8);
  --shadow-toast: 0 20px 40px -18px rgba(0, 0, 0, .7);

  --ok-bg: #0F241B;   --ok-bd: #1D4633;   --ok-fg: #A7F3C9;   --ok-ic: #34D399;   --ok-ic-fg: #062015;
  --info-bg: #1C1738; --info-bd: #372C6B; --info-fg: #D5C8FF; --info-ic: #A58BFF; --info-ic-fg: #140E2E;
  --warn-bg: #2A200E; --warn-bd: #553F16; --warn-fg: #FAD58A; --warn-ic: #FBBF24; --warn-ic-fg: #2A1C02;
  --err-bg: #2C1218;  --err-bd: #5A2230;  --err-fg: #FBB8B8;  --err-ic: #F87171;  --err-ic-fg: #2C0A0E;
  --err-text: #FCA5A5;
  --err-ring: rgba(248, 113, 113, .22);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0D0A17;
    --surface: #161228;
    --surface-2: #1E1934;
    --border: #2A2445;
    --border-strong: #3A3358;
    --text: #F2EFFA;
    --muted: #A7A0C2;
    --primary: #7C4DFF;
    --primary-hover: #6D3EF0;
    --primary-text: #B39AFF;
    --soft: #241C45;
    --soft-hover: #2E2458;
    --soft-text: #C7B6FF;
    --ring: rgba(124, 77, 255, .32);
    --danger-hover: #EF4444;
    --dot: rgba(167, 139, 255, .16);
    --scrim: rgba(0, 0, 0, .55);
    --toast-bg: #F2EFFA;
    --toast-fg: #17122B;
    --tab-shadow: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
    --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, .8);
    --shadow-toast: 0 20px 40px -18px rgba(0, 0, 0, .7);
    --ok-bg: #0F241B;   --ok-bd: #1D4633;   --ok-fg: #A7F3C9;   --ok-ic: #34D399;   --ok-ic-fg: #062015;
    --info-bg: #1C1738; --info-bd: #372C6B; --info-fg: #D5C8FF; --info-ic: #A58BFF; --info-ic-fg: #140E2E;
    --warn-bg: #2A200E; --warn-bd: #553F16; --warn-fg: #FAD58A; --warn-ic: #FBBF24; --warn-ic-fg: #2A1C02;
    --err-bg: #2C1218;  --err-bd: #5A2230;  --err-fg: #FBB8B8;  --err-ic: #F87171;  --err-ic-fg: #2C0A0E;
    --err-text: #FCA5A5;
    --err-ring: rgba(248, 113, 113, .22);
  }
}

/* Tema taşıyan her kapsayıcı kendi zeminini boyar (iç içe tema önizlemeleri için) */
[data-theme] { background: var(--bg); color: var(--text); }


/* 2. TEMEL ================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
img, svg { display: block; max-width: 100%; }
.icon { flex-shrink: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
::selection { background: var(--purple-200); color: var(--purple-950); }
[hidden] { display: none !important; }
.js .no-js-only { display: none !important; }
.js-only { display: none !important; }
.js .js-only { display: revert !important; }

/* Tipografi yardımcıları */
.display {
  font-size: clamp(44px, 7.4vw, 88px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
}
.h1 { font-size: clamp(32px, 4vw, 40px); }
.h2 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.04em; line-height: 1; }
.h3 { font-size: 24px; letter-spacing: -.03em; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.accent { color: var(--primary-text); }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-text);
}
.overline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.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;
}

/* Düzen yardımcıları */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-lg { display: flex; flex-direction: column; gap: 26px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row--end { justify-content: flex-end; }
.row--between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.dot-bg {
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.6px);
  background-size: 24px 24px;
}
.divider { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }


/* 3. BİLEŞENLER =========================================================== */

/* --- Buton ---------------------------------------------------------------
   .btn                 birincil (mor)
   .btn--secondary      çerçeveli, yüzey rengi
   .btn--soft           açık mor zemin
   .btn--ghost          zeminsiz
   .btn--inverse        metin renginde zemin (header "Kaydol")
   .btn--danger         kırmızı
   Boyut: .btn--sm (36) · varsayılan (44) · .btn--lg (54) · .btn--xl (56)
   Şekil: .btn--icon (kare) · .btn--block (tam genişlik)
   Durum: [disabled] · .is-loading (içine .spinner)                        */
.btn {
  --btn-h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn:hover { background: var(--primary-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--secondary:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn--soft { background: var(--soft); color: var(--soft-text); }
.btn--soft:hover { background: var(--soft-hover); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--inverse { background: var(--text); color: var(--bg); }
.btn--inverse:hover { background: var(--text); opacity: .88; }
.btn--danger { background: var(--danger); color: #FFFFFF; }
.btn--danger:hover { background: var(--danger-hover); }
.btn--danger-ghost { background: transparent; color: var(--err-text); }
.btn--danger-ghost:hover { background: var(--err-bg); }
/* Sosyal giriş (marka kurallarına uygun: Google beyaz, Apple siyah/beyaz) */
.btn--google { background: #FFFFFF; color: #1F1F1F; border: 1.5px solid var(--border); gap: 12px; }
.btn--google:hover { background: #F7F7F8; border-color: var(--border-strong); }
.btn--apple { background: #000000; color: #FFFFFF; gap: 10px; }
.btn--apple:hover { background: #1C1C1E; }
[data-theme="dark"] .btn--apple { background: #FFFFFF; color: #000000; }
[data-theme="dark"] .btn--apple:hover { background: #F2F2F2; }
.btn--glow { box-shadow: 0 10px 24px -10px var(--primary); }

.btn--sm { --btn-h: 36px; padding: 0 14px; border-radius: var(--r-sm); font-size: 14px; }
.btn--xs { --btn-h: 34px; padding: 0 12px; border-radius: var(--r-sm); font-size: 13px; gap: 6px; }
.btn--lg { --btn-h: 54px; padding: 0 24px; border-radius: var(--r-lg); font-size: 16px; }
.btn--xl { --btn-h: 56px; padding: 0 28px; border-radius: var(--r-xl); font-size: 16px; }
.btn--icon { width: var(--btn-h); padding: 0; }
.btn--block { display: flex; width: 100%; }
.btn.is-loading { pointer-events: none; }

.spinner {
  width: 18px; height: 18px;
  border: 2.4px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Form alanları -------------------------------------------------------
   .field > .label + .input + .field__help / .field__error
   .input--mono   bağlantı/değer girişleri için Geist Mono
   .input--lg     oluşturucudaki büyük giriş (54px)
   Hata: .field.has-error veya input[aria-invalid="true"]                   */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.label { font-size: 14px; font-weight: 600; }
.label--muted { font-size: 13.5px; color: var(--muted); }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.label-row a { font-size: 13.5px; font-weight: 600; }
.req { color: var(--err-text); }

.input,
.select,
.textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t), background-color var(--t);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .75; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}
.input:disabled, .select:disabled, .textarea:disabled {
  background: var(--surface-2); color: var(--muted); opacity: .6; cursor: not-allowed;
}
.textarea { height: auto; min-height: 112px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.select {
  appearance: none;
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A83A6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.input--mono { font-family: var(--font-mono); font-size: 14px; }
.input--lg { height: 54px; padding: 0 18px; border-radius: var(--r-lg); background: var(--bg); }
.input--mono.input--lg { font-size: 15px; }

.field.has-error .input, .field.has-error .select, .field.has-error .textarea,
.input[aria-invalid="true"] {
  border-color: var(--err-ic);
  box-shadow: 0 0 0 4px var(--err-ring);
}
.field__help { font-size: 13px; color: var(--muted); }
.field__error { font-size: 13px; font-weight: 500; color: var(--err-text); }

/* Sağında düğme olan giriş (şifre göster/gizle, arama ikonu) */
.input-wrap { position: relative; }
.input-wrap .input { padding-inline-end: 52px; }
.input-wrap__action {
  position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.input-wrap__action:hover { background: var(--surface-2); color: var(--text); }
.input-wrap--lead .input { padding-inline-start: 42px; padding-inline-end: 14px; }
.input-wrap__lead {
  position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.span-2 { grid-column: 1 / -1; }
.textarea.input--lg { height: auto; padding: 14px 18px; }

/* --- Segment kontrol (sekmeler) ------------------------------------------
   <div class="seg" role="tablist"><button class="seg__item" aria-selected="true">
   Bağlantılarla da çalışır: <a class="seg__item is-active">                 */
.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.seg__item {
  flex: 1 1 0;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--t), color var(--t), box-shadow var(--t);
}
.seg__item:hover { color: var(--text); text-decoration: none; }
.seg__item[aria-selected="true"], .seg__item[aria-pressed="true"], .seg__item.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--tab-shadow);
}

/* Kaydırılabilir segment (çok sekmeli) */
.seg--scroll { overflow-x: auto; scrollbar-width: none; }
.seg--scroll::-webkit-scrollbar { display: none; }
.seg--scroll .seg__item { flex: 1 0 auto; }

/* Radyo tabanlı segment: <label class="seg__item"><input type="radio" class="sr-only">…</label> */
.seg--radio .seg__item { cursor: pointer; }
.seg--radio .seg__item:has(input:checked) {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--tab-shadow);
}
.seg--radio .seg__item:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--ring); }

/* --- Çip (tür seçici, filtre) --------------------------------------------
   .chip             köşeli (oluşturucu türleri)
   .chip--pill       hap şekli (panel filtreleri)
   Seçili: .is-active veya [aria-pressed="true"] / [aria-current]            */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--t);
}
.chip:hover { border-color: var(--border-strong); background: var(--surface-2); text-decoration: none; }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-current="page"] {
  background: var(--soft); color: var(--soft-text); border-color: var(--primary);
}
.chip__count {
  padding: 1px 7px; border-radius: 6px;
  background: var(--surface-2); color: var(--muted); font-size: 12px;
}
.chip--pill { height: 38px; border-radius: var(--r-full); font-size: 14px; }

/* --- Seçim karosu (radyo/checkbox tabanlı) -------------------------------
   <label class="tile"><input type="radio" class="sr-only"><span class="tile__box">…</span></label> */
.tile { position: relative; display: block; cursor: pointer; }
.tile__box {
  height: 100%;
  min-height: 58px;
  padding: 10px 8px;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-align: center;
  transition: all var(--t);
}
.tile__box strong { font-size: 15px; font-weight: 600; }
.tile__box span { font-size: 12px; color: var(--muted); }
.tile:hover .tile__box { border-color: var(--border-strong); }
.tile input:checked + .tile__box { border-color: var(--primary); background: var(--soft); color: var(--soft-text); }
.tile input:checked + .tile__box span { color: inherit; }
.tile input:focus-visible + .tile__box { box-shadow: 0 0 0 4px var(--ring); }
.tile--shape .tile__box { min-height: 96px; gap: 10px; padding: 12px 6px; }
.tile--shape .tile__box svg { color: var(--text); }
.tile--shape .tile__box strong { font-size: 13.5px; }
.tile--shape input:checked + .tile__box svg { color: var(--soft-text); }
.tile-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 8px; }

/* --- Renk örneği ---------------------------------------------------------
   <button class="swatch" style="--c:#6D3EF0" aria-pressed="true">          */
.swatch {
  width: 34px; height: 34px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px var(--border-strong);
  transition: box-shadow var(--t);
}
.swatch[aria-pressed="true"], .swatch.is-active {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c);
}
.swatch--sm { width: 32px; height: 32px; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 4px; }

/* Renk + hex kutusu */
.color-field {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px;
  padding: 0 12px 0 6px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--bg);
}
.color-field input[type="color"] {
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px;
  background: none; cursor: pointer;
}
.color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type="color"]::-webkit-color-swatch { border: 1px solid var(--border); border-radius: 8px; }
.color-field input[type="color"]::-moz-color-swatch { border: 1px solid var(--border); border-radius: 8px; }
.color-field__hex { font-family: var(--font-mono); font-size: 14px; min-width: 7ch; text-transform: uppercase; }

/* --- Dosya yükleme alanı ------------------------------------------------
   <label class="dropzone"><input type="file" class="sr-only">…</label>       */
.dropzone {
  flex: 1;
  min-height: 96px;
  padding: 16px;
  border-radius: var(--r-xl);
  border: 1.5px dashed var(--primary-text);
  background: var(--surface);
  color: var(--primary-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--t), border-color var(--t);
}
.dropzone:hover, .dropzone.is-over { background: var(--soft); border-color: var(--primary); }
.dropzone:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--ring); }
.dropzone strong { font-size: 14.5px; font-weight: 600; }
.dropzone > span:last-child { font-size: 12.5px; color: var(--muted); }
.dropzone.is-busy { opacity: .6; pointer-events: none; }
.dropzone__icon {
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: var(--soft); color: var(--primary-text);
  display: flex; align-items: center; justify-content: center;
}
.logo-picker { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.logo-current {
  padding: 12px;
  border-radius: var(--r-xl);
  border: 1.5px solid var(--primary);
  background: var(--soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.logo-current__img {
  width: 64px; height: 64px; padding: 6px;
  border-radius: var(--r-md);
  background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.logo-current__img img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* İkon seçim ızgarası: <label class="icon-tile"><input type="radio" class="sr-only"><span>svg</span></label> */
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
.icon-tile { cursor: pointer; }
.icon-tile > span {
  height: 48px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
}
.icon-tile:hover > span { border-color: var(--border-strong); }
.icon-tile input:checked + span { border-color: var(--primary); background: var(--soft); color: var(--soft-text); }
.icon-tile input:focus-visible + span { box-shadow: 0 0 0 4px var(--ring); }
.icon-tile:first-child > span { color: var(--muted); }

/* --- Anahtar (switch) ----------------------------------------------------
   <label class="switch"><input type="checkbox"><span class="switch__track"></span>Metin</label> */
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  position: relative;
  width: 44px; height: 26px;
  flex-shrink: 0;
  border-radius: var(--r-full);
  background: var(--border-strong);
  transition: background-color var(--t);
}
.switch__track::after {
  content: "";
  position: absolute; top: 3px; inset-inline-start: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform var(--t);
}
.switch input:checked + .switch__track { background: var(--primary); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
/* Sağdan sola diller (Arapça): ok ikonları ve anahtar düğmesi yön değiştirir */
[dir="rtl"] .icon--dir { transform: scaleX(-1); }
[dir="rtl"] .switch input:checked + .switch__track::after { transform: translateX(-18px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 4px var(--ring); }

/* --- Onay kutusu ---------------------------------------------------------
   <label class="check"><input type="checkbox"><span class="check__box"></span>Metin</label> */
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: var(--r-xs);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.check__box::after {
  content: "";
  width: 13px; height: 13px;
  background: #FFFFFF;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: scale(0);
  transition: transform var(--t-fast);
}
.check input:checked + .check__box { background: var(--primary); border-color: var(--primary); }
.check input:checked + .check__box::after { transform: scale(1); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px var(--ring); }

/* --- Rozet ve etiket ----------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: var(--soft);
  color: var(--soft-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--ok   { background: var(--ok-bg);   color: var(--ok-fg); }
.badge--warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge--err  { background: var(--err-bg);  color: var(--err-fg); }
.badge--info { background: var(--info-bg); color: var(--info-fg); }
.badge--ok .badge__dot   { background: var(--ok-ic); }
.badge--warn .badge__dot { background: var(--warn-ic); }
.badge--err .badge__dot  { background: var(--err-ic); }
.badge--info .badge__dot { background: var(--info-ic); }
.badge--solid { background: var(--primary); color: var(--on-primary); padding: 3px 10px; font-size: 12px; }
.badge--inverse { background: var(--text); color: var(--bg); }
.badge--muted { background: var(--surface-2); color: var(--muted); }
.badge--sq { border-radius: 6px; padding: 2px 8px; font-size: 11.5px; }

.tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
}
.tag--sm { padding: 3px 9px; border-radius: var(--r-xs); font-size: 11.5px; }

/* --- Uyarı --------------------------------------------------------------- */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  border-radius: var(--r-xl);
  border: 1px solid;
  font-size: 14px;
  line-height: 1.5;
}
.alert__icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.alert__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 3px; }
.alert__body > span { opacity: .9; }
.alert__title { font-size: 15px; font-weight: 600; }
.alert__body a { color: inherit; font-weight: 700; text-decoration: underline; }
.alert__close {
  width: 28px; height: 28px; flex-shrink: 0;
  border: 0; border-radius: 8px;
  background: transparent; color: inherit; opacity: .6;
  display: flex; align-items: center; justify-content: center;
}
.alert__close:hover { opacity: 1; background: rgba(127, 127, 127, .12); }
.alert--compact { padding: 12px 14px; border-radius: var(--r-lg); align-items: center; }
.alert--compact .alert__body { padding-top: 0; }
.alert--ok   { background: var(--ok-bg);   border-color: var(--ok-bd);   color: var(--ok-fg); }
.alert--info { background: var(--info-bg); border-color: var(--info-bd); color: var(--info-fg); }
.alert--warn { background: var(--warn-bg); border-color: var(--warn-bd); color: var(--warn-fg); }
.alert--err  { background: var(--err-bg);  border-color: var(--err-bd);  color: var(--err-fg); }
.alert--ok   .alert__icon { background: var(--ok-ic);   color: var(--ok-ic-fg); }
.alert--info .alert__icon { background: var(--info-ic); color: var(--info-ic-fg); }
.alert--warn .alert__icon { background: var(--warn-ic); color: var(--warn-ic-fg); }
.alert--err  .alert__icon { background: var(--err-ic);  color: var(--err-ic-fg); }

/* --- Bildirim (toast) ---------------------------------------------------- */
.toast-stack {
  position: fixed;
  top: 88px; inset-inline-end: 24px;
  z-index: 100;
  width: min(380px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: var(--toast-bg);
  color: var(--toast-fg);
  box-shadow: var(--shadow-toast);
  animation: toast-in .35s var(--ease);
}
.toast.is-leaving { animation: toast-out .25s ease forwards; }
.toast__icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 11px;
  color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.toast__icon--ok { background: var(--green-600); }
.toast__icon--err { background: var(--red-600); }
.toast__icon--info { background: var(--purple-600); }
.toast__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.toast__body strong { font-size: 15px; font-weight: 600; line-height: 1.35; }
.toast__body span { font-size: 13px; opacity: .72; }
.toast__action, .toast__close {
  height: 34px; padding: 0 12px;
  border: 0; border-radius: var(--r-sm);
  background: transparent; color: inherit;
  font-size: 14px; font-weight: 600; opacity: .85;
}
.toast__close { width: 34px; padding: 0; display: flex; align-items: center; justify-content: center; opacity: .6; }
.toast__action:hover, .toast__close:hover { opacity: 1; background: rgba(127, 127, 127, .18); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* --- Kart ---------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
}
.card--sm { padding: 16px; border-radius: var(--r-2xl); }
.card--lg { padding: 32px; border-radius: var(--r-3xl); }
.card--raised { box-shadow: var(--shadow); }
.card--muted { background: var(--surface-2); border-color: transparent; }

/* Beyaz QR çerçevesi (koyu temada da beyaz kalır) */
.qr-frame {
  flex-shrink: 0;
  padding: 10px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: #FFFFFF;
}
.qr-frame img { width: 100%; height: auto; image-rendering: pixelated; }

/* Özellik kartı ikon kutusu */
.icon-box {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--soft); color: var(--primary-text);
  display: flex; align-items: center; justify-content: center;
}
.check-dot {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--soft); color: var(--primary-text);
  display: flex; align-items: center; justify-content: center;
}

/* "Güncellenebilir" işareti (partials/_ui.html: updatable_badge) */
.updatable {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--soft); color: var(--primary);
  vertical-align: middle; cursor: help;
}
.menu__title, .guide-card__title { display: flex; align-items: center; gap: 6px; }

/* --- Açılır menü (<details class="menu">) --------------------------------- */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__caret { opacity: .6; transition: transform var(--t); }
.menu[open] .menu__caret { transform: rotate(180deg); }
.menu__panel {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0;
  z-index: 40;
  min-width: 230px;
  padding: 6px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; gap: 2px;
  animation: pop-in .18s var(--ease);
}
.lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.lang-grid .menu__item { font-size: 14px; }
.menu__panel--end { inset-inline-start: auto; inset-inline-end: 0; }
.menu__panel--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 10px; border-radius: var(--r-2xl); width: min(560px, calc(100vw - 32px)); }
.menu__item {
  min-height: 42px;
  padding: 8px 10px;
  border: 0; border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500;
  text-align: start;
  text-decoration: none;
}
button.menu__item { width: 100%; font-family: inherit; }
.menu__item:hover, .menu__item.is-active { background: var(--surface-2); text-decoration: none; }
.menu__group {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 10px 4px;
  border-top: 1px solid var(--border);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.menu__group .badge { letter-spacing: 0; text-transform: none; font-size: 11px; }
.menu__group-note { margin-inline-start: auto; letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 12px; }
.menu__code {
  width: 30px; height: 22px; border-radius: 6px;
  background: var(--surface-2); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
}
.menu__label { flex: 1; }
.menu__check { color: var(--primary-text); }
.menu__item--rich { padding: 10px; border-radius: var(--r-lg); }
.menu__item--rich .menu__label { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; font-weight: 600; }
.menu__item--rich .menu__label small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }

/* Profil menüsü (başlıkta, giriş yapılmışken) */
.user-menu > summary { gap: 6px; padding-inline: 8px 10px; }
.user-menu .avatar--xs { width: 26px; height: 26px; font-size: 10.5px; }
.user-menu .menu__panel { min-width: 240px; max-width: min(300px, calc(100vw - 32px)); }
.user-menu__head { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; min-width: 0; }
.user-menu__head strong { font-size: 14px; font-weight: 600; }
.user-menu__head span { font-size: 12.5px; color: var(--muted); }
.user-menu hr { width: 100%; border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.user-menu form { display: contents; }

/* --- Modal (<dialog class="modal">) -------------------------------------- */
.modal {
  width: min(420px, calc(100vw - 32px));
  padding: 26px;
  border-radius: var(--r-3xl);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(20, 10, 50, .6);
}
.modal::backdrop { background: var(--scrim); backdrop-filter: blur(2px); }
.modal[open] { animation: pop-in .2s var(--ease); }
.modal__inner { display: flex; flex-direction: column; gap: 22px; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal__title { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.modal__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r-lg);
  background: var(--warn-bg); color: var(--warn-ic);
  display: flex; align-items: center; justify-content: center;
}
.modal__close {
  width: 36px; height: 36px; flex-shrink: 0;
  border: 0; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
/* Hazır QR modalı (menü ve dinamik link kartları) */
.qr-modal__title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qr-modal__preview { width: 180px; min-height: 180px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.qr-modal__downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.qr-modal__design {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--r-xl);
  color: var(--text); text-decoration: none;
  transition: border-color var(--t), background var(--t);
}
.qr-modal__design:hover { border-color: var(--border-strong); background: var(--surface-2); text-decoration: none; }
.qr-modal__design-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qr-modal__design-text strong { font-size: 15px; font-weight: 600; }

/* Modal önizlemesi (UI kit sayfasında statik gösterim için) */
.modal--static { position: static; display: block; margin: 0 auto; }
.scrim-demo { padding: 36px 16px; border-radius: var(--r-2xl); background: var(--scrim); }

/* --- İpucu (tooltip) ----------------------------------------------------
   <span class="tooltip" role="tooltip">Panoya kopyalandı</span>             */
.tooltip {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: var(--toast-bg);
  color: var(--toast-fg);
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.tooltip::after {
  content: "";
  position: absolute; bottom: -5px; inset-inline-end: 17px;
  width: 10px; height: 10px;
  background: inherit;
  transform: rotate(45deg);
}
[data-tip] { position: relative; }
[data-tip].show-tip::before {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 10px); inset-inline-end: 0;
  padding: 8px 12px; border-radius: var(--r-sm);
  background: var(--toast-bg); color: var(--toast-fg);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  pointer-events: none;
  animation: pop-in .18s var(--ease);
}

/* --- Adım başlığı -------------------------------------------------------- */
.step { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step strong { font-size: 17px; font-weight: 600; }
.step__num {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--text); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.step__hint { font-size: 14px; color: var(--muted); }

/* --- Canlı durum noktası ------------------------------------------------- */
.live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.live::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted); box-shadow: 0 0 0 4px var(--surface);
}
.live.is-on::before { background: var(--green-600); box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }

/* --- SSS (akordeon, <details>) ------------------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item > summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font-size: clamp(16px, 1.6vw, 19px); font-weight: 600;
  cursor: pointer;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__toggle {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-2); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background-color var(--t), color var(--t), transform var(--t);
}
.faq__item[open] .faq__toggle { background: var(--primary); color: #FFFFFF; transform: rotate(45deg); }
.faq__item > p { max-width: 640px; margin: 0 0 26px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* --- Boş durum ----------------------------------------------------------- */
.empty {
  padding: 48px 24px;
  border-radius: 22px;
  border: 1.5px dashed var(--border-strong);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.empty strong { font-size: 17px; font-weight: 600; }
.empty span { font-size: 14.5px; color: var(--muted); }

/* --- Avatar -------------------------------------------------------------- */
.avatar {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; text-transform: uppercase;
}
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.avatar--xs { width: 22px; height: 22px; padding: 0; border-radius: 50%; color: #FFFFFF; font-size: 9.5px; letter-spacing: .02em; }

/* --- Logo ---------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px;
  padding: 8px;
  border-radius: var(--r-sm);
  background: var(--primary);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px;
}
.logo-mark i { background: #FFFFFF; border-radius: 2px; }
.logo-mark i:nth-child(2), .logo-mark i:nth-child(3) { opacity: .55; }
.logo-mark i:nth-child(4) { border-radius: 50%; }
.logo-word { font-weight: 800; font-size: 23px; letter-spacing: -.03em; line-height: 1; }
.logo-word span { color: var(--primary-text); }
.logo--sm .logo-mark { width: 32px; height: 32px; padding: 7px; border-radius: 9px; }
.logo--sm .logo-word { font-size: 21px; }

/* Tema düğmesi: aktif temaya göre ay/güneş */
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: contents; }
[data-theme="dark"] .theme-toggle__moon { display: none; }


/* 4. DÜZEN ================================================================ */

/* --- Header -------------------------------------------------------------- */
.site-header { position: relative; z-index: 30; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 20px; padding-bottom: 20px;
}
.nav-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 5px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15px; font-weight: 500;
}
.nav-pill a, .nav-pill span {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.nav-pill a:hover { color: var(--text); }
.nav-pill .is-active { background: var(--surface-2); color: var(--text); }
.nav-pill .badge { padding: 2px 7px; border-radius: 6px; font-size: 11px; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Mobil menü */
.mobile-nav { display: none; }
.mobile-nav > summary { list-style: none; }
.mobile-nav > summary::-webkit-details-marker { display: none; }
.mobile-nav .menu__panel { width: min(300px, calc(100vw - 32px)); padding: 8px; }
.mobile-nav hr { width: 100%; border: 0; border-top: 1px solid var(--border); margin: 6px 0; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.site-footer__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap;
  padding-top: 36px; padding-bottom: 36px;
}
.site-footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .logo-word { font-size: 19px; }

/* --- Landing / hero ------------------------------------------------------ */
.page-glow {
  position: absolute; left: 0; top: 0; right: 0;
  height: 900px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 90%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 90%);
}
.hero {
  position: relative; z-index: 2;
  padding: 56px 0 52px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  text-align: center;
}
.hero .lead { max-width: 620px; }
.hero__title { display: flex; flex-direction: column; align-items: center; }
.hero__title .serif { font-size: 1.18em; color: var(--primary-text); }
.hero__line { display: flex; align-items: center; gap: .25em; }
.hero-mark {
  width: .95em; height: .95em;
  padding: .16em;
  border-radius: .27em;
  background: var(--primary);
  transform: rotate(-8deg);
  box-shadow: 0 18px 34px -14px var(--primary);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .045em;
}
.hero-mark i { border-radius: 3px; }
.hero-mark i.on { background: #FFFFFF; }
.hero-mark i.dot { background: #FFFFFF; border-radius: 50%; }
.pill-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
}
.pill-link:hover { text-decoration: none; border-color: var(--border-strong); }

.section { margin-top: 112px; }
.section-head { display: flex; flex-direction: column; gap: 16px; }
.features { margin-top: 96px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature .icon { color: var(--primary-text); }
.feature strong { font-size: 17px; font-weight: 600; }
.feature span { font-size: 15px; line-height: 1.55; color: var(--muted); }

.promo {
  padding: 56px;
  border-radius: var(--r-4xl);
  background: var(--surface-2);
  display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; align-items: center;
}
.promo__list { display: flex; flex-direction: column; gap: 12px; font-size: 16px; font-weight: 500; }
.promo__list div { display: flex; align-items: center; gap: 12px; }
.menu-demo { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 28px; }
.menu-demo__item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--r-xl); background: var(--surface-2); }
.menu-demo__img { width: 54px; height: 54px; flex-shrink: 0; border-radius: var(--r-md); background: var(--soft); }
.menu-demo__item span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.menu-demo__item small { font-size: 13px; color: var(--muted); }

.faq-section { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 80px; }

.band {
  margin-top: 112px;
  padding: 64px;
  border-radius: var(--r-4xl);
  background: var(--purple-600);
  color: #FFFFFF;
  display: flex; justify-content: space-between; align-items: center; gap: 48px;
}
.band h2 { font-size: clamp(32px, 4vw, 48px); }
.band p { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .84); margin-top: 12px; }
.band .btn { background: #FFFFFF; color: var(--purple-700); flex-shrink: 0; }
.band .btn:hover { background: var(--purple-50); }

/* --- QR oluşturucu ------------------------------------------------------- */
.generator {
  position: relative; z-index: 5;
  border-radius: var(--r-4xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.generator__types {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.generator__types .count { margin-inline-start: auto; font-size: 13px; color: var(--muted); }
.generator__types a.count:hover { color: var(--text); }
.generator__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
.generator__controls { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.generator__preview {
  margin: 16px;
  padding: 22px;
  border-radius: var(--r-3xl);
  background: var(--surface-2);
  display: flex; flex-direction: column; gap: 18px;
  min-width: 0;
}
.stage {
  flex-grow: 1;
  min-height: 430px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background-size: 18px 18px;
}
.stage__card {
  padding: 22px;
  border-radius: 28px;
  background: #FFFFFF;
  box-shadow: 0 24px 50px -22px rgba(40, 20, 90, .45);
}
.stage__card { transition: opacity var(--t); }
.stage__card.is-stale { opacity: .45; }
.stage__card img { width: min(300px, 62vw); height: auto; }
.stage__empty {
  width: min(275px, 62vw); aspect-ratio: 1;
  border-radius: 20px;
  border: 2px dashed var(--border-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.stage__empty .icon { color: var(--primary-text); opacity: .7; }
.mini-preview { display: none; }
@media (max-width: 980px) {
  .mini-preview:not([hidden]) {
    position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 60;
    display: block;
    padding: 8px;
    border-radius: var(--r-xl);
    background: #FFFFFF;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-pop);
    animation: pop-in .2s var(--ease);
  }
  .mini-preview img { width: 76px; height: auto; }
}
.actions-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.actions-3 .btn { --btn-h: 48px; border-radius: var(--r-lg); font-size: 14.5px; padding: 0 10px; }
.save-row { display: flex; gap: 10px; }
.save-row .input { flex: 1; }
.panel-block { min-height: 176px; }

/* --- Üyelik (giriş / kayıt) --------------------------------------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); }
.auth__aside {
  position: relative; overflow: hidden;
  margin: 16px;
  padding: 48px;
  border-radius: var(--r-4xl);
  background: var(--purple-950);
  color: #FFFFFF;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.auth__aside::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(195, 174, 251, .18) 1.2px, transparent 1.6px);
  background-size: 24px 24px;
  pointer-events: none;
}
.auth__aside > * { position: relative; }
.auth__aside .logo { color: #FFFFFF; }
.auth__aside .logo-mark { background: #7C4DFF; }
.auth__aside .logo-word span { color: var(--purple-300); }
.auth__aside h2 { font-size: clamp(36px, 4vw, 50px); letter-spacing: -.04em; line-height: 1; }
.auth__aside h2 .serif { font-size: 1.2em; color: var(--purple-300); }
.auth__aside p { max-width: 460px; margin-top: 16px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.auth__cards { position: relative; height: 340px; }
.auth__card {
  position: absolute;
  width: 200px;
  padding: 14px;
  border-radius: 22px;
  background: #FFFFFF;
  color: #17122B;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .55);
  display: flex; flex-direction: column; gap: 12px;
}
.auth__card img { width: 172px; height: 172px; }
.auth__card div { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
.auth__card .badge { background: #EFE9FE; color: #5A2FD4; }
.auth__card:nth-child(1) { left: 20px; top: 40px; transform: rotate(-9deg); }
.auth__card:nth-child(2) { left: 190px; top: 0; transform: rotate(4deg); z-index: 2; }
.auth__card:nth-child(3) { left: 340px; top: 70px; transform: rotate(12deg); }
.auth__main { display: flex; flex-direction: column; padding: 28px clamp(16px, 5vw, 64px); }
.auth__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.back-link:hover { color: var(--text); text-decoration: none; }
.auth__center { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.auth__form { width: min(420px, 100%); display: flex; flex-direction: column; gap: 22px; }
.auth__form form { display: flex; flex-direction: column; gap: 14px; }
.auth__switch { text-align: center; font-size: 14px; color: var(--muted); }
.auth__switch a { font-weight: 600; }

/* --- Panel (hesabım) ----------------------------------------------------- */
.app { min-height: 100vh; display: grid; grid-template-columns: 272px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-inline-end: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 24px;
  overflow-y: auto;
}
.sidebar .logo { padding: 0 8px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a, .side-nav span {
  height: 44px;
  padding: 0 12px;
  border-radius: var(--r-md);
  color: var(--muted);
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 500;
  text-decoration: none;
}
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav .is-active { background: var(--soft); color: var(--soft-text); font-weight: 600; }
.side-nav .is-active:hover { background: var(--soft); color: var(--soft-text); }
.side-nav .grow { flex: 1; }
.side-nav .is-disabled { opacity: .7; }
.side-nav--bottom { margin-top: auto; }
.side-nav__label {
  margin: 0 0 4px; padding: 0 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.kind-tabs { display: none; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.kind-tabs::-webkit-scrollbar { display: none; }
.user-card {
  padding: 12px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.user-card__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.user-card__text strong { font-size: 14px; font-weight: 600; }
.user-card__text span { font-size: 12.5px; color: var(--muted); }
.app__main { padding: 28px 48px 48px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.app__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.app__head h1 { flex-grow: 1; font-size: clamp(30px, 3.4vw, 38px); }
.app__search { width: 300px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.qr-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 18px; }
.qr-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(390px, 100%), 1fr)); }
.qr-item { display: flex; gap: 16px; }
.qr-item .qr-frame { width: 116px; height: 116px; padding: 11px; border-radius: var(--r-xl); }
.qr-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.qr-item__title { display: flex; align-items: center; gap: 8px; }
.qr-item__title strong { flex: 1; font-size: 16px; font-weight: 600; }
.qr-item__value { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.qr-item__date { font-size: 12.5px; color: var(--muted); }
.qr-item__actions { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.qr-item__actions form { display: contents; }
.app-topbar { display: none; }

/* --- İçerik sayfası (hakkımızda vb.) ------------------------------------ */
.prose { max-width: 720px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 18px; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--muted); }

/* --- Hukuki sayfalar (/terms, /privacy) ---------------------------------- */
.legal-head { max-width: 760px; padding: 56px 0 8px; display: flex; flex-direction: column; gap: 16px; }
.legal { margin-top: 40px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal__toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px; }
.legal__toc ol { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--muted); }
.legal__toc a { color: var(--muted); }
.legal__toc a:hover { color: var(--text); }
.legal__body { max-width: 760px; display: flex; flex-direction: column; gap: 44px; }
.legal__body section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
.legal__body h2 { font-size: 24px; letter-spacing: -.02em; }
.legal__body h3 { margin-top: 6px; font-size: 17px; font-weight: 600; }
.legal__body p, .legal__body li { font-size: 16px; line-height: 1.7; color: var(--muted); }
.legal__body strong { color: var(--text); font-weight: 600; }
.legal__body ul { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal__table { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
.legal__table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; text-align: start; }
.legal__table th, .legal__table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal__table tbody tr:last-child > * { border-bottom: 0; }
.legal__table thead th { background: var(--surface-2); font-weight: 600; }
.legal__table td { color: var(--muted); }
.legal__contact { display: flex; gap: 16px; align-items: flex-start; }
.legal__contact div { display: flex; flex-direction: column; gap: 4px; }

/* --- Çerez bildirimi ------------------------------------------------------ */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 720px; margin: 0 auto;
  padding: 18px 20px;
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  display: flex; align-items: center; gap: 20px;
  animation: toast-in .35s var(--ease);
}
.consent__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.consent__text strong { font-size: 15px; font-weight: 600; }
.consent__text p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.consent__actions { display: flex; gap: 8px; flex-shrink: 0; }
.text-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.text-btn:hover { color: var(--text); text-decoration: underline; }
.mp-foot__legal { display: block; margin-top: 8px; color: var(--muted); }
.auth__legal { font-size: 12.5px; line-height: 1.55; color: var(--muted); text-align: center; }
.auth__legal a { color: var(--muted); text-decoration: underline; }

/* --- SSS sayfası (/faq) ------------------------------------------------- */
.faq-search { width: min(560px, 100%); }
.faq-search .input-wrap { display: block; }
.faq-page {
  position: relative; z-index: 2;
  margin-top: 24px;
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start;
}
.faq-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 4px; }
.faq-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-md);
  color: var(--text); font-size: 15px; font-weight: 500;
}
.faq-nav a:hover { background: var(--surface-2); text-decoration: none; }
.faq-nav .icon { color: var(--primary-text); flex-shrink: 0; }
.faq-nav__count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.faq-page__body { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.faq-group { scroll-margin-top: 24px; }
.faq-group__title { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; font-size: 26px; letter-spacing: -.03em; }
.faq-more { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.faq-more .grow { display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
.faq-more strong { font-size: 17px; font-weight: 600; }

/* --- QR türleri tanıtım (/qr-codes) -------------------------------------- */
.guide-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card {
  display: flex; flex-direction: column; gap: 12px;
  color: var(--text); text-decoration: none;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.guide-card:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-card strong { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.guide-card__text { font-size: 15px; line-height: 1.55; color: var(--muted); }
.guide-card__more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--primary-text); }
.guide-crumbs { position: relative; z-index: 2; padding-top: 32px; }
.guide-hero {
  position: relative; z-index: 2;
  padding: 28px 0 8px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: center;
}
.guide-hero__title { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.icon-box--lg { width: 60px; height: 60px; border-radius: var(--r-xl); }
.guide-sample { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.guide-sample .qr-frame { width: 100%; max-width: 272px; }
.guide-sample figcaption { display: flex; flex-direction: column; gap: 4px; }
.guide-facts { margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guide-facts dd { margin: 6px 0 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
.guide-how { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: start; }
.guide-text { display: flex; flex-direction: column; gap: 18px; }
.guide-text p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.guide-code pre {
  margin: 12px 0; padding: 16px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border);
  font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-all;
}
.guide-use { display: flex; align-items: flex-start; gap: 14px; }
.guide-use div { display: flex; flex-direction: column; gap: 4px; }
.guide-use strong { font-size: 16px; font-weight: 600; }
.guide-use span:not(.check-dot) { font-size: 15px; line-height: 1.5; color: var(--muted); }
.guide-fields { margin-top: 32px; padding-top: 8px; padding-bottom: 8px; }
.guide-field {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.guide-field:last-child { border-bottom: 0; }
.guide-field .muted { font-size: 15px; line-height: 1.5; }
.guide-steps { margin: 32px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.guide-steps li { display: flex; flex-direction: column; gap: 10px; }
.guide-steps strong { font-size: 17px; font-weight: 600; }
.guide-steps li > span:last-child { font-size: 15px; line-height: 1.55; color: var(--muted); }
.guide-tips { align-items: start; }
.guide-tips__list { margin: 0; padding: 0; list-style: none; }
.guide-tips__list li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.guide-checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.guide-checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.guide-checklist .icon { flex-shrink: 0; margin-top: 2px; color: var(--primary-text); }
.guide-all { margin-top: 24px; }
.guide-compare-wrap { margin-top: 32px; padding: 8px 26px; overflow-x: auto; }
.guide-compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; text-align: start; }
.guide-compare th, .guide-compare td { padding: 16px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.guide-compare tbody tr:last-child > * { border-bottom: 0; }
.guide-compare thead th { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-text); }
.guide-compare tbody th { width: 26%; font-weight: 600; }
.guide-compare td { color: var(--muted); }

/* --- UI kit kataloğu ----------------------------------------------------- */
.kit-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 48px 0 40px; }
.kit-head h1 { font-size: clamp(48px, 6vw, 76px); letter-spacing: -.045em; line-height: 1; margin-top: 10px; }
.kit-head p { max-width: 460px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.kit-top { display: grid; grid-template-columns: 520px minmax(0, 1fr); gap: 24px; }
.kit-font { display: flex; align-items: baseline; gap: 18px; }
.kit-font__sample { font-size: 64px; line-height: 1; min-width: 80px; }
.kit-font div { display: flex; flex-direction: column; gap: 2px; }
.kit-font div strong { font-size: 16px; font-weight: 600; }
.kit-font div span { font-size: 14px; color: var(--muted); }
.kit-scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.kit-scale div {
  height: 96px; padding: 10px; border-radius: var(--r-md);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
}
.kit-scale strong { font-size: 13px; font-weight: 600; }
.kit-scale span { font-family: var(--font-mono); font-size: 9.5px; opacity: .8; }
.kit-status { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kit-status div { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.kit-status i { width: 36px; height: 36px; border-radius: var(--r-sm); }
.kit-status span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.kit-tokens { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kit-token { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.kit-token i { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border); flex-shrink: 0; }
.kit-token code { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.kit-themes { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.kit-theme {
  padding: 40px;
  border-radius: 28px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 36px;
  min-width: 0;
}
.kit-theme__head { display: flex; justify-content: space-between; align-items: center; }
.kit-theme__head h2 { font-size: 34px; }
.kit-block { display: flex; flex-direction: column; gap: 16px; }
.kit-block code.usage {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  padding: 8px 10px; border-radius: 8px; background: var(--surface-2);
  overflow-x: auto; white-space: nowrap;
}
.kit-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.kit-icons div {
  padding: 12px 6px; border-radius: var(--r-md); background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); text-align: center;
  overflow-wrap: anywhere;
}
.kit-icons .icon { color: var(--text); }


/* --- Çöp kutusu ----------------------------------------------------------- */
.trash { border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); }
.trash > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  font-weight: 600; color: var(--muted);
}
.trash > summary::-webkit-details-marker { display: none; }
.trash[open] > summary .menu__caret { transform: rotate(180deg); }
.trash > p { padding: 0 16px; }
.trash__list { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; }
.trash__item { display: flex; align-items: center; gap: 8px; padding: 10px 8px; border-top: 1px solid var(--border); }
.trash__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }

/* Kısa link kutusu */
.short-link {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
}
.short-link__url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--text); }

/* --- Link editörü ---------------------------------------------------------- */
.link-editor { display: flex; flex-direction: column; gap: 8px; max-width: 1040px; }
.tile--kind .tile__box { align-items: flex-start; text-align: start; gap: 6px; padding: 16px; min-height: 132px; justify-content: flex-start; }
.tile--kind .tile__box span:last-child { line-height: 1.45; }
.tile--kind input:checked + .tile__box .icon-box { background: var(--primary); color: #FFFFFF; }
.photo-slot--round { border-radius: 50%; }
.link-editor__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; max-width: 1240px; }
.link-editor--preview .settings-row { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
.link-editor__grid .menu-editor__preview { margin-top: 22px; }
.link-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.link-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--r-xl); background: var(--surface-2); }
.link-item__fields { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; }
.link-item__fields .input { height: 44px; background: var(--surface); }
.link-item__actions { display: flex; }

/* --- Hesap ayarları ------------------------------------------------------ */
.settings { display: flex; flex-direction: column; gap: 8px; max-width: 1040px; }
.settings-row {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 24px;
}
.settings-row:last-child { border-bottom: 0; }
.settings-row__intro { display: flex; flex-direction: column; gap: 8px; }
.settings-row__intro p { font-size: 14.5px; line-height: 1.55; }
.card--danger { border-color: var(--err-bd); }
.connection { display: flex; align-items: center; gap: 14px; }
.connection + .connection { padding-top: 14px; border-top: 1px solid var(--border); }
.connection__logo {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: #FFFFFF; color: #000000;
  display: flex; align-items: center; justify-content: center;
}
.connection__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }

/* --- Menü listesi ve editörü (panel) ------------------------------------ */
.app__body { min-width: 0; }
.menu-new { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px; }
.menu-new__text { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.menu-new .input { flex: 1 1 220px; max-width: 320px; }
.menu-card { display: flex; flex-direction: column; gap: 12px; }
.menu-card__top { display: flex; align-items: center; gap: 12px; }
.menu-card__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.menu-card__info strong { font-size: 16px; font-weight: 600; }
.menu-card__logo {
  width: 48px; height: 48px; flex-shrink: 0; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--accent); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
.menu-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.menu-title { font-size: clamp(24px, 3vw, 32px) !important; flex-grow: 0 !important; }
.menu-actions { margin-inline-start: auto; }

.menu-editor__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.menu-editor__main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.menu-editor__preview { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; }
.phone {
  height: min(760px, calc(100vh - 110px));
  padding: 10px;
  border-radius: 44px;
  background: #17122B;
  box-shadow: var(--shadow);
}
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; background: #FFFFFF; }
.menu-media { display: flex; gap: 16px; align-items: flex-start; }
.menu-media .grow { flex: 1; }
.photo-slot {
  position: relative; overflow: hidden;
  padding: 0;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-xl);
  background: var(--surface-2);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--t), background-color var(--t);
}
.photo-slot:hover { border-color: var(--primary); color: var(--primary-text); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot [data-photo-empty] { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; }
.photo-slot.is-busy { opacity: .5; pointer-events: none; }
.photo-slot.is-busy::after {
  content: ""; position: absolute; width: 22px; height: 22px;
  border: 2.4px solid var(--primary); border-right-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite;
}
.photo-slot--logo { width: 96px; height: 96px; border-radius: 24px; }
.photo-slot--cover { width: 100%; height: 96px; }
.photo-slot--item { width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--r-md); }
.link-btn { padding: 0; border: 0; background: none; color: var(--err-text); font-size: 13px; font-weight: 600; align-self: flex-start; }
.swatch-radio { cursor: pointer; display: inline-flex; }
.swatch-radio .swatch { display: block; }
.swatch-radio input:checked + .swatch { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c); }
.swatch-radio input:focus-visible + .swatch { outline: 2px solid var(--primary); outline-offset: 4px; }
.select--sm, .input--sm { height: 40px; font-size: 14px; }
.select--sm { width: auto; }
.switch--lg { align-items: flex-start; line-height: 1.35; }
.switch--lg .switch__track { margin-top: 2px; }
.slug-input { display: flex; align-items: stretch; }
.slug-input__prefix {
  display: flex; align-items: center;
  padding: 0 12px;
  border: 1.5px solid var(--border); border-inline-end: 0;
  border-radius: var(--r-md) 0 0 var(--r-md);
  background: var(--surface-2); color: var(--muted);
  font-family: var(--font-mono); font-size: 13px;
  max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.slug-input .input { border-radius: 0 var(--r-md) var(--r-md) 0; }
.cat-card { display: flex; flex-direction: column; gap: 10px; }
.cat-card__head { display: flex; align-items: center; gap: 4px; }
.cat-card__name { font-weight: 700; font-size: 16px; margin-inline-end: 6px; }
.input.is-invalid { border-color: var(--err-ic); box-shadow: 0 0 0 4px var(--err-ring); }
.item-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.item-row {
  padding: 8px;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  display: flex; flex-direction: column; gap: 10px;
}
.item-row.is-open { background: var(--soft); }
.item-row.is-out .item-row__main > .input { text-decoration: line-through; color: var(--muted); }
.item-row__main { display: flex; align-items: center; gap: 8px; }
.item-row__main > .input { flex: 1; min-width: 0; height: 44px; background: var(--surface); }
.item-row__toggle .icon { transition: transform var(--t); }
.item-row.is-open .item-row__toggle .icon { transform: rotate(180deg); }
.item-row__more { display: flex; flex-direction: column; gap: 10px; padding: 0 4px 4px 56px; }
.item-row__more .textarea { min-height: 64px; background: var(--surface); }
.price-input { position: relative; width: 120px; flex-shrink: 0; }
.price-input .input { height: 44px; padding-inline-end: 30px; text-align: end; background: var(--surface); }
.price-input span { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.tag-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-toggle span {
  display: inline-flex; padding: 5px 11px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all var(--t);
}
.tag-toggle input:checked + span { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.tag-toggle input:focus-visible + span { box-shadow: 0 0 0 3px var(--ring); }

/* --- Dijital menü (herkese açık sayfa, .mp) ------------------------------
   Menünün vurgu rengi --accent ile gelir; tema menü sahibinin seçimidir. */
.mp { min-height: 100vh; max-width: 640px; margin: 0 auto; padding-bottom: 32px; }
.mp-banner {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--warn-bg); color: var(--warn-fg);
  font-size: 13.5px; font-weight: 500;
}
.mp-banner span { flex: 1; }
.mp-banner a { color: inherit; font-weight: 700; text-decoration: underline; }
.mp-cover {
  height: 170px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
  background-size: cover; background-position: center;
}
.mp-brand { padding: 0 20px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.mp-logo {
  width: 84px; height: 84px; margin-top: -42px;
  border-radius: 24px;
  border: 4px solid var(--bg);
  background: var(--surface);
  object-fit: cover;
  box-shadow: var(--shadow-pop);
}
.mp-logo--text {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #FFFFFF;
  font-size: 34px; font-weight: 800;
}
.mp-brand h1 { font-size: clamp(28px, 8vw, 36px); letter-spacing: -.035em; margin-top: 6px; }
.mp-brand p { color: var(--muted); font-size: 15px; line-height: 1.55; white-space: pre-line; }
.mp-nav {
  position: sticky; top: 0; z-index: 20;
  overflow-x: auto; scrollbar-width: none;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.mp-nav::-webkit-scrollbar { display: none; }
.mp-nav__track { display: flex; gap: 8px; width: max-content; }
.mp-nav a {
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: var(--surface-2); color: var(--muted);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--t), color var(--t);
}
.mp-nav a.is-active { background: var(--accent); color: #FFFFFF; }
.mp-body { padding: 8px 16px 0; }
.mp-section { padding-top: 24px; scroll-margin-top: 64px; }
.mp-section__head { padding: 0 4px 12px; display: flex; flex-direction: column; gap: 4px; }
.mp-section__head h2 { font-size: 22px; letter-spacing: -.03em; }
.mp-section__head p { font-size: 14px; color: var(--muted); }
.mp-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mp-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px;
  border-radius: var(--r-2xl);
  background: var(--surface);
  border: 1px solid var(--border);
}
.mp-item.is-out { opacity: .55; }
.mp-item__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mp-item__text h3 { font-size: 16px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.mp-item__text p {
  font-size: 13.5px; line-height: 1.5; color: var(--muted); white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mp-price { font-size: 16px; font-weight: 700; color: var(--accent); }
[data-theme="dark"] .mp-price { color: color-mix(in srgb, var(--accent) 60%, #fff); }
.mp-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.mp-tag {
  padding: 2px 8px; border-radius: 6px;
  background: var(--surface-2); color: var(--muted);
  font-size: 11.5px; font-weight: 600;
}
.mp-tag--new, .mp-tag--popular, .mp-tag--chef { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
[data-theme="dark"] .mp-tag--new, [data-theme="dark"] .mp-tag--popular, [data-theme="dark"] .mp-tag--chef { color: color-mix(in srgb, var(--accent) 55%, #fff); }
.mp-tag--vegetarian, .mp-tag--vegan { background: var(--ok-bg); color: var(--ok-fg); }
.mp-tag--spicy { background: var(--err-bg); color: var(--err-fg); }
.mp-tag--gluten_free { background: var(--warn-bg); color: var(--warn-fg); }
.mp-tag--out { background: var(--text); color: var(--bg); }
.mp-item__photo {
  flex-shrink: 0;
  width: 96px; height: 96px; padding: 0;
  border: 0; border-radius: var(--r-xl);
  overflow: hidden; background: var(--surface-2);
  cursor: zoom-in;
}
.mp-item__photo img { width: 100%; height: 100%; object-fit: cover; }
.mp-empty {
  margin: 40px 16px; padding: 40px 20px;
  border-radius: var(--r-2xl); border: 1.5px dashed var(--border-strong);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--muted);
}
.mp-empty strong { color: var(--text); font-size: 17px; }
.mp-foot { padding: 32px 16px 8px; text-align: center; font-size: 13px; }
.mp-foot a { color: var(--muted); }
.mp-zoom {
  width: min(560px, calc(100vw - 24px)); padding: 0;
  border: 0; border-radius: var(--r-3xl); overflow: hidden; background: var(--surface);
}
.mp-zoom::backdrop { background: rgba(0, 0, 0, .7); }
.mp-zoom img { width: 100%; height: auto; }
.mp-zoom .modal__close { position: absolute; top: 12px; inset-inline-end: 12px; }

/* --- Link sayfası, içerik sayfası ve şifre kapısı (herkese açık, .lp) ---- */
.lp { min-height: 100vh; max-width: 560px; margin: 0 auto; padding: 0 16px 24px; display: flex; flex-direction: column; }
.lp .mp-banner { margin: 0 -16px; }
.lp--center { justify-content: center; }
.lp-links { padding: 48px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.lp-avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--surface); box-shadow: var(--shadow-pop);
}
.lp-avatar--text { display: flex; align-items: center; justify-content: center; background: var(--accent); color: #FFFFFF; font-size: 38px; font-weight: 800; }
.lp-links h1 { font-size: clamp(26px, 7vw, 32px); margin-top: 6px; }
.lp-desc { color: var(--muted); font-size: 15.5px; line-height: 1.55; white-space: pre-line; max-width: 420px; }
.lp-buttons { list-style: none; margin: 16px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.lp-button {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 12px 44px;
  border-radius: var(--r-xl);
  background: var(--accent); color: #FFFFFF;
  font-size: 16px; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 24px -14px var(--accent);
  transition: transform var(--t-fast), filter var(--t-fast);
}
.lp-button:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.lp-button .icon { position: absolute; inset-inline-end: 18px; opacity: .8; }
.lp-content { padding: 24px 0 8px; }
.lp-cover { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--r-3xl); margin-bottom: 20px; }
.lp-article h1 { font-size: clamp(28px, 7vw, 36px); margin-bottom: 16px; }
.lp-article p { font-size: 16.5px; line-height: 1.7; margin-bottom: 14px; overflow-wrap: anywhere; }
.lp-article a { color: var(--accent); font-weight: 600; text-decoration: underline; }
/* Fiyat etiketi */
.lp-price { padding: 48px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.lp-price__logo { max-width: 160px; max-height: 88px; object-fit: contain; border-radius: var(--r-md); }
.lp-price h1 { font-size: clamp(24px, 6.5vw, 30px); overflow-wrap: anywhere; }
.lp-price__amount { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.lp-price__amount strong { font-size: clamp(44px, 14vw, 64px); font-weight: 800; line-height: 1.05; color: var(--accent); letter-spacing: -.02em; }
.lp-price__old { font-size: 20px; color: var(--muted); }
.lp-price__unit { font-size: 17px; color: var(--muted); font-weight: 500; }
.lp-price__meta {
  width: 100%; margin: 12px 0 0; padding: 4px 18px;
  border: 1px solid var(--border); border-radius: var(--r-xl);
  display: flex; flex-direction: column;
}
.lp-price__meta div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.lp-price__meta div + div { border-top: 1px solid var(--border); }
.lp-price__meta dt { color: var(--muted); font-size: 14px; }
.lp-price__meta dd { margin: 0; font-family: "Geist Mono", ui-monospace, monospace; font-size: 14.5px; overflow-wrap: anywhere; }
.lp-price__updated { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }

/* Araç ön cam kartı */
.lp-vehicle__plate {
  display: inline-block; margin-inline-start: 6px; padding: 1px 8px;
  border: 1.5px solid currentColor; border-radius: 6px;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 14px; font-weight: 500; color: var(--text);
}
.lp-vehicle__note {
  width: 100%; padding: 14px 18px;
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 17px; font-weight: 600; white-space: pre-line;
}
.lp-vehicle .lp-button .icon { position: static; opacity: 1; }
.lp-button--alt { background: var(--surface-2); color: var(--text); box-shadow: none; }

.gate { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
.gate__icon {
  width: 60px; height: 60px; align-self: center;
  border-radius: 20px;
  background: color-mix(in srgb, var(--accent, var(--primary)) 14%, transparent);
  color: var(--accent, var(--primary));
  display: flex; align-items: center; justify-content: center;
}
.gate__icon--muted { background: var(--surface-2); color: var(--muted); }
.gate__submit { background: var(--accent, var(--primary)); }
.gate__submit:hover { background: var(--accent, var(--primary)); filter: brightness(1.08); }

/* 5. DUYARLI DÜZEN ======================================================== */

@media (max-width: 1180px) {
  .generator__body { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
  .promo { grid-template-columns: 1fr; gap: 40px; }
  .faq-section { grid-template-columns: 1fr; gap: 32px; }
  .kit-top, .kit-themes { grid-template-columns: 1fr; }
  .guide-how { grid-template-columns: 1fr; gap: 32px; }
  .guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
  .auth__card:nth-child(3) { display: none; }
}

@media (max-width: 980px) {
  .nav-pill, .hide-md { display: none !important; }
  .kind-tabs { display: flex; }
  .mobile-nav { display: block; }
  .generator__body { grid-template-columns: 1fr; }
  .generator__preview { margin: 0 12px 12px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { flex-direction: column; align-items: flex-start; padding: 40px; }
  .auth { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-page { grid-template-columns: 1fr; gap: 24px; }
  .legal { grid-template-columns: 1fr; gap: 32px; }
  .legal__toc { position: static; }
  .faq-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .faq-nav a { flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--r-full); padding: 8px 14px; }
  .guide-hero { grid-template-columns: 1fr; gap: 32px; }
  .guide-sample { max-width: 360px; }
  .guide-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth__aside { display: none; }
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .app-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; border-bottom: 1px solid var(--border);
  }
  .app__main { padding: 20px 16px 40px; }
  .app__search { width: 100%; order: 3; }
  .settings-row { grid-template-columns: 1fr; gap: 16px; padding: 22px 0; }
  .menu-editor__grid, .link-editor__grid { grid-template-columns: 1fr; }
  .menu-editor__preview { position: static; }
  .phone { height: 640px; max-width: 380px; width: 100%; margin: 0 auto; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .site-header__inner { padding-top: 14px; padding-bottom: 14px; }
  .hide-sm { display: none !important; }
  .hero { padding: 32px 0 28px; gap: 18px; }
  .hero__line { flex-wrap: wrap; justify-content: center; }
  .generator { border-radius: var(--r-3xl); }
  .generator__types { padding: 12px; gap: 6px; }
  .generator__types .count { display: none; }
  .generator__types .chip { height: 40px; padding: 0 12px; font-size: 14px; }
  .generator__controls { padding: 20px 16px; gap: 22px; }
  .generator__preview { padding: 16px; margin: 0 8px 8px; border-radius: var(--r-2xl); }
  .stage { min-height: 300px; padding: 16px; }
  .seg { overflow-x: auto; }
  .seg__item { flex: 1 0 auto; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .tile-grid { --cols: 2 !important; }
  .features { grid-template-columns: 1fr; margin-top: 56px; }
  .section, .band { margin-top: 72px; }
  .promo { padding: 28px 20px; border-radius: var(--r-3xl); }
  .band { padding: 32px 24px; border-radius: var(--r-3xl); }
  .site-footer { margin-top: 64px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .guide-grid, .guide-steps { grid-template-columns: 1fr; }
  .consent { flex-direction: column; align-items: stretch; gap: 14px; left: 8px; right: 8px; bottom: 8px; }
  .consent__actions .btn { flex: 1; }
  .guide-crumbs { padding-top: 20px; }
  .guide-hero__title { gap: 12px; }
  .icon-box--lg { width: 48px; height: 48px; }
  .guide-field { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .guide-field .muted { grid-column: 1 / -1; grid-row: 2; }
  .guide-compare-wrap { padding: 4px 16px; }
  .qr-grid { grid-template-columns: 1fr; }
  .qr-item .qr-frame { width: 96px; height: 96px; padding: 8px; }
  .kit-theme { padding: 24px 16px; }
  .kit-scale { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kit-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast-stack { top: 12px; inset-inline-end: 16px; }
  .menu__panel--grid { grid-template-columns: 1fr; }
  .card--lg { padding: 20px 16px; border-radius: var(--r-2xl); }
  .app-topbar { padding: 12px; }
  .app-topbar .logo-word { display: none; }
  .app-topbar nav { flex-wrap: nowrap; gap: 4px; }
  .app-topbar .lang-menu .menu__caret { display: none; }
  .link-item { flex-direction: column; align-items: stretch; }
  .link-item__fields { grid-template-columns: 1fr; }
  .link-item__actions { justify-content: flex-end; }
  .item-row__main { flex-wrap: wrap; }
  .item-row__main > .input { flex-basis: calc(100% - 112px); }
  .price-input { width: calc(100% - 104px); margin-inline-start: 56px; }
  .item-row__more { padding-inline-start: 4px; }
  .menu-media { flex-direction: column; }
  .menu-actions { width: 100%; margin-inline-start: 0; }
}

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