/* MegaDrama v3 — follows the category's standard app pattern: true black, pink-red action, orchid offer tags, gold member pill.
   Poppins for titles, Inter for everything else. */
:root {
  --pink: #FF1F5B;
  --pink-press: #E0164C;
  --orchid: #F2C66D;      /* accent for discount tags and the summary (was lilac) */
  --on-accent: #3A2403;
  --gold-a: #F6DDA6;
  --gold-b: #E3B76C;
  --on-gold: #4A2C05;
  --f-title: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { background: #000; color: #fff; font-family: var(--f-body); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; padding: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.screen { position: relative; width: 100%; max-width: 430px; margin: 0 auto; min-height: 100dvh; background: #000; overflow: hidden; }

/* ---------- main tab bar: Home, My List, Profile ---------- */
.tabbar { position: fixed; z-index: 7; left: 50%; bottom: 0; width: 100%; max-width: 430px; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); background: #000; border-top: 1px solid #1A1A1A; }
.tabbar a { display: grid; justify-items: center; align-content: start; gap: 3px; min-height: 52px; padding-top: 7px; font-size: 11px; line-height: 14px; font-weight: 500; color: #8C8C8C; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: #fff; font-weight: 600; }
.has-tabbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

/* ---------- one button standard for the whole product ---------- */
:root { --r-btn: 8px; --h-btn: 50px; }
.btn-main { display: grid; place-items: center; width: 100%; height: var(--h-btn); border-radius: var(--r-btn); background: var(--pink); color: #fff; font: 600 16px/1 var(--f-body); }
.btn-main:active { background: var(--pink-press); }
.btn-ghost { display: grid; place-items: center; width: 100%; height: var(--h-btn); border-radius: var(--r-btn); background: #1A1A1A; color: #fff; font: 600 16px/1 var(--f-body); }
.btn-ghost:active { background: #242424; }

/* ---------- inner pages: back arrow + title ---------- */
.page-top { position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 4px 0; background: #000; }
.page-top a { display: grid; place-items: center; width: 44px; height: 44px; }
.page-top a svg { width: 24px; height: 24px; }
.page-top h1 { text-align: center; font: 600 17px/1 var(--f-body); }
.page { padding: 8px 16px calc(32px + env(safe-area-inset-bottom)); }

/* ---------- bottom sheet ---------- */
.sheet-bg { position: fixed; z-index: 30; inset: 0; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s linear 200ms; }
.sheet-bg.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.sheet { position: fixed; z-index: 31; left: 50%; bottom: 0; width: 100%; max-width: 430px; max-height: 76%; overflow-y: auto; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: #161616; transform: translate(-50%, 102%); visibility: hidden; transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 260ms; }
.sheet.is-open { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }
.sheet__grab { width: 36px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: #3A3A3A; }
.sheet h2 { font: 600 17px/1.3 var(--f-body); margin-bottom: 8px; }
.sheet__opt { display: grid; grid-template-columns: 1fr auto; align-items: center; width: 100%; min-height: 52px; text-align: left; font-size: 16px; border-top: 1px solid #242424; }
.sheet__opt:first-of-type { border-top: 0; }
.sheet__opt[aria-checked="true"] { font-weight: 600; }
.sheet__opt svg { width: 20px; height: 20px; color: var(--pink); visibility: hidden; }
.sheet__opt[aria-checked="true"] svg { visibility: visible; }
.sheet__opt[disabled] { color: #6E6E6E; }
.sheet__opt em { font-style: normal; font-size: 13px; color: #6E6E6E; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-bg { transition: none; } }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 40; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px); padding: 11px 16px; border-radius: var(--r-btn); background: #fff; color: #000; font: 600 14px/1.3 var(--f-body); width: max-content; max-width: calc(100% - 32px); text-align: center; opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
