/* ═══════════════════════════════════════════════════
   CRISPY MENU — Premium Design System v2.0
   Dark Theme | Mobile-First | Zero Dependencies
═══════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:         #0A0F1E;
  --bg2:        #111827;
  --surface:    #1A2235;
  --surface2:   #212D42;
  --border:     rgba(255,255,255,0.08);
  --border2:    rgba(255,255,255,0.14);
  --red:        #E11D48;
  --red-light:  #FB7185;
  --red-dark:   #9F1239;
  --orange:     #F97316;
  --green:      #10B981;
  --blue:       #3B82F6;
  --text:       #F1F5F9;
  --text2:      #94A3B8;
  --text3:      #475569;
  --white:      #FFFFFF;
  --radius:     14px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.5);
  --header-h:   60px;
  --footer-h:   70px;
  --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; outline: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 4px; }

/* ═══════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════ */
.cm-container { max-width: 520px; margin: 0 auto; padding: 0 16px; }
.cm-page {
  min-height: 100vh;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--footer-h) + 16px);
}

/* ═══════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════ */
.cm-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.cm-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cm-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(225,29,72,0.35);
  flex-shrink: 0;
}
.cm-logo-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.3px;
}
.cm-logo-text em { color: var(--red-light); font-style: normal; }
.cm-header-right { display: flex; align-items: center; gap: 12px; }
.cm-cart-btn {
  position: relative;
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  color: var(--text);
}
.cm-cart-btn:hover { background: var(--surface2); border-color: var(--red); }
.cm-cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
  display: none;
}
.cm-cart-badge.show { display: flex; }
.cm-menu-btn {
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  color: var(--text2);
}
.cm-menu-btn:hover { background: var(--surface2); color: var(--text); }

/* Masa chip (QR mod) */
.cm-masa-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(225,29,72,0.15);
  border: 1px solid rgba(225,29,72,0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red-light);
}

/* ═══════════════════════════════════════════════════
   SIDE DRAWER (Nav)
═══════════════════════════════════════════════════ */
.cm-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.cm-drawer-overlay.open { opacity: 1; pointer-events: all; }
.cm-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 280px; height: 100vh;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  padding: 24px 0;
}
.cm-drawer.open { transform: translateX(0); }
.cm-drawer-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.cm-drawer-close {
  width: 32px; height: 32px;
  background: var(--surface);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--text2);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}
.cm-drawer-close:hover { background: var(--surface2); color: var(--text); }
.cm-drawer-nav { padding: 0 12px; flex: 1; overflow-y: auto; }
.cm-drawer-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 4px;
}
.cm-drawer-link:hover { background: var(--surface); color: var(--text); }
.cm-drawer-link i { width: 20px; text-align: center; font-size: 16px; }
.cm-drawer-sep { height: 1px; background: var(--border); margin: 12px 0; }
.cm-drawer-footer {
  padding: 16px 20px 0;
  border-top: 1px solid var(--border);
}
.cm-lang-btns { display: flex; gap: 8px; }
.cm-lang-btn {
  flex: 1; padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: var(--transition);
}
.cm-lang-btn:hover, .cm-lang-btn.active { background: var(--surface2); border-color: var(--red); color: var(--text); }

/* ═══════════════════════════════════════════════════
   FOOTER (Mobile Nav)
═══════════════════════════════════════════════════ */
.cm-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--footer-h);
  background: rgba(10,15,30,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 900;
  display: flex;
  align-items: center;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom);
}
.cm-footer-nav { display: flex; width: 100%; }
.cm-footer-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  color: var(--text3);
  font-size: 10px; font-weight: 600;
  position: relative;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.cm-footer-item i { font-size: 20px; transition: var(--transition); }
.cm-footer-item.active { color: var(--red); }
.cm-footer-item.active i { transform: translateY(-1px); }
.cm-footer-item:hover { color: var(--text2); }
.cm-footer-badge {
  position: absolute;
  top: 4px;
  background: var(--red);
  color: white;
  font-size: 9px; font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--bg);
  display: none;
}
.cm-footer-badge.show { display: flex; }

/* ═══════════════════════════════════════════════════
   CARDS & SURFACES
═══════════════════════════════════════════════════ */
.cm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cm-card-body { padding: 16px; }
.cm-glass {
  background: rgba(26,34,53,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
}

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.cm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: -0.2px;
}
.cm-btn-primary {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: white;
  box-shadow: 0 4px 16px rgba(225,29,72,0.35);
}
.cm-btn-primary:hover { box-shadow: 0 6px 24px rgba(225,29,72,0.5); transform: translateY(-1px); }
.cm-btn-primary:active { transform: scale(0.98); box-shadow: none; }
.cm-btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border2);
}
.cm-btn-outline:hover { border-color: var(--red); color: var(--red-light); background: rgba(225,29,72,0.07); }
.cm-btn-ghost {
  background: var(--surface);
  color: var(--text2);
  border: 1px solid var(--border);
}
.cm-btn-ghost:hover { background: var(--surface2); color: var(--text); }
.cm-btn-green {
  background: linear-gradient(135deg, #059669, var(--green));
  color: white;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}
.cm-btn-green:hover { box-shadow: 0 6px 24px rgba(16,185,129,0.45); transform: translateY(-1px); }
.cm-btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.cm-btn-lg { padding: 16px 28px; font-size: 16px; }
.cm-btn-block { width: 100%; }
.cm-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ═══════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════ */
.cm-form-group { margin-bottom: 16px; }
.cm-label {
  display: block;
  font-size: 12px; font-weight: 700;
  color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.6px;
  margin-bottom: 7px;
}
.cm-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  transition: var(--transition);
}
.cm-input:focus { border-color: var(--red); background: rgba(225,29,72,0.04); box-shadow: 0 0 0 3px rgba(225,29,72,0.12); }
.cm-input::placeholder { color: var(--text3); }
.cm-input-icon-wrap { position: relative; }
.cm-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 16px; pointer-events: none; }
.cm-input-icon-wrap .cm-input { padding-left: 44px; }

/* ═══════════════════════════════════════════════════
   BADGES & TAGS
═══════════════════════════════════════════════════ */
.cm-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
.cm-badge-red { background: rgba(225,29,72,0.15); color: var(--red-light); border: 1px solid rgba(225,29,72,0.25); }
.cm-badge-green { background: rgba(16,185,129,0.15); color: #34D399; border: 1px solid rgba(16,185,129,0.25); }
.cm-badge-orange { background: rgba(249,115,22,0.15); color: #FB923C; border: 1px solid rgba(249,115,22,0.25); }
.cm-badge-blue { background: rgba(59,130,246,0.15); color: #60A5FA; border: 1px solid rgba(59,130,246,0.25); }

/* ═══════════════════════════════════════════════════
   SECTION TITLES
═══════════════════════════════════════════════════ */
.cm-section-title {
  font-size: 20px; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.cm-section-sub { font-size: 13px; color: var(--text2); }
.cm-section-header { margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════
   HERO / BANNER
═══════════════════════════════════════════════════ */
.cm-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 24px;
}
.cm-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cm-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,15,30,0.3) 0%, rgba(10,15,30,0.85) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 20px;
  text-align: center;
}
.cm-hero-title { font-size: 22px; font-weight: 900; color: white; letter-spacing: -0.5px; margin-bottom: 4px; }
.cm-hero-sub { font-size: 13px; color: rgba(255,255,255,0.7); }
.cm-hero-dots { display: flex; gap: 5px; justify-content: center; margin-top: 12px; }
.cm-hero-dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.3);
  transition: var(--transition);
}
.cm-hero-dot.active { width: 20px; background: var(--red); }

/* ═══════════════════════════════════════════════════
   CATEGORY TABS
═══════════════════════════════════════════════════ */
.cm-cat-scroll {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 0 16px 12px;
  margin: 0 -16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}
.cm-cat-scroll::-webkit-scrollbar { display: none; }
.cm-cat-tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex-shrink: 0;
  padding: 10px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  scroll-snap-align: start;
  min-width: 72px;
}
.cm-cat-tab img {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: cover;
}
.cm-cat-tab span {
  font-size: 11px; font-weight: 700;
  color: var(--text2);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}
.cm-cat-tab.active {
  border-color: var(--red);
  background: rgba(225,29,72,0.1);
}
.cm-cat-tab.active span { color: var(--red-light); }

/* ═══════════════════════════════════════════════════
   PRODUCT CARDS
═══════════════════════════════════════════════════ */
.cm-products { display: flex; flex-direction: column; gap: 12px; }
.cm-product-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cm-product-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.2s ease;
}
.cm-product-card:hover { border-color: var(--border2); background: var(--surface2); }
.cm-product-card:hover::before { transform: scaleY(1); }
.cm-product-card:active { transform: scale(0.99); }
.cm-product-img {
  width: 80px; height: 80px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface2);
}
.cm-product-info { flex: 1; min-width: 0; }
.cm-product-name {
  font-size: 14px; font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cm-product-desc {
  font-size: 12px; color: var(--text2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  line-height: 1.4;
}
.cm-product-bottom { display: flex; align-items: center; justify-content: space-between; }
.cm-product-price { font-size: 16px; font-weight: 800; color: var(--red-light); }
.cm-product-price span { font-size: 11px; font-weight: 500; color: var(--text2); }
.cm-add-btn {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(225,29,72,0.35);
  flex-shrink: 0;
}
.cm-add-btn:hover { box-shadow: 0 5px 16px rgba(225,29,72,0.5); transform: scale(1.05); }
.cm-add-btn:active { transform: scale(0.95); }

/* ═══════════════════════════════════════════════════
   SEARCH BAR
═══════════════════════════════════════════════════ */
.cm-search-wrap {
  position: relative;
  margin-bottom: 20px;
}
.cm-search-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text3); font-size: 15px; pointer-events: none;
}
.cm-search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-size: 14px;
  transition: var(--transition);
}
.cm-search-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,72,0.12); }
.cm-search-input::placeholder { color: var(--text3); }
.cm-search-clear {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text3); font-size: 13px;
  cursor: pointer; display: none;
}

/* ═══════════════════════════════════════════════════
   STICKY CART BAR
═══════════════════════════════════════════════════ */
.cm-cart-bar {
  position: fixed;
  bottom: calc(var(--footer-h) + 12px);
  left: 16px; right: 16px;
  max-width: 488px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 8px 32px rgba(225,29,72,0.4);
  z-index: 800;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
}
.cm-cart-bar.show { transform: translateY(0); opacity: 1; }
.cm-cart-bar:hover { box-shadow: 0 12px 40px rgba(225,29,72,0.55); }
.cm-cart-bar-left { display: flex; align-items: center; gap: 10px; }
.cm-cart-bar-count {
  background: rgba(0,0,0,0.25);
  color: white;
  font-size: 12px; font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}
.cm-cart-bar-text { font-size: 14px; font-weight: 700; color: white; }
.cm-cart-bar-price { font-size: 16px; font-weight: 900; color: white; }

/* ═══════════════════════════════════════════════════
   CART PAGE
═══════════════════════════════════════════════════ */
.cm-cart-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  transition: var(--transition);
}
.cm-cart-item img {
  width: 64px; height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.cm-cart-item-info { flex: 1; min-width: 0; }
.cm-cart-item-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.cm-cart-item-extras { font-size: 11px; color: var(--text3); margin-bottom: 6px; }
.cm-cart-item-price { font-size: 15px; font-weight: 800; color: var(--red-light); }
.cm-qty-control {
  display: flex; align-items: center; gap: 2px;
  background: var(--surface2);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.cm-qty-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  font-size: 18px;
  transition: var(--transition);
}
.cm-qty-btn:hover { background: var(--border); color: var(--red-light); }
.cm-qty-val {
  width: 36px;
  text-align: center;
  font-size: 14px; font-weight: 800;
  color: var(--text);
  background: none; border: none;
}
.cm-cart-del {
  width: 34px; height: 34px;
  background: rgba(225,29,72,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red-light); font-size: 15px;
  transition: var(--transition); flex-shrink: 0;
}
.cm-cart-del:hover { background: rgba(225,29,72,0.2); }
.cm-order-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.cm-order-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.cm-order-row + .cm-order-row { border-top: 1px solid var(--border); }
.cm-order-label { font-size: 13px; color: var(--text2); }
.cm-order-val { font-size: 14px; font-weight: 700; color: var(--text); }
.cm-order-total .cm-order-label { font-size: 15px; font-weight: 700; color: var(--text); }
.cm-order-total .cm-order-val { font-size: 18px; font-weight: 900; color: var(--red-light); }

/* ═══════════════════════════════════════════════════
   COUPON
═══════════════════════════════════════════════════ */
.cm-coupon-wrap {
  display: flex; gap: 8px;
  margin-bottom: 16px;
}
.cm-coupon-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cm-coupon-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,0.12); }
.cm-coupon-input::placeholder { text-transform: none; letter-spacing: 0; color: var(--text3); }

/* ═══════════════════════════════════════════════════
   PRODUCT DETAIL
═══════════════════════════════════════════════════ */
.cm-detail-img-wrap {
  position: relative;
  height: 260px;
  background: var(--surface);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.cm-detail-img { width: 100%; height: 100%; object-fit: cover; }
.cm-detail-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,15,30,0.8) 0%, transparent 60%);
}
.cm-back-btn {
  position: absolute; top: 16px; left: 16px;
  width: 40px; height: 40px;
  background: rgba(10,15,30,0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px;
  transition: var(--transition);
}
.cm-back-btn:hover { background: rgba(10,15,30,0.9); }
.cm-portion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.cm-portion-item {
  padding: 10px 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.cm-portion-item:hover, .cm-portion-item.selected {
  border-color: var(--red);
  background: rgba(225,29,72,0.1);
}
.cm-portion-item .name { font-size: 12px; font-weight: 600; color: var(--text2); }
.cm-portion-item .price { font-size: 13px; font-weight: 800; color: var(--text); margin-top: 2px; }
.cm-extra-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.cm-extra-item:hover { border-color: var(--border2); }
.cm-extra-item.selected { border-color: var(--red); background: rgba(225,29,72,0.08); }
.cm-extra-name { font-size: 13px; font-weight: 600; color: var(--text); }
.cm-extra-price { font-size: 13px; font-weight: 700; color: var(--red-light); }
.cm-checkbox {
  width: 20px; height: 20px;
  border: 2px solid var(--border2);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.cm-extra-item.selected .cm-checkbox { background: var(--red); border-color: var(--red); }
.cm-sticky-add {
  position: sticky;
  bottom: calc(var(--footer-h) + 12px);
  background: var(--bg);
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
  z-index: 100;
  display: flex; align-items: center; gap: 12px;
}
.cm-sticky-price { font-size: 22px; font-weight: 900; color: var(--red-light); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   AUTH PAGES (Giriş / Kayıt)
═══════════════════════════════════════════════════ */
.cm-auth-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  padding: 0;
}
.cm-auth-header {
  padding: 48px 24px 36px;
  text-align: center;
}
.cm-auth-logo {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 28px rgba(225,29,72,0.4);
}
.cm-auth-title { font-size: 24px; font-weight: 900; color: var(--text); margin-bottom: 6px; letter-spacing: -0.5px; }
.cm-auth-sub { font-size: 14px; color: var(--text2); }
.cm-auth-body {
  flex: 1;
  background: var(--bg2);
  border-radius: 28px 28px 0 0;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
}
.cm-auth-footer {
  padding: 20px 24px;
  background: var(--bg2);
  text-align: center;
  font-size: 14px;
  color: var(--text2);
}
.cm-auth-link { color: var(--red-light); font-weight: 700; }
.cm-auth-link:hover { color: var(--red); }
.cm-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  color: var(--text3); font-size: 12px; font-weight: 600;
}
.cm-divider::before, .cm-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}
.cm-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
  display: none;
}
.cm-alert.show { display: flex; }
.cm-alert-error { background: rgba(225,29,72,0.1); border: 1px solid rgba(225,29,72,0.25); color: #FCA5A5; }
.cm-alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); color: #6EE7B7; }
.cm-alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25); color: #93C5FD; }

/* ═══════════════════════════════════════════════════
   ACCOUNT / PROFILE PAGE
═══════════════════════════════════════════════════ */
.cm-profile-header {
  background: linear-gradient(135deg, var(--red-dark) 0%, rgba(10,15,30,0) 100%),
              var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(225,29,72,0.2);
}
.cm-avatar {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: white;
  flex-shrink: 0;
}
.cm-profile-name { font-size: 18px; font-weight: 800; color: var(--text); }
.cm-profile-email { font-size: 12px; color: var(--text2); margin-top: 2px; }
.cm-menu-list { list-style: none; }
.cm-menu-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}
.cm-menu-list-item:hover { background: var(--surface2); border-color: var(--border2); }
.cm-menu-list-item i { width: 20px; text-align: center; color: var(--text2); font-size: 16px; }
.cm-menu-list-item span { flex: 1; font-size: 14px; font-weight: 600; }
.cm-menu-list-item .arrow { color: var(--text3); font-size: 12px; }

/* ═══════════════════════════════════════════════════
   QR MODU — Özel Bileşenler
═══════════════════════════════════════════════════ */
.cm-qr-welcome {
  text-align: center;
  padding: 40px 20px;
}
.cm-qr-table-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: 22px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  box-shadow: 0 10px 36px rgba(225,29,72,0.4);
  animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 10px 36px rgba(225,29,72,0.4); }
  50% { box-shadow: 0 10px 50px rgba(225,29,72,0.6); }
}
.cm-qr-table-name { font-size: 26px; font-weight: 900; color: var(--text); letter-spacing: -0.5px; margin-bottom: 6px; }
.cm-qr-sub { font-size: 14px; color: var(--text2); }
.cm-qr-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

/* Garson / Hesap Butonu */
.cm-action-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}
.cm-action-card:hover { border-color: var(--border2); background: var(--surface2); }
.cm-action-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.cm-action-icon-red { background: rgba(225,29,72,0.15); }
.cm-action-icon-orange { background: rgba(249,115,22,0.15); }
.cm-action-icon-green { background: rgba(16,185,129,0.15); }
.cm-action-title { font-size: 15px; font-weight: 700; color: var(--text); }
.cm-action-sub { font-size: 12px; color: var(--text2); margin-top: 2px; }
.cm-action-arrow { margin-left: auto; color: var(--text3); font-size: 14px; }

/* ═══════════════════════════════════════════════════
   ORDER STATUS
═══════════════════════════════════════════════════ */
.cm-status-track { margin-bottom: 24px; }
.cm-status-step {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 4px;
}
.cm-status-step-left { display: flex; flex-direction: column; align-items: center; }
.cm-status-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.cm-status-dot.done { background: var(--green); border-color: var(--green); color: white; }
.cm-status-dot.active { background: var(--red); border-color: var(--red); color: white; animation: pulse-status 1.5s infinite; }
@keyframes pulse-status {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225,29,72,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(225,29,72,0); }
}
.cm-status-line {
  width: 2px; flex: 1; min-height: 28px;
  background: var(--border);
  margin: 4px 0;
}
.cm-status-line.done { background: var(--green); }
.cm-status-content { padding-top: 4px; padding-bottom: 20px; }
.cm-status-name { font-size: 14px; font-weight: 700; color: var(--text); }
.cm-status-time { font-size: 12px; color: var(--text2); margin-top: 2px; }

/* ═══════════════════════════════════════════════════
   SUCCESS / EMPTY STATES
═══════════════════════════════════════════════════ */
.cm-empty {
  text-align: center; padding: 48px 16px;
}
.cm-empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.5; }
.cm-empty-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.cm-empty-text { font-size: 14px; color: var(--text2); }
.cm-success-check {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #059669, var(--green));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 32px rgba(16,185,129,0.4);
  animation: pop-in 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes pop-in {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   TOASTS
═══════════════════════════════════════════════════ */
.cm-toast-container {
  position: fixed; top: calc(var(--header-h) + 12px);
  right: 12px; left: 12px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.cm-toast {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 600;
  color: var(--text);
  animation: toast-in 0.3s ease forwards;
  pointer-events: all;
}
@keyframes toast-in {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cm-toast-success { border-color: rgba(16,185,129,0.3); }
.cm-toast-error { border-color: rgba(225,29,72,0.3); }
.cm-toast i { font-size: 16px; }

/* ═══════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════ */
.d-none { display: none !important; }
.text-center { text-align: center; }
.text-red { color: var(--red-light); }
.text-green { color: #34D399; }
.text-muted { color: var(--text2); }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
.font-900 { font-weight: 900; }
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .cm-container { padding: 0 24px; }
  .cm-drawer { width: 320px; }
}
@media (min-width: 768px) {
  :root { --header-h: 64px; }
  .cm-hero { height: 280px; }
  .cm-product-img { width: 88px; height: 88px; }
}
