/* ==========================================================================
   vanilla — coffee · culture · moment
   White, minimal, editorial. Black thin wordmark, product photos on white.
   Covers: public site, auth, customer club (PWA) and the digital menu app.
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-2: #f7f6f3;
  --bg-3: #efede8;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #8a8a85;
  --line: #e9e7e2;
  --accent: #c9a24d;          /* honey / caramel accent, used sparingly */
  --success: #2f8f5b;
  --danger: #c7423a;
  --warning: #b8861b;
  --info: #3b73b9;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
  --shadow-sm: 0 6px 20px rgba(17, 17, 17, 0.06);
  --font: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
  --container: 1140px;
}
[data-theme="dark"] {
  --bg: #111111; --bg-2: #181818; --bg-3: #222222; --ink: #f4f2ee; --ink-2: #d8d5cf; --muted: #8f8d88; --line: #2a2a2a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5); --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.4);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.85; font-size: 16px; overflow-x: hidden; -webkit-font-smoothing: antialiased; max-width: 100vw; position: relative; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.35; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.mt { margin-top: 3rem; }
.ltr, .ltr-inline { direction: ltr; unicode-bidi: isolate; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; top: -50px; right: 16px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { top: 12px; }
.eyebrow { display: inline-block; color: var(--muted); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 12px; direction: ltr; unicode-bidi: isolate; }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.quote { font-style: italic; color: var(--muted); direction: ltr; text-align: right; unicode-bidi: isolate; font-weight: 300; font-size: 1.05rem; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Brand wordmark: thin "vanilla", steam rising from the v ---------- */
.wordmark { display: inline-block; direction: ltr; unicode-bidi: isolate; font-weight: 300; letter-spacing: -0.03em; line-height: 1; color: var(--ink); position: relative; padding-top: 0.42em; font-family: var(--font); white-space: nowrap; }
.wordmark .steam { position: absolute; left: 0.1em; top: -0.12em; width: 0.3em; height: 0.56em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; animation: steam 4s ease-in-out infinite; transform-origin: bottom; }
@keyframes steam { 0%, 100% { opacity: 0.85; transform: translateY(0) } 50% { opacity: 1; transform: translateY(-0.03em) } }
.lockup { display: inline-flex; align-items: center; gap: 0.9em; direction: rtl; }
.lockup-sep { width: 1px; height: 2.6em; background: var(--line); flex-shrink: 0; }
.lockup-fa { display: grid; line-height: 1.25; text-align: right; }
.lockup-fa b { font-weight: 800; font-size: 1.05em; letter-spacing: -0.01em; }
.lockup-fa span { font-weight: 300; font-size: 0.95em; color: var(--ink-2); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ic { width: 1.1em; height: 1.1em; vertical-align: -0.2em; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-family: inherit; font-size: 0.95rem; border: 1.5px solid transparent; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s; white-space: nowrap; line-height: 1.4; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(17, 17, 17, 0.2); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-gold { background: var(--ink); color: #fff; }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--muted); font-family: inherit; cursor: pointer; font-size: 0.9rem; padding: 0; }
.link-btn:hover { color: var(--ink); }

/* ---------- Nav ---------- */
.nav { position: fixed; left: 0; right: 0; top: 0; width: 100%; z-index: 50; padding: 16px 0; transition: background 0.3s, padding 0.3s, box-shadow 0.3s; background: rgba(255, 255, 255, 0); }
.nav.is-scrolled { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 10px 0; box-shadow: 0 1px 0 var(--line); }
.nav .lockup { font-size: 0.78rem; gap: 0.7em; } .nav .lockup-sep { height: 2.2em; } .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.btn) { font-weight: 500; font-size: 0.93rem; color: var(--ink-2); position: relative; }
.nav-links > a:not(.btn)::after { content: ''; position: absolute; inset-inline: 0; bottom: -6px; height: 1.5px; background: var(--ink); transform: scaleX(0); transition: transform 0.25s; transform-origin: right; }
.nav-links > a:not(.btn):hover::after, .nav-links > a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: 0.3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  /* no backdrop-filter here: it would turn the fixed menu's containing block into the header bar */
  .nav, .nav.is-scrolled { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 10px 0; box-shadow: 0 1px 0 var(--line); }
  /* overlay starts right below the header bar, so the logo and the close button stay visible */
  .nav-links { position: fixed; top: 64px; right: 0; bottom: 0; left: 0; width: 100%; background: #fff; flex-direction: column; justify-content: flex-start; gap: 22px; font-size: 1.2rem; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.25s, visibility 0.25s; z-index: 49; padding: 36px 24px 24px; border-top: 1px solid var(--line); overflow-y: auto; }
  .nav-links.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 128px 0 72px; background: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-text .lockup { margin-bottom: 22px; font-size: 1rem; }
.hero-text .lockup .lockup-fa b { font-size: 1.35rem; } .hero-text .lockup .lockup-fa span { font-size: 1.15rem; }
.hero-text h1 { margin: 6px 0 14px; font-weight: 800; }
.hero-text p { font-size: 1.08rem; color: var(--ink-2); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
.hero-fig { margin: 0; background: #fff; border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/5; }
.hero-fig img { width: 100%; height: 100%; object-fit: cover; }
.hero-fig.f1 { grid-column: 1; grid-row: 1; margin-bottom: 14%; animation: floatY 9s ease-in-out infinite; }
.hero-fig.f2 { grid-column: 2; grid-row: 1; animation: floatY 11s ease-in-out infinite reverse; }
.hero-fig.ph { display: grid; place-items: center; }
.hero-quote { grid-column: 1 / -1; margin: 0; justify-self: start; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 0.9rem; direction: ltr; text-align: left; font-weight: 300; line-height: 1.5; box-shadow: var(--shadow-sm); }
@keyframes floatY { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@media (max-width: 900px) {
  .hero { padding: 96px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .hero-text .lockup { justify-content: center; }
  .hero-text p { margin-inline: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero-art { gap: 12px; }
  .hero-fig.f1 { margin-bottom: 10%; }
  .hero-quote { justify-self: center; }
}/* ---------- Feature strip ---------- */
.features-strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { padding: 26px 22px; border-inline-start: 1px solid var(--line); }
.feature:first-child { border-inline-start: 0; }
.feature-icon { display: block; margin-bottom: 10px; } .feature-icon svg { width: 28px; height: 28px; stroke-width: 1.4; color: var(--ink); }
.feature h3 { font-size: 1rem; margin-bottom: 2px; }
.feature p { color: var(--muted); font-size: 0.88rem; margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } .feature:nth-child(odd) { border-inline-start: 0; } .feature:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } .feature { border-inline-start: 0; border-top: 1px solid var(--line); } .feature:first-child { border-top: 0; } }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .lead { max-width: 640px; }
.about { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.about-img { margin: 0; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 1; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .section { padding: 64px 0; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; font-weight: 300; color: var(--muted); background: var(--bg-2); }
.card-ph svg { width: 40px; height: 40px; } .card-ph.big { position: relative; aspect-ratio: 1; font-size: 6rem; border-radius: var(--radius); }
.tag { position: absolute; top: 12px; right: 12px; background: var(--ink); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tag-gold { background: var(--accent); color: #111; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-body small { color: var(--muted); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.04em; }
.card-body h3 { font-size: 1.05rem; margin: 0; }
.card-body p { color: var(--muted); font-size: 0.86rem; margin: 4px 0 0; flex: 1; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.price b { font-size: 1rem; color: var(--ink); }
.price s { color: var(--muted); font-size: 0.82rem; }
.price.big b { font-size: 1.5rem; }

/* ---------- Club section ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px 22px; }
.step b { position: absolute; top: -16px; right: 20px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: 50%; font-size: 0.95rem; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.92rem; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 36px; }
.tier { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; transition: transform 0.25s; }
.tier::before { content: ''; position: absolute; top: 18px; inset-inline-end: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.tier:hover { transform: translateY(-4px); }
.tier h3 { direction: ltr; text-align: right; unicode-bidi: isolate; letter-spacing: 0.04em; }
.tier p { color: var(--muted); font-size: 0.88rem; min-height: 2.6em; }
.tier ul { list-style: none; padding: 0; margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.tier li::before { content: '— '; color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid figure { margin: 0; border-radius: 16px; overflow: hidden; position: relative; background: #fff; border: 1px solid var(--line); aspect-ratio: 4/5; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); font-size: 0.8rem; color: #fff; }
@media (max-width: 800px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contact ---------- */
.contact { background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list > li > span { width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; } .contact-list > li > span svg { width: 20px; height: 20px; }
.contact-list b { display: block; }
.contact-list p { margin: 0; color: var(--ink-2); }
.contact-list a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; background: #fff; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--ink-2); font-weight: 600; }
input, textarea, select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; transition: border-color 0.2s, box-shadow 0.2s; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06); }
input::placeholder { color: #b5b2ac; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--ink); }
input[disabled] { background: var(--bg-2); color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; flex-direction: row; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.help { font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.otp-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.otp-msg { font-size: 0.82rem; min-height: 1.2em; }
.otp-msg.ok { color: var(--success); } .otp-msg.err { color: var(--danger); }

/* ---------- Footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 14px; text-transform: uppercase; }
.footer-grid div > a:not(.brand) { display: block; color: var(--ink-2); margin-bottom: 8px; }
.footer-grid div > a:hover { color: var(--ink); }
.footer p { color: var(--ink-2); margin: 6px 0 8px; }
.social { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.social a { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 600; }
.social svg { width: 18px; height: 18px; }
.footer-bottom .credit a { color: var(--ink); font-weight: 600; } .footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease var(--d, 0ms), transform 0.7s ease var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-fig { animation: none !important; } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 1000; display: grid; gap: 10px; width: min(480px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); animation: toastIn 0.35s ease; font-size: 0.92rem; }
.toast.is-hiding { opacity: 0; transform: translateY(-10px); transition: 0.4s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) } }
.toast-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; font-size: 0.85rem; }
.toast-success .toast-icon { background: var(--success); } .toast-error .toast-icon { background: var(--danger); } .toast-warning .toast-icon { background: var(--warning); } .toast-info .toast-icon { background: var(--info); }
.toast-close { margin-inline-start: auto; background: none; border: 0; color: #aaa; font-size: 1.3rem; cursor: pointer; line-height: 1; }

/* ---------- Product page / error ---------- */
.product-page { padding-top: 120px; }
.crumbs { color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; }
.product-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.product-img img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.product-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 24px; }
.product-meta span { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.82rem; color: var(--ink-2); }
@media (max-width: 800px) { .product-grid { grid-template-columns: 1fr; gap: 24px; } .product-page { padding-top: 96px; } }
.error-page { min-height: 70vh; display: grid; place-content: center; text-align: center; padding-top: 100px; gap: 10px; }
.error-page h1 { font-size: 5rem; font-weight: 300; margin: 0; line-height: 1; }

/* ==========================================================================
   Auth pages
   ========================================================================== */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; background: var(--bg-2); }
.auth-wrap { width: min(440px, 100%); display: grid; gap: 20px; justify-items: center; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; }
.auth-brand img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.auth-card { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px 28px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.auth-card h1 { font-size: 1.4rem; margin: 0; }
.auth-card .sub { color: var(--muted); margin: -8px 0 6px; font-size: 0.92rem; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.88rem; color: var(--muted); }
.auth-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.auth-foot a { color: var(--muted); font-size: 0.88rem; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ==========================================================================
   Customer club (installable PWA)
   ========================================================================== */
.club-body { background: var(--bg-2); }
.club-top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.club-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.club-top .brand img { width: 36px; height: 36px; }
.club-nav { display: flex; gap: 4px; }
.club-nav a { padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.club-nav a.active, .club-nav a:hover { background: var(--ink); color: #fff; }
.club-user { display: flex; align-items: center; gap: 12px; }
.club-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; }
.club-main { padding: 22px 0 110px; display: grid; gap: 20px; }
.club-tabbar { display: none; }
.hide-sm { }
@media (max-width: 800px) {
  .club-nav, .hide-sm { display: none; }
  .club-tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .club-tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 0.68rem; color: var(--muted); }
  .club-tabbar a.active { color: var(--ink); font-weight: 700; }
  .club-tabbar svg { width: 22px; height: 22px; }
}
.install-banner { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.install-banner img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.install-banner div { flex: 1; min-width: 0; } .install-banner b { display: block; font-size: 0.92rem; } .install-banner small { color: var(--muted); display: block; font-size: 0.78rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm); }
.panel h2, .panel h3 { font-size: 1.05rem; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel h2 a, .panel h3 a { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .panel-grid, .panel-grid-3 { grid-template-columns: 1fr; } }
.wallet-card { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 24px; padding: 26px 26px 22px; box-shadow: 0 24px 50px rgba(17, 17, 17, 0.25); min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; }
.wallet-card::after { content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%); top: -120px; left: -80px; }
.wallet-card .wc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; position: relative; z-index: 1; }
.wallet-card .wc-top .muted { color: #aaa; }
.wallet-card .wc-tier { font-size: 0.76rem; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
.wallet-card .wc-balance { position: relative; z-index: 1; }
.wallet-card .wc-balance small { color: #aaa; display: block; font-size: 0.8rem; }
.wallet-card .wc-balance b { font-size: 2rem; }
.wallet-card .wc-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; position: relative; z-index: 1; font-size: 0.85rem; color: #aaa; }
.wallet-card .wc-bottom b { color: #fff; font-family: ui-monospace, monospace, var(--font); letter-spacing: 0.15em; font-size: 1rem; }
.wallet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; align-content: start; gap: 2px; text-align: center; }
.stat small { color: var(--muted); font-size: 0.76rem; display: block; }
.stat b { font-size: 1.35rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .unit { color: var(--muted); font-size: 0.72rem; }
.stat.gold b { color: var(--accent); }
@media (max-width: 560px) { .stat-row { gap: 8px; } .stat { padding: 12px 8px; border-radius: 14px; } .stat b { font-size: 1.15rem; } .stat small { font-size: 0.7rem; } }
.progress { height: 8px; background: var(--bg-3); border-radius: 8px; overflow: hidden; margin: 8px 0 4px; }
.progress i { display: block; height: 100%; background: var(--ink); border-radius: 8px; }
.tx-list { list-style: none; padding: 0; margin: 0; display: grid; }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }
.tx-icon svg { width: 20px; height: 20px; } .tx-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; background: var(--bg-2); color: var(--muted); }
.tx.in .tx-icon { background: #e8f5ee; color: var(--success); }
.tx.out .tx-icon { background: #fbeae8; color: var(--danger); }
.tx-body { flex: 1; min-width: 0; }
.tx-body b { display: block; font-size: 0.95rem; }
.tx-body small { color: var(--muted); font-size: 0.78rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-amount { text-align: left; white-space: nowrap; font-weight: 800; }
.tx.in .tx-amount { color: var(--success); } .tx.out .tx-amount { color: var(--danger); }
.tx-amount small { display: block; font-weight: 400; color: var(--muted); font-size: 0.75rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; }
.badge-success { background: #e8f5ee; color: var(--success); } .badge-warning { background: #fff4df; color: var(--warning); } .badge-danger { background: #fbeae8; color: var(--danger); } .badge-muted { background: var(--bg-3); color: var(--muted); } .badge-info { background: #e8f0fa; color: var(--info); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.empty span { display: block; margin-bottom: 8px; } .empty span svg { width: 36px; height: 36px; color: var(--muted); }
.pagination { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 16px; font-size: 0.88rem; }
.page-link { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.page-link.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-dots, .page-info { color: var(--muted); } .page-info { margin-inline-start: auto; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.presets button { font: inherit; font-size: 0.85rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.presets button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.gw-list { display: grid; gap: 10px; }
.gw { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; transition: 0.2s; flex-direction: row; }
.gw:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06); }
.gw input { width: 18px; height: 18px; }
.gw-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.85rem; flex-shrink: 0; }
.gw b { display: block; font-size: 0.95rem; } .gw small { color: var(--muted); font-size: 0.78rem; }
.gw .gw-right { margin-inline-start: auto; font-size: 0.78rem; color: var(--muted); text-align: left; }
.result-box { text-align: center; padding: 30px 20px; }
.result-box .ri svg { width: 40px; height: 40px; } .result-box .ri { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; font-size: 2.4rem; }
.result-box.ok .ri { background: #e8f5ee; color: var(--success); }
.result-box.fail .ri { background: #fbeae8; color: var(--danger); }
.result-box.wait .ri { background: #fff4df; color: var(--warning); }
.result-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: right; max-width: 380px; margin: 20px auto; font-size: 0.9rem; }
.result-box dt { color: var(--muted); } .result-box dd { margin: 0; font-weight: 700; }
.member-card { background: var(--ink); color: #fff; border-radius: 24px; padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; box-shadow: 0 24px 50px rgba(17, 17, 17, 0.25); }
.member-card .qr { background: #fff; padding: 10px; border-radius: 16px; }
.member-card .qr img, .member-card .qr canvas { display: block; }
.member-card b.no { font-family: ui-monospace, monospace, var(--font); font-size: 1.6rem; letter-spacing: 0.2em; display: block; margin: 6px 0; }
.member-card small { color: #aaa; }
@media (max-width: 560px) { .member-card { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.card2card-info { background: var(--bg-2); border: 1px dashed var(--ink-2); border-radius: 16px; padding: 18px; display: grid; gap: 8px; }
.card2card-info b.cn { font-family: ui-monospace, monospace, var(--font); font-size: 1.4rem; letter-spacing: 0.15em; direction: ltr; display: inline-block; }
.btn-copy { font: inherit; font-size: 0.8rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); background: #fff; cursor: pointer; }
.points-hero { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.points-hero .big { font-size: 2.2rem; font-weight: 800; }
.redirect-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 20px; }
.spinner { width: 42px; height: 42px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ==========================================================================
   Digital menu app (/menu) — QR friendly, mobile first
   ========================================================================== */
.menu-body { background: var(--bg); }
.mapp { max-width: 720px; margin-inline: auto; min-height: 100vh; background: var(--bg); position: relative; }
.mapp-head { position: relative; text-align: center; padding: 14px 18px 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
.mapp-head.has-cover { padding-top: 120px; }
.mapp-head.has-cover::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 170px; background: var(--cover) center/cover no-repeat; }
.mapp-head.has-cover::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 170px; background: linear-gradient(rgba(255, 255, 255, 0.1), var(--bg)); }
.mapp-top { position: absolute; inset-inline: 10px; top: 10px; display: flex; justify-content: space-between; z-index: 2; }
.mapp-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.mapp-icon svg { width: 20px; height: 20px; }
.ic-moon { display: none; } [data-theme="dark"] .ic-sun { display: none; } [data-theme="dark"] .ic-moon { display: block; }
.mapp-logo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 12px auto 10px; border: 1px solid var(--line); background: #fff; position: relative; z-index: 1; box-shadow: var(--shadow-sm); }
.mapp-head h1 { font-size: 1.35rem; margin: 0 0 2px; position: relative; z-index: 1; }
.mapp-tag { color: var(--muted); font-size: 0.8rem; margin: 0 0 8px; direction: ltr; letter-spacing: 0.14em; text-transform: uppercase; position: relative; z-index: 1; }
.mapp-table { display: inline-block; background: var(--ink); color: var(--bg); padding: 4px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; }
.mapp-welcome { margin: 0 0 8px; color: var(--ink-2); font-size: 0.92rem; }
.mapp-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 0.78rem; font-weight: 600; color: var(--ink-2); }
.chip-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-gold { background: var(--accent); color: #111; border-color: var(--accent); }
.mapp-sticky { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 14px 0; }
.mapp-sticky.is-stuck { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); }
.mapp-search { position: relative; }
.mapp-search svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.mapp-search input { padding-inline-start: 38px; padding-inline-end: 36px; border-radius: 999px; background: var(--bg-2); border-color: transparent; }
.mapp-search input:focus { background: var(--bg); border-color: var(--ink); box-shadow: none; }
.mapp-search button { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 1.3rem; color: var(--muted); cursor: pointer; }
.mapp-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; scroll-behavior: smooth; }
.mapp-tabs::-webkit-scrollbar { display: none; }
.mapp-tabs a { flex-shrink: 0; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; color: var(--ink-2); transition: 0.2s; background: var(--bg); }
.mapp-tabs a.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mapp-main { padding: 6px 14px 20px; }
.mcat { padding-top: 22px; scroll-margin-top: 120px; }
.mcat-head { margin-bottom: 10px; }
.mcat-head h2 { font-size: 1.15rem; margin: 0; }
.mcat-head p { color: var(--muted); font-size: 0.85rem; margin: 2px 0 0; }
.mlist { display: grid; gap: 10px; }
.mitem { display: flex; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 10px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.mitem:active { transform: scale(0.99); }
.mitem:hover { box-shadow: var(--shadow-sm); }
.mitem-img { width: 96px; height: 96px; flex-shrink: 0; border-radius: 12px; overflow: hidden; position: relative; background: var(--bg-2); }
.mitem-img img { width: 100%; height: 100%; object-fit: cover; }
.mitem-img .card-ph svg { width: 30px; height: 30px; color: var(--muted); }
.mitem-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mitem-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mitem-title h3 { margin: 0; font-size: 1rem; }
.mitem-title .tag { position: static; font-size: 0.65rem; padding: 2px 8px; }
.mitem-body p { color: var(--muted); font-size: 0.82rem; margin: 2px 0 0; flex: 1; line-height: 1.6; }
.mitem-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; }
.mitem-foot .price { margin: 0; gap: 5px; } .mitem-foot .price b { font-size: 1rem; } .mitem-foot .price small { color: var(--muted); font-size: 0.72rem; }
.mapp-foot { padding: 20px 14px calc(30px + env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.mapp-foot-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-2); border-radius: 16px; padding: 14px; margin: 12px 0 16px; text-align: right; color: var(--ink); }
.mapp-foot-cta b { display: block; font-size: 0.92rem; } .mapp-foot-cta small { color: var(--muted); font-size: 0.78rem; }
.mapp-totop { position: fixed; bottom: 20px; inset-inline-start: 16px; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--bg); border: 0; font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow); z-index: 20; }
/* item bottom sheet */
.sheet { position: fixed; inset: 0; z-index: 100; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); animation: fadeIn 0.2s; }
.sheet-card { position: absolute; inset-inline: 0; bottom: 0; margin-inline: auto; max-width: 720px; background: var(--bg); color: var(--ink); border-radius: 24px 24px 0 0; max-height: 92vh; overflow: auto; animation: slideUp 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 720px) { .sheet-card { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 24px; max-width: 520px; animation: fadeIn 0.2s; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0 } }
@keyframes fadeIn { from { opacity: 0 } }
.sheet-close { position: absolute; top: 12px; inset-inline-start: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.9); color: #111; font-size: 1.4rem; cursor: pointer; z-index: 2; }
.sheet-img { aspect-ratio: 1; background: var(--bg-2); display: grid; place-items: center; }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; }
.sheet-img:empty { display: none; }
.sheet-body { padding: 18px 20px 22px; }
.sheet-body h3 { font-size: 1.25rem; margin: 0; }
.sheet-body p { color: var(--ink-2); font-size: 0.95rem; margin: 10px 0; }
.sheet-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sheet-meta span { background: var(--bg-2); border-radius: 999px; padding: 4px 12px; font-size: 0.8rem; color: var(--ink-2); }
.sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ---------- Product page: ingredients, ratings, customer gallery ---------- */
.h-sub { font-size: 0.95rem; margin: 18px 0 8px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.ingredients { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.ingredients li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 0.88rem; }
.rating { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; }
.stars { --r: 0; display: inline-block; position: relative; font-size: 1.1rem; line-height: 1; letter-spacing: 2px; color: var(--line); white-space: nowrap; direction: ltr; }
.stars::before { content: '★★★★★'; }
.stars::after { content: '★★★★★'; position: absolute; inset: 0; width: calc(var(--r) / 5 * 100%); overflow: hidden; color: var(--accent); }
.stars.small { font-size: 0.85rem; }
.reviews { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--line); }
.review-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.review-photos figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; aspect-ratio: 1; position: relative; }
.review-photos img { width: 100%; height: 100%; object-fit: cover; }
.review-photos figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 20px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); color: #fff; font-size: 0.78rem; display: flex; justify-content: space-between; align-items: center; }
.review-photos figcaption .stars { color: rgba(255, 255, 255, 0.35); }
.review-list { display: grid; gap: 10px; margin-bottom: 24px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.review p { margin: 0; color: var(--ink-2); font-size: 0.93rem; }
.review-form { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 12px; max-width: 560px; }
.rate-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; direction: ltr; position: relative; }
.rate-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.rate-input label { font-size: 1.8rem; color: var(--line); cursor: pointer; line-height: 1; transition: color 0.15s; }
.rate-input label:hover, .rate-input label:hover ~ label, .rate-input input:checked ~ label { color: var(--accent); }
.gallery-grid .gallery-item { margin: 0; border-radius: 16px; overflow: hidden; position: relative; background: #fff; border: 1px solid var(--line); aspect-ratio: 4/5; display: block; }
.gallery-grid .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery-grid .gallery-item:hover img { transform: scale(1.04); }
.gallery-grid .gallery-item figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); font-size: 0.8rem; color: #fff; }
.mitem.is-hl { box-shadow: 0 0 0 3px var(--accent); }