/*
Theme Name: Amora App
Description: The Amora PWA — Noir edition. Dark luxury matchmaking front end. Requires the Amora Core plugin.
Version: 2.1.1
Author: IBN
Requires PHP: 7.4
Text Domain: amora-app
*/

/* ============ NOIR TOKENS ============ */
:root {
  --ink-950: #12102A;
  --ink-900: #191536;
  --ink-800: #201B47;
  --ink-700: #26215C;
  --ink-600: #2E2870;
  --line:    #3C3489;
  --line-2:  #534AB7;
  --lav-400: #7F77DD;
  --lav-300: #AFA9EC;
  --lav-200: #CECBF6;
  --lav-100: #EEEDFE;

  --gold:      #E8C46A;
  --gold-2:    #FAC775;
  --gold-deep: #854F0B;
  --gold-ink:  #412402;

  --pink:      #ED93B1;
  --pink-deep: #993556;
  --pink-bg:   #4B1528;

  --teal:      #5DCAA5;
  --teal-2:    #9FE1CB;
  --teal-line: #085041;
  --teal-bg:   #04342C;

  --danger: #F09595;

  --grad-gold: linear-gradient(135deg, #F2D48B 0%, #E8C46A 45%, #D9A93F 100%);
  --grad-ink:  linear-gradient(170deg, #201B47 0%, #191536 100%);
  --grad-tile: radial-gradient(320px 220px at 20% 0%, rgba(127,119,221,.35), transparent 70%),
               radial-gradient(280px 240px at 95% 40%, rgba(232,196,106,.14), transparent 70%),
               radial-gradient(340px 280px at 50% 115%, rgba(83,74,183,.45), transparent 70%),
               linear-gradient(170deg, #2E2870, #26215C);

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --sh-1: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --sh-2: 0 2px 6px rgba(0,0,0,.35), 0 16px 44px rgba(0,0,0,.4);
  --sh-gold: 0 8px 24px rgba(232,196,106,.28), inset 0 1px 0 rgba(255,255,255,.45);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  --nav-h: calc(74px + env(safe-area-inset-bottom, 0px));
}

/* ============ BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--ink-900);
  color: var(--lav-100);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
#amora-app {
  max-width: 480px; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  background: var(--ink-900); position: relative;
}
@media (min-width: 520px) {
  body { background: #0B0A1C; }
  body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none;
    background:
      radial-gradient(640px 420px at 12% 8%, rgba(83,74,183,.22), transparent),
      radial-gradient(520px 420px at 88% 92%, rgba(232,196,106,.07), transparent);
  }
  #amora-app { box-shadow: 0 0 0 1px rgba(232,196,106,.12), 0 40px 120px rgba(0,0,0,.7); }
}

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: var(--gold-2); font-weight: 700; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(232,196,106,.3); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.i { vertical-align: -0.185em; flex: none; }

/* ============ TOPBAR ============ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 12px;
  background: rgba(25,21,54,.85);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(60,52,137,.7);
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--ink-700);
  border: 1px solid var(--line-2);
  color: var(--gold);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 500; font-size: 20px; letter-spacing: .01em;
}
.coin-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink-700);
  color: var(--gold-2);
  border: 1px solid var(--gold-deep);
  border-radius: 999px; padding: 7px 13px;
  font-weight: 800; font-size: 13px;
  transition: transform .1s;
}
.coin-pill:active { transform: scale(.96); }
.coin-pill .plus { font-weight: 700; opacity: .8; font-size: 12px; }

/* ============ LAYOUT ============ */
.view { padding: 12px 18px calc(var(--nav-h) + 20px); }
.view h1 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 500; letter-spacing: 0;
  line-height: 1.18; margin-bottom: 4px;
}
.eyebrow {
  font-size: 10.5px; font-weight: 800; color: var(--lav-400);
  text-transform: uppercase; letter-spacing: .14em;
  margin: 24px 0 10px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.hint { font-size: 12.5px; color: var(--lav-300); font-weight: 600; }

/* ============ BOTTOM NAV ============ */
.bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 30;
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(18,16,42,.92);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-top: 1px solid var(--line);
  padding: 10px 6px calc(10px + env(safe-area-inset-bottom, 0px));
}
.navbtn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--lav-400); font-size: 10px; font-weight: 700;
  min-width: 58px; position: relative;
  padding: 4px 8px; transition: color .15s;
}
.navbtn .icw { width: 40px; height: 26px; border-radius: 999px; display: grid; place-items: center; transition: background .18s; }
.navbtn.active { color: var(--gold); }
.navbtn.active .icw { background: rgba(232,196,106,.12); }
.navbtn .dot {
  position: absolute; top: -1px; right: 8px;
  background: var(--pink-deep); color: #FBEAF0;
  font-size: 9px; border-radius: 999px; padding: 1.5px 5.5px; font-weight: 800;
}

/* ============ CARDS ============ */
.card {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  overflow: hidden; margin-bottom: 16px;
}
.card-body { padding: 16px 18px 18px; }

/* Sealed photo tile */
.photo-lock {
  position: relative; height: 290px;
  background: var(--grad-tile);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.photo-lock::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(232,196,106,.18) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.6));
  -webkit-mask-image: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.6));
}
.photo-lock img.blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-lock .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,16,42,.25), rgba(18,16,42,.65));
}
.lock-badge {
  position: relative; z-index: 2;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(18,16,42,.5);
  border: 1px solid rgba(232,196,106,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--gold);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.15);
}
.lock-note {
  position: relative; z-index: 2;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lav-200);
  background: rgba(18,16,42,.55); border: 1px solid rgba(83,74,183,.5);
  border-radius: 999px; padding: 7px 15px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.score-ring {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--pct) * 1%), rgba(255,255,255,.14) 0);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.score-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: rgba(18,16,42,.9); }
.score-ring .v { position: relative; color: var(--gold-2); text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1; }
.score-ring .v small { display: block; font-size: 7.5px; font-weight: 800; letter-spacing: .1em; color: var(--lav-300); margin-top: 2px; font-family: var(--font-body); }
.badge-chip {
  position: absolute; top: 16px; left: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(18,16,42,.6); color: var(--lav-200);
  border: 1px solid rgba(83,74,183,.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 999px; padding: 6px 12px; font-size: 11px; font-weight: 800;
}
.badge-chip.gold { color: var(--gold-2); border-color: rgba(232,196,106,.6); }

.match-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.match-loc { font-family: var(--font-body); font-size: 12.5px; color: var(--lav-300); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.match-bio { font-size: 13.5px; color: var(--lav-200); margin: 8px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.chip {
  font-size: 11.5px; font-weight: 700; color: var(--lav-200);
  background: transparent; border: 1px solid var(--line-2);
  border-radius: 999px; padding: 5px 12px;
}
.chip.on { color: var(--gold-2); border-color: var(--gold-deep); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 13px; padding: 14px 18px;
  font-weight: 800; font-size: 13.5px; letter-spacing: -.01em;
  transition: transform .1s ease, box-shadow .15s, opacity .15s;
  width: 100%;
}
.btn:active { transform: scale(.965); }
.btn-primary { background: var(--grad-gold); color: var(--gold-ink); box-shadow: var(--sh-gold); }
.btn-primary:active { box-shadow: 0 3px 10px rgba(232,196,106,.2); }
.btn-pink { background: linear-gradient(135deg, #E77BA0, var(--pink-deep)); color: #FDF0F6; box-shadow: 0 6px 16px rgba(153,53,86,.4), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-ghost { background: transparent; border: 1px solid var(--line-2); color: var(--lav-100); }
.btn-ghost:active { background: var(--ink-700); }
.btn-quiet { color: var(--lav-300); font-weight: 700; font-size: 13px; width: auto; padding: 8px 12px; border-radius: 10px; }
.btn-quiet:active { background: var(--ink-700); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn .cost { font-size: 11px; font-weight: 800; background: rgba(65,36,2,.22); border-radius: 999px; padding: 2px 8px; }
.btn-ghost .cost, .btn-quiet .cost { background: transparent; color: var(--gold-2); border: 1px solid var(--gold-deep); }

/* ============ ROWS ============ */
.row {
  display: flex; align-items: center; gap: 13px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 14px; margin-bottom: 10px;
}
.row .avatar {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  background: var(--line);
  color: var(--gold);
  display: grid; place-items: center; overflow: hidden; position: relative;
  border: 1px solid var(--line-2);
}
.row .avatar img { width: 100%; height: 100%; object-fit: cover; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-size: 14px; font-weight: 800; color: var(--lav-100); }
.row .s { font-size: 12px; color: var(--lav-300); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .score {
  color: var(--gold-2); border: 1px solid var(--gold-deep);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; flex: none;
}

/* ============ FORMS ============ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 7px; color: var(--lav-100); }
.field .hint { margin-top: 6px; }
.input {
  width: 100%; background: var(--ink-700);
  border: 1px solid var(--line); border-radius: 13px;
  padding: 14px 15px; font-size: 15px; font-weight: 600;
  color: var(--lav-100);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--gold-deep); outline: none; box-shadow: 0 0 0 3px rgba(232,196,106,.15); }
.input::placeholder { color: var(--lav-400); font-weight: 500; }
select.input option { background: var(--ink-800); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg .opt {
  border: 1px solid var(--line-2); background: transparent;
  border-radius: 999px; padding: 11px 17px; font-size: 13px; font-weight: 700;
  color: var(--lav-200);
  transition: all .15s;
}
.seg .opt.on {
  background: var(--grad-gold); border-color: var(--gold); color: var(--gold-ink);
  box-shadow: 0 4px 14px rgba(232,196,106,.3);
}
.code-input { letter-spacing: .45em; text-align: center; font-size: 24px; font-weight: 600; font-family: var(--font-display); }

/* ============ HERO / WELCOME ============ */
.hero {
  position: relative; overflow: hidden;
  padding: calc(46px + env(safe-area-inset-top, 0px)) 24px 36px;
  background: var(--grad-ink);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(300px 240px at 88% -8%, rgba(232,196,106,.14), transparent 70%),
    radial-gradient(280px 240px at -6% 100%, rgba(83,74,183,.35), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(232,196,106,.16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(115deg, transparent 55%, rgba(0,0,0,.7));
  -webkit-mask-image: linear-gradient(115deg, transparent 55%, rgba(0,0,0,.7));
}
.hero .kicker {
  position: relative; font-size: 10.5px; font-weight: 800;
  letter-spacing: .18em; color: var(--gold-2); margin-bottom: 12px;
}
.hero h1 {
  position: relative;
  font-family: var(--font-display);
  font-size: 33px; font-weight: 500; letter-spacing: 0; line-height: 1.16;
  color: var(--lav-100);
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { position: relative; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--lav-300); max-width: 35ch; line-height: 1.65; }
.auth-wrap { padding: 22px 18px calc(var(--nav-h) + 16px); }
.hero.slim { padding: calc(26px + env(safe-area-inset-top, 0px)) 24px 22px; }
.hero.slim h1 { font-size: 26px; }
.hero .sub { margin-top: 6px; font-size: 13px; color: var(--lav-300); font-weight: 600; position: relative; }

.feature {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--ink-700); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 15px; margin-bottom: 10px;
}
.feature .fi {
  width: 36px; height: 36px; flex: none; border-radius: 11px;
  background: var(--ink-900); border: 1px solid var(--line);
  color: var(--gold); display: grid; place-items: center;
}
.feature .ft { font-size: 13.5px; font-weight: 800; color: var(--lav-100); }
.feature .fs { font-size: 12px; color: var(--lav-300); font-weight: 600; margin-top: 2px; }
.stats { display: flex; justify-content: center; gap: 30px; padding: 18px 0 6px; }
.stats .st { text-align: center; }
.stats .sv { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--gold-2); }
.stats .sl { font-size: 10px; font-weight: 700; color: var(--lav-400); margin-top: 2px; }

/* ============ UPSELL / NOTICE ============ */
.upsell {
  position: relative; overflow: hidden;
  background: var(--ink-700); border: 1px solid var(--gold-deep);
  color: var(--lav-100);
  border-radius: var(--r-lg); padding: 20px 18px; text-align: center; margin-bottom: 16px;
}
.upsell::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(220px 150px at 90% 0%, rgba(232,196,106,.16), transparent 70%);
}
.upsell .t { position: relative; font-family: var(--font-display); font-weight: 500; font-size: 17px; margin-bottom: 12px; }
.upsell .btn, .upsell .meter, .upsell .hint { position: relative; }
.notice {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--teal-bg); color: var(--teal-2);
  border: 1px solid var(--teal-line);
  border-radius: var(--r-sm); padding: 13px 15px;
  font-size: 12.5px; font-weight: 700; margin-bottom: 14px;
}
.notice.warn { background: var(--pink-bg); color: var(--pink); border-color: var(--pink-deep); }

/* ============ CHAT ============ */
.chat-scroll { padding-bottom: 84px; }
.bubble {
  max-width: 78%; border-radius: 17px; padding: 11px 14px;
  font-size: 14px; font-weight: 600; margin-bottom: 8px; width: fit-content;
}
.bubble.me { background: var(--grad-gold); color: var(--gold-ink); margin-left: auto; border-bottom-right-radius: 5px; box-shadow: 0 4px 14px rgba(232,196,106,.2); }
.bubble.them { background: var(--ink-700); border: 1px solid var(--line); color: var(--lav-100); border-bottom-left-radius: 5px; }
.bubble.system {
  background: var(--teal-bg); color: var(--teal-2); border: 1px solid var(--teal-line);
  margin: 12px auto; font-weight: 700; font-size: 12.5px; text-align: center;
}
.chatbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 30;
  display: flex; gap: 9px; align-items: center;
  background: rgba(18,16,42,.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom, 0px));
}
.chatbar .input { flex: 1; border-radius: 999px; }
.chatbar .send {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  background: var(--grad-gold); color: var(--gold-ink);
  display: grid; place-items: center;
  box-shadow: var(--sh-gold);
  transition: transform .1s;
}
.chatbar .send:active { transform: scale(.92); }

/* ============ COINS ============ */
.balance-hero {
  position: relative; overflow: hidden;
  background: var(--ink-700); border: 1px solid var(--gold-deep);
  border-radius: var(--r-lg);
  padding: 22px; margin-bottom: 18px;
}
.balance-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(240px 150px at 88% 10%, rgba(232,196,106,.18), transparent 70%),
    radial-gradient(rgba(232,196,106,.1) 1px, transparent 1px);
  background-size: auto, 22px 22px;
}
.balance-hero .lbl { position: relative; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.balance-hero .num {
  position: relative;
  font-family: var(--font-display);
  font-size: 44px; font-weight: 500; line-height: 1.15; color: var(--gold);
}
.balance-hero .num small { font-size: 15px; font-weight: 600; color: var(--gold-2); margin-left: 6px; }
.bundle {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px; margin-bottom: 10px;
}
.bundle.hot { border: 2px solid var(--gold); position: relative; }
.bundle .n { font-family: var(--font-display); font-weight: 500; font-size: 17px; }
.bundle .c { font-size: 11.5px; color: var(--gold-2); font-weight: 800; border: 1px solid var(--gold-deep); border-radius: 999px; padding: 3px 9px; margin-left: 8px; }
.bundle .btn { width: auto; padding: 10px 20px; }

/* ============ SKELETON / EMPTY ============ */
@keyframes shimmer { from { background-position: -240px 0; } to { background-position: 240px 0; } }
.skel {
  border-radius: var(--r-lg); height: 340px; margin-bottom: 16px;
  background: linear-gradient(90deg, var(--ink-700) 25%, var(--ink-600) 50%, var(--ink-700) 75%);
  background-size: 480px 100%; animation: shimmer 1.1s infinite linear;
  border: 1px solid var(--line);
}
.empty { text-align: center; padding: 54px 28px; color: var(--lav-300); }
.empty .glyph {
  width: 74px; height: 74px; margin: 0 auto 16px;
  border-radius: 24px;
  background: var(--ink-700); border: 1px solid var(--gold-deep);
  color: var(--gold);
  display: grid; place-items: center;
}
.empty .t { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--lav-100); margin-bottom: 6px; }
.empty p { font-size: 13px; font-weight: 600; max-width: 30ch; margin: 0 auto; }

/* ============ METER ============ */
.meter { height: 8px; border-radius: 999px; background: var(--ink-900); border: 1px solid var(--line); overflow: hidden; margin: 10px 0 5px; }
.meter > span { display: block; height: 100%; background: var(--grad-gold); border-radius: 999px; transition: width .5s cubic-bezier(.22,1,.36,1); }

/* ============ TOAST ============ */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + 14px); z-index: 60;
  background: rgba(18,16,42,.97); color: var(--lav-100);
  border: 1px solid var(--gold-deep);
  border-radius: 999px; padding: 12px 20px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .25s cubic-bezier(.22,1,.36,1);
  max-width: 88%; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

/* ============ SHEET ============ */
.sheet-veil {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(6,5,16,.65);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sheet-veil.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(105%);
  width: 100%; max-width: 480px; z-index: 55;
  background: var(--ink-800); border: 1px solid var(--line); border-bottom: none;
  border-radius: 26px 26px 0 0;
  padding: 14px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 -12px 60px rgba(0,0,0,.55);
}
.sheet::before { content: ''; display: block; width: 42px; height: 4.5px; background: var(--line-2); border-radius: 999px; margin: 0 auto 16px; }
.sheet.open { transform: translateX(-50%) translateY(0); }
.sheet h3 { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin-bottom: 7px; }
.sheet p { font-size: 13.5px; font-weight: 600; color: var(--lav-300); margin-bottom: 18px; }
