/* ============================================================
   Sadakat İşletme Paneli — "Kaşe 2" tasarım sistemi
   Yön: merchant-admin düzeni (koyu mürekkep yan menü + ferah içerik),
   tek imza öğesi damga ızgarası. Başlık/rakam: Poppins, gövde: Open Sans.
   Not: mobil istemciler (Theme.swift / Theme.kt) henüz eski "Kaşe"
   token'larını taşır; mobil revizyonunda bu değerlere hizalanacak.
   ============================================================ */

:root {
  /* Marka (mürekkep) */
  --primary: #4F46E5;
  --primary-press: #4338CA;
  --primary-soft: #E0E7FF;
  --primary-tint: #EEF2FF;
  --ink-900: #17153B;          /* yan menü */
  --ink-800: #221F52;
  --ink-text: #C9CAF2;

  /* Nötrler */
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --surface-2: #F9FAFC;
  --line: #E6E8F0;
  --line-strong: #D3D7E3;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #5B6779;            /* beyazda 5.6:1, --bg'de 5.2:1 */

  /* Durumlar */
  --success: #047857;  --success-tint: #ECFDF5;  --success-line: #A7F3D0;
  --reward: #B45309;   --reward-deep: #92400E;   --reward-tint: #FEF3C7;  --reward-line: #FCD34D;
  --danger: #DC2626;   --danger-text: #B91C1C;   --danger-tint: #FEF2F2;  --danger-line: #FECACA;
  --warning: #B45309;  --warning-tint: #FFFBEB;  --warning-line: #FDE68A;

  /* Biçim */
  --radius-lg: 18px;
  --radius: 14px;
  --radius-ctl: 10px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 10px 24px -8px rgba(16, 24, 40, .12), 0 2px 6px -2px rgba(16, 24, 40, .06);
  --ring: 0 0 0 4px rgba(79, 70, 229, .18);

  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", var(--font);

  --ease: cubic-bezier(.2, .7, .3, 1);
  --t-fast: 150ms;
  --t: 220ms;

  --sidebar-w: 256px;
  --tabbar-h: 64px;
}

* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); }
a:hover { color: var(--primary-press); }

.icon { display: block; flex: 0 0 auto; }

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

/* ============================================================
   Uygulama iskeleti
   ============================================================ */

.sidebar { display: none; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }

/* Mobil üst bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #6D63F5 0%, var(--primary) 55%, #3B32B8 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25), 0 4px 10px -3px rgba(79, 70, 229, .55);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -.2px; color: var(--text); }
.brand-sub { font-size: 12px; color: var(--muted); font-weight: 500; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--primary-tint); color: var(--primary); }
.icon-btn.on-dark { color: var(--ink-text); width: 40px; height: 40px; }
.icon-btn.on-dark:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* Mobil alt sekme çubuğu (aynı <nav>, sidebar dışına sabitlenir) */
.mainnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: space-around;
  gap: 4px;
  padding: 6px 8px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
}
.nav-item {
  flex: 1;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-item:hover { color: var(--text); }
.nav-item.active { color: var(--primary); }
.nav-item .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  border-radius: 999px;
  transition: background var(--t-fast) var(--ease);
}
.nav-item.active .nav-icon { background: var(--primary-tint); }
/* QR İşlem: birincil eylem — mobilde öne çıkan yuvarlak düğme */
.nav-item.nav-scan .nav-icon {
  width: 46px;
  height: 46px;
  margin-top: -20px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(79, 70, 229, .65), 0 0 0 4px var(--surface);
}
.nav-item.nav-scan.active .nav-icon { background: var(--primary-press); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom));
  flex: 1;
}
.footer { display: none; }

/* ---------- Masaüstü: yan menü ---------- */
@media (min-width: 960px) {
  .topbar { display: none; }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    z-index: 30;
    display: flex;
    flex-direction: column;
    padding: 20px 14px 14px;
    background:
      radial-gradient(120% 60% at 0% 0%, rgba(109, 99, 245, .22) 0%, rgba(109, 99, 245, 0) 60%),
      var(--ink-900);
    color: var(--ink-text);
  }
  .sidebar-brand { padding: 4px 8px 22px; }
  .sidebar .brand-name { color: #fff; }
  .sidebar .brand-sub { color: #9C9ED8; }
  .sidebar-caption {
    margin: 0 10px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8183C2;
  }

  .mainnav {
    position: static;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    padding: 0;
    background: none;
    border: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-item {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-text);
    position: relative;
  }
  .nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .nav-item .nav-icon,
  .nav-item.nav-scan .nav-icon {
    width: auto;
    height: auto;
    margin: 0;
    background: none;
    box-shadow: none;
    color: inherit;
    border-radius: 0;
  }
  .nav-item.active,
  .nav-item.nav-scan.active { background: rgba(255, 255, 255, .1); color: #fff; }
  .nav-item.active .nav-icon,
  .nav-item.nav-scan.active .nav-icon { background: none; color: #A5A0FF; }
  .nav-item.active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #8B83FF;
  }

  .sidebar-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 6px 4px 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .sidebar-foot .avatar { background: rgba(255, 255, 255, .1); color: #fff; }
  .who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
  .who-name { color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .who-role { font-size: 12px; color: #9C9ED8; }

  .shell { margin-left: var(--sidebar-w); }
  .container { padding: 36px 40px 24px; }
  .footer { display: block; text-align: center; color: var(--muted); font-size: 12.5px; padding: 8px 16px 28px; }
}
@media (max-width: 959.98px) {
  .sidebar-brand, .sidebar-caption, .sidebar-foot { display: none; }
  .sidebar { display: contents; }
}

/* ============================================================
   Tipografi ve sayfa başlığı
   ============================================================ */

h1, h2, h3, .display { font-family: var(--font-display); color: var(--text); }
h1 { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.4px; margin: 0; }
h2 { font-size: 16.5px; line-height: 1.35; font-weight: 600; letter-spacing: -.1px; margin: 0; }
h3 { font-size: 15px; line-height: 1.4; font-weight: 600; margin: 0 0 4px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; line-height: 1.5; }

@media (min-width: 960px) { h1 { font-size: 28px; } }

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.page-head-text { min-width: 0; }
.eyebrow {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
}
.page-sub { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.page-head-action { display: none; }
@media (min-width: 640px) { .page-head-action { display: block; } }

/* ============================================================
   Kartlar ve ızgaralar
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 16px;
}
@media (min-width: 640px) { .card { padding: 24px; } }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.card-head .sub { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.card-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--primary-tint);
  color: var(--primary);
  flex: 0 0 auto;
}
.card-title-row { display: flex; align-items: center; gap: 12px; min-width: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid > .card { margin-bottom: 0; }
.stack-lg { margin-bottom: 16px; }
@media (min-width: 640px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid.split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .grid.split-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
}

/* ---------- KPI kartları ---------- */
.kpi {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.kpi-icon.ink { background: var(--primary-tint); color: var(--primary); }
.kpi-icon.gold { background: var(--reward-tint); color: var(--reward); }
.kpi-icon.green { background: var(--success-tint); color: var(--success); }
.kpi-value {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.6px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.kpi-value .unit { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; font-family: var(--font); }
.kpi-foot { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Eylem (hero) kartı ---------- */
.action-card {
  position: relative;
  overflow: hidden;
  border: none;
  color: #fff;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(139, 131, 255, .55) 0%, rgba(139, 131, 255, 0) 55%),
    linear-gradient(140deg, #3B32B8 0%, var(--primary) 50%, #5D54EE 100%);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: 220px;
}
.action-card h2 { color: #fff; font-size: 21px; letter-spacing: -.3px; }
.action-card p { color: rgba(255, 255, 255, .82); margin: 8px 0 0; max-width: 42ch; }
.action-card .badge-soft { background: rgba(255, 255, 255, .16); color: #fff; }
.action-card .deco {
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .22);
  pointer-events: none;
}
.action-card .deco::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .14);
}
.action-card.disabled { background: linear-gradient(140deg, #64748B, #475569); }

/* ============================================================
   Formlar
   ============================================================ */

label, .field-label { display: block; margin-bottom: 16px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.req { color: var(--danger-text); margin-left: 2px; }
.help { display: block; margin-top: 6px; font-weight: 400; font-size: 13px; color: var(--muted); }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="search"],
input[type="url"], input[type="number"], textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  min-height: 46px;
  font-size: 16px;            /* iOS zoom'u önler */
  font-weight: 400;
  font-family: var(--font);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-ctl);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
input::placeholder, textarea::placeholder { color: #8C96A8; }
input:hover, textarea:hover { border-color: #B9BFCF; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--ring);
}
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.mono, input[type="text"].mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .02em; }

.input-icon { position: relative; display: block; margin-top: 6px; }
.input-icon .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8C96A8;
  pointer-events: none;
}
.input-icon input { margin-top: 0; padding-left: 44px; }

/* Dosya yükleme alanı */
.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  padding: 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-weight: 400;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.dropzone:hover, .dropzone:focus-within { border-color: var(--primary); background: var(--primary-tint); }
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.dropzone-text strong { display: block; color: var(--text); font-weight: 600; font-size: 14.5px; }
.dropzone-text span { font-size: 13px; color: var(--muted); }

.row2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 520px) { .row2 { grid-template-columns: 1fr 1fr; } }

/* Polaris tarzı form bölümleri: masaüstünde solda açıklama, sağda alanlar */
.form-section { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 12px 32px; grid-template-columns: 1fr; }
.form-section:first-of-type { border-top: none; padding-top: 0; }
.form-section-head h2 { font-size: 15.5px; }
.form-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
@media (min-width: 960px) {
  .form-section { grid-template-columns: 240px minmax(0, 1fr); }
}
.form-section-body > label:last-child, .form-section-body > .row2:last-child label { margin-bottom: 0; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   Butonlar
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-ctl);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--surface-2); border-color: #B9BFCF; color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn.primary:hover { background: var(--primary-press); border-color: var(--primary-press); color: #fff; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.btn.gold { background: var(--reward); border-color: var(--reward); color: #fff; }
.btn.gold:hover { background: var(--reward-deep); border-color: var(--reward-deep); color: #fff; box-shadow: 0 6px 16px -6px rgba(180, 83, 9, .55); }
.btn.white { background: #fff; border-color: #fff; color: var(--primary-press); }
.btn.white:hover { background: var(--primary-tint); border-color: var(--primary-tint); color: var(--primary-press); }
.btn.danger-outline { background: var(--surface); border-color: var(--danger-line); color: var(--danger-text); }
.btn.danger-outline:hover { background: var(--danger-tint); border-color: var(--danger); color: var(--danger-text); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn.ghost:hover { background: var(--primary-tint); color: var(--primary); }
.btn.link { background: none; border: none; box-shadow: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.btn.link:hover { color: var(--text); background: none; }
.btn.lg { min-height: 52px; font-size: 16px; padding: 0 24px; border-radius: 12px; }
.btn.wide { display: flex; width: 100%; }
.btn.disabled, .btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 180px; }

/* ============================================================
   Uyarılar ve rozetler
   ============================================================ */

[hidden] { display: none !important; }
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14.5px;
  border: 1px solid;
}
.alert > .icon { margin-top: 1px; }
.alert-body { min-width: 0; }
.alert-body strong { display: block; margin-bottom: 2px; }
.alert.error { background: var(--danger-tint); border-color: var(--danger-line); color: var(--danger-text); }
.alert.success { background: var(--success-tint); border-color: var(--success-line); color: var(--success); }
.alert.warning { background: var(--warning-tint); border-color: var(--warning-line); color: var(--reward-deep); }
.alert.info { background: var(--primary-tint); border-color: var(--primary-soft); color: var(--primary-press); }
.alert a { color: inherit; font-weight: 700; }

.badge, .badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.badge { background: var(--primary); color: #fff; }
.badge-soft { background: var(--primary-tint); color: var(--primary-press); }
.badge-soft.gold { background: var(--reward-tint); color: var(--reward-deep); }
.badge-soft.green { background: var(--success-tint); color: var(--success); }
.badge-soft.gray { background: #EEF0F4; color: var(--text-2); }
.badge .pulse, .badge-soft .pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ============================================================
   Sadakat kartı görseli (kampanya önizleme — imza öğesi)
   ============================================================ */

.loyalty-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(167, 139, 250, .5) 0%, rgba(167, 139, 250, 0) 55%),
    radial-gradient(80% 80% at 0% 100%, rgba(79, 70, 229, .7) 0%, rgba(79, 70, 229, 0) 60%),
    linear-gradient(150deg, #2A2577 0%, #17153B 100%);
  box-shadow: 0 20px 40px -18px rgba(23, 21, 59, .55), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.loyalty-card::after {
  /* ince kâğıt dokusu çizgileri */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 10px);
  pointer-events: none;
}
.lc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.lc-biz { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.lc-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.3; margin: 4px 0 0; color: #fff; overflow-wrap: anywhere; }
.lc-seal {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 0 0 3px rgba(23, 21, 59, .6), inset 0 0 0 4.5px rgba(255, 255, 255, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  transform: rotate(-10deg);
}
.loyalty-card .stamp-grid { position: relative; z-index: 1; justify-content: flex-start; margin: 20px 0 18px; }
.loyalty-card .stamp.empty { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .05); }
.loyalty-card .stamp.reward-slot { border: 1.5px dashed var(--reward-line); background: rgba(252, 211, 77, .12); color: var(--reward-line); }
.lc-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, .22);
  font-size: 14px;
  color: rgba(255, 255, 255, .88);
}
.lc-bottom .icon { color: var(--reward-line); }
.lc-bottom strong { color: #fff; overflow-wrap: anywhere; }
.lc-caption { text-align: center; font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* ============================================================
   Damga ızgarası
   ============================================================ */

.stamp-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 4px 0; }
.stamp {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stamp.empty { border: 1.5px dashed var(--line-strong); background: var(--surface-2); }
.stamp.filled {
  background: var(--primary);
  box-shadow: inset 0 0 0 2.5px var(--primary), inset 0 0 0 4.5px #fff, inset 0 0 0 12px var(--primary);
}
.stamp.gold {
  background: var(--reward);
  box-shadow: inset 0 0 0 2.5px var(--reward), inset 0 0 0 4.5px #fff, inset 0 0 0 12px var(--reward);
}
.stamp-grid .stamp:nth-child(odd) { transform: rotate(-5deg); }
.stamp-grid .stamp:nth-child(even) { transform: rotate(5deg); }
.stamp.just-pressed { animation: stamp-press 260ms var(--ease); }
@keyframes stamp-press {
  from { transform: scale(1.35); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.stamp-label { text-align: center; font-size: 14px; color: var(--muted); margin: 8px 0 0; font-variant-numeric: tabular-nums; }

/* ============================================================
   İşlem listesi
   ============================================================ */

.txlist { list-style: none; margin: 0 -8px; padding: 0; }
.txlist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 12px;
  transition: background var(--t-fast) var(--ease);
}
.txlist li + li { border-top: 1px solid var(--line); }
.txlist li:hover { background: var(--surface-2); }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary-press);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  flex: 0 0 auto;
}
.avatar.gold { background: var(--reward-tint); color: var(--reward-deep); }
.avatar.gray { background: #EEF0F4; color: var(--text-2); }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; }
.tx-main { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.tx-who { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-when { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Boş durum */
.empty-state { text-align: center; padding: 28px 12px 12px; }
.empty-state .empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-tint);
  color: var(--primary);
  margin-bottom: 12px;
}
.empty-state h3 { margin-bottom: 4px; }
.empty-state p { color: var(--muted); max-width: 40ch; margin: 0 auto; font-size: 14px; }

/* ============================================================
   QR işlem akışı
   ============================================================ */

.steps {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  counter-reset: step;
}
.steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 13.5px;
  flex: 0 0 auto;
  transition: all var(--t) var(--ease);
}
.steps li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 2px;
  margin: 0 10px 0 2px;
  border-radius: 2px;
  background: var(--line);
  min-width: 12px;
  transition: background var(--t) var(--ease);
}
.steps li.active { color: var(--text); }
.steps li.active::before { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: var(--ring); }
.steps li.done { color: var(--text-2); }
.steps li.done::before { content: "✓"; border-color: var(--primary); background: var(--primary-tint); color: var(--primary); }
.steps li.done::after { background: var(--primary); }

.viewfinder {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0B0B1A;
  margin-bottom: 12px;
  aspect-ratio: 4 / 3;
}
#video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vf-frame {
  position: absolute;
  inset: 14%;
  pointer-events: none;
  background:
    linear-gradient(#fff, #fff) top left / 28px 3px no-repeat,
    linear-gradient(#fff, #fff) top left / 3px 28px no-repeat,
    linear-gradient(#fff, #fff) top right / 28px 3px no-repeat,
    linear-gradient(#fff, #fff) top right / 3px 28px no-repeat,
    linear-gradient(#fff, #fff) bottom left / 28px 3px no-repeat,
    linear-gradient(#fff, #fff) bottom left / 3px 28px no-repeat,
    linear-gradient(#fff, #fff) bottom right / 28px 3px no-repeat,
    linear-gradient(#fff, #fff) bottom right / 3px 28px no-repeat;
  border-radius: 6px;
}
.vf-line {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8B83FF, transparent);
  animation: vf-scan 2.2s ease-in-out infinite;
}
@keyframes vf-scan {
  0%, 100% { transform: translateY(-80px); opacity: .4; }
  50% { transform: translateY(80px); opacity: 1; }
}

.scan-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 26px 16px;
  border-radius: var(--radius);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(79, 70, 229, .1) 0%, rgba(79, 70, 229, 0) 70%),
    var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.scan-hero .scan-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.scan-hero p { margin: 0; color: var(--muted); font-size: 14px; max-width: 40ch; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin: 20px 0;
  font-size: 13px;
  font-weight: 600;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hidden { display: none !important; }

.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tips li { display: flex; gap: 12px; font-size: 14px; color: var(--text-2); }
.tips .tip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary-tint);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  flex: 0 0 auto;
}

.preview-box {
  text-align: center;
  padding: 20px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.preview-box .avatar { margin-bottom: 10px; }
.customer-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin: 0 0 14px; }
.campaign-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
  margin: 14px 0 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.campaign-line:empty { display: none; }

/* Sonuç ekranı */
.result { text-align: center; padding: 12px 0 4px; }
.result-seal {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  animation: stamp-press 260ms var(--ease);
}
.result-seal .icon { width: 40px; height: 40px; }
.result-seal.ink { background: var(--primary-tint); color: var(--primary); box-shadow: 0 0 0 8px rgba(79, 70, 229, .07); }
.result-seal.gold { background: var(--reward-tint); color: var(--reward); box-shadow: 0 0 0 8px rgba(180, 83, 9, .08); }
.result-seal.danger { background: var(--danger-tint); color: var(--danger); box-shadow: 0 0 0 8px rgba(220, 38, 38, .07); }
.result .big { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.result.fail .big { color: var(--danger-text); }
.result p { color: var(--text-2); }
.reward-ready {
  display: inline-block;
  color: var(--reward-deep);
  font-weight: 600;
  background: var(--reward-tint);
  padding: 8px 14px;
  border-radius: 12px;
}

/* ============================================================
   İşletme profili
   ============================================================ */

.cover-preview {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 7;
  background: var(--surface-2);
}
.cover-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Giriş sayfası
   ============================================================ */

.public-main { min-height: 100vh; }
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}
.auth-aside { display: none; }
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.auth-box { width: 100%; max-width: 400px; }
.auth-box .brand { margin-bottom: 36px; }
.auth-box h1 { font-size: 26px; margin-bottom: 6px; }
.auth-box .lead { color: var(--muted); margin: 0 0 28px; }
.auth-help {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.auth-help .icon { color: var(--primary); margin-top: 1px; }

@media (min-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .auth-aside {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #fff;
    background:
      radial-gradient(70% 60% at 100% 0%, rgba(139, 131, 255, .45) 0%, rgba(139, 131, 255, 0) 60%),
      radial-gradient(60% 60% at 0% 100%, rgba(79, 70, 229, .55) 0%, rgba(79, 70, 229, 0) 60%),
      var(--ink-900);
  }
  .auth-aside .brand-name { color: #fff; }
  .auth-aside .brand-sub { color: #A9ABE3; }
  .auth-aside h2 { color: #fff; font-size: 34px; line-height: 1.2; letter-spacing: -.8px; max-width: 15ch; margin: 0 0 14px; }
  .auth-aside .lead { color: rgba(255, 255, 255, .75); max-width: 44ch; margin: 0; font-size: 16px; }
  .auth-aside .loyalty-card { max-width: 380px; margin: 36px 0; transform: rotate(-3deg); }
  .auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
  .auth-points li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .85); font-size: 14.5px; }
  .auth-points .icon { color: #A5A0FF; }
  .auth-main { background: var(--surface); }
  .auth-box .brand { display: none; }
}

/* ---------- Kayıt (register.php) ---------- */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--muted); font-size: 13.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-box.reg-box { max-width: 480px; }
.reg-box .lead a { color: var(--primary); font-weight: 600; }
.reg-group { margin: 22px 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.reg-group:first-of-type { margin-top: 4px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 13.5px; color: var(--muted); margin: 6px 0 22px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--primary); }
.reg-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; max-width: 40ch; }
.reg-steps li { display: flex; gap: 14px; color: rgba(255, 255, 255, .75); font-size: 14.5px; }
.reg-steps li span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; font-size: 13.5px; }
.reg-steps li strong { display: block; color: #fff; margin-bottom: 2px; }

/* ---------- Haritadan konum seçici ---------- */
.loc-label { margin-bottom: 0; }
.loc-picker { position: relative; margin: 6px 0 16px; }
.loc-search { display: flex; gap: 8px; }
.loc-search .input-icon { flex: 1; margin-top: 0; }
.loc-search .btn { flex: none; }
.loc-results { list-style: none; margin: 6px 0 0; padding: 6px; position: absolute; left: 0; right: 0; top: 46px; z-index: 1000;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -12px rgba(23, 21, 59, .28);
  max-height: 300px; overflow-y: auto; }
.loc-results button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px;
  font: inherit; cursor: pointer; color: var(--text); }
.loc-results button:hover, .loc-results button:focus-visible { background: var(--primary-tint); outline: none; }
.loc-results strong { display: block; font-size: 14.5px; }
.loc-results span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.loc-map { height: 280px; margin-top: 10px; border-radius: var(--radius); border: 1px solid var(--line-strong); overflow: hidden; z-index: 0; background: var(--surface-2); }
@media (min-width: 960px) { .loc-map { height: 320px; } }
.loc-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 8px; }
.loc-status { font-size: 13px; color: var(--muted); padding-top: 4px; font-weight: 500; }
.loc-picker.is-set .loc-status { color: var(--success); }
.loc-picker.is-error .loc-status { color: var(--danger-text); }
.loc-picker.is-error .loc-map { border-color: var(--danger-line); }
.loc-me { flex: none; min-height: 34px; padding: 0 10px; font-size: 13.5px; }
.loc-map .leaflet-control-attribution { font-size: 10.5px; }

/* ---------- Diğer ---------- */
hr { border: none; border-top: 1px solid var(--line); margin: 20px 0; }
.inline-form { margin-top: 4px; }
.kv { display: grid; gap: 10px; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.kv div:last-child { border-bottom: none; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* ---------- Giriş animasyonu ---------- */
.container > * { animation: rise 320ms var(--ease) both; }
.container > *:nth-child(2) { animation-delay: 30ms; }
.container > *:nth-child(3) { animation-delay: 60ms; }
.container > *:nth-child(4) { animation-delay: 90ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
input[type="search"] { -webkit-appearance: none; appearance: none; }
.change-note ul { margin: 6px 0 0; padding-left: 18px; }
.change-note li { margin: 2px 0; }

/* ---------- Abonelik sayfası ---------- */
.sub-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; }
.sub-benefits li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.sub-benefits .icon { flex: none; opacity: .9; }
.sub-steps { margin: 12px 0 16px; padding-left: 20px; display: grid; gap: 10px; color: var(--text2, #3F3D63); }
.sub-steps a { font-weight: 700; }
.sub-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0 16px; }
.sub-facts dt { color: var(--muted); font-size: 14px; }
.sub-facts dd { margin: 0; font-weight: 600; }
.hint { font-size: 13px; color: var(--muted); }
.legal { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; line-height: 1.65; }
.legal h1 { font-size: 28px; margin-bottom: 4px; }
.legal h2 { font-size: 18px; margin-top: 28px; }
.legal .meta { color: var(--muted); font-size: 14px; }

/* ---------- Dil değiştirici ---------- */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(23, 21, 59, .06); font-size: 12px; font-weight: 700; letter-spacing: .4px; }
.lang-switch a { padding: 4px 9px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { background: #fff; color: var(--primary-press); box-shadow: 0 1px 2px rgba(23, 21, 59, .12); }
.lang-switch.on-dark { background: rgba(255, 255, 255, .08); }
.lang-switch.on-dark a { color: rgba(255, 255, 255, .7); }
.lang-switch.on-dark a.active { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }

/* ---------- Dil değiştirici yerleşimi + yasal bağlantılar ---------- */
.topbar-actions { display: inline-flex; gap: 6px; align-items: center; }
.sidebar-foot { flex-wrap: wrap; }
.sidebar-foot .lang-switch { flex: 0 0 100%; justify-content: space-between; margin: 0 0 10px; }
.sidebar-foot .lang-switch a { flex: 1; text-align: center; }
.public-top { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 40; }
.public-top .lang-switch { background: rgba(255, 255, 255, .85); box-shadow: 0 1px 3px rgba(23, 21, 59, .12); }
.public .legal { padding-top: 64px; }
.public-footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; padding: 18px 16px 24px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); }
.legal-links { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--text); text-decoration: underline; }
.panel-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.legal-debug { padding: 8px 12px; border-radius: 8px; background: var(--danger-tint, #FDECEC); color: var(--danger, #B42318); font-size: 13px; }
@media (max-width: 959.98px) {
  /* Mobilde de yasal bağlantılar görünsün: alt sekme çubuğunun üstünde kalır. */
  .app .footer.panel-footer {
    display: flex;
    margin-top: calc(-1 * (var(--tabbar-h) + 16px));
    padding: 0 16px calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom));
    color: var(--muted);
    font-size: 12.5px;
  }
  .topbar .lang-switch a { padding: 4px 7px; }
}
.public:not(.admin) .auth { min-height: calc(100vh - 58px); }
/* Uzun (DE) adım adları dar ekranda taşmasın. */
.steps li { min-width: 0; }
@media (max-width: 479.98px) {
  .steps li { gap: 6px; font-size: 13px; flex: 1 1 auto; }
  .steps li:last-child { flex: 0 0 auto; }
  .steps li::before { width: 26px; height: 26px; font-size: 12.5px; }
  .steps li:not(:last-child)::after { margin: 0 6px 0 0; min-width: 8px; }
}
.loc-status { flex: 1 1 200px; min-width: 0; }
.loc-bar { flex-wrap: wrap; }

/* Damga adedi seçici (kasa onayı) */
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 14px 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.qty-row[hidden] { display: none; }
.qty-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qty-label { font-weight: 700; font-size: 15px; color: var(--text); }
.qty-hint { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.qty-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; font-family: var(--font); }
.qty-btn:hover:not(:disabled) { background: var(--surface-2); }
.qty-btn:disabled { opacity: .35; cursor: default; }
.qty-value { min-width: 40px; text-align: center; font-size: 22px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }

/* Kampanya → Damga kuralları */
.rules-card { margin-top: 20px; }
.rule-row { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 0 12px; min-width: 0; }
.rule-row:first-of-type { border-top: none; }
.rule-row legend { font-weight: 600; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.rule-modes { clear: both; display: inline-flex; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.rule-modes label { margin: 0; cursor: pointer; }
.rule-modes input { position: absolute; opacity: 0; pointer-events: none; }
.rule-modes span { display: block; padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.rule-modes input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(23,21,59,.15); }
.rule-modes input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 1px; }
.rule-row input[type=number] { display: block; max-width: 160px; margin-top: 10px; }
.rule-row input[type=number][hidden] { display: none; }
.rule-row .help { display: block; margin-top: 8px; }
