/* ══════════════════════════════════════════════════════════
   QrMenu — 20 Tema Tanımı
   Her tema [data-theme="X"] ile html elementine uygulanır.
   ══════════════════════════════════════════════════════════ */

/* ─── TEMA 1: MODERN (varsayılan — style.css'de tanımlı) ─── */
/* Modern için ek override gerekmez. */

/* ─── TEMA 2: DARK ─────────────────────────────────────── */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117;
  --surface: #161b22;
  --surface-soft: #1c2128;
  --border: #30363d;
  --border-strong: #484f58;
  --text: #e6edf3;
  --muted: #848d97;
  --primary: #3b82f6;
  --primary-soft: #0d2045;
  --success: #3fb950;
  --danger: #f85149;
  --shadow-sm: 0 4px 18px rgba(0,0,0,.45);
  --shadow-md: 0 16px 40px rgba(0,0,0,.6);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
}
[data-theme="dark"] .topbar {
  background: rgba(13,17,23,.92);
  border-bottom-color: #30363d;
}
[data-theme="dark"] .slider-shell,
[data-theme="dark"] .hero-toolbar,
[data-theme="dark"] .category-strip,
[data-theme="dark"] .list-shell,
[data-theme="dark"] .drawer-panel,
[data-theme="dark"] .empty-state {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .slide {
  background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
}
[data-theme="dark"] .menu-item {
  background: var(--surface);
}
[data-theme="dark"] .modal-card {
  background: var(--bg);
}
[data-theme="dark"] .option-row {
  background: var(--surface-soft);
  border-color: var(--border);
}
[data-theme="dark"] .option-row.active {
  background: var(--primary-soft);
  border-color: var(--primary);
}
[data-theme="dark"] .total-box {
  background: var(--surface-soft);
  border-color: var(--border);
}
[data-theme="dark"] .search-box,
[data-theme="dark"] .lang-popover__panel,
[data-theme="dark"] .lang-popover__item {
  background: var(--surface-soft);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .search-box input {
  background: transparent;
  color: var(--text);
}
[data-theme="dark"] .search-box input::placeholder {
  color: var(--muted);
}
[data-theme="dark"] .lang-popover__item.is-active { background: var(--primary-soft); border-color: var(--primary); }
[data-theme="dark"] .brand-logo {
  box-shadow: 0 0 24px rgba(59,130,246,.35);
}
[data-theme="dark"] .btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(59,130,246,.35);
}
[data-theme="dark"] .btn.primary:hover {
  box-shadow: 0 6px 20px rgba(59,130,246,.5);
}
[data-theme="dark"] .category-pill.active {
  box-shadow: 0 0 12px rgba(59,130,246,.3);
}
[data-theme="dark"] .tag, [data-theme="dark"] .meta {
  background: #1c2128;
  border-color: #30363d;
  color: #94a3b8;
}

/* ─── TEMA 3: BISTRO ────────────────────────────────────── */
[data-theme="bistro"] {
  --bg: #f9f3e8;
  --surface: #fffdf7;
  --surface-soft: #fef9ee;
  --border: #d4b896;
  --border-strong: #a07850;
  --text: #2c1a0e;
  --muted: #8a6848;
  --primary: #92400e;
  --primary-soft: #fef3c7;
  --success: #15803d;
  --danger: #b91c1c;
  --shadow-sm: 0 4px 14px rgba(92,60,14,.10);
  --shadow-md: 0 16px 36px rgba(92,60,14,.16);
  --radius-xl: 6px;
  --radius-lg: 4px;
  --radius-md: 4px;
  --radius-sm: 3px;
}
[data-theme="bistro"] body {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}
[data-theme="bistro"] .topbar {
  background: rgba(249,243,232,.96);
  border-bottom: 2px solid var(--border);
}
[data-theme="bistro"] .brand-logo {
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 700;
}
[data-theme="bistro"] .brand-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
}
[data-theme="bistro"] .slider-shell,
[data-theme="bistro"] .hero-toolbar,
[data-theme="bistro"] .category-strip,
[data-theme="bistro"] .list-shell,
[data-theme="bistro"] .drawer-panel,
[data-theme="bistro"] .empty-state {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
[data-theme="bistro"] .slide {
  background: linear-gradient(135deg, #fffdf7 0%, #f9f3e8 100%);
}
[data-theme="bistro"] .slide-title {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -.01em;
}
[data-theme="bistro"] .slide-kicker {
  color: var(--primary);
  font-family: "Manrope", ui-sans-serif, sans-serif;
  letter-spacing: .12em;
}
[data-theme="bistro"] .category-pill {
  border-radius: 3px;
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
[data-theme="bistro"] .list-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: -.01em;
}
/* Bistro: kart grid layout */
[data-theme="bistro"] .menu-item {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  padding: 0;
  border-bottom: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
}
[data-theme="bistro"] #menuList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 16px;
}
[data-theme="bistro"] .item-image {
  width: 100%;
  height: 180px;
  border-radius: 0;
}
[data-theme="bistro"] .item-main {
  padding: 12px 14px 4px;
}
[data-theme="bistro"] .item-side {
  min-width: 0;
  justify-items: start;
  padding: 4px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-content: unset;
}
[data-theme="bistro"] .item-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
}
[data-theme="bistro"] .btn.primary {
  background: var(--primary);
  border-color: var(--primary);
}
[data-theme="bistro"] .modal-card {
  background: var(--bg);
}
[data-theme="bistro"] .tag, [data-theme="bistro"] .meta {
  background: var(--primary-soft);
  border-color: var(--border);
  color: var(--primary);
  border-radius: 3px;
}
[data-theme="bistro"] .drawer-label {
  color: var(--primary);
}

/* ─── TEMA 4: LUXURY ────────────────────────────────────── */
[data-theme="luxury"] {
  color-scheme: dark;
  --bg: #050505;
  --surface: #0e0e0e;
  --surface-soft: #141414;
  --border: #242424;
  --border-strong: #d4af37;
  --text: #f0ebe0;
  --muted: #777777;
  --primary: #d4af37;
  --primary-soft: #1a1600;
  --success: #6a9e5a;
  --danger: #c0392b;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.7);
  --shadow-md: 0 10px 40px rgba(0,0,0,.8);
  --radius-xl: 2px;
  --radius-lg: 2px;
  --radius-md: 2px;
  --radius-sm: 2px;
  --header-height: 80px;
}
[data-theme="luxury"] body {
  font-family: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  letter-spacing: .03em;
}
[data-theme="luxury"] .topbar {
  background: rgba(5,5,5,.98);
  border-bottom: 1px solid var(--border);
}
[data-theme="luxury"] .brand-logo {
  border-radius: 50%;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 400;
  letter-spacing: .06em;
  box-shadow: 0 0 20px rgba(212,175,55,.15);
}
[data-theme="luxury"] .brand-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
}
[data-theme="luxury"] .brand-subtitle {
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: .67rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
}
[data-theme="luxury"] .slider-shell,
[data-theme="luxury"] .hero-toolbar,
[data-theme="luxury"] .category-strip,
[data-theme="luxury"] .list-shell,
[data-theme="luxury"] .drawer-panel,
[data-theme="luxury"] .empty-state {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="luxury"] .slide {
  background: linear-gradient(135deg, #0e0e0e 0%, #050505 100%);
}
[data-theme="luxury"] .slide-kicker {
  font-family: "Manrope", sans-serif;
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--primary);
  text-transform: uppercase;
}
[data-theme="luxury"] .slide-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: .01em;
}
[data-theme="luxury"] .btn, [data-theme="luxury"] .icon-btn, [data-theme="luxury"] .chip,
[data-theme="luxury"] .category-pill, [data-theme="luxury"] .slider-dot {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  border-radius: 1px;
}
[data-theme="luxury"] .btn.primary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
[data-theme="luxury"] .btn.primary:hover {
  background: var(--primary);
  color: #000;
}
[data-theme="luxury"] .category-pill.active {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
[data-theme="luxury"] .list-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
/* Luxury: ultra-minimal list */
[data-theme="luxury"] .menu-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) 120px 44px;
  gap: 0;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
[data-theme="luxury"] .item-image { display: none; }
[data-theme="luxury"] .item-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: .02em;
}
[data-theme="luxury"] .item-desc {
  font-size: .82rem;
  color: var(--muted);
  -webkit-line-clamp: 1;
}
[data-theme="luxury"] .tag-row { display: none; }
[data-theme="luxury"] .meta-row { display: none; }
[data-theme="luxury"] .item-side {
  min-width: 120px;
  text-align: right;
  justify-items: end;
  align-content: start;
}
[data-theme="luxury"] .price {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: .02em;
}
[data-theme="luxury"] .price-note { display: none; }
[data-theme="luxury"] .modal-card {
  background: var(--bg);
}
[data-theme="luxury"] .modal-image {
  border-radius: 1px;
}
[data-theme="luxury"] .option-row {
  background: transparent;
  border-color: var(--border);
  border-radius: 1px;
}
[data-theme="luxury"] .option-row.active {
  background: var(--primary-soft);
  border-color: var(--primary);
}
[data-theme="luxury"] .total-box {
  background: transparent;
  border-color: var(--border);
  border-radius: 1px;
}
[data-theme="luxury"] .search-box,
[data-theme="luxury"] .lang-popover__panel,
[data-theme="luxury"] .lang-popover__item {
  background: transparent;
  border-color: var(--border);
  border-radius: 1px;
  color: var(--text);
}
[data-theme="luxury"] .search-box input {
  background: transparent;
  color: var(--text);
}
[data-theme="luxury"] .search-box input::placeholder { color: var(--muted); }
[data-theme="luxury"] .lang-popover__item.is-active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
[data-theme="luxury"] .tag, [data-theme="luxury"] .meta {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
  border-radius: 1px;
  font-family: "Manrope", sans-serif;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
[data-theme="luxury"] .slider-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* ─── TEMA 5: VIBRANT ───────────────────────────────────── */
[data-theme="vibrant"] {
  --bg: #f5f0ff;
  --surface: #ffffff;
  --surface-soft: #faf5ff;
  --border: #ddd6fe;
  --border-strong: #a78bfa;
  --text: #1e0a3c;
  --muted: #7c5cbf;
  --primary: #7c3aed;
  --primary-soft: #ede9fe;
  --success: #059669;
  --danger: #dc2626;
  --shadow-sm: 0 6px 20px rgba(124,58,237,.12);
  --shadow-md: 0 18px 48px rgba(124,58,237,.20);
  --radius-xl: 26px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}
[data-theme="vibrant"] .topbar {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #a855f7 100%);
  border-bottom: 0;
  box-shadow: 0 4px 24px rgba(109,40,217,.35);
}
[data-theme="vibrant"] .topbar .brand-title,
[data-theme="vibrant"] .topbar .brand-subtitle {
  color: rgba(255,255,255,.95);
}
[data-theme="vibrant"] .topbar .brand-subtitle { color: rgba(255,255,255,.7); }
[data-theme="vibrant"] .topbar .icon-btn,
[data-theme="vibrant"] .topbar .btn,
[data-theme="vibrant"] .topbar .chip {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.3);
  color: #fff;
  border-radius: 999px;
}
[data-theme="vibrant"] .topbar .icon-btn:hover,
[data-theme="vibrant"] .topbar .btn:hover {
  background: rgba(255,255,255,.3);
}
[data-theme="vibrant"] .lang-popover__panel {
  background: #ffffff;
  border-color: var(--border);
  border-radius: var(--radius-lg);
}
[data-theme="vibrant"] .lang-popover__item.is-active {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: #fff;
  border-color: transparent;
}
[data-theme="vibrant"] .brand-logo {
  background: #ffffff;
  color: var(--primary);
  border-radius: 50%;
  border: 0;
  font-weight: 900;
}
[data-theme="vibrant"] .slider-shell,
[data-theme="vibrant"] .hero-toolbar,
[data-theme="vibrant"] .category-strip,
[data-theme="vibrant"] .list-shell,
[data-theme="vibrant"] .empty-state,
[data-theme="vibrant"] .drawer-panel {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
[data-theme="vibrant"] .slide {
  background: linear-gradient(135deg, #f5f0ff 0%, #ede9fe 100%);
}
[data-theme="vibrant"] .slide-kicker {
  color: var(--primary);
  font-weight: 900;
}
[data-theme="vibrant"] .slide-title {
  font-weight: 900;
  letter-spacing: -.04em;
}
[data-theme="vibrant"] .btn.primary {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-color: transparent;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(124,58,237,.38);
}
[data-theme="vibrant"] .btn.primary:hover {
  box-shadow: 0 8px 24px rgba(124,58,237,.5);
  transform: translateY(-1px);
}
[data-theme="vibrant"] .btn.secondary {
  border-radius: 999px;
  border-color: var(--border);
}
[data-theme="vibrant"] .category-pill {
  border-radius: 999px;
  font-weight: 700;
}
[data-theme="vibrant"] .category-pill.active {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,.3);
}
[data-theme="vibrant"] .icon-btn {
  border-radius: 999px;
}
/* Vibrant: card grid layout */
[data-theme="vibrant"] .menu-item {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  padding: 0;
  border-bottom: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease;
}
[data-theme="vibrant"] .menu-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
[data-theme="vibrant"] #menuList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 16px;
}
[data-theme="vibrant"] .item-image {
  width: 100%;
  height: 175px;
  border-radius: 0;
}
[data-theme="vibrant"] .item-main {
  padding: 12px 14px 4px;
}
[data-theme="vibrant"] .item-side {
  min-width: 0;
  padding: 4px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  justify-items: initial;
  align-content: initial;
}
[data-theme="vibrant"] .item-name { font-weight: 800; }
[data-theme="vibrant"] .tag {
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--border);
  font-weight: 700;
}
[data-theme="vibrant"] .meta {
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  border-color: var(--border);
}
[data-theme="vibrant"] .price { color: var(--primary); font-weight: 900; }
[data-theme="vibrant"] .modal-card {
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
[data-theme="vibrant"] .option-row {
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border-color: var(--border);
}
[data-theme="vibrant"] .option-row.active {
  background: var(--primary-soft);
  border-color: var(--primary);
}
[data-theme="vibrant"] .total-box {
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border-color: var(--border);
}
[data-theme="vibrant"] .search-box {
  border-radius: 999px;
  border-color: var(--border);
}
[data-theme="vibrant"] .drawer-panel { border-radius: 0 var(--radius-xl) var(--radius-xl) 0; }
[data-theme="vibrant"] .slider-dot.active {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border-color: transparent;
}
[data-theme="vibrant"] .list-title { font-weight: 900; }

/* ─── TEMA 6-20: EK KONSEPT TEMALAR ─────────────────────── */
[data-theme="forest"] { --bg:#f5f4ed; --surface:#fcfbf7; --surface-soft:#eef1e7; --border:#cfd8c2; --border-strong:#7d8f69; --text:#203124; --muted:#66785f; --primary:#4f6f52; --primary-soft:#dfe8da; --shadow-sm:0 8px 24px rgba(79,111,82,.08); --shadow-md:0 20px 44px rgba(79,111,82,.14); }
[data-theme="sunset"] { --bg:#fff4ec; --surface:#fffaf6; --surface-soft:#ffe7db; --border:#fdc9b4; --border-strong:#fb923c; --text:#5a2410; --muted:#9a5a32; --primary:#f97316; --primary-soft:#ffedd5; --shadow-sm:0 8px 24px rgba(249,115,22,.10); --shadow-md:0 20px 44px rgba(249,115,22,.18); }
[data-theme="midnight"] { color-scheme:dark; --bg:#07111f; --surface:#0d1b2a; --surface-soft:#13263b; --border:#1e3a5f; --border-strong:#22d3ee; --text:#e0f2fe; --muted:#7dd3fc; --primary:#22d3ee; --primary-soft:#083344; --shadow-sm:0 10px 28px rgba(0,0,0,.35); --shadow-md:0 24px 54px rgba(0,0,0,.55); }
[data-theme="terracotta"] { --bg:#f7f1eb; --surface:#fffaf5; --surface-soft:#f0dfd1; --border:#d9b7a1; --border-strong:#c96f4a; --text:#4a281d; --muted:#8a5a49; --primary:#c96f4a; --primary-soft:#f8e1d3; --shadow-sm:0 8px 22px rgba(201,111,74,.09); --shadow-md:0 18px 40px rgba(201,111,74,.16); }
[data-theme="ocean"] { --bg:#eff8ff; --surface:#ffffff; --surface-soft:#e0f2fe; --border:#bae6fd; --border-strong:#0284c7; --text:#082f49; --muted:#0369a1; --primary:#0284c7; --primary-soft:#dbeafe; --shadow-sm:0 8px 24px rgba(2,132,199,.08); --shadow-md:0 20px 44px rgba(2,132,199,.16); }
[data-theme="mono"] { --bg:#f7f3eb; --surface:#fffdfa; --surface-soft:#efe7dc; --border:#d6c6b4; --border-strong:#b42318; --text:#141414; --muted:#706c66; --primary:#b42318; --primary-soft:#fbe4dd; --shadow-sm:0 6px 20px rgba(20,20,20,.06); --shadow-md:0 16px 40px rgba(20,20,20,.12); }
[data-theme="pastel"] { --bg:#fffaf5; --surface:#ffffff; --surface-soft:#fdf2f8; --border:#f5d0fe; --border-strong:#f472b6; --text:#5b315d; --muted:#8b5cf6; --primary:#f472b6; --primary-soft:#fae8ff; --shadow-sm:0 8px 24px rgba(244,114,182,.08); --shadow-md:0 20px 44px rgba(244,114,182,.14); }
[data-theme="brutal"] { --bg:#fff200; --surface:#ffffff; --surface-soft:#fff7b0; --border:#111111; --border-strong:#ff4d00; --text:#111111; --muted:#3f3f46; --primary:#ff4d00; --primary-soft:#ffd7c7; --shadow-sm:8px 8px 0 rgba(17,17,17,.9); --shadow-md:12px 12px 0 rgba(17,17,17,.95); --radius-xl:0; --radius-lg:0; --radius-md:0; --radius-sm:0; }
[data-theme="artdeco"] { color-scheme:dark; --bg:#101010; --surface:#171717; --surface-soft:#1f2937; --border:#4b5563; --border-strong:#c8a44d; --text:#f5e6b8; --muted:#c4b28c; --primary:#c8a44d; --primary-soft:#2a2110; --shadow-sm:0 6px 20px rgba(0,0,0,.45); --shadow-md:0 16px 40px rgba(0,0,0,.65); }
[data-theme="candy"] { --bg:#fff1f2; --surface:#ffffff; --surface-soft:#ffe4e6; --border:#fbcfe8; --border-strong:#fb7185; --text:#831843; --muted:#9d174d; --primary:#fb7185; --primary-soft:#fce7f3; --shadow-sm:0 8px 24px rgba(251,113,133,.08); --shadow-md:0 20px 44px rgba(251,113,133,.14); }
[data-theme="stone"] { --bg:#f6f6f4; --surface:#ffffff; --surface-soft:#f5f5f4; --border:#d6d3d1; --border-strong:#57534e; --text:#292524; --muted:#78716c; --primary:#44403c; --primary-soft:#e7e5e4; --shadow-sm:0 8px 24px rgba(68,64,60,.06); --shadow-md:0 20px 44px rgba(68,64,60,.12); }
[data-theme="retro"] { --bg:#fff7ed; --surface:#fffaf5; --surface-soft:#ffedd5; --border:#fdba74; --border-strong:#ea580c; --text:#7c2d12; --muted:#9a3412; --primary:#ea580c; --primary-soft:#ffedd5; --shadow-sm:0 8px 24px rgba(234,88,12,.08); --shadow-md:0 20px 44px rgba(234,88,12,.15); }
[data-theme="sakura"] { --bg:#fff7fb; --surface:#ffffff; --surface-soft:#fce7f3; --border:#f9a8d4; --border-strong:#db2777; --text:#831843; --muted:#9d174d; --primary:#db2777; --primary-soft:#fce7f3; --shadow-sm:0 8px 24px rgba(219,39,119,.08); --shadow-md:0 20px 44px rgba(219,39,119,.15); }
[data-theme="copper"] { --bg:#faf6ef; --surface:#fffdfa; --surface-soft:#f3e8d8; --border:#d6b89c; --border-strong:#b45309; --text:#4a2c16; --muted:#7c4a24; --primary:#b45309; --primary-soft:#ffedd5; --shadow-sm:0 8px 24px rgba(180,83,9,.08); --shadow-md:0 20px 44px rgba(180,83,9,.15); }
[data-theme="lavender"] { --bg:#faf5ff; --surface:#ffffff; --surface-soft:#ede9fe; --border:#c4b5fd; --border-strong:#8b5cf6; --text:#4c1d95; --muted:#6d28d9; --primary:#8b5cf6; --primary-soft:#ede9fe; --shadow-sm:0 8px 24px rgba(139,92,246,.08); --shadow-md:0 20px 44px rgba(139,92,246,.15); }
[data-theme="industrial"] { --bg:#f3f4f6; --surface:#ffffff; --surface-soft:#e5e7eb; --border:#9ca3af; --border-strong:#f59e0b; --text:#1f2937; --muted:#4b5563; --primary:#f59e0b; --primary-soft:#fef3c7; --shadow-sm:0 8px 24px rgba(31,41,55,.06); --shadow-md:0 20px 44px rgba(31,41,55,.12); --radius-xl:8px; --radius-lg:6px; --radius-md:4px; --radius-sm:2px; }

[data-theme="forest"] .btn.primary,[data-theme="sunset"] .btn.primary,[data-theme="terracotta"] .btn.primary,[data-theme="ocean"] .btn.primary,[data-theme="mono"] .btn.primary,[data-theme="pastel"] .btn.primary,[data-theme="candy"] .btn.primary,[data-theme="stone"] .btn.primary,[data-theme="retro"] .btn.primary,[data-theme="sakura"] .btn.primary,[data-theme="copper"] .btn.primary,[data-theme="lavender"] .btn.primary,[data-theme="industrial"] .btn.primary { background:var(--primary); border-color:var(--primary); color:#fff; }
[data-theme="midnight"] .btn.primary,[data-theme="artdeco"] .btn.primary { background:var(--primary); border-color:var(--primary); color:#03131a; }
[data-theme="brutal"] .btn,.btn[data-theme="brutal"] { box-shadow:4px 4px 0 rgba(17,17,17,.9); }
[data-theme="midnight"] .topbar,[data-theme="artdeco"] .topbar { background:rgba(7,17,31,.94); border-bottom-color:var(--border); }
[data-theme="forest"] .topbar,[data-theme="sunset"] .topbar,[data-theme="terracotta"] .topbar,[data-theme="ocean"] .topbar,[data-theme="mono"] .topbar,[data-theme="pastel"] .topbar,[data-theme="candy"] .topbar,[data-theme="stone"] .topbar,[data-theme="retro"] .topbar,[data-theme="sakura"] .topbar,[data-theme="copper"] .topbar,[data-theme="lavender"] .topbar,[data-theme="industrial"] .topbar { background:rgba(255,255,255,.85); border-bottom-color:var(--border); }
[data-theme="brutal"] .topbar { background:#fff200; border-bottom:3px solid #111; }
[data-theme="forest"] .slider-shell,[data-theme="sunset"] .slider-shell,[data-theme="midnight"] .slider-shell,[data-theme="terracotta"] .slider-shell,[data-theme="ocean"] .slider-shell,[data-theme="mono"] .slider-shell,[data-theme="pastel"] .slider-shell,[data-theme="brutal"] .slider-shell,[data-theme="artdeco"] .slider-shell,[data-theme="candy"] .slider-shell,[data-theme="stone"] .slider-shell,[data-theme="retro"] .slider-shell,[data-theme="sakura"] .slider-shell,[data-theme="copper"] .slider-shell,[data-theme="lavender"] .slider-shell,[data-theme="industrial"] .slider-shell,
[data-theme="forest"] .hero-toolbar,[data-theme="sunset"] .hero-toolbar,[data-theme="midnight"] .hero-toolbar,[data-theme="terracotta"] .hero-toolbar,[data-theme="ocean"] .hero-toolbar,[data-theme="mono"] .hero-toolbar,[data-theme="pastel"] .hero-toolbar,[data-theme="brutal"] .hero-toolbar,[data-theme="artdeco"] .hero-toolbar,[data-theme="candy"] .hero-toolbar,[data-theme="stone"] .hero-toolbar,[data-theme="retro"] .hero-toolbar,[data-theme="sakura"] .hero-toolbar,[data-theme="copper"] .hero-toolbar,[data-theme="lavender"] .hero-toolbar,[data-theme="industrial"] .hero-toolbar,
[data-theme="forest"] .category-strip,[data-theme="sunset"] .category-strip,[data-theme="midnight"] .category-strip,[data-theme="terracotta"] .category-strip,[data-theme="ocean"] .category-strip,[data-theme="mono"] .category-strip,[data-theme="pastel"] .category-strip,[data-theme="brutal"] .category-strip,[data-theme="artdeco"] .category-strip,[data-theme="candy"] .category-strip,[data-theme="stone"] .category-strip,[data-theme="retro"] .category-strip,[data-theme="sakura"] .category-strip,[data-theme="copper"] .category-strip,[data-theme="lavender"] .category-strip,[data-theme="industrial"] .category-strip,
[data-theme="forest"] .list-shell,[data-theme="sunset"] .list-shell,[data-theme="midnight"] .list-shell,[data-theme="terracotta"] .list-shell,[data-theme="ocean"] .list-shell,[data-theme="mono"] .list-shell,[data-theme="pastel"] .list-shell,[data-theme="brutal"] .list-shell,[data-theme="artdeco"] .list-shell,[data-theme="candy"] .list-shell,[data-theme="stone"] .list-shell,[data-theme="retro"] .list-shell,[data-theme="sakura"] .list-shell,[data-theme="copper"] .list-shell,[data-theme="lavender"] .list-shell,[data-theme="industrial"] .list-shell,
[data-theme="forest"] .drawer-panel,[data-theme="sunset"] .drawer-panel,[data-theme="midnight"] .drawer-panel,[data-theme="terracotta"] .drawer-panel,[data-theme="ocean"] .drawer-panel,[data-theme="mono"] .drawer-panel,[data-theme="pastel"] .drawer-panel,[data-theme="brutal"] .drawer-panel,[data-theme="artdeco"] .drawer-panel,[data-theme="candy"] .drawer-panel,[data-theme="stone"] .drawer-panel,[data-theme="retro"] .drawer-panel,[data-theme="sakura"] .drawer-panel,[data-theme="copper"] .drawer-panel,[data-theme="lavender"] .drawer-panel,[data-theme="industrial"] .drawer-panel { background:var(--surface); border-color:var(--border); }
[data-theme="midnight"] .search-box input,[data-theme="artdeco"] .search-box input,[data-theme="midnight"] .search-box,[data-theme="artdeco"] .search-box { background:transparent; color:var(--text); border-color:var(--border); }
[data-theme="midnight"] .bottom-nav,[data-theme="artdeco"] .bottom-nav { background:var(--surface); border-top-color:var(--border); }
[data-theme="forest"] .bottom-nav,[data-theme="sunset"] .bottom-nav,[data-theme="ocean"] .bottom-nav,[data-theme="pastel"] .bottom-nav,[data-theme="candy"] .bottom-nav,[data-theme="retro"] .bottom-nav,[data-theme="lavender"] .bottom-nav,[data-theme="industrial"] .bottom-nav { background:var(--surface); border-top-color:var(--border); }
[data-theme="forest"] .lang-popover__item.is-active,
[data-theme="forest"] .welcome-screen__lang-options .chip.is-active,
[data-theme="sunset"] .lang-popover__item.is-active,
[data-theme="sunset"] .welcome-screen__lang-options .chip.is-active,
[data-theme="ocean"] .lang-popover__item.is-active,
[data-theme="ocean"] .welcome-screen__lang-options .chip.is-active,
[data-theme="pastel"] .lang-popover__item.is-active,
[data-theme="pastel"] .welcome-screen__lang-options .chip.is-active,
[data-theme="candy"] .lang-popover__item.is-active,
[data-theme="candy"] .welcome-screen__lang-options .chip.is-active,
[data-theme="retro"] .lang-popover__item.is-active,
[data-theme="retro"] .welcome-screen__lang-options .chip.is-active,
[data-theme="lavender"] .lang-popover__item.is-active,
[data-theme="lavender"] .welcome-screen__lang-options .chip.is-active,
[data-theme="industrial"] .lang-popover__item.is-active,
[data-theme="industrial"] .welcome-screen__lang-options .chip.is-active,
[data-theme="mono"] .lang-popover__item.is-active,
[data-theme="mono"] .welcome-screen__lang-options .chip.is-active,
[data-theme="sakura"] .lang-popover__item.is-active,
[data-theme="sakura"] .welcome-screen__lang-options .chip.is-active,
[data-theme="copper"] .lang-popover__item.is-active,
[data-theme="copper"] .welcome-screen__lang-options .chip.is-active,
[data-theme="stone"] .lang-popover__item.is-active,
[data-theme="stone"] .welcome-screen__lang-options .chip.is-active,
[data-theme="terracotta"] .lang-popover__item.is-active,
[data-theme="terracotta"] .welcome-screen__lang-options .chip.is-active,
[data-theme="midnight"] .lang-popover__item.is-active,
[data-theme="midnight"] .welcome-screen__lang-options .chip.is-active,
[data-theme="artdeco"] .lang-popover__item.is-active,
[data-theme="artdeco"] .welcome-screen__lang-options .chip.is-active,
[data-theme="brutal"] .lang-popover__item.is-active,
[data-theme="brutal"] .welcome-screen__lang-options .chip.is-active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* ─── Tüm Temalar: Ortak Düzeltmeler ───────────────────── */
[data-theme="bistro"] .menu-item:last-child,
[data-theme="vibrant"] .menu-item:last-child {
  border-bottom: 0;
}

/* Kart grid için responsive overrides */
@media (max-width: 560px) {
  [data-theme="bistro"] #menuList,
  [data-theme="vibrant"] #menuList {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px;
  }
  [data-theme="bistro"] .item-image,
  [data-theme="vibrant"] .item-image { width: 84px; height: 84px; min-width: 84px; min-height: 84px; aspect-ratio: 1 / 1; }
  [data-theme="bistro"] .item-name,
  [data-theme="vibrant"] .item-name { font-size: .9rem; }
  [data-theme="bistro"] .item-desc,
  [data-theme="vibrant"] .item-desc { display: none; }
  [data-theme="bistro"] .item-side,
  [data-theme="vibrant"] .item-side { flex-wrap: wrap; gap: 6px; }

  /* Luxury mobile */
  [data-theme="luxury"] .menu-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 12px;
  }
  [data-theme="luxury"] .item-side {
    min-width: 0;
    width: 100%;
    justify-items: start;
    text-align: left;
  }
}
@media (max-width: 420px) {
  [data-theme="bistro"] #menuList,
  [data-theme="vibrant"] #menuList {
    grid-template-columns: 1fr;
  }
}

/* Dark & Luxury: ortak scrollbar */
[data-theme="dark"] ::-webkit-scrollbar,
[data-theme="luxury"] ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--surface); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #484f58; border-radius: 3px; }
[data-theme="luxury"] ::-webkit-scrollbar-track { background: var(--surface); }
[data-theme="luxury"] ::-webkit-scrollbar-thumb { background: #333; border-radius: 1px; }

/* ══════════════════════════════════════════════════════════
   KART STİLLERİ — data-card-style attribute'u ile yönetilir
   ══════════════════════════════════════════════════════════ */

/* ─── GRID KART (.menu-card) ───────────────────────────── */
.menu-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
  flex: none;
}
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 6px;
}
.card-name {
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.card-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.card-footer .actions {
  gap: 6px;
  flex-wrap: nowrap;
}
.card-footer .btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: .8rem;
}

/* Grid wrapper — #menuList container */
body[data-card-style="grid"] #menuList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-card);
  padding: var(--space-card);
}
@media (max-width: 560px) {
  body[data-card-style="grid"] #menuList {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
  [data-theme="bistro"] .menu-category-items,
  [data-theme="vibrant"] .menu-category-items,
  body[data-card-style="grid"] .menu-category-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .card-image { height: 130px; }
  .card-name { font-size: .88rem; }
  .card-desc { display: none; }
}
@media (max-width: 380px) {
  body[data-card-style="grid"] #menuList {
    grid-template-columns: 1fr;
  }
  [data-theme="bistro"] .menu-category-items,
  [data-theme="vibrant"] .menu-category-items,
  body[data-card-style="grid"] .menu-category-items {
    grid-template-columns: 1fr;
  }
}

/* ─── COMPACT KART (.menu-compact) ─────────────────────── */
.menu-compact {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: background .15s;
}
.menu-compact:hover { background: var(--surface-soft); }
.compact-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: none;
}
.compact-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-price {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.menu-compact .actions {
  flex-wrap: nowrap;
  gap: 5px;
}

/* Compact wrapper — #menuList container */
body[data-card-style="compact"] #menuList {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
body[data-card-style="compact"] .menu-compact:last-child {
  border-bottom: 0;
}

/* Kategorili tümü görünümü */
[data-theme] #menuList.menu-list-categorized {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0;
}
[data-theme] .menu-category-section {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme] .menu-category-head {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="bistro"] #menuList.menu-list-categorized,
[data-theme="vibrant"] #menuList.menu-list-categorized {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0;
}
[data-theme="bistro"] .menu-category-items,
[data-theme="vibrant"] .menu-category-items,
body[data-card-style="grid"] .menu-category-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-card);
  padding: var(--space-card);
}
[data-theme="bistro"] .menu-category-title {
  font-family: "Playfair Display", Georgia, serif;
}
@media (max-width: 560px) {
  [data-theme="bistro"] .menu-category-items,
  [data-theme="vibrant"] .menu-category-items,
  body[data-card-style="grid"] .menu-category-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
}
@media (max-width: 380px) {
  [data-theme="bistro"] .menu-category-items,
  [data-theme="vibrant"] .menu-category-items,
  body[data-card-style="grid"] .menu-category-items {
    grid-template-columns: 1fr;
  }
}

/* ─── RESİM ŞEKİL VARYANTLARı ───────────────────────────── */
.img-rounded {
  border-radius: var(--radius-md);
  object-fit: cover;
}
.img-square {
  border-radius: 0;
  object-fit: cover;
}
.img-circle {
  border-radius: 50%;
  object-fit: cover;
}

/* ══════════════════════════════════════════════════════════
   KATEGORİ STİL VARYANTLARı
   ══════════════════════════════════════════════════════════ */

/* ─── Underline stili ────────────────────────────────────── */
body[data-category-style="underline"] .category-strip {
  border-bottom: 2px solid var(--border);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0 16px;
}
body[data-category-style="underline"] .category-pill {
  border-radius: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  font-weight: 600;
  margin-bottom: -2px;
  font-size: .88rem;
  transition: color .15s, border-color .15s;
}
body[data-category-style="underline"] .category-pill:hover {
  color: var(--text);
  border-bottom-color: var(--border-strong);
}
body[data-category-style="underline"] .category-pill.active {
  color: var(--primary);
  background: transparent;
  border-bottom-color: var(--primary);
  box-shadow: none;
}

/* ─── Tabs stili ─────────────────────────────────────────── */
body[data-category-style="tabs"] .category-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
body[data-category-style="tabs"] .category-strip::-webkit-scrollbar { display: none; }
body[data-category-style="tabs"] .category-pill {
  flex: none;
  border-radius: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 14px 18px;
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
  margin: 0;
  transition: color .15s, border-color .15s, background .15s;
}
body[data-category-style="tabs"] .category-pill:hover {
  background: var(--surface-soft);
  color: var(--text);
}
body[data-category-style="tabs"] .category-pill.active {
  color: var(--primary);
  background: var(--primary-soft);
  border-bottom-color: var(--primary);
  box-shadow: none;
  border-radius: 0;
}

/* ══════════════════════════════════════════════════════════
   FONT SCALE
   ══════════════════════════════════════════════════════════ */
:root[data-font-scale="small"] {
  font-size: 14px;
}
:root[data-font-scale="medium"] {
  font-size: 16px;
}
:root[data-font-scale="large"] {
  font-size: 18px;
}

/* ══════════════════════════════════════════════════════════
   BORDER RADIUS OVERRIDE
   ══════════════════════════════════════════════════════════ */
:root[data-border-radius="none"] {
  --radius-xl: 0px;
  --radius-lg: 0px;
  --radius-md: 0px;
  --radius-sm: 0px;
}
:root[data-border-radius="small"] {
  --radius-xl: 8px;
  --radius-lg: 6px;
  --radius-md: 4px;
  --radius-sm: 3px;
}
:root[data-border-radius="medium"] {
  /* default — no override needed */
}
:root[data-border-radius="large"] {
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

/* ══════════════════════════════════════════════════════════
   SLIDER YÜKSEKLİĞİ
   ══════════════════════════════════════════════════════════ */
:root[data-slider-height="small"] .slider-shell { --slide-h: 280px; }
:root[data-slider-height="medium"] .slider-shell { --slide-h: 420px; }
:root[data-slider-height="large"] .slider-shell { --slide-h: 560px; }

:root[data-slider-height="small"] .slide,
:root[data-slider-height="medium"] .slide,
:root[data-slider-height="large"] .slide {
  min-height: var(--slide-h, 420px);
}

/* ══════════════════════════════════════════════════════════
   ALT NAVİGASYON (MOBİL)
   ══════════════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav.hidden { display: none !important; }
.bnav-btn {
  min-width: 0;
  display: grid;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
  min-height: 56px;
}
.bnav-btn:active { background: var(--surface-soft); }
.bnav-btn.active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--border);
}
.bnav-icon {
  width: 22px;
  height: 22px;
  display: block;
}
.bnav-label {
  font-size: .65rem;
  line-height: 1;
  letter-spacing: .01em;
}

/* Body'ye alan ekle; alt nav ile içerik üst üste gelmesin */
body.has-bottom-nav {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

/* Dark tema alt nav */
[data-theme="dark"] .bottom-nav {
  background: var(--surface);
  border-top-color: var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.35);
}
/* Luxury alt nav */
[data-theme="luxury"] .bottom-nav {
  background: var(--surface);
  border-top-color: var(--border);
}
[data-theme="luxury"] .bnav-btn.active { color: var(--primary); }
/* Bistro alt nav */
[data-theme="bistro"] .bottom-nav {
  background: var(--surface);
  border-top: 2px solid var(--border);
}
/* Vibrant alt nav */
[data-theme="vibrant"] .bottom-nav {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
  border-top: 0;
  box-shadow: 0 -4px 24px rgba(109,40,217,.3);
}
[data-theme="vibrant"] .bnav-btn {
  color: rgba(255,255,255,.6);
}
[data-theme="vibrant"] .bnav-btn.active {
  color: #fff;
}
[data-theme="vibrant"] .bnav-btn:active {
  background: rgba(255,255,255,.12);
}

/* Sadakat ekranları: tüm temalar için ortak uyum */
[data-theme] .loyalty-card,
[data-theme] .reward-card,
[data-theme] .qr-help-card,
[data-theme] .account-panel,
[data-theme] .account-stat,
[data-theme] .auth-modal-card {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

[data-theme] .loyalty-info-strip div,
[data-theme] .loyalty-item,
[data-theme] .history-row,
[data-theme] .account-row,
[data-theme] .qr-box {
  background: var(--surface-soft);
  border-color: var(--border);
  color: var(--text);
}

[data-theme] .reward-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  box-shadow: var(--shadow-sm);
}

[data-theme] .reward-media {
  background: var(--primary-soft);
  color: var(--primary);
}

[data-theme] .loyalty-kicker,
[data-theme] .reward-cost,
[data-theme] .qr-help-title {
  color: var(--primary);
}

[data-theme] .loyalty-balance-pill,
[data-theme] .loyalty-info-strip strong,
[data-theme] .account-avatar {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

[data-theme] .qr-box img {
  background: #fff;
  border-color: var(--border);
}

[data-theme] .auth-modal .modal-actions {
  justify-content: center;
}

[data-theme] .auth-modal .modal-actions .btn {
  min-width: min(180px, 100%);
}

[data-theme="dark"] .is-plus,
[data-theme="midnight"] .is-plus,
[data-theme="artdeco"] .is-plus,
[data-theme="luxury"] .is-plus {
  background: rgba(63,185,80,.16);
  color: var(--success);
}

[data-theme="dark"] .is-minus,
[data-theme="midnight"] .is-minus,
[data-theme="artdeco"] .is-minus,
[data-theme="luxury"] .is-minus {
  background: rgba(248,81,73,.16);
  color: var(--danger);
}

[data-theme="midnight"] .loyalty-balance-pill,
[data-theme="artdeco"] .loyalty-balance-pill,
[data-theme="luxury"] .loyalty-balance-pill,
[data-theme="midnight"] .loyalty-info-strip strong,
[data-theme="artdeco"] .loyalty-info-strip strong,
[data-theme="luxury"] .loyalty-info-strip strong,
[data-theme="midnight"] .account-avatar,
[data-theme="artdeco"] .account-avatar,
[data-theme="luxury"] .account-avatar {
  color: #07111f;
}

[data-theme="bistro"] .loyalty-card,
[data-theme="bistro"] .reward-card,
[data-theme="bistro"] .qr-box,
[data-theme="bistro"] .account-panel,
[data-theme="bistro"] .account-stat {
  border-width: 2px;
  border-radius: 6px;
}

[data-theme="bistro"] .loyalty-kicker,
[data-theme="bistro"] .reward-title,
[data-theme="bistro"] .account-name {
  font-family: "Playfair Display", Georgia, serif;
}

[data-theme="luxury"] .loyalty-card,
[data-theme="luxury"] .reward-card,
[data-theme="luxury"] .qr-box,
[data-theme="luxury"] .account-panel,
[data-theme="luxury"] .account-stat {
  background: var(--surface);
  border-radius: 2px;
  box-shadow: none;
}

[data-theme="luxury"] .loyalty-kicker,
[data-theme="luxury"] .reward-title,
[data-theme="luxury"] .account-name {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: .04em;
}

[data-theme="vibrant"] .loyalty-balance-pill,
[data-theme="vibrant"] .loyalty-info-strip strong,
[data-theme="vibrant"] .account-avatar {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  border-color: transparent;
  color: #fff;
}

[data-theme="vibrant"] .reward-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

[data-theme="brutal"] .loyalty-card,
[data-theme="brutal"] .reward-card,
[data-theme="brutal"] .qr-box,
[data-theme="brutal"] .account-panel,
[data-theme="brutal"] .account-stat,
[data-theme="brutal"] .auth-modal-card {
  border: 3px solid #111;
  box-shadow: 8px 8px 0 rgba(17,17,17,.9);
}

[data-theme="brutal"] .loyalty-balance-pill,
[data-theme="brutal"] .loyalty-info-strip strong,
[data-theme="brutal"] .account-avatar {
  color: #111;
}

/* Welcome / Popup / In-feed banner */
.welcome-screen,
.theme-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}
.welcome-screen.hidden,
.theme-popup.hidden { display: none !important; }
.welcome-screen::before,
.theme-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .56);
  backdrop-filter: blur(12px);
  content: '';
}
.theme-popup__backdrop { content: none; }
.welcome-screen__panel,
.theme-popup__card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 28px;
}
.welcome-screen[data-fullscreen="1"] {
  padding: 0;
}
.welcome-screen[data-fullscreen="1"] .welcome-screen__panel {
  width: 100vw;
  min-height: 100dvh;
  border-radius: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(24px, 5vw, 64px);
}
.welcome-screen__panel--windowed {
  width: min(560px, calc(100vw - 32px));
  min-height: auto;
}
.welcome-screen__lang {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.welcome-screen__lang-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.welcome-screen__lang-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.welcome-screen__lang-options .chip.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.welcome-screen__logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  overflow: hidden;
  margin-bottom: 16px;
}
.welcome-screen__title,
.theme-popup__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 10px;
}
.welcome-screen__desc,
.theme-popup__body {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.welcome-screen__actions,
.theme-popup__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.theme-popup__card {
  padding-top: 42px;
}
.theme-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
}
.theme-popup__eyebrow,
.infeed-banner__kicker {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.infeed-banner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.infeed-banner--soft {
  background: linear-gradient(135deg, var(--surface) 0%, var(--primary-soft) 100%);
}
.infeed-banner--solid {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.infeed-banner--solid .infeed-banner__kicker,
.infeed-banner--solid .infeed-banner__body,
.infeed-banner--solid .infeed-banner__title {
  color: #fff;
}
.infeed-banner--outline {
  background: transparent;
  border-width: 2px;
}
.infeed-banner__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.infeed-banner__body {
  color: var(--muted);
  line-height: 1.6;
}
:root[data-motion-level="off"] * {
  animation: none !important;
  transition-duration: 0.01ms !important;
}
:root[data-motion-speed="slow"] { --motion-ms: 420ms; }
:root[data-motion-speed="normal"] { --motion-ms: 240ms; }
:root[data-motion-speed="fast"] { --motion-ms: 140ms; }
body[data-card-reveal="fade-up"] .menu-item,
body[data-card-reveal="fade-up"] .menu-card,
body[data-card-reveal="fade-up"] .menu-compact,
body[data-card-reveal="fade-up"] .infeed-banner {
  animation: fadeUp var(--motion-ms, 240ms) cubic-bezier(.16,1,.3,1) both;
}
body[data-card-reveal="scale-in"] .menu-item,
body[data-card-reveal="scale-in"] .menu-card,
body[data-card-reveal="scale-in"] .menu-compact,
body[data-card-reveal="scale-in"] .infeed-banner {
  animation: scaleIn var(--motion-ms, 240ms) cubic-bezier(.16,1,.3,1) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-screen,
  .theme-popup,
  .menu-item,
  .menu-card,
  .menu-compact,
  .infeed-banner {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 640px) {
  .infeed-banner {
    grid-template-columns: 1fr;
  }
}

.card-image,
.compact-image,
.item-image,
.img-rounded,
.img-square,
.img-circle {
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff;
}
