:root {
  --navy-950: #040b14;
  --navy-900: #07111f;
  --navy-850: #0a1728;
  --navy-800: #0d1d31;
  --navy-700: #132944;
  --gold-500: #d9ad55;
  --gold-400: #edc977;
  --gold-300: #f6dea6;
  --cream: #fff8e9;
  --white: #f8fbff;
  --muted: #8795aa;
  --muted-light: #b5bfd0;
  --green: #63d6a3;
  --red: #f07878;
  --amber: #f0b65a;
  --blue: #6ca8ee;
  --line: rgba(242, 205, 126, 0.15);
  --line-cool: rgba(167, 190, 220, 0.12);
  --surface: rgba(13, 29, 49, 0.86);
  --surface-strong: #0c1a2c;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html { background: var(--navy-950); color-scheme: dark; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 80% -10%, rgba(217, 173, 85, 0.12), transparent 34%),
    linear-gradient(155deg, var(--navy-900), var(--navy-950) 72%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.hidden { display: none !important; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.ambient-one { top: 12%; right: -220px; background: rgba(217, 173, 85, 0.12); }
.ambient-two { bottom: 12%; left: -260px; background: rgba(43, 102, 164, 0.13); }

.splash, .gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px;
  text-align: center;
}

.splash-wordmark { margin-top: 18px; font-weight: 850; letter-spacing: 0.22em; font-size: 14px; }
.loading-line { width: 120px; height: 2px; margin-top: 32px; overflow: hidden; background: rgba(255,255,255,.08); }
.loading-line i { display: block; width: 42%; height: 100%; background: linear-gradient(90deg, transparent, var(--gold-400)); animation: loading 1.2s ease-in-out infinite; }
@keyframes loading { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }

.gate { max-width: 440px; margin: auto; }
.gate h1 { font-family: Georgia, "Times New Roman", serif; font-size: 42px; line-height: 1.05; margin: 14px 0; }
.gate .muted { color: var(--muted-light); line-height: 1.7; margin: 0 0 28px; }

.app-shell {
  width: min(100%, 840px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(98px + var(--safe-bottom));
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 12px;
  background: linear-gradient(180deg, rgba(7,17,31,.97) 65%, rgba(7,17,31,0));
  backdrop-filter: blur(18px);
}

.brand-button, .profile-pill {
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(242,205,126,.65);
  border-radius: 50%;
  color: var(--gold-300);
  background: radial-gradient(circle, rgba(217,173,85,.22), rgba(217,173,85,.03));
  box-shadow: inset 0 0 18px rgba(217,173,85,.12), 0 0 24px rgba(217,173,85,.08);
}
.brand-mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(242,205,126,.18); border-radius: 50%; }
.brand-mark span { font-size: 16px; line-height: 1; }
.brand-mark-xl { width: 72px; height: 72px; }
.brand-mark-xl span { font-size: 27px; }

.brand-copy { display: flex; flex-direction: column; align-items: flex-start; margin-left: 10px; }
.brand-copy strong { max-width: 140px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; letter-spacing: .12em; }
.brand-copy small { margin-top: 3px; color: var(--gold-500); font-size: 8px; font-weight: 800; letter-spacing: .2em; }

.profile-pill {
  min-width: 0;
  max-width: 48%;
  padding: 5px 8px 5px 5px;
  border: 1px solid var(--line-cool);
  border-radius: 999px;
  background: rgba(11,25,43,.75);
}
.profile-initial { display: grid; flex: 0 0 auto; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: linear-gradient(145deg, var(--gold-300), #a8792d); color: var(--navy-950); font-size: 12px; font-weight: 900; }
.profile-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; margin: 0 7px; }
.profile-copy strong, .profile-copy small { max-width: 98px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy strong { font-size: 11px; }
.profile-copy small { margin-top: 1px; color: var(--muted); font-size: 8px; }
.chevron { color: var(--gold-400); font-size: 17px; }

.screen { display: none; padding: 6px 18px 30px; animation: screenIn .24s ease-out; }
.screen.active { display: block; }
@keyframes screenIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.hero-card {
  position: relative;
  min-height: 355px;
  padding: 32px 25px 20px;
  border: 1px solid rgba(242,205,126,.2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(20,44,71,.78), rgba(5,13,24,.96) 65%),
    var(--surface-strong);
  box-shadow: var(--shadow);
}
.hero-card::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.hero-glow { position: absolute; width: 230px; height: 230px; right: -55px; top: 28px; border-radius: 50%; background: rgba(217,173,85,.14); filter: blur(52px); }
.hero-copy { position: relative; z-index: 2; width: 68%; }
.hero-kicker, .eyebrow { color: var(--gold-400); font-size: 9px; line-height: 1.4; font-weight: 850; letter-spacing: .21em; }
.hero-kicker { display: flex; align-items: center; gap: 8px; }
.hero-kicker i { width: 19px; height: 1px; background: var(--gold-400); }
.hero-copy h1 { margin: 20px 0 15px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(39px, 12vw, 58px); line-height: .94; letter-spacing: -.045em; font-weight: 500; }
.hero-copy h1 em { color: var(--gold-300); font-weight: 400; }
.hero-copy p { max-width: 270px; color: var(--muted-light); font-size: 12px; line-height: 1.65; }

.hero-orbit { position: absolute; z-index: 1; width: 190px; height: 190px; right: -15px; top: 65px; display: grid; place-items: center; }
.orbit-ring { position: absolute; border: 1px solid rgba(242,205,126,.22); border-radius: 50%; transform: rotate(-18deg); }
.ring-one { width: 158px; height: 78px; }
.ring-two { width: 176px; height: 105px; transform: rotate(62deg); }
.hero-star { display: grid; place-items: center; width: 91px; height: 91px; color: #1b1306; font-size: 42px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff2c8, var(--gold-400) 42%, #9e6e21 100%); box-shadow: 0 0 60px rgba(217,173,85,.26), inset -12px -18px 28px rgba(78,47,2,.25); transform: rotate(8deg); }
.spark { position: absolute; color: var(--gold-300); }
.spark-one { right: 4px; top: 4px; font-size: 22px; }
.spark-two { left: 5px; bottom: 21px; font-size: 16px; }

.trust-row { position: absolute; z-index: 2; left: 25px; right: 25px; bottom: 19px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.trust-row span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 34px 2px 16px; }
.section-heading p, .section-heading h2, .page-intro p, .page-intro h1, .admin-head p, .admin-head h1 { margin: 0; }
.section-heading h2 { margin-top: 6px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.section-count { color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: 24px; }
.compact-heading { margin-top: 32px; }
.text-button { border: 0; background: transparent; color: var(--gold-400); font-size: 10px; cursor: pointer; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card {
  position: relative;
  min-height: 170px;
  padding: 17px;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-lg);
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(145deg, rgba(18,39,65,.92), rgba(8,18,31,.96));
  box-shadow: 0 13px 30px rgba(0,0,0,.17);
  transition: transform .18s ease, border-color .18s ease;
}
.product-card:active { transform: scale(.98); }
.product-card.active:hover { border-color: rgba(242,205,126,.36); }
.product-card.disabled { opacity: .58; cursor: default; }
.product-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -45px; top: -45px; border: 1px solid rgba(242,205,126,.1); border-radius: 50%; }
.product-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 23px; border: 1px solid var(--line); border-radius: 14px; color: var(--gold-300); background: rgba(217,173,85,.07); font-family: Georgia, serif; font-size: 21px; }
.animated-emoji { display: block; overflow: hidden; }
.animated-emoji svg, .animated-emoji video { display: block; width: 100%; height: 100%; object-fit: contain; }
.animated-emoji.unavailable { opacity: .35; }
.product-icon.animated-emoji { padding: 6px; }
.product-icon-text { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.product-card strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.product-card p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.product-arrow { position: absolute; right: 15px; bottom: 15px; color: var(--gold-500); font-size: 17px; }
.coming-tag { position: absolute; top: 14px; right: 13px; padding: 4px 7px; border: 1px solid var(--line-cool); border-radius: 999px; color: var(--muted-light); font-size: 7px; font-weight: 850; letter-spacing: .1em; }

.order-stack { display: grid; gap: 10px; }
.large-gap { gap: 13px; }
.order-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line-cool); border-radius: var(--radius-md); background: rgba(12,27,46,.76); }
.order-card.clickable { cursor: pointer; }
.order-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--gold-300); background: rgba(217,173,85,.08); border: 1px solid var(--line); }
.order-emoji { width: 29px; height: 29px; }
.order-main { min-width: 0; }
.order-main strong, .order-main p { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.order-main strong { font-size: 11px; }
.order-main p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.order-side { text-align: right; }
.order-side strong { display: block; font-size: 10px; }
.status-chip { display: inline-flex; margin-top: 5px; padding: 4px 7px; border-radius: 999px; font-size: 7px; font-weight: 850; letter-spacing: .04em; }
.status-WAITING_PAYMENT { color: var(--amber); background: rgba(240,182,90,.1); }
.status-PROCESSING, .status-PAID { color: var(--blue); background: rgba(108,168,238,.1); }
.status-SUCCESS { color: var(--green); background: rgba(99,214,163,.1); }
.status-FAILED, .status-EXPIRED, .status-MANUAL_REVIEW { color: var(--red); background: rgba(240,120,120,.1); }
.empty-card { padding: 30px 20px; border: 1px dashed var(--line-cool); border-radius: var(--radius-lg); text-align: center; color: var(--muted); }
.empty-card strong { display: block; color: var(--muted-light); font-size: 12px; }
.empty-card p { margin: 7px 0 0; font-size: 9px; }

.assurance-card { display: flex; gap: 14px; margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(120deg, rgba(217,173,85,.08), rgba(13,29,49,.6)); }
.assurance-icon { color: var(--gold-300); font-size: 24px; }
.assurance-card strong { font-size: 11px; }
.assurance-card p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }

.page-intro { padding: 24px 2px 20px; }
.page-intro h1, .admin-head h1 { margin-top: 9px; font-family: Georgia, "Times New Roman", serif; font-size: 35px; line-height: 1.05; font-weight: 500; }
.page-intro > p:last-child { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.filter-row { display: flex; gap: 8px; padding-bottom: 15px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line-cool); border-radius: 999px; color: var(--muted-light); background: rgba(12,27,46,.6); font-size: 9px; cursor: pointer; }
.filter-chip.active { color: var(--navy-950); border-color: var(--gold-400); background: var(--gold-400); font-weight: 850; }

.identity-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(19,41,68,.9), rgba(8,18,31,.95)); }
.identity-avatar { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(242,205,126,.4); border-radius: 50%; color: var(--navy-950); background: linear-gradient(145deg, var(--gold-300), #ad7d30); font-weight: 900; }
.identity-card > div { min-width: 0; flex: 1; }
.identity-card strong { display: block; font-size: 14px; }
.identity-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.role-badge { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-300); background: rgba(217,173,85,.08); font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.support-list { display: grid; gap: 10px; margin-top: 22px; }
.support-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line-cool); border-radius: var(--radius-md); background: rgba(12,27,46,.72); }
.support-symbol { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 12px; color: var(--gold-300); font-family: Georgia, serif; }
.support-item strong { display: block; font-size: 11px; }
.support-item p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.support-item > span:last-child { color: var(--gold-500); }
.security-note { margin-top: 22px; padding: 18px; border-left: 2px solid var(--gold-500); color: var(--muted-light); background: rgba(217,173,85,.05); }
.security-note strong { color: var(--white); font-size: 11px; }
.security-note p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }

.admin-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 25px 2px 21px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid rgba(99,214,163,.2); border-radius: 999px; color: var(--green); background: rgba(99,214,163,.07); font-size: 7px; font-weight: 850; }
.live-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-card { padding: 16px; border: 1px solid var(--line-cool); border-radius: var(--radius-md); background: rgba(12,27,46,.78); }
.stat-card small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.stat-card strong { display: block; margin-top: 8px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.stat-card p { margin: 5px 0 0; color: var(--gold-500); font-size: 8px; }
.admin-tabs { display: flex; gap: 6px; margin: 22px 0 14px; padding: 5px; border: 1px solid var(--line-cool); border-radius: 14px; overflow-x: auto; background: rgba(5,13,24,.5); }
.admin-tab { flex: 1 0 auto; padding: 9px 11px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 9px; cursor: pointer; }
.admin-tab.active { color: var(--navy-950); background: var(--gold-400); font-weight: 850; }
.admin-panel { min-height: 260px; }
.admin-card { margin-bottom: 12px; padding: 17px; border: 1px solid var(--line-cool); border-radius: var(--radius-lg); background: rgba(12,27,46,.8); }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.admin-card-header h3, .admin-card-header p { margin: 0; }
.admin-card-header h3 { font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.admin-card-header p { margin-top: 4px; color: var(--muted); font-size: 8px; }
.connection-pill { padding: 5px 8px; border-radius: 999px; font-size: 7px; font-weight: 850; }
.connection-pill.ok { color: var(--green); background: rgba(99,214,163,.09); }
.connection-pill.off { color: var(--red); background: rgba(240,120,120,.09); }
.admin-order { padding: 13px 0; border-bottom: 1px solid var(--line-cool); }
.admin-order:last-child { border-bottom: 0; }
.admin-order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-order strong { font-size: 10px; }
.admin-order p { margin: 6px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.inline-actions { display: flex; gap: 7px; margin-top: 10px; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.field { display: grid; gap: 7px; margin-bottom: 13px; }
.field label { color: var(--muted-light); font-size: 9px; font-weight: 700; }
.field-hint { color: var(--muted); font-size: 8px; line-height: 1.5; }
.recipient-check-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.recipient-check-row .button { min-width: 78px; }
.recipient-status { min-height: 14px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.recipient-status.checking { color: var(--gold-300); }
.recipient-status.valid { color: var(--green); }
.recipient-status.invalid { color: var(--red); }
.bulk-recipient-list { display: grid; gap: 9px; }
.bulk-recipient-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .55fr) auto; align-items: start; gap: 8px; padding: 11px; border: 1px solid var(--line-cool); border-radius: 14px; background: rgba(5,13,24,.42); }
.bulk-field { margin: 0; }
.bulk-remove { width: 32px; height: 44px; margin-top: 16px; border: 1px solid rgba(240,120,120,.2); border-radius: 10px; color: var(--red); background: rgba(240,120,120,.05); cursor: pointer; }
.bulk-remove:disabled { opacity: .25; cursor: not-allowed; }
.bulk-actions { margin-top: 11px; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line-cool);
  border-radius: 12px;
  outline: none;
  color: var(--white);
  background: rgba(5,13,24,.72);
  transition: border-color .18s, box-shadow .18s;
}
.input, .select { height: 44px; padding: 0 13px; }
.textarea { min-height: 104px; padding: 12px 13px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(242,205,126,.55); box-shadow: 0 0 0 3px rgba(217,173,85,.08); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-400) 50%), linear-gradient(135deg, var(--gold-400) 50%, transparent 50%); background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.amount-presets { display: flex; flex-wrap: wrap; gap: 7px; margin: -3px 0 15px; }
.amount-preset { padding: 7px 10px; border: 1px solid var(--line-cool); border-radius: 999px; color: var(--muted-light); background: transparent; font-size: 8px; cursor: pointer; }
.amount-preset.active { color: var(--navy-950); border-color: var(--gold-400); background: var(--gold-400); font-weight: 850; }
.gift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.gift-option { position: relative; min-height: 77px; padding: 8px 4px; border: 1px solid var(--line-cool); border-radius: 13px; color: var(--white); background: rgba(5,13,24,.55); cursor: pointer; }
.gift-option:disabled { opacity: .32; cursor: wait; }
.gift-option.active { border-color: var(--gold-400); background: rgba(217,173,85,.11); box-shadow: inset 0 0 18px rgba(217,173,85,.06); }
.gift-emoji { width: 34px; height: 34px; margin: 0 auto; }
.gift-option small { display: block; margin-top: 5px; color: var(--muted); font-size: 7px; }
.gift-option i { position: absolute; top: 3px; right: 4px; color: var(--gold-300); font-size: 7px; font-style: normal; }
.self-gift-flow { min-height: 210px; }
.self-gift-loading { min-height: 190px; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-size: 9px; }
.self-gift-loading p { margin: 0; }
.self-gift-intro { margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(217,173,85,.055); }
.self-gift-intro strong { color: var(--gold-300); font-size: 11px; }
.self-gift-intro p { margin: 6px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.self-gift-account { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 13px 14px; border: 1px solid rgba(99,208,161,.2); border-radius: 14px; background: rgba(99,208,161,.055); }
.self-gift-account small, .self-gift-account strong, .self-gift-account p { display: block; }
.self-gift-account small { color: var(--green); font-size: 7px; letter-spacing: .09em; }
.self-gift-account strong { margin-top: 4px; color: var(--white); font-size: 11px; }
.self-gift-account p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.self-gift-recipient-check { align-items: center; margin: -5px 0 16px; }
.self-gift-recipient-check .recipient-status { flex: 1; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.switch-row strong { font-size: 10px; }
.switch-row p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.switch { position: relative; width: 42px; height: 24px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #27384e; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: var(--white); transition: .2s; }
.switch input:checked + span { background: var(--gold-500); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--navy-950); }

.price-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(217,173,85,.055); }
.price-summary small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.price-summary strong { display: block; margin-top: 5px; font-family: Georgia, serif; color: var(--gold-300); font-size: 23px; font-weight: 500; }
.price-summary p { margin: 0; color: var(--muted); font-size: 8px; text-align: right; }

.button { min-height: 43px; padding: 0 16px; border: 1px solid transparent; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-size: 10px; font-weight: 850; transition: transform .15s, opacity .15s; }
.button:active { transform: scale(.98); }
.button:disabled { opacity: .45; cursor: wait; }
.button-primary { color: var(--navy-950); background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); box-shadow: 0 10px 24px rgba(217,173,85,.15); }
.button-secondary { color: var(--gold-300); border-color: var(--line); background: rgba(217,173,85,.05); }
.button-danger { color: var(--red); border-color: rgba(240,120,120,.18); background: rgba(240,120,120,.05); }
.button-ghost { min-height: 34px; padding: 0 10px; color: var(--muted-light); border-color: var(--line-cool); background: transparent; font-size: 8px; }
.button-wide { width: 100%; }
.button-row { display: flex; gap: 9px; }
.button-row .button { flex: 1; }
.modal-later { margin-top: 10px; }
.detail-label { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.detail-label + .detail-label { margin-top: 7px; }
.detail-value { color: var(--white); }
.detail-total { color: var(--gold-300); font-family: Georgia, serif; font-size: 20px; }
.detail-error { color: var(--red); font-size: 9px; line-height: 1.6; }
.support-list.flush { margin-top: 0; }
.field-spaced { margin-top: 14px; }
.courier-summary { color: var(--muted); font-size: 9px; line-height: 1.65; }
.courier-summary strong { color: var(--white); }

.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 0;
  width: min(100%, 840px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: calc(72px + var(--safe-bottom));
  padding: 8px 13px var(--safe-bottom);
  border-top: 1px solid var(--line-cool);
  background: rgba(5,13,24,.96);
  backdrop-filter: blur(22px);
}
.nav-item { position: relative; min-width: 62px; min-height: 52px; border: 0; color: #6f7c90; background: transparent; cursor: pointer; }
.nav-symbol, .nav-item small { display: block; }
.nav-symbol { margin-bottom: 4px; font-size: 18px; line-height: 1; }
.nav-item small { font-size: 8px; }
.nav-item.active { color: var(--gold-300); }
.nav-item.active::before { content: ""; position: absolute; left: 50%; top: -9px; width: 22px; height: 2px; transform: translateX(-50%); background: var(--gold-400); box-shadow: 0 0 10px var(--gold-400); }

.modal { position: fixed; z-index: 80; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(1,5,10,.72); backdrop-filter: blur(6px); }
.modal-sheet { position: relative; width: min(100%, 620px); max-height: 91vh; padding: 9px 20px calc(23px + var(--safe-bottom)); border: 1px solid rgba(242,205,126,.15); border-bottom: 0; border-radius: 28px 28px 0 0; overflow-y: auto; background: linear-gradient(165deg, #10243b, #07111f 62%); box-shadow: 0 -30px 80px rgba(0,0,0,.42); animation: sheetUp .25s ease-out; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-handle { width: 42px; height: 4px; margin: 0 auto 20px; border-radius: 999px; background: rgba(255,255,255,.15); }
.modal-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.modal-title-row p, .modal-title-row h2 { margin: 0; }
.modal-title-row h2 { margin-top: 7px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.close-button { width: 35px; height: 35px; border: 1px solid var(--line-cool); border-radius: 50%; color: var(--muted-light); background: transparent; cursor: pointer; }

.payment-head { text-align: center; }
.payment-head .eyebrow { margin: 0; }
.payment-head h2 { margin: 9px 0 7px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.payment-head p { margin: 0; color: var(--muted); font-size: 9px; }
.qris-frame { width: min(76vw, 310px); margin: 21px auto 17px; padding: 13px; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); box-shadow: 0 18px 50px rgba(0,0,0,.27); }
.qris-frame img { display: block; width: 100%; border-radius: 9px; }
.payment-amount { text-align: center; }
.payment-amount small { color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.payment-amount strong { display: block; margin-top: 7px; color: var(--gold-300); font-family: Georgia, serif; font-size: 31px; font-weight: 500; }
.payment-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 17px 0; }
.payment-meta div { padding: 12px; border: 1px solid var(--line-cool); border-radius: 12px; background: rgba(5,13,24,.5); }
.payment-meta small, .payment-meta strong { display: block; }
.payment-meta small { color: var(--muted); font-size: 7px; text-transform: uppercase; letter-spacing: .07em; }
.payment-meta strong { margin-top: 5px; font-size: 9px; overflow-wrap: anywhere; }
.countdown { color: var(--amber) !important; }
.payment-warning { margin: 0 0 17px; padding: 12px; border-left: 2px solid var(--gold-500); color: var(--muted-light); background: rgba(217,173,85,.05); font-size: 8px; line-height: 1.55; }

.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(88px + var(--safe-bottom)); width: min(calc(100% - 36px), 480px); transform: translateX(-50%); padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; color: var(--white); background: rgba(14,31,51,.96); box-shadow: var(--shadow); font-size: 10px; text-align: center; animation: toastIn .2s ease-out; }
.toast.error { color: #ffd7d7; border-color: rgba(240,120,120,.25); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(7,17,31,.28); border-top-color: var(--navy-950); border-radius: 50%; animation: spin .65s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 620px) {
  .screen { padding-left: 30px; padding-right: 30px; }
  .topbar { padding-left: 30px; padding-right: 30px; }
  .hero-card { min-height: 390px; padding: 40px 36px 24px; }
  .hero-copy { width: 62%; }
  .hero-copy h1 { font-size: 64px; }
  .hero-orbit { width: 260px; height: 260px; right: 15px; top: 54px; }
  .hero-star { width: 125px; height: 125px; font-size: 57px; }
  .ring-one { width: 225px; height: 105px; }
  .ring-two { width: 245px; height: 140px; }
  .trust-row { left: 36px; right: 36px; bottom: 23px; font-size: 9px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .gift-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 380px) {
  .hero-card { min-height: 335px; padding-left: 20px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-orbit { right: -35px; transform: scale(.85); }
  .trust-row { left: 20px; right: 20px; font-size: 7px; }
  .product-card { min-height: 157px; padding: 14px; }
  .product-icon { margin-bottom: 18px; }
  .gift-grid { grid-template-columns: repeat(3, 1fr); }
  .field-grid { grid-template-columns: 1fr; }
  .bulk-recipient-row { grid-template-columns: minmax(0, 1fr) 98px auto; gap: 6px; padding: 9px; }
  .bulk-recipient-row .input { padding: 0 8px; }
}

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