@font-face {
  font-family: "Vazir";
  src: url("fonts/vazir/Vazir-Thin.woff2") format("woff2"),
       url("fonts/vazir/Vazir-Thin.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazir";
  src: url("fonts/vazir/Vazir-Light.woff2") format("woff2"),
       url("fonts/vazir/Vazir-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazir";
  src: url("fonts/vazir/Vazir-Regular.woff2") format("woff2"),
       url("fonts/vazir/Vazir-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazir";
  src: url("fonts/vazir/Vazir-Medium.woff2") format("woff2"),
       url("fonts/vazir/Vazir-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazir";
  src: url("fonts/vazir/Vazir-Bold.woff2") format("woff2"),
       url("fonts/vazir/Vazir-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazir";
  src: url("fonts/vazir/Vazir-Black.woff2") format("woff2"),
       url("fonts/vazir/Vazir-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0a1622;
  --night-2: #10243a;
  --tile: #1b4f8a;
  --turq: #1fb5ad;
  --saffron: #f4a300;
  --gold: #d9ad5b;
  --gold-2: #f3d58d;
  --pome: #b3243b;
  --cream: #f6ecd9;
  --muted: #a9b6c4;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-b: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  --font: "Vazir", Tahoma, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(31, 181, 173, 0.18), transparent 60%),
    radial-gradient(900px 600px at 0% 30%, rgba(179, 36, 59, 0.16), transparent 60%),
    radial-gradient(900px 700px at 100% 90%, rgba(244, 163, 0, 0.12), transparent 60%),
    var(--night);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.8;
}
body.lock { overflow: hidden; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: rgba(217, 173, 91, 0.5) transparent; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(217, 173, 91, 0.45); border-radius: 8px; }

#bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.pattern-layer {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23f3d58d' stroke-width='1.2'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3Cpath d='M0 0L22 22M80 0L58 22M0 80L22 58M80 80L58 58'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999; display: grid; place-content: center; justify-items: center;
  background: var(--night); transition: opacity 0.7s, visibility 0.7s; gap: 4px;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader p { margin-top: 18px; color: var(--gold-2); letter-spacing: 1px; }
.tea-glass {
  width: 60px; height: 84px; position: relative; overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.5); border-top: 0;
  border-radius: 6px 6px 18px 18px;
  clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%, 12% 50%);
  background: rgba(255, 255, 255, 0.06);
}
.tea {
  position: absolute; inset: auto 0 0 0; height: 0;
  background: linear-gradient(#c2410c, #7c1d06);
  animation: pour 1.6s ease-in-out infinite;
}
.glass-shine { position: absolute; top: 6px; right: 10px; width: 6px; height: 60%; background: rgba(255, 255, 255, 0.35); border-radius: 4px; }
.saucer { width: 100px; height: 12px; border-radius: 50%; background: linear-gradient(var(--gold-2), var(--gold)); margin-top: -2px; }
@keyframes pour { 0% { height: 0; } 70%, 100% { height: 88%; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 14px; inset-inline: 14px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 18px; border-radius: 20px;
  background: rgba(10, 22, 34, 0.55); backdrop-filter: blur(14px);
  border: 1px solid var(--glass-b); transition: transform 0.4s, background 0.3s;
}
.header.scrolled { background: rgba(10, 22, 34, 0.85); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-star { width: 38px; height: 38px; position: relative; transform-style: preserve-3d; animation: spinY 8s linear infinite; }
.brand-star i { position: absolute; inset: 6px; background: linear-gradient(135deg, var(--gold-2), var(--saffron)); border-radius: 4px; }
.brand-star i:last-child { transform: rotate(45deg); background: linear-gradient(135deg, var(--turq), var(--tile)); mix-blend-mode: screen; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 17px; }
.brand-text small { color: var(--muted); font-size: 11px; }
.nav { display: flex; gap: 26px; font-size: 14px; }
.nav a { opacity: 0.8; position: relative; }
.nav a::after { content: ""; position: absolute; bottom: -4px; right: 0; width: 0; height: 2px; background: var(--saffron); transition: width 0.3s; }
.nav a:hover { opacity: 1; }
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-b); font-size: 16px; transition: 0.2s;
}
.icon-btn:hover { background: var(--glass-b); }
.cart-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; position: relative;
  background: linear-gradient(135deg, var(--saffron), #e0731a); color: #1d1206; font-weight: 700;
  box-shadow: 0 6px 0 #9a4c0c, 0 12px 24px -8px rgba(244, 163, 0, 0.6); transition: transform 0.15s, box-shadow 0.15s;
}
.cart-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #9a4c0c; }
.cart-btn.bump { animation: bump 0.5s; }
.cart-badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center;
  background: var(--pome); color: #fff; font-size: 12px;
}
@keyframes bump { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(0.94) rotate(4deg); } }
@keyframes spinY { to { transform: rotateY(360deg); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 14px; font-weight: 700; font-size: 15px; transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--saffron), #e0731a); color: #1d1206;
  box-shadow: 0 6px 0 #9a4c0c, 0 18px 30px -12px rgba(244, 163, 0, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 #9a4c0c; }
.btn-primary:disabled { filter: grayscale(0.8); opacity: 0.6; cursor: not-allowed; }
.btn-ghost { background: var(--glass); border: 1px solid var(--glass-b); color: var(--cream); }
.btn-ghost:hover { background: var(--glass-b); }
.btn-small { padding: 8px 14px; font-size: 13px; border-radius: 10px; background: var(--turq); color: #04211f; font-weight: 700; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 30px;
  padding: 120px 6vw 60px; max-width: 1400px; margin: 0 auto;
}
.kicker {
  display: inline-block; font-size: 13px; color: var(--gold-2); padding: 4px 14px; border-radius: 30px;
  background: rgba(217, 173, 91, 0.1); border: 1px solid rgba(217, 173, 91, 0.3); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(42px, 6vw, 84px); line-height: 1.2; font-weight: 900; margin-bottom: 20px; }
.gold {
  background: linear-gradient(90deg, var(--gold-2), var(--saffron), var(--gold-2)); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero p { color: var(--muted); max-width: 520px; font-size: 17px; }
.hero-cta { display: flex; gap: 14px; margin: 30px 0; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; }
.hero-stats strong { display: block; font-size: 28px; color: var(--gold-2); }
.hero-stats span { font-size: 13px; color: var(--muted); }

.stage { position: relative; height: 560px; perspective: 1100px; }
.stage-tilt {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--py, 0deg)) rotateY(var(--px, 0deg)); transition: transform 0.4s ease-out;
}
.stage-glow {
  position: absolute; inset: 15%; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 163, 0, 0.35), transparent 65%); filter: blur(30px);
  transform: translateZ(-120px);
}
.orbit { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(66deg); }
.orbit-ring {
  position: absolute; inset: 4%; border-radius: 50%;
  border: 1px dashed rgba(243, 213, 141, 0.35); box-shadow: 0 0 40px rgba(31, 181, 173, 0.15) inset;
}
.orbit-spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: spinZ 36s linear infinite; }
.orbit-item { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.oi-counter { transform-style: preserve-3d; animation: spinZ 36s linear infinite reverse; }
.oi-face {
  display: grid; place-items: center; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%;
  font-size: 34px; transform: rotateX(-66deg) translateY(-30px);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--glass-b); backdrop-filter: blur(4px);
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.6);
  animation: float 3s ease-in-out infinite;
}
@keyframes spinZ { to { transform: rotateZ(360deg); } }
@keyframes float { 50% { translate: 0 -10px; } }

.hero-plate {
  position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px;
  border-radius: 50%; transform-style: preserve-3d;
  background: radial-gradient(circle, #fffaf0 0 50%, #eadfca 51% 56%, #fffaf0 57%);
  box-shadow: 0 0 0 10px #f3ead8, 0 40px 60px rgba(0, 0, 0, 0.55);
}
.plate-rim {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(var(--tile) 0 5deg, #fffaf0 5deg 10deg, var(--turq) 10deg 15deg, #fffaf0 15deg 20deg);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61% 69%, transparent 70%);
  mask: radial-gradient(circle, transparent 60%, #000 61% 69%, transparent 70%);
  animation: spinZ 60s linear infinite;
}
.hero-food { position: absolute; inset: 0; transform-style: preserve-3d; }
.hf {
  position: absolute; left: var(--x); top: var(--y); font-size: 96px; line-height: 1;
  transform-origin: bottom center; transform: translate(-50%, -100%) rotateX(-66deg);
  filter: drop-shadow(0 20px 12px rgba(0, 0, 0, 0.4));
}
.hf-1 { --x: 44%; --y: 46%; font-size: 110px; }
.hf-2 { --x: 64%; --y: 70%; font-size: 92px; animation: sizzle 2s ease-in-out infinite; }
.hf-3 { --x: 28%; --y: 70%; font-size: 52px; }
@keyframes sizzle { 50% { filter: drop-shadow(0 20px 12px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 18px rgba(244, 100, 0, 0.8)); } }
.stage-shadow {
  position: absolute; bottom: 30px; left: 20%; right: 20%; height: 40px; border-radius: 50%;
  background: radial-gradient(rgba(0, 0, 0, 0.6), transparent 70%); filter: blur(8px);
}

/* ---------- Sections ---------- */
.section { padding: 90px 6vw; max-width: 1400px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 900; }
.section-head p { color: var(--muted); }
.reveal { opacity: 0; transform: perspective(800px) translateY(50px) rotateX(-18deg); transition: 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Moods ---------- */
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mood {
  perspective: 900px; text-align: center; opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}
.mood.in { opacity: 1; transform: none; }
.mood-inner {
  padding: 30px 18px 26px; border-radius: var(--radius); transform-style: preserve-3d; position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-b); transition: transform 0.25s ease-out, border-color 0.3s, box-shadow 0.3s;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.mood-inner .m-icon { display: block; font-size: 56px; transform: translateZ(60px); filter: drop-shadow(0 16px 10px rgba(0, 0, 0, 0.4)); }
.mood-inner strong { display: block; font-size: 18px; margin-top: 12px; transform: translateZ(40px); }
.mood-inner small { display: block; color: var(--muted); transform: translateZ(25px); }
.mood.active .mood-inner { border-color: var(--saffron); box-shadow: 0 0 0 2px var(--saffron), 0 20px 50px -15px rgba(244, 163, 0, 0.6); }

/* ---------- Category carousel ---------- */
.cat-wrap { display: flex; align-items: center; justify-content: center; gap: 16px; }
.cat-arrow {
  width: 46px; height: 46px; border-radius: 50%; font-size: 26px; line-height: 1; flex-shrink: 0;
  background: var(--glass); border: 1px solid var(--glass-b); transition: 0.2s;
}
.cat-arrow:hover { background: var(--saffron); color: #1d1206; }
.cat-scene { width: min(640px, 70vw); height: 200px; perspective: 900px; position: relative; touch-action: pan-y; cursor: grab; }
.cat-ring {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: translateZ(calc(var(--r) * -1)) rotateY(var(--angle, 0deg));
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cat-item {
  position: absolute; left: 50%; top: 20px; width: 130px; height: 150px; margin-left: -65px;
  border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(160deg, rgba(27, 79, 138, 0.9), rgba(10, 22, 34, 0.95));
  border: 1px solid rgba(243, 213, 141, 0.25); transition: opacity 0.6s, box-shadow 0.4s, background 0.4s;
  user-select: none;
}
.cat-item span { font-size: 46px; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.5)); }
.cat-item b { font-size: 15px; }
.cat-item.active {
  background: linear-gradient(160deg, var(--saffron), #b4530f); color: #1d1206;
  box-shadow: 0 0 40px rgba(244, 163, 0, 0.5);
}
.menu-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 30px 0 26px; flex-wrap: wrap; }
.menu-bar h3 { font-size: 24px; }
.mood-chip {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 30px; font-size: 14px;
  background: rgba(244, 163, 0, 0.15); border: 1px solid var(--saffron);
}
.mood-chip button { width: 26px; height: 26px; border-radius: 50%; background: var(--saffron); color: #1d1206; font-size: 12px; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px; }
.card { perspective: 1100px; height: 445px; opacity: 0; transform: translateY(60px) rotateX(-25deg); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0s); }
.card.in { opacity: 1; transform: none; }
.card-inner {
  position: relative; height: 100%; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg)));
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card.tilting .card-inner { transition: transform 0.12s ease-out; }
.card.flipped { --flip: 180deg; }
.face {
  position: absolute; inset: 0; border-radius: var(--radius); padding: 20px; transform-style: preserve-3d;
  background: linear-gradient(165deg, rgba(27, 55, 85, 0.95), rgba(12, 26, 40, 0.98));
  border: 1px solid var(--glass-b); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.face, .face *, .face *::before, .face *::after { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.1), transparent 45%);
}
.back { transform: rotateY(180deg); }
.card.recommended .front { border-color: var(--saffron); box-shadow: 0 0 0 1px var(--saffron), 0 30px 60px -20px rgba(244, 163, 0, 0.45); }
.mood-ribbon {
  display: none; position: absolute; top: 18px; left: -8px; padding: 2px 14px; font-size: 12px; font-weight: 700;
  background: var(--saffron); color: #1d1206; border-radius: 6px 6px 6px 0; transform: translateZ(30px);
}
.card.recommended .mood-ribbon { display: block; }
.card.recommended .front .flip-btn { top: 54px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; min-height: 24px; }
.badge { font-size: 11px; padding: 2px 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--glass-b); }
.plate-wrap { position: relative; height: 170px; display: grid; place-items: center; transform-style: preserve-3d; transform: translateZ(50px); }
.plate-wrap::before {
  content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--hue) 85% 55% / 0.4), transparent 65%); filter: blur(10px);
  transform: translateZ(-80px);
}
.plate {
  width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle, #fffaf0 0 48%, #e7dcc6 49% 55%, #fffaf0 56%);
  box-shadow: 0 0 0 6px #efe4cf, 0 22px 30px -8px rgba(0, 0, 0, 0.6); transform: rotateX(18deg);
}
.plate::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(var(--tile) 0 6deg, transparent 6deg 12deg);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63% 70%, transparent 71%);
  mask: radial-gradient(circle, transparent 62%, #000 63% 70%, transparent 71%);
}
.food { font-size: 76px; line-height: 1; transform: translateZ(30px) rotateX(-18deg) translateY(-6px); filter: drop-shadow(0 14px 8px rgba(0, 0, 0, 0.45)); transition: transform 0.4s; }
.card:hover .food { transform: translateZ(50px) rotateX(-18deg) translateY(-16px) scale(1.08); }
.steam { position: absolute; top: -8px; display: flex; gap: 10px; pointer-events: none; }
.steam i { width: 6px; height: 36px; border-radius: 6px; background: linear-gradient(transparent, rgba(255, 255, 255, 0.5), transparent); filter: blur(3px); animation: steam 2.6s ease-in-out infinite; opacity: 0; }
.steam i:nth-child(2) { animation-delay: 0.8s; }
.steam i:nth-child(3) { animation-delay: 1.6s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(20px) scaleY(0.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px) scaleY(1.3) skewX(10deg); } }
.front h3 { font-size: 20px; margin-top: 6px; transform: translateZ(30px); }
.desc { color: var(--muted); font-size: 13px; line-height: 1.9; flex: 1; transform: translateZ(20px); }
.meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin: 6px 0 10px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; transform: translateZ(35px); }
.price { font-weight: 900; font-size: 18px; color: var(--gold-2); }
.price small { font-size: 11px; font-weight: 400; color: var(--muted); }
.add-btn {
  padding: 9px 16px; border-radius: 12px; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, var(--turq), #12867f); color: #03201e; box-shadow: 0 5px 0 #0b5b56; transition: transform 0.12s, box-shadow 0.12s;
}
.add-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #0b5b56; }
.qty { display: flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, 0.3); border-radius: 12px; padding: 4px; border: 1px solid var(--glass-b); }
.qty button { width: 30px; height: 30px; border-radius: 9px; background: var(--glass-b); font-size: 18px; line-height: 1; }
.qty button:hover { background: var(--turq); color: #03201e; }
.qty span { min-width: 26px; text-align: center; font-weight: 700; }
.flip-btn {
  position: absolute; top: 16px; left: 16px; width: 32px; height: 32px; border-radius: 50%; font-weight: 900; font-size: 14px;
  background: var(--glass-b); border: 1px solid var(--glass-b); transform: translateZ(40px); transition: 0.2s;
}
.flip-btn:hover { background: var(--gold); color: #1d1206; }
.back h3 { font-size: 20px; color: var(--gold-2); }
.story { font-size: 13px; color: var(--muted); margin: 6px 0 14px; font-style: italic; }
.back h4 { font-size: 14px; margin-bottom: 8px; }
.ingredients { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ingredients li { font-size: 12px; padding: 3px 10px; border-radius: 20px; background: rgba(31, 181, 173, 0.14); border: 1px solid rgba(31, 181, 173, 0.35); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: auto; }
.facts div { text-align: center; padding: 8px 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 12px; }
.facts b { display: block; font-size: 15px; color: var(--gold-2); }
.back .card-foot { margin-top: 14px; }
.back .flip-btn { width: auto; padding: 0 12px; border-radius: 16px; font-size: 12px; font-weight: 700; }

/* ---------- How ---------- */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.how-step {
  padding: 28px 20px; border-radius: var(--radius); text-align: center; position: relative;
  background: var(--glass); border: 1px solid var(--glass-b);
}
.how-step span { font-size: 42px; display: block; }
.how-step h4 { font-size: 18px; margin: 8px 0 4px; }
.how-step p { color: var(--muted); font-size: 14px; }
.how-step::before {
  counter-increment: step; content: counter(step, persian); position: absolute; top: -14px; right: 20px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900;
  background: var(--saffron); color: #1d1206;
}

.footer {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 40px 6vw;
  border-top: 1px solid var(--glass-b); color: var(--muted); font-size: 14px; max-width: 1400px; margin: 0 auto;
}
.footer strong { color: var(--cream); font-size: 18px; }

/* ---------- Floating track ---------- */
.track-fab {
  position: fixed; bottom: 22px; left: 22px; z-index: 40; display: flex; gap: 8px; align-items: center;
  padding: 12px 18px; border-radius: 30px; font-weight: 700;
  background: linear-gradient(135deg, var(--turq), var(--tile)); box-shadow: 0 14px 30px -10px rgba(31, 181, 173, 0.7);
  animation: float 3s ease-in-out infinite;
}

/* ---------- Drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(3, 8, 14, 0.6); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: 0.4s;
}
.overlay.show { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 70; width: min(440px, 100%);
  display: flex; flex-direction: column; background: linear-gradient(180deg, #102a44, #0a1622);
  border-right: 1px solid var(--glass-b); box-shadow: 30px 0 60px rgba(0, 0, 0, 0.5);
  transform-origin: left center; transform: perspective(1400px) rotateY(80deg); opacity: 0; visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s, visibility 0.6s;
}
.drawer.open { transform: perspective(1400px) rotateY(0); opacity: 1; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 6px; }
.drawer-head h3 { font-size: 22px; }

.sofreh-scene { perspective: 700px; height: 210px; position: relative; flex-shrink: 0; }
.sofreh {
  position: absolute; left: 7%; right: 7%; top: 10px; height: 200px; border-radius: 12px;
  transform: rotateX(58deg); transform-style: preserve-3d;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.12) 0 6px, transparent 6px 14px),
    radial-gradient(circle at center, #c0392b, #7b1624);
  box-shadow: 0 30px 40px rgba(0, 0, 0, 0.5);
}
.sofreh-border {
  position: absolute; inset: 8px; border-radius: 8px; border: 3px double var(--gold);
  background: radial-gradient(circle, transparent 55%, rgba(217, 173, 91, 0.12));
}
.sofreh-items {
  position: absolute; inset: 20px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center;
  gap: 4px 10px; transform-style: preserve-3d;
}
.sofreh-item {
  font-size: 44px; line-height: 1; transform-origin: bottom center; position: relative;
  transform: rotateX(-58deg); filter: drop-shadow(0 8px 4px rgba(0, 0, 0, 0.5));
  animation: drop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.sofreh-item b {
  position: absolute; top: -6px; left: -8px; font-size: 10px; min-width: 18px; height: 18px; border-radius: 9px;
  display: grid; place-items: center; background: var(--saffron); color: #1d1206;
}
@keyframes drop { from { transform: rotateX(-58deg) translateY(-80px); opacity: 0; } }
.sofreh-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-2); font-size: 15px; }
.cart-list { list-style: none; flex: 1; overflow-y: auto; padding: 4px 20px; }
.cart-list li {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px dashed var(--glass-b); animation: slideIn 0.4s both;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } }
.cart-list .ci-emoji { font-size: 32px; text-align: center; }
.cart-list .ci-name { font-weight: 700; font-size: 14px; }
.cart-list .ci-price { font-size: 12px; color: var(--muted); }
.drawer-foot { padding: 16px 20px 22px; border-top: 1px solid var(--glass-b); background: rgba(0, 0, 0, 0.2); }
.row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; }
.drawer-foot .row strong { font-size: 20px; color: var(--gold-2); }
.free-ship { font-size: 12px; color: var(--turq); margin-bottom: 12px; }
.free-ship .bar { height: 6px; border-radius: 6px; background: var(--glass-b); margin-top: 6px; overflow: hidden; }
.free-ship .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--turq), var(--saffron)); transition: width 0.5s; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px;
  background: rgba(3, 8, 14, 0.7); backdrop-filter: blur(6px); perspective: 1400px;
  opacity: 0; visibility: hidden; transition: 0.4s;
}
.modal.show { opacity: 1; visibility: visible; }
.modal-box {
  position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 30px; border-radius: 26px; background: linear-gradient(165deg, #133150, #0b1a2a);
  border: 1px solid var(--glass-b); box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
  transform: rotateX(-18deg) translateY(40px) scale(0.92); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal.show .modal-box { transform: none; }
.modal-close { position: absolute; top: 18px; left: 18px; z-index: 2; }
.stepper { list-style: none; display: flex; gap: 6px; margin: 0 0 26px 50px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); position: relative; padding-bottom: 10px; }
.stepper li::after { content: ""; position: absolute; bottom: 0; right: 0; left: 0; height: 4px; border-radius: 4px; background: var(--glass-b); }
.stepper li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-b); font-weight: 700; flex-shrink: 0; }
.stepper li.active, .stepper li.done { color: var(--cream); }
.stepper li.active span, .stepper li.done span { background: var(--saffron); color: #1d1206; }
.stepper li.active::after, .stepper li.done::after { background: linear-gradient(90deg, var(--saffron), var(--gold-2)); }
.step { display: none; }
.step.active { display: block; animation: stepIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.step.active.back-dir { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: rotateY(-35deg) translateX(-60px); } }
@keyframes stepInBack { from { opacity: 0; transform: rotateY(35deg) translateX(60px); } }
.step h3 { font-size: 22px; margin-bottom: 18px; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; perspective: 800px; }
.type-card {
  padding: 22px 12px; border-radius: 18px; text-align: center; background: var(--glass); border: 2px solid var(--glass-b);
  transition: transform 0.35s, border-color 0.3s, background 0.3s; transform-style: preserve-3d;
}
.type-card:hover { transform: rotateX(10deg) translateY(-4px); }
.type-card.active { border-color: var(--saffron); background: rgba(244, 163, 0, 0.12); transform: translateZ(30px); }
.tc-icon { display: block; font-size: 46px; transform: translateZ(30px); }
.type-card strong { display: block; margin-top: 6px; }
.type-card small { color: var(--muted); }
.field { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select, .coupon input {
  width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 15px; color: var(--cream);
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--glass-b); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field select option { background: var(--night-2); }
.field input:focus, .field textarea:focus, .field select:focus, .coupon input:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(244, 163, 0, 0.2); }
.field.invalid input, .field.invalid textarea { border-color: #ef4444; animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.field-row { display: flex; gap: 12px; }
.error { color: #fca5a5; font-size: 13px; min-height: 22px; margin-top: 10px; }
.time-mode { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.pill { padding: 10px 18px; border-radius: 30px; background: var(--glass); border: 1px solid var(--glass-b); font-size: 14px; transition: 0.2s; }
.pill.active { background: var(--saffron); color: #1d1206; border-color: var(--saffron); font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.slot { padding: 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-b); font-weight: 700; transition: 0.25s; }
.slot:hover { transform: translateY(-3px); }
.slot.active { background: var(--turq); color: #03201e; border-color: var(--turq); }
.eta-note { color: var(--turq); margin-top: 14px; font-size: 14px; }
.pay-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cc { perspective: 1000px; height: 190px; margin-bottom: 4px; }
.cc-inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cc.flipped .cc-inner { transform: rotateY(180deg); }
.cc-face {
  position: absolute; inset: 0; border-radius: 18px; padding: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.25), transparent 50%),
    linear-gradient(135deg, var(--tile), var(--turq) 60%, var(--gold));
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7); display: flex; flex-direction: column; justify-content: space-between;
}
.cc-top { display: flex; justify-content: space-between; align-items: center; }
.chip { width: 44px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.cc-bank { font-size: 13px; opacity: 0.9; }
.cc-num { font-size: 21px; letter-spacing: 2px; font-family: monospace; text-align: center; }
.cc-bottom { display: flex; justify-content: space-between; }
.cc-bottom small { display: block; font-size: 10px; opacity: 0.7; }
.cc-back { transform: rotateY(180deg); padding: 20px 0; justify-content: flex-start; gap: 20px; }
.stripe { height: 42px; background: #111; }
.cvv-box { align-self: flex-end; margin: 0 20px; background: #fff; color: #111; padding: 4px 14px; border-radius: 6px; text-align: left; }
.cvv-box small { display: block; font-size: 9px; color: #666; }
.cash-note { color: var(--muted); padding: 20px; border-radius: 14px; background: var(--glass); }
.summary { padding: 18px; border-radius: 18px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--glass-b); align-self: start; }
.summary h4 { margin-bottom: 10px; }
.summary ul { list-style: none; max-height: 150px; overflow-y: auto; margin-bottom: 12px; }
.summary li { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--glass-b); }
.coupon { display: flex; gap: 8px; }
.coupon input { padding: 8px 12px; font-size: 13px; }
.coupon-msg { font-size: 12px; min-height: 20px; margin: 4px 0 8px; }
.coupon-msg.ok { color: #86efac; }
.coupon-msg.bad { color: #fca5a5; }
.row.discount { color: #86efac; }
.row.total { font-size: 16px; padding-top: 10px; border-top: 1px solid var(--glass-b); margin-top: 6px; }
.row.total strong { color: var(--gold-2); font-size: 20px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }

/* Processing */
#viewProcessing { display: grid; place-items: center; min-height: 360px; gap: 10px; }
.samovar { position: relative; width: 120px; height: 170px; }
.sam-body {
  position: absolute; bottom: 0; left: 15px; width: 90px; height: 120px; border-radius: 45px 45px 16px 16px;
  background: linear-gradient(90deg, #8a5a1c, var(--gold-2) 40%, var(--gold) 60%, #7a4a12);
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.2);
}
.sam-top { position: absolute; bottom: 118px; left: 38px; width: 44px; height: 30px; border-radius: 12px 12px 4px 4px; background: linear-gradient(90deg, #8a5a1c, var(--gold-2), #7a4a12); animation: wobble 1s ease-in-out infinite; }
.sam-steam { position: absolute; top: -20px; left: 44px; display: flex; gap: 6px; }
.sam-steam i { width: 7px; height: 40px; border-radius: 6px; background: linear-gradient(transparent, rgba(255, 255, 255, 0.6), transparent); filter: blur(3px); animation: steam 1.6s infinite; }
.sam-steam i:nth-child(2) { animation-delay: 0.5s; }
.sam-steam i:nth-child(3) { animation-delay: 1s; }
@keyframes wobble { 50% { transform: rotate(-3deg) translateY(-2px); } }
.processing-text { color: var(--gold-2); font-size: 17px; }

/* Success */
.success-head { display: flex; align-items: center; gap: 18px; margin: 0 0 24px 50px; }
.success-head h3 { font-size: 22px; }
.success-head p { color: var(--muted); font-size: 14px; }
.success-head strong { color: var(--gold-2); letter-spacing: 1px; }
.check-3d {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-size: 34px; font-weight: 900; color: #03201e; background: linear-gradient(135deg, #86efac, var(--turq));
  box-shadow: 0 8px 0 #0b5b56, 0 20px 30px -10px rgba(31, 181, 173, 0.8); animation: popSpin 0.9s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes popSpin { from { transform: scale(0) rotateY(-360deg); } }
.success-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; margin-bottom: 18px; }
.tracking { padding: 20px; border-radius: 20px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--glass-b); }
.tracking h4 small { color: var(--muted); font-weight: 400; font-size: 11px; }
.track-hero { height: 110px; display: grid; place-items: center; perspective: 500px; }
.track-hero span { font-size: 70px; display: inline-block; animation: trackSpin 2.4s ease-in-out infinite; filter: drop-shadow(0 12px 8px rgba(0, 0, 0, 0.5)); }
@keyframes trackSpin { 0%, 100% { transform: rotateY(-25deg) translateY(0); } 50% { transform: rotateY(25deg) translateY(-12px); } }
.track-label { text-align: center; font-weight: 700; color: var(--gold-2); }
.track-bar { height: 8px; border-radius: 8px; background: var(--glass-b); overflow: hidden; margin: 12px 0; }
.track-bar div { height: 100%; width: 0; background: linear-gradient(90deg, var(--turq), var(--saffron)); transition: width 1s; border-radius: 8px; }
.track-steps { list-style: none; display: flex; justify-content: space-between; gap: 4px; }
.track-steps li { flex: 1; text-align: center; font-size: 11px; color: var(--muted); opacity: 0.5; transition: 0.4s; }
.track-steps li span { display: block; font-size: 20px; }
.track-steps li.done { opacity: 1; color: var(--cream); }
.rating { text-align: center; margin-top: 16px; }
.stars { display: flex; justify-content: center; gap: 6px; margin: 6px 0 12px; direction: ltr; }
.stars button { font-size: 30px; filter: grayscale(1) opacity(0.5); transition: 0.25s; }
.stars button.on { filter: none; transform: scale(1.15) rotate(-10deg); }

.fal { perspective: 1000px; min-height: 300px; cursor: pointer; }
.fal-inner { position: relative; height: 100%; min-height: 300px; transform-style: preserve-3d; transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fal.open .fal-inner { transform: rotateY(180deg); }
.fal-face {
  position: absolute; inset: 0; border-radius: 20px; padding: 24px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px;
}
.fal-front {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 2l5 13 13 5-13 5-5 13-5-13-13-5 13-5z' fill='none' stroke='%23d9ad5b' stroke-opacity='.35'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #3b1d0e, #1f0f07);
  border: 2px solid var(--gold); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}
.fal:not(.open):hover .fal-inner { transform: rotateY(-12deg) rotateX(6deg); }
.fal-icon { font-size: 54px; animation: float 3s ease-in-out infinite; }
.fal-front h4 { font-size: 22px; color: var(--gold-2); }
.fal-front p { color: #e6d3b3; font-size: 14px; }
.fal-seal {
  margin-top: 8px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px;
  background: radial-gradient(circle at 35% 35%, #d64560, var(--pome) 60%, #6d1020); color: #ffe4e6; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}
.fal-back {
  transform: rotateY(180deg); color: #3b2410;
  background: linear-gradient(160deg, #fbf1dc, #ecd9b0); border: 2px solid var(--gold);
}
.verse { font-size: 17px; font-weight: 700; line-height: 2.2; white-space: pre-line; }
.fal-meaning { font-size: 13px; color: #6b4a22; }
.fal-back small { color: #8a6a3a; }

/* ---------- Flyer & toasts ---------- */
.flyer { position: fixed; z-index: 100; font-size: 54px; pointer-events: none; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5)); }
.spark { position: fixed; z-index: 100; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); pointer-events: none; }
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 120; display: flex; flex-direction: column; gap: 10px; perspective: 600px; }
.toast {
  padding: 12px 18px; border-radius: 14px; font-size: 14px; max-width: 320px;
  background: rgba(16, 36, 58, 0.95); border: 1px solid var(--glass-b); border-right: 4px solid var(--saffron);
  box-shadow: var(--shadow); animation: toastIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast.out { animation: toastOut 0.4s forwards; }
@keyframes toastIn { from { opacity: 0; transform: rotateX(-90deg) translateY(20px); } }
@keyframes toastOut { to { opacity: 0; transform: rotateX(90deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .moods, .how { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; }
  .hero p { margin: 0 auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .stage { height: 420px; scale: 0.8; margin: -40px 0; }
  .pay-layout, .success-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cart-label, .brand-text small { display: none; }
  .moods { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mood-inner { padding: 20px 10px; }
  .mood-inner .m-icon { font-size: 42px; }
  .how { grid-template-columns: 1fr; }
  .stage { scale: 0.62; margin: -90px -60px; }
  .cat-scene { width: 78vw; }
  .cat-arrow { width: 36px; height: 36px; font-size: 20px; }
  .type-grid { grid-template-columns: 1fr; }
  .type-card { display: flex; align-items: center; gap: 14px; text-align: right; padding: 14px; }
  .type-card .tc-icon { font-size: 36px; }
  .type-card strong { margin: 0; }
  .modal-box { padding: 22px 16px; }
  .stepper { margin-left: 44px; }
  .stepper li { font-size: 0; gap: 0; }
  .stepper li span { font-size: 13px; }
  .success-head { margin-left: 44px; }
  .track-steps li { font-size: 0; }
  .toasts { right: 12px; left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
