/* =========================================================
   Bunga MAKA — "Buku Aturcara Majlis"
   Kertas krim, hijau songket tua, emas foil, bingkai gerbang mihrab.
   ========================================================= */
:root {
  color-scheme: light;
  --paper: #edf0e5;
  --paper-2: #e0e6d6;
  --card: #fafbf5;
  --ink: #1c2620;
  --muted: #5b6157;          /* 5.9:1 di atas kertas */
  --green: #1b3328;
  --green-2: #27463a;
  --green-3: #3c5f4f;
  --gold: #b8925a;
  --gold-2: #d8b878;
  --gold-ink: #7c5a24;       /* emas untuk teks di atas kertas, 5.3:1 */
  --rose: #b24f5f;
  --rose-soft: #f3dcd9;
  --line: rgba(28, 38, 32, .14);
  --line-gold: rgba(184, 146, 90, .55);
  --ok: #2f6b45;
  --warn: #8a5a12;
  --bad: #a3313f;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(27, 51, 40, .28), 0 2px 6px -2px rgba(27, 51, 40, .12);
  --shadow-lg: 0 30px 60px -24px rgba(16, 32, 24, .45);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--gold-2); color: var(--green); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--green-3) var(--paper-2); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--green-3); border-radius: 10px; border: 2px solid var(--paper-2); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
i[data-icon], i[data-star] { display: inline-flex; font-style: normal; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: .9rem; }
.tiny { font-size: .78rem; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums lining-nums; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin: 0; text-wrap: balance; }

/* Hiasan: garis emas + bintang khatam */
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); margin: 14px auto; max-width: 240px; }
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 40%, var(--gold) 60%, transparent); }
.ornament-light { color: var(--gold-2); }
.ornament-light span { background: linear-gradient(90deg, transparent, var(--gold-2) 40%, var(--gold-2) 60%, transparent); }

/* Butang */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 600; letter-spacing: .01em; text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s;
}
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: #fbf6ea; box-shadow: 0 8px 20px -10px rgba(27, 51, 40, .7); }
.btn-primary:hover { background: var(--green-2); box-shadow: 0 14px 28px -12px rgba(27, 51, 40, .75); }
.btn-primary:disabled { background: #8d9a92; box-shadow: none; cursor: not-allowed; }
.btn-gold { background: linear-gradient(180deg, #e2c58b, #c79f5f); color: #24170a; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover { box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .6); transform: translateY(-1px); }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; color: var(--gold-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; padding: 12px 4px; display: block; margin: 6px auto 0; }
.link-btn:hover { color: var(--green); }

/* Medan borang */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .82rem; font-weight: 600; color: var(--green-2); margin-bottom: 6px; letter-spacing: .02em; }
.field input {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); caret-color: var(--gold-ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #7d8079; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 146, 90, .2); }
.field input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(163, 49, 63, .12); }
.form-error { color: var(--bad); font-size: .88rem; font-weight: 500; min-height: 0; margin: 0 0 12px; }
.form-error:empty { display: none; }

/* Memuatkan */
.loading { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: var(--green); color: var(--gold-2); z-index: 100; transition: opacity .5s; }
.loading p { margin: 0; font-family: var(--serif); font-size: 1.2rem; font-style: italic; }
.loading-star { animation: spin 6s linear infinite; }
.loading.out { opacity: 0; pointer-events: none; }

/* Kelopak gugur */
canvas.petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ================= LOG MASUK ================= */
.login {
  position: relative; min-height: 100svh; display: grid; place-items: center; padding: 32px var(--gutter);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(216, 184, 120, .25), transparent 60%),
    linear-gradient(180deg, var(--green) 0%, #14261e 100%);
  overflow: hidden;
}
.login-card {
  position: relative; width: min(440px, 100%); background: var(--paper);
  border-radius: 200px 200px var(--radius) var(--radius); padding: 30px 26px 22px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-gold);
  outline: 1px solid var(--line-gold); outline-offset: -9px;
}
.login-art { width: 132px; height: 170px; margin: -8px auto 4px; }
.login-art svg { width: 100%; height: 100%; }
.login h1 { text-align: center; font-size: clamp(2rem, 7vw, 2.6rem); color: var(--green); }
.login .ornament { margin: 8px auto 6px; }
.login .muted { margin: 0 0 22px; }

/* ================= TOPBAR ================= */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top));
  color: #f6eedc; transition: background-color .4s, color .4s, box-shadow .4s, backdrop-filter .4s;
}
.topbar.solid { background: rgba(237, 240, 229, .9); color: var(--green); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.brand i { color: var(--gold-2); }
.topbar.solid .brand i { color: var(--gold); }
.topnav { display: flex; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); color: inherit; font-size: .85rem; font-weight: 600;
  transition: background-color .3s, border-color .3s;
}
.chip:hover { background: rgba(255, 255, 255, .22); }
.topbar.solid .chip { background: var(--card); border-color: var(--line); }
.topbar.solid .chip:hover { border-color: var(--gold); }
.chip-user span { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .chip:first-child span { display: none; } .chip { padding: 0 11px; } }

/* ================= HERO ================= */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: var(--green); color: #fbf6ea; padding: 96px var(--gutter) 64px;
}
.hero-bg { position: absolute; inset: -6% -2% 0; z-index: -3; background-size: cover; background-position: center 70%; will-change: transform; }
.hero-bg.fallback {
  background:
    radial-gradient(900px 500px at 50% 18%, rgba(240, 205, 140, .55), transparent 65%),
    linear-gradient(180deg, #355c4b 0%, #24443a 45%, #1b3328 100%);
}
.hero-bg.fallback svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 48%; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(180deg, rgba(15, 30, 23, .55) 0%, rgba(15, 30, 23, .25) 35%, rgba(15, 30, 23, .55) 75%, rgba(15, 30, 23, .92) 100%); }
.hero canvas.petals { z-index: -1; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 560px; will-change: transform, opacity; }
.hero-title { font-size: clamp(2.9rem, 11vw, 5.6rem); font-weight: 600; letter-spacing: -.02em; color: #fff9ee; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-event { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 3.6vw, 1.7rem); color: var(--gold-2); line-height: 1.3; }
.hero-campus { margin: 2px 0 18px; font-size: .95rem; font-weight: 600; letter-spacing: .02em; color: #f1e7d2; }
.hero-body { margin: 0 auto 26px; max-width: 46ch; color: #eee5d2; font-size: 1.02rem; }
.hero-foot { margin: 22px 0 0; font-size: .85rem; color: #e6dcc6; }
.hero .btn-gold .icon { animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(4px); } }

/* Dua bunga sebagai subjek, dalam bingkai gerbang mihrab */
.hero-flower {
  position: absolute; z-index: 1; margin: 0; width: clamp(130px, 20vw, 280px); aspect-ratio: 3 / 4.2;
  border-radius: 50% 50% 18px 18px / 46% 46% 18px 18px; overflow: hidden;
  background: linear-gradient(180deg, #f9f2e3, #eadbc0);
  border: 1px solid var(--gold-2); outline: 1px solid rgba(216, 184, 120, .6); outline-offset: 6px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  will-change: transform;
}
.hero-flower img { width: 100%; height: 100%; object-fit: cover; }
.hero-flower svg { width: 100%; height: 100%; padding: 12% 8% 4%; }
.hero-flower-1 { left: max(24px, calc(50% - 600px)); bottom: 12%; rotate: -6deg; }
.hero-flower-2 { right: max(24px, calc(50% - 600px)); top: 18%; rotate: 5deg; }
@media (max-width: 1000px) {
  .hero { align-items: start; padding-top: 104px; }
  .hero-flower { width: clamp(118px, 34vw, 190px); }
  .hero-flower-1 { left: -14px; top: auto; bottom: 3%; }
  .hero-flower-2 { right: -14px; top: auto; bottom: 7%; }
  .hero-content { padding-bottom: clamp(200px, 52vw, 290px); }
}

/* ================= MENU ================= */
.menu { position: relative; padding: clamp(64px, 10vw, 120px) var(--gutter) 140px;
  background:
    radial-gradient(800px 400px at 50% 0, rgba(216, 184, 120, .18), transparent 70%),
    var(--paper); }
.menu-head { text-align: center; max-width: 620px; margin: 0 auto clamp(40px, 7vw, 72px); }
.menu-head h2 { font-size: clamp(2.3rem, 7vw, 3.6rem); color: var(--green); }
.menu-head .muted { margin: 0 auto; max-width: 48ch; }
.closed-banner { max-width: 760px; margin: 0 auto 40px; padding: 18px 22px; border-radius: var(--radius); background: var(--rose-soft); color: #6d2531; text-align: center; font-weight: 600; }

.spreads { display: grid; gap: clamp(56px, 9vw, 110px); max-width: 1080px; margin: 0 auto; }
.spread { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 820px) {
  .spread { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 80px); }
  .spread:nth-child(even) .arch { order: 2; }
}
.arch {
  position: relative; margin: 0 auto; width: min(100%, 420px); aspect-ratio: 4 / 5;
  border-radius: 50% 50% 20px 20px / 44% 44% 20px 20px; overflow: hidden;
  background: linear-gradient(180deg, #fbf5e9 0%, #efe2c8 100%);
  border: 1px solid var(--line-gold); outline: 1px solid var(--line-gold); outline-offset: 8px;
  box-shadow: var(--shadow);
}
.arch > * { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s var(--ease), transform .9s var(--ease); }
.arch img { object-fit: cover; }
.arch svg { padding: 14% 10% 4%; }
.arch .leaving { opacity: 0; transform: scale(1.04); }
.arch .entering { opacity: 0; transform: scale(.97); }
.arch-tag { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; inset: auto auto 16px 50%; width: auto; height: auto;
  background: rgba(27, 51, 40, .9); color: #f8efd9; font-size: .78rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }

.spread-body h3 { font-size: clamp(2.6rem, 7vw, 3.8rem); color: var(--green); }
.meaning { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.35; color: var(--gold-ink); margin: 6px 0 22px; max-width: 34ch; }

/* Senarai saiz gaya aturcara: saiz ..... harga */
.tiers { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.tier {
  width: 100%; display: grid; grid-template-columns: 22px auto 1fr auto; align-items: center; gap: 12px;
  padding: 16px 6px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left;
  transition: background-color .3s;
}
.tier:hover:not(:disabled) { background: rgba(184, 146, 90, .08); }
.tier-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--green-3); display: grid; place-items: center; }
.tier[aria-checked="true"] .tier-dot { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px var(--paper); }
.tier-text { display: grid; line-height: 1.25; }
.tier-size { font-weight: 700; color: var(--green); }
.tier-name { font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--muted); }
.tier-leader { align-self: end; margin-bottom: 7px; border-bottom: 2px dotted rgba(91, 97, 87, .45); min-width: 20px; }
.tier-price { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--green); font-variant-numeric: lining-nums; }
.tier-stock { grid-column: 2 / -1; font-size: .78rem; font-weight: 600; color: var(--warn); margin-top: -6px; }
.tier:disabled { cursor: not-allowed; }
.tier:disabled .tier-size, .tier:disabled .tier-price { color: #8b8f86; text-decoration: line-through; text-decoration-thickness: 1px; }
.tier:disabled .tier-stock { color: var(--bad); }
.tier-desc { color: var(--muted); margin: 0 0 20px; min-height: 1.6em; }
.spread .btn-primary { width: 100%; max-width: 420px; }
.spread .btn-primary b { font-weight: 700; opacity: .85; }

.site-foot { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 100px; color: var(--muted); font-size: .85rem; }
.site-foot i { color: var(--gold); }

/* ================= BAR TROLI ================= */
.cartbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 12px var(--gutter); padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; justify-content: center; pointer-events: none; animation: rise .6s var(--ease); }
@keyframes rise { from { transform: translateY(110%); } }
.cartbar-btn { pointer-events: auto; width: min(560px, 100%); display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 10px 8px 12px;
  border-radius: 999px; border: 1px solid rgba(216, 184, 120, .5); background: var(--green); color: #fbf3e2; box-shadow: var(--shadow-lg); }
.cartbar-icon { position: relative; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.cartbar-icon b { position: absolute; top: -2px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold-2); color: #24170a; font-size: .75rem; display: grid; place-items: center; }
.cartbar-label { flex: 1; text-align: left; font-weight: 600; }
.cartbar-total { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; padding: 6px 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.cartbar.bump .cartbar-icon { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }

/* ================= LEMBARAN ================= */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(12, 22, 17, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; margin: 0 auto; width: min(560px, 100%);
  max-height: 92svh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: 26px 26px 0 0; padding: 28px 22px 22px; padding-bottom: max(22px, env(safe-area-inset-bottom));
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .4); animation: sheetUp .5s var(--ease);
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) { .sheet { bottom: 50%; transform: translateY(50%); border-radius: 26px; max-height: 88vh; } @keyframes sheetUp { from { opacity: 0; } } }
.sheet::before { content: ''; position: absolute; top: 10px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: var(--line); }
.sheet h3 { font-size: 1.9rem; color: var(--green); margin-bottom: 6px; padding-right: 40px; }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--green); }
.sheet-close:hover { border-color: var(--gold); }
.sheet form { margin-top: 18px; }

.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 4px 48px 18px 0; counter-reset: s; }
.steps li { counter-increment: s; flex: 1; font-size: .75rem; font-weight: 600; color: #8b8f86; padding-top: 10px; border-top: 3px solid var(--line); }
.steps li.on { color: var(--green); border-color: var(--green); }
.steps li.done { color: var(--gold-ink); border-color: var(--gold); }

.add-summary { display: flex; gap: 14px; align-items: center; padding: 12px; margin: 6px 0 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.add-summary .thumb { width: 56px; height: 70px; border-radius: 50% 50% 8px 8px / 40% 40% 8px 8px; overflow: hidden; background: #f3e8d2; flex: none; }
.add-summary .thumb img, .add-summary .thumb svg { width: 100%; height: 100%; object-fit: cover; }
.add-summary strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--green); line-height: 1.1; }
.add-summary span { font-size: .9rem; color: var(--muted); }

.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item .thumb { width: 48px; height: 60px; border-radius: 50% 50% 8px 8px / 40% 40% 8px 8px; overflow: hidden; background: #f3e8d2; }
.cart-item .thumb img, .cart-item .thumb svg { width: 100%; height: 100%; object-fit: cover; }
.cart-item strong { display: block; color: var(--green); }
.cart-item .to { font-size: .88rem; color: var(--muted); }
.cart-item .right { text-align: right; display: grid; justify-items: end; gap: 2px; }
.cart-item .price { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.icon-btn { background: none; border: 0; color: var(--muted); padding: 6px; border-radius: 8px; display: inline-flex; }
.icon-btn:hover { color: var(--bad); background: rgba(163, 49, 63, .08); }
.cart-empty { text-align: center; padding: 30px 0; color: var(--muted); }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; }
.cart-sum strong { font-family: var(--serif); font-size: 2rem; color: var(--green); }

.pay-amount { text-align: center; background: var(--green); color: #f8efdb; border-radius: var(--radius); padding: 18px; margin: 14px 0; }
.pay-amount span { display: block; font-size: .85rem; color: #d9cfb9; }
.pay-amount strong { display: block; font-family: var(--serif); font-size: 2.8rem; line-height: 1.1; color: #fff8ea; }
.pay-amount small { color: var(--gold-2); font-weight: 600; }
.qr-box { width: min(260px, 80%); margin: 0 auto 16px; padding: 14px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line-gold); box-shadow: var(--shadow); }
.qr-box img { width: 100%; height: auto; }
.qr-box .qr-missing { aspect-ratio: 1; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .85rem; padding: 16px; background: repeating-linear-gradient(45deg, #f6f1e6 0 10px, #fff 10px 20px); border-radius: 10px; }
.pay-steps { margin: 0 0 6px; padding-left: 22px; color: var(--ink); }
.pay-steps li { margin-bottom: 6px; padding-left: 4px; }
.pay-steps li::marker { color: var(--gold-ink); font-weight: 700; }

.drop { position: relative; display: block; border: 1.5px dashed var(--gold); border-radius: var(--radius); background: var(--card); padding: 22px 16px; text-align: center; cursor: pointer; transition: background-color .3s, border-color .3s; margin-bottom: 14px; }
.drop:hover, .drop.drag { background: #fbf3e2; border-color: var(--green-3); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:focus-within { box-shadow: 0 0 0 4px rgba(184, 146, 90, .25); }
.drop-empty { display: grid; justify-items: center; gap: 4px; color: var(--green); }
.drop-empty .icon { width: 30px; height: 30px; color: var(--gold-ink); }
.drop-empty small { color: var(--muted); }
.drop-filled { display: flex; gap: 14px; align-items: center; text-align: left; }
.drop-filled img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #eee; }
.drop-meta { display: grid; min-width: 0; }
.drop-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--green); }
.drop-meta small { color: var(--muted); }

.done-mark { width: 76px; height: 76px; margin: 6px auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--gold-2); box-shadow: 0 0 0 8px rgba(184, 146, 90, .18); animation: pop .7s var(--ease); }
.done-mark .icon { width: 38px; height: 38px; stroke-width: 2.2; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.sheet-done h3 { text-align: center; padding: 0; }
.code-card { margin: 18px 0; padding: 18px; text-align: center; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-gold); outline: 1px solid var(--line-gold); outline-offset: -6px; }
.code-card small { display: block; color: var(--muted); font-size: .8rem; }
.code-card strong { display: block; font-family: var(--serif); font-size: 2.6rem; letter-spacing: .04em; color: var(--green); margin: 2px 0 8px; user-select: all; }
.pickup { background: #f1e8d6; border-radius: 12px; padding: 14px 16px; font-size: .92rem; margin: 0 0 18px; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pending { background: #f6ead0; color: var(--warn); }
.status-confirmed { background: #dcebdf; color: var(--ok); }
.status-rejected { background: #f6dcdf; color: var(--bad); }
.status-collected { background: #e3e6f0; color: #3a4a7a; }

.my-orders { margin-top: 14px; display: grid; gap: 12px; }
.order-card { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 14px 16px; }
.order-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.order-card header strong { font-family: var(--serif); font-size: 1.35rem; color: var(--green); }
.order-card ul { margin: 0; padding-left: 18px; font-size: .9rem; color: var(--muted); }
.order-card .note { margin: 8px 0 0; font-size: .88rem; color: var(--bad); }
.order-card .total { margin: 8px 0 0; font-weight: 700; }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 96px; translate: -50% 20px; opacity: 0; pointer-events: none; background: var(--ink); color: #fbf3e2; padding: 12px 18px; border-radius: 12px; font-size: .9rem; font-weight: 500; max-width: calc(100% - 32px); transition: opacity .3s, translate .5s var(--ease); box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; translate: -50% 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
