
:root {
  color-scheme: dark;
  --bg-deep: #07090e;
  --bg-card: rgba(18, 24, 38, 0.78);
  --bg-card-solid: #101522;
  --border-card: rgba(255, 255, 255, 0.08);
  --border-gold-subtle: rgba(212, 175, 55, 0.25);
  
  --gold-primary: #f5c544;
  --gold-glow: rgba(245, 197, 68, 0.35);
  --gold-hover: #eab308;
  --gold-gradient: linear-gradient(135deg, #fff1b8 0%, #f5c544 32%, #e5a91a 68%, #c4880e 100%);
  --gold-text-grad: linear-gradient(135deg, #ffe58f 0%, #f5c544 50%, #d4af37 100%);
  
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8b9bb4;
  --text-faint: #4e5d78;
  
  --input-bg: rgba(9, 13, 22, 0.72);
  --input-border: rgba(255, 255, 255, 0.11);
  --input-focus-border: #f5c544;
  --input-focus-ring: rgba(245, 197, 68, 0.2);
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.28);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --error-border: rgba(239, 68, 68, 0.28);
  
  --radius-card: 24px;
  --radius-inner: 16px;
  --radius-input: 13px;
  --radius-btn: 14px;
  --mesh-opacity: 0.055;
  --card-shadow: 0 24px 56px -12px rgba(0, 0, 0, 0.8), 0 0 36px -8px rgba(245, 197, 68, 0.12);
}

html.theme-light {
  color-scheme: light;
  --bg-deep: #f6f7fb;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-solid: #ffffff;
  --border-card: rgba(218, 224, 233, 0.9);
  --border-gold-subtle: rgba(212, 175, 55, 0.35);
  
  --gold-primary: #a17010;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-hover: #8c5d04;
  --gold-gradient: linear-gradient(135deg, #f7d268 0%, #e5a91a 45%, #c88a08 100%);
  --gold-text-grad: linear-gradient(135deg, #b88214 0%, #8c5d04 100%);
  
  --text-main: #0c121e;
  --text-secondary: #2c384d;
  --text-muted: #5e6d82;
  --text-faint: #8a96a8;
  
  --input-bg: rgba(248, 250, 252, 0.85);
  --input-border: #d5dce6;
  --input-focus-border: #c88a08;
  --input-focus-ring: rgba(200, 138, 8, 0.14);
  
  --mesh-opacity: 0.035;
  --card-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.03),
    0 8px 24px -4px rgba(12, 18, 30, 0.06),
    0 24px 48px -12px rgba(160, 120, 30, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font-family: inherit; }
html, body {
  width: 100%;
  min-height: 100%;
}
body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 14px calc(24px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Atmospheric Multi-Layer Background */
.bg-ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ambient-glow-top {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 580px;
  height: 420px;
  background: radial-gradient(circle at 50% 35%, rgba(245, 197, 68, 0.22) 0%, rgba(212, 175, 55, 0.08) 50%, transparent 75%);
  filter: blur(80px);
  animation: aura-drift 10s ease-in-out infinite alternate;
}
.ambient-glow-left {
  position: absolute;
  top: 18%;
  left: -80px;
  width: 380px;
  height: 380px;
  filter: blur(75px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ambient-glow-right {
  position: absolute;
  top: 24%;
  right: -80px;
  width: 400px;
  height: 400px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ambient-glow-bottom {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 340px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.15) 0%, rgba(14, 28, 70, 0.05) 55%, transparent 75%);
  filter: blur(80px);
}
html.theme-light .ambient-glow-top {
  width: 620px;
  height: 460px;
  background: radial-gradient(ellipse at 50% 30%, rgba(251, 191, 36, 0.32) 0%, rgba(245, 158, 11, 0.15) 38%, transparent 72%);
  filter: blur(60px);
}
html.theme-light .ambient-glow-left {
  opacity: 1;
  background: radial-gradient(circle, rgba(254, 243, 199, 0.75) 0%, rgba(251, 191, 36, 0.15) 50%, transparent 70%);
}
html.theme-light .ambient-glow-right {
  opacity: 1;
  background: radial-gradient(circle, rgba(219, 234, 254, 0.8) 0%, rgba(147, 197, 253, 0.18) 45%, transparent 70%);
}
html.theme-light .ambient-glow-bottom {
  width: 560px;
  height: 360px;
  background: radial-gradient(ellipse, rgba(254, 240, 138, 0.32) 0%, rgba(224, 231, 255, 0.28) 50%, transparent 75%);
  filter: blur(65px);
}
.ambient-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(245, 197, 68, var(--mesh-opacity)) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 197, 68, var(--mesh-opacity)) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 20%, transparent 80%);
}
html.theme-light .ambient-mesh {
  background-image: 
    linear-gradient(to right, rgba(180, 130, 20, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 130, 20, 0.055) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 25%, transparent 80%);
}
@keyframes aura-drift {
  0% { transform: translateX(-50%) translateY(0) scale(0.96); opacity: 0.85; }
  100% { transform: translateX(-50%) translateY(26px) scale(1.06); opacity: 1; }
}

.container {
  width: 100%;
  max-width: 396px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Top Nav Bar with Status & Theme Toggle */
.top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
  padding: 0 2px;
}
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 6px 14px;
  background: rgba(245, 197, 68, 0.08);
  border: 1px solid rgba(245, 197, 68, 0.25);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
html.theme-light .brand-pill {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1);
}
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.theme-toggle-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-1px);
}
.theme-toggle-btn:active {
  transform: scale(0.96);
}
.theme-toggle-btn svg {
  flex-shrink: 0;
}
html:not(.theme-light) .icon-moon,
html.theme-dark .icon-moon {
  display: none;
}
html:not(.theme-light) .icon-sun,
html.theme-dark .icon-sun {
  display: block;
  stroke: var(--gold-primary);
}
html.theme-light .icon-sun {
  display: none;
}
html.theme-light .icon-moon {
  display: block;
  stroke: #475569;
}

/* Header & Brand Identity */
.header {
  text-align: center;
  margin-bottom: 20px;
}
.brand-pill svg {
  stroke: var(--gold-primary);
  flex-shrink: 0;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulse-glow 2s infinite ease-in-out;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.25;
  text-wrap: balance;
}
.gold-gradient-text {
  background: var(--gold-text-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.header p.subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0 4px;
  text-wrap: balance;
}
.trust-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4px 9px;
  border-radius: 999px;
}
.trust-chip svg {
  stroke: var(--gold-primary);
  width: 12px;
  height: 12px;
}

/* Glass Main Card */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 22px 19px;
  box-shadow: 
    inset 0 1px 0 0 rgba(245, 197, 68, 0.45),
    var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
html.theme-light .card {
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 1),
    var(--card-shadow);
}
.card-ambient-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245, 197, 68, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* VIP Member Card Live Preview */
.vip-preview-card {
  background: linear-gradient(135deg, rgba(34, 27, 14, 0.9) 0%, rgba(18, 22, 33, 0.95) 55%, rgba(10, 13, 22, 0.98) 100%);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-inner);
  padding: 15px 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 10px 24px -6px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 235, 160, 0.25);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.24s ease;
}
html.theme-light .vip-preview-card {
  background: linear-gradient(145deg, #161b26 0%, #0c1017 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 
    0 10px 28px -6px rgba(12, 16, 23, 0.25),
    0 0 16px -4px rgba(212, 175, 55, 0.15),
    inset 0 1px 1px rgba(255, 235, 160, 0.35);
}
.vip-card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  animation: shine-card 6s infinite ease-in-out;
  pointer-events: none;
}
@keyframes shine-card {
  0%, 75% { left: -100%; }
  100% { left: 200%; }
}
.vip-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.vip-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-primary);
}
.vip-logo svg {
  stroke: var(--gold-primary);
}
.by-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 2px;
  text-transform: uppercase;
}
.vip-tier-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  display: none;
  align-items: center;
  gap: 4px;
  animation: pill-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pill-pop {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
.vip-tier-pill.tier-15s, .vip-tier-pill.tier-30s {
  background: rgba(245, 197, 68, 0.16);
  border: 1px solid rgba(245, 197, 68, 0.35);
  color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(245, 197, 68, 0.2);
}
.vip-tier-pill.tier-5s {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}
.vip-card-body {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.vip-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe58f 0%, #f5c544 50%, #b4821a 100%);
  color: #07090e;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(245, 197, 68, 0.3);
  position: relative;
  overflow: hidden;
}
.vip-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.vip-avatar-img.loaded {
  opacity: 1;
}
.vip-identity {
  min-width: 0;
  flex: 1;
}
.vip-name-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}
.vip-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vip-verified {
  flex-shrink: 0;
}
.vip-status-text {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}
.vip-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 9px;
}
.vip-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vip-metric.right {
  align-items: flex-end;
}
.metric-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.metric-value {
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, opacity 0.2s ease;
}
html.theme-light .metric-value {
  color: #f1f5f9;
}
@keyframes since-pop {
  0% { transform: scale(0.92); color: var(--gold-primary); }
  50% { transform: scale(1.08); color: #ffffff; }
  100% { transform: scale(1); }
}
.since-bump {
  display: inline-block;
  animation: since-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.metric-value.status-active {
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Fields & Inputs */
.field {
  margin-bottom: 16px;
}
.label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.label-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.label-icon {
  width: 15px;
  height: 15px;
  stroke: var(--gold-primary);
  flex-shrink: 0;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.input {
  width: 100%;
  height: 48px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  padding: 0 15px;
  color: var(--text-main);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}
html.theme-light .input {
  background: rgba(248, 250, 252, 0.85);
  border-color: #d5dce6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.input:focus {
  border-color: var(--input-focus-border);
  box-shadow: 
    0 0 0 3px var(--input-focus-ring),
    0 0 20px -4px rgba(245, 197, 68, 0.25);
  background: rgba(12, 17, 28, 0.88);
}
html.theme-light .input:focus {
  background: #ffffff;
  border-color: #c88a08;
  box-shadow: 0 0 0 3px rgba(200, 138, 8, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
}
.input::placeholder {
  color: #55657e;
  font-size: 13.5px;
}
.input.has-action {
  padding-right: 76px;
}
.input.has-prefix {
  padding-left: 30px;
}
.input-prefix {
  position: absolute;
  left: 13px;
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
  user-select: none;
}
.input-action-btn {
  position: absolute;
  right: 6px;
  height: 36px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  background: rgba(245, 197, 68, 0.1);
  border: 1px solid rgba(245, 197, 68, 0.22);
  border-radius: 9px;
  color: var(--gold-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.16s ease, border-color 0.16s ease;
  user-select: none;
}
html.theme-light .input-action-btn {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--gold-primary);
}
.input-action-btn:hover {
  background: rgba(245, 197, 68, 0.2);
  border-color: var(--gold-primary);
}
html.theme-light .input-action-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #8c5d04;
}
.input-action-btn:active {
  transform: scale(0.95);
}
.input-action-btn svg {
  stroke: currentColor;
}
input[type="date"] {
  color-scheme: dark;
  text-align: left;
  cursor: pointer;
}
html.theme-light input[type="date"] {
  color-scheme: light;
}
html.theme-light input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.65;
  cursor: pointer;
}
html.theme-light input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  min-height: 1.4em;
}
.hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.hint svg {
  stroke: var(--text-faint);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Liquid Gold Primary Button */
.submit-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #fff1b8 0%, #f5c544 32%, #e5a91a 68%, #c4880e 100%);
  color: #120d02;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-btn);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 12px 24px -4px rgba(229, 169, 26, 0.42),
    0 4px 8px rgba(0, 0, 0, 0.35);
}
.btn-shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: btn-sweep 4s infinite ease-in-out;
  pointer-events: none;
}
@keyframes btn-sweep {
  0%, 70% { left: -120%; }
  100% { left: 220%; }
}
.submit-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1.5px);
  box-shadow: 
    0 16px 30px -4px rgba(229, 169, 26, 0.52),
    0 6px 12px rgba(0, 0, 0, 0.45);
}
.submit-btn:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}
.submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}
.btn-content, .btn-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-content svg, .btn-spinner svg {
  stroke: #120d02;
}
.btn-content .profile-create-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: currentColor;
}
.spin {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Error Banner */
.error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: #fca5a5;
  margin-bottom: 16px;
  animation: shake 0.35s ease;
}
.error-banner svg {
  stroke: var(--error);
  flex-shrink: 0;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Success Screen Styles */
.success-hero {
  text-align: center;
  margin-bottom: 22px;
}
.success-ring-outer {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--success-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.22);
  position: relative;
}
.success-ring-inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.35) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-ring-inner svg {
  stroke: #34d399;
}
.success-hero h1 {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 6px;
}

/* Summary Certificate Table */
.summary-table {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  transition: border-color 0.2s ease;
}
.summary-row:hover {
  border-color: rgba(245, 197, 68, 0.2);
}
.summary-row-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
}
.summary-row-label svg {
  stroke: var(--gold-primary);
  width: 14px;
  height: 14px;
}
.summary-row strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  word-break: break-all;
  text-align: right;
  max-width: 62%;
}

/* Installation Guide Stepper */
.guide-box {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}
.guide-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #e2e8f0;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.guide-title svg {
  stroke: var(--gold-primary);
}
.guide-step {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}
.guide-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(245, 197, 68, 0.16);
  border: 1px solid rgba(245, 197, 68, 0.3);
  color: var(--gold-primary);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-step-body {
  flex: 1;
}
.guide-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 2px;
}
.guide-step-text {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}
.guide-step-text strong {
  color: var(--text-secondary);
}

/* Callout Tip */
.tip-callout {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-top: 14px;
  font-size: 12px;
  color: #93c5fd;
  line-height: 1.45;
}
.tip-callout svg {
  stroke: #60a5fa;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Premium Wallet Motion: one focal material, fast and quiet supporting feedback. */
:root {
  color-scheme: dark;
  --motion-out: cubic-bezier(.23, 1, .32, 1);
  --motion-surface: 220ms;
}
html.theme-light { color-scheme: light; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100svh;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
}
button, .input { touch-action: manipulation; }
.input { scroll-margin-block: 100px; }
.submit-btn, .input-action-btn, .theme-toggle-btn { -webkit-user-select: none; user-select: none; }
.theme-toggle-btn, .input {
  transition: background-color var(--motion-surface) ease,
    color var(--motion-surface) ease, border-color var(--motion-surface) ease;
}
.ambient-glow-top { animation: none; }
.pulse-dot { animation: none; box-shadow: 0 0 7px rgba(16, 185, 129, .35); }
.brand-pill .brand-icon {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.vip-card-shine, .btn-shimmer { animation: none; left: 0; transform: translateX(-250%) skewX(-20deg); }
.vip-card-shine { width: 60%; opacity: .7; }
.vip-preview-card {
  transform-style: preserve-3d;
  isolation: isolate;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.vip-card-header, .vip-card-body, .vip-card-footer { position: relative; z-index: 1; }
.wallet-light {
  position: absolute;
  inset: -55%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(255, 236, 185, .12), transparent 52%);
  transition: opacity 180ms ease;
}
.wallet-hover .wallet-light { opacity: 1; }
.vip-preview-card[data-resolving="true"] .vip-status-text { opacity: .7; }
.vip-tier-pill { animation: none; min-height: 22px; white-space: nowrap; }
.vip-tier-pill .tier-check { width: 11px; height: 11px; flex-shrink: 0; }
.vip-tier-pill .tier-check path { stroke-dasharray: 20; stroke-dashoffset: 0; }
.metric-value { font-variant-numeric: tabular-nums; }
.expiry-zone { display: block; margin-top: 3px; color: var(--text-muted); font-size: 10px; font-weight: 400; }
.since-bump { animation: none; }
.vip-avatar-img { transition: opacity 180ms ease; }
.submit-btn, .input-action-btn, .theme-toggle-btn {
  transition: transform 140ms var(--motion-out),
    background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.submit-btn:active, .input-action-btn:active, .theme-toggle-btn:active {
  transform: scale(.98);
  transition-duration: 90ms;
}
.submit-btn { min-height: 50px; }
.submit-btn .btn-spinner, .submit-btn .btn-content { position: relative; }
.submit-btn[aria-busy="true"] { cursor: progress; opacity: .9; }
.submit-btn[aria-busy="true"] .btn-shimmer { opacity: 0; }
.error-banner { animation: none; }
.theme-toggle-btn {
  min-height: 44px;
  min-width: 44px;
  width: fit-content;
  justify-content: center;
  align-items: center;
  padding: 0 13px;
  gap: 6px;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
}
.theme-toggle-btn svg { transform-origin: center; width: 16px; height: 16px; }
html.theme-dark .theme-toggle-btn .icon-sun { display: none; }
html.theme-dark .theme-toggle-btn .icon-moon { display: block; stroke: currentColor; }
html.theme-light .theme-toggle-btn .icon-sun { display: block; stroke: currentColor; }
html.theme-light .theme-toggle-btn .icon-moon { display: none; }
#themeToggleLabel {
  display: block;
  line-height: 16px;
  white-space: nowrap;
  transform: translateY(-.5px);
}
.theme-toggle-btn:focus:not(:focus-visible) { outline: none; }
.success-hero { position: relative; }
.success-ring-outer { isolation: isolate; }
.success-ring-outer::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, .3);
  opacity: 0;
  pointer-events: none;
}
.success-arrived .success-ring-outer::after { animation: wallet-success-wave 650ms var(--motion-out) 120ms both; }
.success-arrived .success-ring-inner path { animation: wallet-check-draw 360ms var(--motion-out) 100ms both; }
.wallet-success-card { margin-bottom: 24px; }
.wallet-success-card .vip-card-shine { opacity: .9; }
.wallet-success-card .vip-status-text { color: #9de8c9; }
html.theme-light .success-hero h1 { color: var(--text-main); }
html.theme-light .summary-row, html.theme-light .guide-step { background: #f8fafc; border-color: #e0e4eb; }
html.theme-light .summary-row strong, html.theme-light .guide-title,
html.theme-light .guide-step-title { color: var(--text-main); }
html.theme-light .guide-box { border-color: #e0e4eb; }
html.theme-light .tip-callout { color: #355779; background: #eef4fa; border-color: #d7e4f0; }
html.theme-light .success-ring-inner { background: #d8f3e8; }
html.theme-light .success-ring-inner svg { stroke: #147a55; }
@keyframes wallet-success-wave {
  0% { opacity: .65; transform: scale(.85); }
  100% { opacity: 0; transform: scale(1.65); }
}
@keyframes wallet-check-draw {
  from { stroke-dasharray: 32; stroke-dashoffset: 32; }
  to { stroke-dasharray: 32; stroke-dashoffset: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .submit-btn:hover { transform: translateY(-1px); }
  .theme-toggle-btn:hover { transform: translateY(-1px); }
}
@media (hover: none) {
  .submit-btn:hover, .theme-toggle-btn:hover { transform: none; }
  .theme-toggle-btn { min-width: 44px; min-height: 44px; }
  .input-action-btn { min-height: 44px; min-width: 58px; right: 4px; }
  .input { height: 54px; font-size: 16px; }
  .input::placeholder { font-size: 16px; }
  .input.has-action { padding-right: 72px; }
  /* Opaque mobile surfaces avoid compositing blur over a scrolling form. */
  .card { background: var(--bg-card-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .brand-pill, .theme-toggle-btn { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ambient-glow-top, .ambient-glow-bottom { filter: none; }
  .ambient-glow-top { opacity: .55; }
  .ambient-glow-bottom { opacity: .4; }
  .wallet-light { display: none; }
}
@supports (-webkit-touch-callout: none) {
  body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  }
  input[type="date"] { -webkit-appearance: auto; appearance: auto; min-width: 0; }
  input[type="date"]::-webkit-date-and-time-value { text-align: left; }
  .vip-preview-card { transform-style: flat; }
}
@media (prefers-reduced-transparency: reduce) {
  .card, .theme-toggle-btn { background: var(--bg-card-solid); backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vip-preview-card, .submit-btn, .theme-toggle-btn, .input-action-btn { transform: none !important; }
  .wallet-light, .vip-card-shine, .btn-shimmer, .success-ring-outer::after { display: none; }
  .success-ring-inner path { stroke-dashoffset: 0 !important; }
}

/* Snapshot crossfade avoids abrupt gradient changes; controls stay interactive. */
::view-transition { pointer-events: none; }
html.theme-transitioning *, html.theme-transitioning *::before, html.theme-transitioning *::after { transition: none !important; }
::view-transition-old(root) { animation: wallet-theme-out 220ms ease both; mix-blend-mode: normal; }
::view-transition-new(root) { animation: wallet-theme-in 220ms ease both; mix-blend-mode: normal; }
@keyframes wallet-theme-out { to { opacity: 0; } }
@keyframes wallet-theme-in { from { opacity: 0; } }

/* Touch material and FLIP have separate transform owners. */
.wallet-card-shell { position: relative; transform-origin: top left; }
.vip-preview-card {
  touch-action: pan-y pinch-zoom;
  transform: perspective(1000px) rotateX(var(--wallet-x, 0deg)) rotateY(var(--wallet-y, 0deg)) scale(var(--wallet-press, 1));
  transition: border-color 180ms ease;
}
.wallet-light {
  display: none; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(ellipse at center, rgba(255,235,190,.14), transparent 65%);
  transition: opacity 160ms ease;
}
.wallet-hover .wallet-light { opacity: 1; }
.vip-card-shine { width: 45%; opacity: .32; }
.submit-btn:active, .input-action-btn:active, .theme-toggle-btn:active { transform: scale(.985); }
#submitBtn { position: relative; }
#submitBtn .btn-spinner { position: absolute; inset: 0; align-items: center; justify-content: center; }
#submitBtn[aria-busy="true"] .btn-content { display: inline-flex !important; visibility: hidden; }
.field-error { min-height: 16px; margin: 5px 0 0; color: #ff9f9f; font-size: 12px; line-height: 1.5; }
.input[aria-invalid="true"] { border-color: #f08080; }
.vip-avatar { isolation: isolate; }
.vip-avatar.avatar-loading::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.25) 50%, transparent 80%);
  transform: translateX(-100%); animation: avatar-sweep 1400ms ease-in-out infinite;
}
@keyframes avatar-sweep { to { transform: translateX(100%); } }
.avatar-offscreen.avatar-loading::after, html[data-page-hidden="true"] .avatar-loading::after { animation-play-state: paused; }
.profile-download-dock {
  position: fixed; z-index: 30; bottom: 0; left: 50%; width: min(100%, 508px);
  transform: translate3d(-50%, 0, 0); box-sizing: border-box;
  padding: 12px max(14px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: rgba(16,21,34,.95); border-top: 1px solid rgba(255,237,194,.12);
  box-shadow: 0 -6px 24px -12px rgba(0,0,0,.3);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  border-radius: 22px 22px 0 0;
}
@media (hover: none) {
  .profile-download-dock {
    background: rgba(22, 22, 28, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  html.theme-light .profile-download-dock {
    background: rgba(255, 255, 255, 0.96);
  }
}
.profile-download-dock[hidden] { display: none; }
.profile-dock-button { min-height: 52px; font-size: 14px; border-radius: 14px; margin: 0; }
body.has-download-dock { padding-bottom: calc(106px + env(safe-area-inset-bottom)); }
html.theme-light .wallet-light { background: radial-gradient(ellipse at center, rgba(255,255,255,.38), transparent 65%); }
@media (hover: hover) and (pointer: fine) {
  .wallet-light { display: block; inset: -55%; border-radius: 0; background: radial-gradient(ellipse at center, rgba(255,236,185,.12), transparent 52%); }
  html.theme-light .wallet-light { background: radial-gradient(ellipse at center, rgba(255,255,255,.24), transparent 52%); }
}
html.theme-light .field-error { color: #b42332; }
html.theme-light .profile-download-dock { background: rgba(255,255,255,.95); border-top-color: #e5dfd1; box-shadow: 0 -6px 24px -12px rgba(29,29,31,.15); }
html.theme-light .profile-dock-button { min-height: 52px; font-size: 14px; }
html[data-motion-quality="balanced"] .profile-download-dock,
html[data-motion-quality="minimal"] .profile-download-dock { background: var(--bg-card-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
html.theme-light[data-motion-quality="balanced"] .profile-download-dock,
html.theme-light[data-motion-quality="minimal"] .profile-download-dock { background: #fff; }
html[data-motion-quality="minimal"] .wallet-light,
html[data-motion-quality="minimal"] .vip-card-shine,
html[data-motion-quality="minimal"] .btn-shimmer { display: none; }
html[data-motion-quality="minimal"] .avatar-loading::after { animation: none; transform: none; }
html[data-motion-quality="minimal"] .ios-demo-touch { display: none; }
html[data-motion-quality="minimal"] .success-arrived .success-ring-inner path { animation: none; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .profile-download-dock { background: var(--bg-card-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
  html.theme-light .profile-download-dock { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .wallet-light, .vip-card-shine, .btn-shimmer { display: none; }
  .avatar-loading::after { animation: none !important; transform: none; }
  .success-arrived .success-ring-inner path { animation: none; }
  .profile-download-dock { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

.ios-guide {
  position: relative;
  --demo-bg: #f2f2f7;
  --demo-ink: #16171c;
  --demo-muted: #686973;
  --demo-surface: #fff;
  --demo-blue: #007aff;
  margin: 12px 0 0;
  padding: 0;
}
.ios-guide-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.ios-guide-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: .09em; color: var(--gold-primary); }
.ios-guide-duration { font-size: 11px; color: var(--text-muted); }
.ios-guide-count { color: var(--gold-primary); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ios-guide-instruction { display: flex; align-items: flex-start; gap: 12px; padding: 20px 0 16px; min-height: var(--guide-instruction-height, 128px); }
.ios-guide-step-number { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: linear-gradient(135deg, #ffeab0, #e4b638); color: #3a2a07; font-size: 14px; font-weight: 750; box-shadow: 0 4px 9px -5px rgba(164, 121, 20, .45); }
.ios-guide-instruction h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.35; letter-spacing: -.02em; color: var(--text-main); }
.ios-guide-instruction p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.ios-guide-instruction strong { color: var(--text-secondary); font-weight: 650; }
.ios-guide-stage { position: relative; overflow: hidden; contain: layout style paint; border-radius: 18px; padding: 18px 0; background: radial-gradient(ellipse at 50% 20%, rgba(231, 188, 78, .13), transparent 65%), linear-gradient(150deg, #151d2c, #0c111c); }
html.theme-light .ios-guide-stage { background: radial-gradient(ellipse at 50% 20%, rgba(223, 186, 91, .18), transparent 65%), linear-gradient(150deg, #f4f1e9, #e9edf4); }
.ios-guide-tabs { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; gap: 3px; border-radius: 12px; background: rgba(128, 139, 158, .1); }
.ios-guide-tabs button {
  position: relative; z-index: 1; min-height: 44px; padding: 5px 3px; border: 0; border-radius: 9px;
  color: var(--text-muted); background: transparent; font-size: 11px; font-weight: 600;
  cursor: pointer; touch-action: manipulation;
  transition: color 160ms ease, background-color 160ms ease;
}
.ios-guide-tabs button[aria-selected="true"] { color: var(--gold-primary); }
.ios-guide-tab-indicator { position: absolute; inset: 0 auto auto 0; z-index: 0; pointer-events: none; border-radius: 9px; background: var(--bg-card-solid); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); transform-origin: top left; }
.ios-guide[data-plan="15s"] .ios-guide-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.ios-guide[data-plan="15s"] .ios-guide-tabs button { grid-column: span 2; white-space: nowrap; }
.ios-guide[data-plan="15s"] .ios-guide-tabs button:nth-last-child(-n+2) { grid-column: span 3; }
.ios-guide-tabs button:active { transform: scale(.98); }
.ios-demo-phone {
  container-type: inline-size;
  width: min(90%, 202px); aspect-ratio: 393 / 852;
  margin: 0 auto; position: relative; overflow: hidden;
  border: 4px solid #242933; border-radius: 32px; background: var(--demo-bg);
  box-shadow: 0 14px 26px -16px rgba(0, 0, 0, .45), inset 0 0 0 1px #ffffff;
  color: var(--demo-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 11px; font-weight: 400; line-height: 1.4;
  font-optical-sizing: auto; font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}
.ios-demo-status { height: 40px; padding: 0 13px; display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 650; }
.ios-demo-status > span:first-child { width: 38px; text-align: center; }
.ios-demo-status-icons { display: flex; align-items: center; gap: 2.5px; height: 12px; color: #16171c; }
.ios-demo-status-icons svg { display: block; flex-shrink: 0; }
.ios-demo-status-icons .ios-status-wifi { width: 13px; height: 9.5px; }
.ios-demo-status-icons .ios-status-battery { width: 22px; height: 10px; }
.ios-demo-status-icons .ios-status-signal { width: 14px; height: 10.5px; }
.ios-demo-island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 54px; height: 18px; border-radius: 20px; background: #17191e; }
@container (max-width: 180px) {
  .ios-demo-status { padding: 0 6.5cqw; font-size: 5cqw; }
  .ios-demo-status > span:first-child { width: 19cqw; }
  .ios-demo-status-icons { gap: 1.25cqw; }
  .ios-demo-status-icons .ios-status-signal { width: 7cqw; height: 5.25cqw; }
  .ios-demo-status-icons .ios-status-wifi { width: 6.5cqw; height: 4.75cqw; }
  .ios-demo-status-icons .ios-status-battery { width: 11cqw; height: 5cqw; }
  .ios-demo-island { width: 27cqw; height: 9cqw; top: calc(20px - 4.5cqw); }
}
.ios-demo-display { position: absolute; z-index: 2; top: 42px; bottom: 18px; left: 0; right: 0; overflow: hidden; }
.ios-demo-outgoing { position: absolute; z-index: 1; top: 42px; bottom: 18px; left: 0; right: 0; overflow: hidden; background: var(--demo-bg); pointer-events: none; }
.ios-demo-outgoing.is-home-screen { background: transparent; }
.ios-demo-home { position: absolute; bottom: 7px; left: 34%; width: 32%; height: 4px; border-radius: 4px; background: #202127; z-index: 4; }
.ios-demo-touch { position: absolute; top: 0; left: 0; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: rgba(213, 168, 47, .22); border: 2px solid #cc9f20; box-shadow: 0 0 0 5px rgba(213, 168, 47, .12); opacity: 0; pointer-events: none; z-index: 6; transform: translate3d(-100px, -100px, 0) scale(1); }
.ios-demo-nav { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(20px, auto) auto; align-items: center; gap: 3px 8px; min-height: 49px; padding: 0 10px 6px; font-size: 12px; position: relative; }
.ios-demo-nav b { grid-column: 1 / -1; grid-row: 2; font-size: 11px; line-height: 20px; text-align: center; overflow-wrap: anywhere; }
.ios-demo-back { color: var(--demo-blue); font-size: 9px; max-width: 58px; line-height: 1.2; }
.ios-demo-nav > .ios-demo-back:first-child { grid-column: 1; grid-row: 1; max-width: none; }
.ios-demo-nav > .ios-demo-back:last-child { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
.ios-demo-title { margin: 14px 16px 12px; font-size: 24px; font-weight: 750; letter-spacing: -.04em; }
.ios-demo-group { border-radius: 10px; margin: 12px; overflow: hidden; background: var(--demo-surface); }
.ios-demo-row { display: flex; align-items: center; min-height: 40px; padding: 9px 10px; gap: 8px; font-size: 11px; line-height: 1.35; position: relative; }
.ios-demo-row + .ios-demo-row { border-top: 1px solid #ececf0; }
.ios-demo-row > span:first-child { flex: 1; }
.ios-demo-chevron { color: #a0a1aa; font-size: 16px; }
.ios-demo-muted { color: var(--demo-muted); font-size: 9px; line-height: 1.5; margin: 10px 16px; }
.ios-demo-section { font-size: 9px; color: var(--demo-muted); margin: 18px 16px 0; text-transform: uppercase; letter-spacing: .025em; }
.ios-demo-switch { position: relative; display: block; box-sizing: border-box; width: 30px; height: 18px; border: 0; border-radius: 999px; padding: 0; background: #e3e3e9; flex-shrink: 0; transition: background-color 220ms cubic-bezier(.22, 1, .36, 1); }
.ios-demo-switch::after { content: ''; position: absolute; top: 2px; left: 2px; box-sizing: border-box; display: block; width: 14px; height: 14px; border: 0; border-radius: 50%; background: white; box-shadow: 0 1px 2px #0002; transform: translate3d(0, 0, 0); transition: transform 280ms cubic-bezier(.22, 1, .36, 1); }
.ios-demo-switch.is-on { background: #34c759; }
.ios-demo-switch.is-on::after { transform: translate3d(12px, 0, 0); }
.ios-demo-row, .ios-demo-download, .ios-demo-app-icon, .ios-demo-alert-actions span, .ios-demo-delete-action {
  transition: background-color 120ms ease, transform 140ms cubic-bezier(.22, 1, .36, 1), opacity 120ms ease;
}
.ios-demo-row.is-pressed { background-color: #e5e5ea; }
.ios-demo-download.is-pressed { transform: scale(.965); opacity: .88; }
.ios-demo-app.is-pressed .ios-demo-app-icon { transform: scale(.9); opacity: .85; }
.ios-demo-alert-actions span.is-pressed { background-color: rgba(0, 0, 0, .08); }
.ios-demo-nav > span.is-pressed, .ios-demo-store-download.is-pressed, .ios-demo-search.is-pressed { opacity: .45; }
.ios-demo-delete-action.is-pressed { background-color: rgba(213, 46, 37, .1); border-radius: 6px; }
.ios-demo-safari { margin: 0 12px; border-radius: 9px; background: #e6e6ec; padding: 8px; text-align: center; font-size: 10px; color: #525460; }
.ios-demo-site { padding: 25px 17px; text-align: center; }
.ios-demo-site-mark { width: 40px; height: 40px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 13px; background: #efc54b; color: #543b00; }
.ios-demo-site h3 { font-size: 17px; letter-spacing: -.025em; margin: 0 0 9px; }
.ios-demo-site p { font-size: 10px; color: #686973; line-height: 1.5; }
.ios-demo-download { margin-top: 19px; border-radius: 11px; padding: 12px 4px; background: #efc54b; color: #302400; font-size: 11px; font-weight: 650; }
.ios-demo-phone.is-home-screen { background: linear-gradient(155deg, #dbe5f1, #e7ddd1); }
.ios-demo-home-screen { height: 100%; padding: 28px 15px; background: transparent; }
.ios-demo-display.is-home-screen { background: transparent; }
.ios-demo-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 9px; }
.ios-demo-app { display: grid; justify-items: center; gap: 5px; font-size: 8px; color: #283344; }
.ios-demo-app-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }
.ios-demo-app-icon { overflow: hidden; flex-shrink: 0; }
.ios-demo-app-icon img, .ios-demo-site-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ios-demo-locket-icon { background: transparent; overflow: hidden; }
.ios-demo-settings-icon, .ios-demo-store-icon { background: transparent; }
.ios-demo-chevron svg { display: block; width: 12px; height: 12px; }
.ios-demo-back { display: inline-flex; align-items: center; gap: 2px; }
.ios-demo-back svg { width: 12px; height: 12px; flex-shrink: 0; }
.ios-demo-context-menu svg { width: 14px; height: 14px; flex-shrink: 0; }
.ios-guide-controls svg, .ios-guide-navigation svg { width: 16px; height: 16px; flex-shrink: 0; }
.ios-guide button, .ios-guide input, .ios-guide select, .ios-guide textarea { font-family: inherit; }
.ios-demo-context-menu { position: absolute; left: 15px; right: 15px; top: 104px; padding: 4px 10px; border-radius: 10px; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 18px -8px rgba(20, 30, 45, .28); }
.ios-demo-context-menu > div { display: flex; align-items: center; justify-content: space-between; min-height: 34px; gap: 8px; font-size: 10px; }
.ios-demo-context-menu > div + div { border-top: 1px solid #dddfe4; }
.ios-demo-delete-action { color: #d52e25; }
.ios-demo-store-header { padding: 12px 13px 0; font-size: 22px; line-height: 1.3; font-weight: 750; }
.ios-demo-search { margin: 12px; padding: 8px 10px; border-radius: 9px; background: #e6e6ec; color: #525460; font-size: 10px; }
.ios-demo-store-result { display: flex; align-items: center; gap: 8px; margin: 18px 12px; }
.ios-demo-store-info { flex: 1; min-width: 0; }
.ios-demo-store-info b { display: block; font-size: 10px; line-height: 1.5; }
.ios-demo-store-info small { color: var(--demo-muted); font-size: 8px; }
.ios-demo-store-download { min-width: 25px; color: var(--demo-blue); font-size: 10px; font-weight: 650; text-align: center; }
.ios-demo-download-progress { display: block; width: 20px; height: 20px; margin: auto; }
.ios-demo-store-open { display: inline-block; min-width: 30px; padding: 4px 6px; border-radius: 10px; background: #007aff; color: white; }
.ios-demo-complete-icon { width: 44px; height: 44px; display: grid; place-items: center; margin: 8px auto 20px; border-radius: 50%; background: #d6f3e7; color: #16835c; }
.ios-demo-scrim { position: absolute; inset: -42px 0 -18px; z-index: 3; background: rgba(20, 22, 29, .28); display: grid; place-items: center; padding: 16px; isolation: isolate; }
.ios-demo-alert { position: relative; z-index: 1; width: 100%; border-radius: 14px; background: rgb(242, 242, 247); color: #16171c; opacity: 1; text-align: center; overflow: hidden; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .3); }
.ios-demo-display.has-scrim { overflow: visible; }
@keyframes ios-demo-scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ios-demo-alert-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
@keyframes ios-demo-menu-in { from { opacity: 0; transform: translate3d(0, -6px, 0) scale(.92); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
.ios-demo-scrim.is-entering { animation: ios-demo-scrim-in 170ms ease both; }
.ios-demo-scrim.is-entering .ios-demo-alert { animation: ios-demo-alert-in 260ms cubic-bezier(.22, 1, .36, 1) both; }
.ios-demo-context-menu.is-entering { animation: ios-demo-menu-in 240ms cubic-bezier(.22, 1, .36, 1) both; }
.ios-demo-alert h4 { font-size: 13px; margin: 17px 13px 7px; line-height: 1.4; }
.ios-demo-alert p { font-size: 10px; margin: 0 14px 15px; line-height: 1.5; }
.ios-demo-alert-actions { display: flex; border-top: 1px solid #d5d5dd; color: #007aff; font-size: 13px; }
.ios-demo-alert-actions span { padding: 11px 5px; flex: 1; }
.ios-demo-alert-actions span + span { border-left: 1px solid #d5d5dd; font-weight: 650; }
.ios-demo-profile { text-align: center; padding: 20px 12px 6px; }
.ios-demo-profile-icon { margin: auto auto 9px; width: 44px; height: 44px; background: #e0e6f0; border-radius: 10px; display: grid; place-items: center; color: #4b607c; }
.ios-demo-profile b { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.ios-demo-passcode { display: flex; justify-content: center; gap: 13px; padding: 25px; }
.ios-demo-passcode i { width: 9px; height: 9px; border: 1px solid #555; border-radius: 50%; background: #555; }
.ios-demo-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; width: min(132px, calc(100% - 36px)); margin: 0 auto; padding: 5px 0; justify-items: center; }
.ios-demo-keypad span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 34px; max-width: 100%; aspect-ratio: 1; background: white; border-radius: 50%; padding: 0; }
.ios-demo-keypad b { font-size: 19px; font-weight: 400; line-height: 1; font-variant-numeric: lining-nums; }
.ios-demo-keypad small { height: 5px; font-size: 5px; font-weight: 500; line-height: 1; letter-spacing: .08em; }
.ios-demo-keypad .ios-demo-keypad-empty { background: transparent; }
.ios-guide-caption { min-height: 62px; padding: 14px 6px 0; font-size: 11px; line-height: 1.5; color: var(--text-muted); text-align: center; }
.ios-guide-caption b { display: block; color: var(--text-main); margin-bottom: 2px; }
.ios-guide-progress { height: 3px; border-radius: 3px; overflow: hidden; background: rgba(128, 139, 158, .16); margin: 12px 0 8px; }
.ios-guide-progress span { display: block; height: 100%; background: var(--gold-primary); transform: scaleX(0); transform-origin: left; }
.ios-guide-controls { display: flex; justify-content: space-between; align-items: center; gap: 5px; }
.ios-guide-controls button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; padding: 0 4px; font-size: 12px; cursor: pointer; color: var(--text-muted); touch-action: manipulation; }
.ios-guide-controls .ios-guide-play { color: var(--gold-primary); font-weight: 650; }
.ios-guide-controls button:active { transform: scale(.98); }
.ios-guide-note { font-size: 10px; color: var(--text-muted); line-height: 1.5; margin: 8px 0 0; }
.ios-scene-dots {
  order: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 4px 0;
}
.ios-scene-dot {
  position: relative;
  width: 22px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
}
.ios-scene-dot::before {
  content: '';
  position: absolute;
  inset: -6px -2px;
}
.ios-scene-dot::after {
  content: '';
  width: 18px;
  height: 6px;
  border-radius: 999px;
  background: var(--border-strong, rgba(26, 18, 0, 0.18));
  transform: scaleX(0.38);
  transition: transform 240ms cubic-bezier(.22, 1, .36, 1), background-color 180ms ease;
}
.ios-scene-dot.active::after {
  transform: scaleX(1);
  background: var(--locket-amber, #FFB800);
}
.ios-demo-switcher {
  position: relative;
  height: 100%;
  padding: 18px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(24, 24, 30, 0.14) 0%, rgba(24, 24, 30, 0.05) 100%);
  overflow: hidden;
}
.ios-demo-switcher-card {
  width: 118px;
  border-radius: 16px;
  background: var(--bg-card-solid, #fff);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: ios-demo-swipe-up 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.ios-demo-switcher-head {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-main);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.ios-demo-switcher-head img {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: block;
}
.ios-demo-switcher-body {
  height: 112px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #FFF7DF 0%, #FFE599 100%);
  color: #8F5E00;
}
.ios-demo-switcher-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.18);
  border: 1px solid rgba(217, 144, 0, 0.45);
  color: var(--gold-ink, #8F5E00);
  font-size: 9.5px;
  font-weight: 850;
}
@keyframes ios-demo-swipe-up {
  0%, 22% { transform: translate3d(0, 10px, 0) scale(1); opacity: 1; }
  62% { transform: translate3d(0, -48px, 0) scale(0.92); opacity: 0.18; }
  68%, 100% { transform: translate3d(0, 10px, 0) scale(1); opacity: 1; }
}
html[data-page-hidden="true"] .ios-demo-switcher-card,
.ios-guide[data-visible="false"] .ios-demo-switcher-card,
.ios-guide[data-running="false"] .ios-demo-switcher-card {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .ios-demo-switcher-card,
  .ios-demo-scrim.is-entering,
  .ios-demo-scrim.is-entering .ios-demo-alert,
  .ios-demo-context-menu.is-entering { animation: none; }
  .ios-demo-switch, .ios-demo-switch::after, .ios-scene-dot::after { transition: none; }
}
.guide-title { text-transform: none; letter-spacing: -.015em; font-size: 16px; }
.ios-guide button:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ios-demo-touch { display: none; } }
.plan-setup-guide { margin: 24px 0; padding: 20px 0; border-block: 1px solid var(--border-card); }
.plan-setup-guide[hidden] { display: none; }
.plan-setup-guide h2 { margin: 0 0 8px; color: var(--text-main); font-size: 18px; line-height: 1.4; letter-spacing: -.02em; }
.plan-setup-intro { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.plan-setup-steps { margin: 18px 0; padding-left: 24px; }
.plan-setup-steps li { padding-left: 5px; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.plan-setup-steps li + li { margin-top: 16px; }
.plan-setup-steps li::marker { color: var(--gold-primary); font-weight: 700; }
.plan-setup-steps li > strong { color: var(--text-main); font-size: 14px; }
.plan-setup-steps p { margin: 4px 0 0; }
.plan-setup-steps a { color: var(--gold-primary); text-decoration: underline; text-underline-offset: 3px; }
.plan-setup-steps a:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 3px; border-radius: 2px; }
.plan-setup-note { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }

.ios-guide-stage { touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.ios-demo-display { background: var(--demo-bg); }
.ios-demo-buffer { pointer-events: none; z-index: 3; }
.ios-guide-navigation { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ios-guide[data-enhanced="true"] .ios-guide-navigation { display: flex; }
.ios-guide-navigation button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 100px; padding: 8px 13px;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-main); background: var(--bg-card-solid); border: 1px solid var(--border-card); border-radius: 12px;
  touch-action: manipulation; transition: opacity 160ms ease, transform 120ms ease;
}
.ios-guide-navigation button:disabled { opacity: .38; }
.ios-guide-navigation button:active:not(:disabled) { transform: scale(.985); }
.ios-guide-navigation button:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 3px; }
html.theme-light .ios-guide-navigation button { background: #fff; border-color: #e4e4e8; }
@media (prefers-reduced-motion: reduce) {
  .ios-guide-navigation button { transition: opacity 100ms ease; }
  .ios-guide-navigation button:active:not(:disabled) { transform: none; }
}

/* Platinum light palette. Shared geometry keeps theme changes stationary. */
html.theme-light {
  --bg-deep: #f5f5f7;
  --bg-card: #fff;
  --bg-card-solid: #fff;
  --text-main: #1d1d1f;
  --text-secondary: #424245;
  --text-muted: #68686d;
  --text-faint: #68686d;
  --gold-primary: #896319;
  --input-bg: #f5f5f7;
  --input-border: #e6e6e9;
}
html.theme-light body { background: #f5f5f7; padding-top: 36px; }
html.theme-light .ambient-mesh,
html.theme-light [class*="ambient-glow"],
html.theme-light .card-ambient-glow { display: none; }
html.theme-light .container { max-width: 480px; }
html.theme-light .top-nav-bar { margin-bottom: 24px; }
html.theme-light .brand-pill { background: transparent; border: 0; padding-left: 0; box-shadow: none; color: #57534c; letter-spacing: .06em; }
html.theme-light .theme-toggle-btn { background: #fff; border: 1px solid #e4e4e8; box-shadow: none; }
html.theme-light .header h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.035em; }
html.theme-light .header .subtitle { max-width: 36ch; margin-inline: auto; font-size: 15px; line-height: 1.6; }
html.theme-light .gold-gradient-text { color: #896319; -webkit-text-fill-color: #896319; }
html.theme-light .trust-chips { gap: 12px; margin-top: 18px; }
html.theme-light .trust-chip { background: none; border: 0; padding: 0; font-size: 11px; color: #57575c; }
html.theme-light .card { padding: 25px; border: 1px solid transparent; border-radius: 26px; background: #fff; box-shadow: 0 12px 36px -16px rgba(29,29,31,.15); }
html.theme-light .vip-preview-card {
  --gold-primary: #896319;
  --text-muted: #6e6358;
  --text-faint: #6e6358;
  --text-secondary: #433b31;
  padding: 20px;
  margin-bottom: 28px;
  border: 1px solid #dfd2b8;
  border-radius: 19px;
  background: linear-gradient(120deg, #fffefb 0%, #f6f2e9 55%, #eee7d8 100%);
  box-shadow: none;
}
html.theme-light .vip-name { color: #2c2822; font-size: 18px; }
html.theme-light .vip-status-text { color: #6e6358; font-size: 12px; }
html.theme-light .by-tag { color: #726758; background: rgba(255,255,255,.6); border-color: #e0d6c3; }
html.theme-light .vip-tier-pill { color: #795911; background: #f7edce; border-color: #ddc793; box-shadow: none; }
html.theme-light .vip-tier-pill.tier-5s { color: #29558c; background: #eaf2ff; border-color: #c7daf2; }
html.theme-light .vip-card-footer { border-color: #ddd4c6; padding-top: 12px; }
html.theme-light .metric-label { color: #6e6358; font-size: 10px; }
html.theme-light .metric-value { color: #2c2822; font-size: 13px; }
html.theme-light .vip-preview-card .status-active { color: #087654; }
html.theme-light .vip-avatar { width: 47px; height: 47px; background: linear-gradient(135deg,#f4dfa3,#d8b35f); box-shadow: none; }
html.theme-light .label { color: #424245; font-size: 13px; font-weight: 600; }
html.theme-light .input { height: 55px; font-size: 16px; border: 1px solid #e6e6e9; border-radius: 14px; color: #1d1d1f; background: #f5f5f7; }
html.theme-light .input::placeholder { font-size: 14px; color: #6c6c72; }
html.theme-light .input-action-btn { color: #575757; background: #fff; border-color: #e2e2e5; border-radius: 10px; }
html.theme-light .hint { font-size: 12px; line-height: 1.6; color: #68686d; }
html.theme-light .submit-btn { min-height: 56px; border-radius: 15px; font-size: 15px; color: #2c2413; background: linear-gradient(110deg,#f3dfab,#e4c579); box-shadow: none; }
html.theme-light .submit-btn:hover { box-shadow: 0 5px 14px -8px rgba(126,91,26,.3); }
html.theme-light .footer { color: #68686d; }
html.theme-light .summary-row { background: #f5f5f7; border-color: transparent; }
html.theme-light .summary-row-label { color: #68686d; }
html.theme-light .summary-row strong { color: #1d1d1f; }
html.theme-light .summary-row:hover { border-color: #dedee3; }
html.theme-light .tip-callout { color: #375678; background: #edf3fa; border-color: #dce6f0; font-size: 14px; line-height: 1.6; }
html.theme-light .tip-callout svg { stroke: #375678; }
html.theme-light .plan-setup-steps li, html.theme-light .plan-setup-intro { font-size: 14px; }
html.theme-light .plan-setup-note { font-size: 13px; }
html.theme-light .input:focus { background: #fff; border-color: #896319; box-shadow: 0 0 0 3px rgba(137,99,25,.12); }
html.theme-light .input-action-btn:hover { background: #eeeef1; border-color: #d6d6dc; }
html.theme-light .error-banner { color: #b42332; }
html.theme-light .input:focus-visible, html.theme-light button:focus-visible { outline: 2px solid #896319; outline-offset: 3px; }
html.theme-light ::selection { background: #ead5a3; color: #2c2413; }
html.theme-light .input { caret-color: #896319; }
html.theme-light .ios-guide-stage { background: #f0f0f3; }
html.theme-light .ios-guide-instruction p { font-size: 14px; line-height: 1.6; }
html.theme-light .ios-guide-instruction h3 { font-size: 16px; }
html.theme-light .ios-guide-caption { font-size: 12px; }
html.theme-light .ios-guide-note { font-size: 12px; }
@media(max-width: 480px) {
  html.theme-light body { padding-top: max(20px, env(safe-area-inset-top)); }
  html.theme-light .top-nav-bar { margin-bottom: 23px; }
  html.theme-light .header h1 { font-size: 29px; }
  html.theme-light .trust-chips { gap: 9px; }
  html.theme-light .trust-chip { font-size: 10.5px; }
  html.theme-light .card { padding: 20px; border-radius: 24px; }
  html.theme-light .vip-preview-card { padding: 17px; }
}
@media(max-width: 360px) {
  .vip-card-header .by-tag { display: none; }
}

/* Both appearances share dimensions; only material and color change. */
body { padding-top: max(36px, env(safe-area-inset-top)); }
.container { max-width: 480px; }
.top-nav-bar { margin-bottom: 24px; }
.header h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.035em; }
.header p.subtitle { max-width: 36ch; margin-inline: auto; font-size: 15px; line-height: 1.6; }
.trust-chips { gap: 12px; margin-top: 18px; }
.trust-chip { background: none; border: 0; padding: 0; font-size: 11px; }
.brand-pill { border: 0; background: transparent; padding-left: 0; box-shadow: none; }
.card { padding: 25px; border-radius: 26px; }
.vip-preview-card { padding: 20px; margin-bottom: 28px; border-radius: 19px; }
.vip-card-header { min-height: 23px; }
.vip-name { font-size: 18px; }
.vip-status-text { font-size: 12px; }
.vip-card-footer { padding-top: 12px; }
.metric-label { font-size: 10px; }
.metric-value { font-size: 13px; }
.vip-avatar { width: 47px; height: 47px; }
.label { font-size: 13px; font-weight: 600; }
.input { height: 55px; font-size: 16px; border-radius: 14px; }
.input::placeholder { font-size: 14px; }
.hint { font-size: 12px; line-height: 1.6; }
.submit-btn { min-height: 56px; border-radius: 15px; font-size: 15px; }
.ios-guide-instruction p { font-size: 14px; line-height: 1.6; }
.ios-guide-instruction h3 { font-size: 16px; }
.ios-guide-caption, .ios-guide-note { font-size: 12px; }
@media(max-width: 480px) {
  body { padding-top: max(20px, env(safe-area-inset-top)); }
  .top-nav-bar { margin-bottom: 23px; }
  .header h1 { font-size: 29px; }
  .trust-chips { gap: 9px; }
  .trust-chip { font-size: 10.5px; }
  .card { padding: 20px; border-radius: 24px; }
  .vip-preview-card { padding: 17px; }
}

.safety-page .top-nav-bar { gap: 12px; margin-bottom: 28px; }
.safety-page .brand-pill { white-space: normal; font-size: 10px; line-height: 1.5; letter-spacing: .05em; }
.safety-page .theme-toggle-btn { flex-shrink: 0; min-height: 44px; min-width: 72px; }
.card.safari-card { padding: 30px 26px 25px; }
.safety-symbol { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; border: 1px solid var(--border-gold-subtle); border-radius: 20px; color: var(--gold-primary); background: linear-gradient(135deg,rgba(245,197,68,.14),rgba(245,197,68,.03)); }
.safety-symbol svg { width: 31px; height: 31px; }
.safari-card h1 { max-width: 15ch; margin-bottom: 14px; color: var(--text-main); font-size: 29px; line-height: 1.23; letter-spacing: -.04em; text-wrap: balance; }
.safety-intro { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.safety-neutral-note { display: flex; align-items: flex-start; gap: 9px; padding: 14px; margin: 20px 0; border-radius: 14px; background: var(--input-bg); border: 1px solid var(--input-border); color: var(--text-secondary); font-size: 12px; line-height: 1.65; }
.safety-neutral-note svg { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; color: var(--gold-primary); }
.safari-steps { list-style: none; counter-reset: safari; display: grid; gap: 15px; margin: 24px 0; }
.safari-steps li { display: flex; align-items: flex-start; gap: 11px; counter-increment: safari; font-size: 13px; line-height: 1.65; color: var(--text-secondary); }
.safari-steps li::before { content: counter(safari); flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--border-gold-subtle); border-radius: 8px; font-size: 11px; color: var(--gold-primary); }
.safety-address-label { display: block; margin-bottom: 9px; font-size: 12px; color: var(--text-muted); }
.safety-address.input { font-size: 14px; margin-bottom: 12px; }
.safety-button { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid transparent; border-radius: 14px; font-family: inherit; font-size: 14px; line-height: 1.5; font-weight: 600; cursor: pointer; text-decoration: none; touch-action: manipulation; transition: transform .18s ease; }
.safety-button svg { width: 18px; height: 18px; flex-shrink: 0; }
.safety-primary { color: #2c2413; background: linear-gradient(110deg,#f3dfab,#e4c579); }
.safety-secondary { color: var(--text-secondary); background: var(--input-bg); border-color: var(--input-border); margin-top: 10px; }
.safety-button:disabled { cursor: not-allowed; opacity: .5; }
.safety-button:not(:disabled):active { transform: scale(.98); }
.safety-button:focus-visible, .download-ack-label:has(input:focus-visible), .safety-recover:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 3px; }
.safety-small, .safety-copy-status { margin-top: 12px; color: var(--text-muted); font-size: 12px; line-height: 1.65; }
.safety-copy-status { min-height: 40px; }
.download-dialog { width: min(440px,calc(100% - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: 26px; border: 1px solid var(--border-gold-subtle); border-radius: 25px; color: var(--text-main); background: var(--bg-card-solid); box-shadow: var(--card-shadow); overflow-y: auto; overscroll-behavior: contain; }
.download-dialog[open] { animation: dlnd-dialog-in 240ms cubic-bezier(.22,1,.36,1) both; }
.download-dialog::backdrop { background: rgba(12,10,6,.58); animation: dlnd-backdrop-in 180ms ease both; }
@keyframes dlnd-dialog-in { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.97); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes dlnd-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  .download-dialog::backdrop { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
.download-dialog h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.25; letter-spacing: -.035em; color: var(--text-main); }
.download-dialog > p { font-size: 14px; line-height: 1.65; color: var(--text-secondary); }
.download-dialog > .safety-small { font-size: 12px; color: var(--text-muted); }
.download-checklist { margin: 18px 0; padding-left: 18px; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
.download-checklist li + li { margin-top: 9px; }
.download-ack-label { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 14px; margin: 18px 0; border: 1px solid var(--input-border); border-radius: 13px; background: var(--input-bg); color: var(--text-main); font-size: 13px; line-height: 1.65; cursor: pointer; }
.download-ack-label input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--gold-primary); }
.download-ack-inline { margin-bottom: 18px; }
.download-ack-inline p { color: var(--text-secondary); font-size: 13px; line-height: 1.65; }
.download-ack-inline .download-ack-label { margin-bottom: 0; }
.safety-enhanced .download-ack-inline { display: none; }
.pending-session { margin: 20px 0; padding: 14px; border-radius: 14px; background: var(--input-bg); border: 1px solid var(--input-border); }
.pending-session strong { display: block; color: var(--text-main); font-size: 13px; line-height: 1.6; }
.pending-session p { margin-top: 5px; color: var(--text-muted); font-size: 12px; line-height: 1.65; }
.safety-recover { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-primary); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.activation-recover { margin-top: 12px; }
[hidden] { display: none !important; }
@media(max-width: 360px) { .card.safari-card { padding: 25px 20px; } .safari-card h1 { font-size: 26px; } .download-dialog { padding: 22px 18px; } .download-dialog h2 { font-size: 22px; } .safety-button { font-size: 13px; } }
@media(prefers-reduced-motion: reduce) { .safety-button { transition: none; } }

/* Locket.com Unified Design System + iOS Liquid Glass Materials (v9 Production) */
@font-face {
  font-family: "LocketRounded";
  src: url("/personal-dns/assets/Nunito-vietnamese.61e5958cf3c7.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "LocketRounded";
  src: url("/personal-dns/assets/Nunito-latin-ext.2c8d79286981.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "LocketRounded";
  src: url("/personal-dns/assets/Nunito-latin.ba344451eab2.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root,
html.theme-light {
  color-scheme: light;
  --font-locket: ui-rounded, "SF Pro Rounded", "LocketRounded", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-deep: #FFFBF1;
  --bg-page: #FFFBF1;
  --bg-dot: rgba(26, 18, 0, 0.05);
  --bg-card: #FFFFFF;
  --bg-card-solid: #FFFFFF;
  --bg-well: #F6F1E4;
  --bg-well-hover: #EFE7D4;
  --bg-active-gold: #FFF2CC;
  --border-card: rgba(26, 18, 0, 0.085);
  --border-strong: rgba(26, 18, 0, 0.14);
  --border-gold: rgba(217, 144, 0, 0.45);
  --border-gold-subtle: rgba(217, 144, 0, 0.38);
  --locket-amber: #FFB800;
  --gold-primary: #9A6500;
  --gold-ink: #8F5E00;
  --cta-ink: #1A1200;
  --text-main: #1A1200;
  --text-secondary: #544936;
  --text-muted: #7C705C;
  --text-faint: #7C705C;
  --input-bg: #F6F1E4;
  --input-border: transparent;
  --input-focus-border: #FFB800;
  --input-focus-ring: rgba(255, 184, 0, 0.18);
  --emerald: #0B875B;
  --emerald-bg: #EAF8F2;
  --emerald-border: rgba(11, 135, 91, 0.25);
  --success: #0B875B;
  --success-bg: #EAF8F2;
  --success-border: rgba(11, 135, 91, 0.25);
  --danger: #D92D20;
  --error: #D92D20;
  --error-bg: rgba(217, 45, 32, 0.08);
  --error-border: rgba(217, 45, 32, 0.28);
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 250, 238, 0.66) 100%);
  --glass-border: rgba(255, 255, 255, 0.88);
  --glass-outer-ring: rgba(138, 92, 0, 0.12);
  --glass-shadow:
    0 12px 32px -10px rgba(74, 48, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(217, 144, 0, 0.14);
  --glass-pill-active: linear-gradient(180deg, #FFD043 0%, #FFB800 100%);
  --card-shadow: 0 18px 46px -14px rgba(84, 58, 0, 0.12), 0 2px 6px rgba(26, 18, 0, 0.04);
  --shadow-cta: 0 10px 24px -8px rgba(217, 144, 0, 0.52);
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
}

html.theme-dark {
  color-scheme: dark;
  --bg-deep: #0B0B0E;
  --bg-page: #0B0B0E;
  --bg-dot: rgba(255, 255, 255, 0.045);
  --bg-card: #16161C;
  --bg-card-solid: #16161C;
  --bg-well: #202028;
  --bg-well-hover: #292933;
  --bg-active-gold: rgba(255, 184, 0, 0.15);
  --border-card: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-gold: rgba(255, 184, 0, 0.42);
  --border-gold-subtle: rgba(255, 184, 0, 0.36);
  --locket-amber: #FFB800;
  --gold-primary: #FFC857;
  --gold-ink: #FFC857;
  --cta-ink: #1A1200;
  --text-main: #F7F7FA;
  --text-secondary: #C8C8D4;
  --text-muted: #9393A5;
  --text-faint: #9393A5;
  --input-bg: #202028;
  --input-border: rgba(255, 255, 255, 0.06);
  --input-focus-border: #FFB800;
  --input-focus-ring: rgba(255, 184, 0, 0.2);
  --emerald: #34D399;
  --emerald-bg: rgba(16, 185, 129, 0.13);
  --emerald-border: rgba(52, 211, 153, 0.28);
  --success: #34D399;
  --success-bg: rgba(16, 185, 129, 0.13);
  --success-border: rgba(52, 211, 153, 0.28);
  --danger: #F87171;
  --error: #F87171;
  --error-bg: rgba(248, 113, 113, 0.12);
  --error-border: rgba(248, 113, 113, 0.3);
  --glass-bg: linear-gradient(180deg, rgba(38, 38, 48, 0.78) 0%, rgba(22, 22, 29, 0.68) 100%);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-outer-ring: rgba(0, 0, 0, 0.45);
  --glass-shadow:
    0 14px 36px -10px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 184, 0, 0.12);
  --glass-pill-active: linear-gradient(180deg, #FFD043 0%, #FFB800 100%);
  --card-shadow: 0 22px 54px -14px rgba(0, 0, 0, 0.65);
  --shadow-cta: 0 12px 28px -8px rgba(255, 184, 0, 0.36);
}

html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
}
html { scroll-padding-top: 96px; -webkit-tap-highlight-color: transparent; }
button, a, label, summary, input, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.card, .smart-step-card, .ios-sim-card { contain: layout style; }
:is(button, a, input, summary):focus-visible {
  outline: 2.5px solid var(--locket-amber);
  outline-offset: 2px;
}

body,
html.theme-light body {
  font-family: var(--font-locket) !important;
  background-color: var(--bg-page) !important;
  background-image:
    radial-gradient(ellipse 90% 400px at 50% -110px, rgba(255, 184, 0, 0.22), transparent 68%),
    radial-gradient(var(--bg-dot) 1.15px, transparent 1.15px) !important;
  background-size: 100% 100%, 22px 22px !important;
  color: var(--text-main) !important;
  display: block !important;
  padding: max(12px, env(safe-area-inset-top)) 14px calc(32px + env(safe-area-inset-bottom)) !important;
}
body.has-profile-download,
html.theme-light body.has-profile-download {
  padding-bottom: calc(108px + env(safe-area-inset-bottom)) !important;
}
html.theme-dark body {
  background-image:
    radial-gradient(ellipse 85% 360px at 50% -120px, rgba(255, 184, 0, 0.13), transparent 68%),
    radial-gradient(var(--bg-dot) 1.15px, transparent 1.15px) !important;
}
.bg-ambient,
.card-ambient-glow { display: none !important; }

.container,
html.theme-light .container {
  width: 100%;
  max-width: 468px !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 1;
}

/* LIQUID GLASS REUSABLE CAPSULE (tuned to Apple WebKit 120Hz CoreAnimation budget) */
.liquid-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 0 0 1px var(--glass-outer-ring);
}

/* FLOATING LIQUID GLASS MINI PASS */
.sticky-mini-pass {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  transform: translate3d(-50%, -18px, 0) scale(0.96);
  width: min(444px, calc(100% - 24px));
  z-index: 50;
  padding: 7px 11px 7px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.26s var(--spring), visibility 0s linear 0.2s;
}
.sticky-mini-pass.visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, 0, 0) scale(1);
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.26s var(--spring), visibility 0s;
}
html.kb-open .sticky-mini-pass { display: none !important; }
.mini-pass-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mini-pass-av {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFD24C, #FFB800);
  color: #1A1200;
  font-size: 13px;
  font-weight: 900;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.mini-pass-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-pass-text { min-width: 0; }
.mini-pass-user {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-pass-meta { font-size: 11px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.mini-pass-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-active-gold);
  border: 1px solid var(--border-gold);
  color: var(--gold-ink);
  font-size: 10.5px;
  font-weight: 850;
  white-space: nowrap;
  flex-shrink: 0;
}

/* SHARED LIQUID GLASS TOP BAR */
.top-nav-bar,
html.theme-light .top-nav-bar,
.safety-page .top-nav-bar,
.issued-portal .top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px !important;
  padding: 0 !important;
}
.brand-pill,
html.theme-light .brand-pill,
.safety-page .brand-pill,
.issued-portal .brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 6px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 850 !important;
  letter-spacing: 0.03em !important;
  color: var(--text-main) !important;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow), 0 0 0 1px var(--glass-outer-ring) !important;
  white-space: nowrap !important;
  flex-shrink: 0;
  line-height: 1.2 !important;
  text-transform: uppercase;
}
.brand-pill img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
}
.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pill-btn,
.theme-toggle-btn,
html.theme-light .theme-toggle-btn,
.safety-page .theme-toggle-btn,
.issued-portal .theme-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-height: 38px !important;
  min-width: 0 !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(170%) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow), 0 0 0 1px var(--glass-outer-ring) !important;
  color: var(--text-secondary) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  white-space: nowrap !important;
  cursor: pointer;
  transition: transform 0.15s var(--spring), background-color 0.15s ease;
}
.pill-btn:active,
.theme-toggle-btn:active { transform: scale(0.95); }

/* HERO + LIQUID GLASS 3-STEP JOURNEY BAR */
.header,
html.theme-light .header {
  text-align: center;
  margin-bottom: 14px !important;
}
.header h1,
html.theme-light .header h1,
.success-hero h1 {
  font-size: 29px !important;
  font-weight: 900 !important;
  line-height: 1.16 !important;
  letter-spacing: -0.03em !important;
  color: var(--text-main) !important;
  margin-bottom: 5px !important;
  text-wrap: balance;
}
.gold-gradient-text,
html.theme-light .gold-gradient-text,
.brand-gold-word {
  background: none !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: #D48800 !important;
}
html.theme-dark .gold-gradient-text,
html.theme-dark .brand-gold-word {
  color: #FFC84A !important;
}
.header p.subtitle,
html.theme-light .header p.subtitle {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  max-width: 36ch !important;
  margin: 0 auto !important;
  line-height: 1.48 !important;
  text-wrap: balance;
}
.success-hero { margin-bottom: 0 !important; }
.success-ring-outer { display: none !important; }

.journey-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 12px auto 0;
  padding: 4px;
  border-radius: 999px;
}
.j-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  padding: 6px 6px;
  border-radius: 999px;
  white-space: nowrap;
  min-width: 0;
}
.j-step.active { background: var(--bg-active-gold); color: var(--text-main); }
.j-step.done { color: var(--emerald); }
.j-num {
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--bg-well);
  color: var(--text-muted);
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
}
.j-step.active .j-num { background: var(--locket-amber); color: var(--cta-ink); }
.j-step.done .j-num { background: var(--emerald-bg); color: var(--emerald); }

/* MAIN CARD */
.card,
html.theme-light .card,
.card.safari-card,
.card.issued-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: 26px !important;
  padding: 18px !important;
  box-shadow: var(--card-shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}

/* LIVE WARM LOCKET PASS CARD */
.vip-preview-card,
html.theme-light .vip-preview-card {
  border-radius: 21px !important;
  padding: 15px 16px !important;
  margin-bottom: 16px !important;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 144, 0, 0.34) !important;
  background: linear-gradient(145deg, #FFFDF5 0%, #FFF4D4 58%, #FFE8A3 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 26px -14px rgba(176, 114, 0, 0.3) !important;
}
html.theme-dark .vip-preview-card {
  border-color: rgba(255, 184, 0, 0.3) !important;
  background: linear-gradient(145deg, #252014 0%, #191713 60%, #141316 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 214, 102, 0.2), 0 14px 30px -12px rgba(0, 0, 0, 0.72) !important;
}
.vip-card-header { margin-bottom: 11px !important; min-height: 24px; gap: 6px; flex-wrap: nowrap; }
.vip-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
  color: var(--text-main) !important;
  white-space: nowrap !important;
  flex-shrink: 0;
}
.pass-heart-badge {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--locket-amber);
  color: #1A1200;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.vip-tier-pill,
html.theme-light .vip-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  background: rgba(26, 18, 0, 0.07) !important;
  border: 1px solid transparent !important;
  color: var(--text-secondary) !important;
  box-shadow: none !important;
}
html.theme-dark .vip-tier-pill {
  background: rgba(255, 255, 255, 0.09) !important;
  color: var(--text-secondary) !important;
}
.vip-tier-pill.tier-30s,
html.theme-light .vip-tier-pill.tier-30s {
  background: var(--locket-amber) !important;
  color: #1A1200 !important;
  border-color: transparent !important;
}
.vip-tier-pill.tier-15s,
html.theme-light .vip-tier-pill.tier-15s {
  background: linear-gradient(135deg, #FFE082, #FFB800) !important;
  color: #1A1200 !important;
  border-color: transparent !important;
}
.vip-tier-pill.tier-5s,
html.theme-light .vip-tier-pill.tier-5s {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
}
.vip-tier-pill.tier-trial,
html.theme-light .vip-tier-pill.tier-trial {
  background: linear-gradient(135deg, #FFE484 0%, #FFB800 100%) !important;
  color: #1A1200 !important;
  border: 1px solid rgba(154, 101, 0, 0.28) !important;
  box-shadow: 0 3px 10px -4px rgba(217, 144, 0, 0.45) !important;
}
html.theme-dark .vip-tier-pill.tier-trial {
  background: linear-gradient(135deg, #FFD45A 0%, #FFB000 100%) !important;
  color: #1A1200 !important;
  border-color: rgba(255, 212, 90, 0.45) !important;
}
.pass-warranty-line.is-trial {
  color: var(--gold-ink);
}
html.theme-dark .pass-warranty-line.is-trial {
  color: #FCD34D;
}
.vip-tier-pill .tier-check { width: 12px; height: 12px; }

.vip-card-body { margin-bottom: 12px !important; gap: 12px !important; }
.vip-avatar,
html.theme-light .vip-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #FFD24C 0%, #FFB800 100%) !important;
  color: #1A1200 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 5px 14px -5px rgba(176, 114, 0, 0.42) !important;
}
html.theme-dark .vip-avatar { border-color: rgba(255, 184, 0, 0.35); }
.vip-name,
html.theme-light .vip-name {
  font-size: 16.5px !important;
  font-weight: 900 !important;
  color: var(--text-main) !important;
}
.vip-verified { display: none; color: var(--emerald); }
.vip-verified.is-shown { display: inline-flex; }
.vip-status-text,
html.theme-light .vip-status-text {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  margin-top: 2px !important;
}
.vip-card-footer,
html.theme-light .vip-card-footer {
  padding-top: 10px !important;
  border-top: 1px solid rgba(26, 18, 0, 0.08) !important;
}
html.theme-dark .vip-card-footer { border-top-color: rgba(255, 255, 255, 0.08) !important; }
.metric-label,
html.theme-light .metric-label {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  color: var(--text-muted) !important;
}
.metric-value,
html.theme-light .metric-value {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: var(--text-main) !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pass-date-sub { font-weight: 700; color: var(--text-secondary); font-size: 12px; }
.pass-warranty-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold-ink);
  letter-spacing: 0.01em;
  line-height: 1.3;
}
html.theme-dark .pass-warranty-line { color: #FDE68A; }
.pass-warranty-line svg { width: 12.5px; height: 12.5px; flex-shrink: 0; }
.metric-value.status-active,
html.theme-light .vip-preview-card .status-active { color: var(--emerald) !important; }
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

/* FORM FIELDS */
.field { margin-bottom: 15px !important; }
.label,
html.theme-light .label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
}
.label-left { display: inline-flex; align-items: center; gap: 6px; }
.step-dot {
  width: 21px;
  height: 21px;
  border-radius: 8px;
  background: var(--bg-active-gold);
  border: 1px solid var(--border-gold);
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 900;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--spring);
}
.step-dot.is-done {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #FFFFFF;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  white-space: nowrap;
}
.live-badge.muted {
  background: var(--bg-well);
  color: var(--text-muted);
  border-color: transparent;
}

.input,
html.theme-light .input {
  height: 50px !important;
  padding: 0 14px !important;
  border-radius: 15px !important;
  background: var(--bg-well) !important;
  border: 1.5px solid transparent !important;
  color: var(--text-main) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
.input:focus,
html.theme-light .input:focus {
  background: var(--bg-card) !important;
  border-color: var(--locket-amber) !important;
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.18) !important;
}
.input::placeholder,
html.theme-light .input::placeholder { color: var(--text-muted) !important; font-weight: 600; font-size: 14px !important; }
.input.has-action,
html.theme-light .input.has-action { padding-right: 92px !important; }
.input.has-prefix,
html.theme-light .input.has-prefix { padding-left: 34px !important; }
.input-prefix { left: 14px !important; font-size: 16px !important; font-weight: 850 !important; color: var(--gold-ink) !important; }
.input-action-btn,
html.theme-light .input-action-btn {
  right: 6px !important;
  height: 38px !important;
  padding: 0 11px !important;
  border-radius: 11px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  color: var(--text-main) !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
}
.input-action-btn.is-pasted {
  background: var(--emerald-bg) !important;
  border-color: var(--emerald-border) !important;
  color: var(--emerald) !important;
}

.hint,
html.theme-light .hint {
  display: block !important;
  margin-top: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
  line-height: 1.48 !important;
}
.field-error {
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--danger);
  line-height: 1.45;
}
.field-error:empty { display: none; }

/* POPULAR YEAR STRIP */
.year-strip-label {
  font-size: 11.5px;
  font-weight: 750;
  color: var(--text-muted);
  margin: 8px 0 6px;
}
.year-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}
.year-chip {
  height: 36px;
  padding: 0 4px;
  border-radius: 11px;
  background: var(--bg-well);
  border: 1.5px solid transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s var(--spring), background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.year-chip.active {
  background: var(--bg-active-gold);
  border-color: var(--locket-amber);
  color: var(--text-main);
}
.year-chip:active { transform: scale(0.95); }

.soft-details { margin-top: 8px; }
.soft-details summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-ink);
  cursor: pointer;
}
.soft-details summary::-webkit-details-marker { display: none; }
.details-summary-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.details-summary-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.details-summary-left svg { flex-shrink: 0; }
.details-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.22s var(--spring), color 0.15s ease;
}
.soft-details[open] > summary .details-chevron {
  transform: rotate(180deg);
  color: var(--gold-ink);
}
.soft-details-box {
  padding: 10px 13px;
  border-radius: 15px;
  background: var(--bg-well);
  border: 1px solid var(--border-card);
}
.soft-details-box > summary {
  color: var(--text-secondary);
  font-size: 12.5px;
}
.soft-details-box .soft-details-body {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
}
.soft-details[open] > .soft-details-body,
.soft-details[open] > .issued-sim-body {
  animation: dlnd-details-in 200ms var(--spring) both;
}
@keyframes dlnd-details-in {
  from { opacity: 0; transform: translate3d(0, -4px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.soft-details-body {
  margin-top: 7px;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--bg-well);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.55;
}

[hidden] { display: none !important; }

/* PRIMARY & SECONDARY BUTTONS */
.submit-btn,
html.theme-light .submit-btn,
.safety-button.safety-primary:not([hidden]),
.issued-guide > summary {
  width: 100%;
  min-height: 52px !important;
  height: auto !important;
  padding: 12px 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--locket-amber) !important;
  color: var(--cta-ink) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: var(--shadow-cta) !important;
}
.submit-btn .btn-shimmer { display: none !important; }
.submit-btn:active:not(:disabled),
.safety-button:not(:disabled):active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.48 !important; box-shadow: none !important; }

.safety-button.safety-secondary,
.issued-action.issued-new {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-height: 46px !important;
  padding: 10px 16px !important;
  border-radius: 15px !important;
  background: var(--bg-well) !important;
  border: 1px solid var(--border-card) !important;
  color: var(--text-main) !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  cursor: pointer;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 13px;
  margin-top: 14px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.trust-item svg { color: var(--gold-ink); flex-shrink: 0; }

/* READY SCREEN COMPONENTS */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: -4px 0 13px;
}
.feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-well);
  border: 1px solid var(--border-card);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-secondary);
}
.feat-pill svg { color: var(--gold-ink); flex-shrink: 0; }

.pending-session {
  margin: 0 0 13px !important;
  padding: 11px 13px !important;
  border-radius: 15px !important;
  background: var(--bg-well) !important;
  border: 1px solid var(--border-card) !important;
}
.pending-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.timer-pill-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  color: var(--text-secondary);
}
.timer-clock { font-variant-numeric: tabular-nums; font-weight: 900; color: var(--gold-ink); font-size: 13px; }
.pending-session p { margin-top: 4px !important; font-size: 11.5px !important; color: var(--text-muted) !important; line-height: 1.48 !important; }
.safety-recover { min-height: 32px !important; font-size: 12px !important; font-weight: 800 !important; color: var(--gold-ink) !important; margin-top: 4px; }

.smart-step-card {
  border-radius: 19px;
  padding: 15px;
  background: var(--bg-well);
  border: 1.5px solid var(--border-card);
  margin-bottom: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.22s var(--spring);
}
.smart-step-card.is-priority {
  background: var(--bg-active-gold);
  border-color: var(--border-gold);
}
.smart-step-card.is-done {
  background: var(--emerald-bg);
  border-color: var(--emerald-border);
  padding: 11px 14px;
}
.smart-step-head { display: flex; align-items: flex-start; gap: 10px; }
.smart-num {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--locket-amber);
  color: var(--cta-ink);
  font-size: 12.5px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.smart-step-card.is-done .smart-num { background: var(--emerald); color: #FFFFFF; }
.smart-step-title { font-size: 14.5px; font-weight: 850; color: var(--text-main); line-height: 1.3; }
.smart-step-desc { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }
.smart-step-card.is-done .smart-step-head,
.smart-step-card.is-done .step-confirm-btn,
.smart-step-card.is-done .plan-setup-steps { display: none; }
.done-inline-bar { display: none; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.smart-step-card.is-done .done-inline-bar { display: flex; }
.done-undo-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--emerald-border);
  background: var(--bg-card);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.step-confirm-btn {
  margin-top: 11px;
  width: 100%;
  min-height: 45px;
  padding: 9px 12px;
  border-radius: 13px;
  border: 1.5px solid var(--border-gold);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}
.step-confirm-btn:active { transform: scale(0.98); }
.jump-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.jump-guide-link:hover { text-decoration: underline; }

.plan-setup-guide { margin: 0 0 12px !important; padding: 15px !important; border-radius: 19px !important; background: var(--bg-active-gold) !important; border: 1.5px solid var(--border-gold) !important; }
.plan-setup-guide.is-done { background: var(--emerald-bg) !important; border-color: var(--emerald-border) !important; padding: 11px 14px !important; }
.plan-setup-guide.is-done > :not(.done-inline-bar) { display: none !important; }
.plan-setup-guide.is-done .done-inline-bar { display: flex !important; }
.plan-setup-guide h2 { font-size: 14.5px !important; font-weight: 850 !important; color: var(--text-main) !important; margin-bottom: 4px !important; }
.plan-setup-intro, .plan-setup-steps li, .plan-setup-note { font-size: 12.5px !important; color: var(--text-secondary) !important; line-height: 1.5 !important; }
.plan-setup-steps { margin: 8px 0 4px 18px !important; display: grid; gap: 5px; }
.plan-setup-steps a { color: var(--gold-ink); font-weight: 800; }
.plan-setup-note { margin-top: 8px !important; font-size: 12px !important; color: var(--text-muted) !important; }

/* DOWNLOAD CONFIRM DIALOG */
.download-dialog {
  background: var(--bg-card-solid) !important;
  border: 1px solid var(--border-gold) !important;
  border-radius: 26px !important;
  color: var(--text-main) !important;
}
.download-dialog h2 { font-size: 21px !important; font-weight: 900 !important; color: var(--text-main) !important; }
.download-ack-label {
  background: var(--bg-well) !important;
  border: 1.5px solid var(--border-card) !important;
  border-radius: 14px !important;
  color: var(--text-main) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}
.download-ack-label input { accent-color: #FFB800 !important; }

/* ISSUED SCREEN + 8-MINUTE COUNTDOWN + LIQUID GLASS VIEW SWITCHER */
.issued-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 18px;
  background: var(--emerald-bg);
  border: 1.5px solid var(--emerald-border);
  margin-bottom: 12px;
}
.issued-check-orb {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--emerald);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.issued-banner h2 { font-size: 15.5px; font-weight: 900; color: var(--text-main); line-height: 1.25; }
.issued-banner p { font-size: 12px; font-weight: 650; color: var(--text-secondary); margin-top: 3px; line-height: 1.45; }
.issued-banner-copy { min-width: 0; flex: 1; }
.issued-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.issued-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--emerald-border);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.issued-substeps {
  margin: 6px 0 0;
  padding-left: 17px;
  display: grid;
  gap: 5px;
}
.issued-substeps li {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.52;
}
.issued-substeps li strong {
  color: var(--text-main);
  font-weight: 850;
}
.issued-primary-action {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}
.issued-countdown-pill.is-expired {
  background: var(--error-bg);
  border-color: var(--error-border);
}
.issued-countdown-pill.is-expired .timer-clock {
  color: var(--error);
}
.issued-countdown-pill.is-verified {
  background: var(--emerald-bg);
  border-color: var(--emerald-border);
}
.issued-countdown-pill.is-verified .timer-pill-left,
.issued-countdown-pill.is-verified .timer-clock {
  color: var(--emerald);
}
.code-collapsed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 15px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
}
.code-collapsed-info {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 850;
  color: var(--emerald);
  min-width: 0;
}
.issued-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 12px;
}
.issued-progress-meta {
  flex: 1 1 130px;
  min-width: 120px;
}
.issued-progress-text {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.issued-progress-track {
  height: 5px;
  border-radius: 999px;
  background: var(--bg-well);
  overflow: hidden;
}
.issued-progress-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--emerald);
  transform-origin: left center;
  transition: transform 0.32s var(--spring);
}
.ios-lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-well);
  border: 1px solid var(--border-card);
  gap: 2px;
}
.ios-lang-btn {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.ios-lang-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(26, 18, 0, 0.1);
}
.issued-check-step {
  border: 1.5px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.issued-check-step.is-step-active {
  background: var(--bg-active-gold);
  border-color: var(--border-gold);
}
.issued-check-step.is-step-done {
  background: var(--emerald-bg);
  border-color: var(--emerald-border);
  align-items: center;
}
.issued-check-step.is-step-done .fast-step-num {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #FFFFFF;
}
.issued-check-step.is-step-done .issued-step-content {
  display: none;
}
.issued-step-body {
  min-width: 0;
  flex: 1;
}
.issued-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.issued-step-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 10px;
}
.step-check-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border-gold);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.14s var(--spring);
}
.step-check-btn:active { transform: scale(0.96); }
.step-sim-jump {
  border: 0;
  background: transparent;
  color: var(--gold-ink);
  font-size: 11.5px;
  font-weight: 800;
  min-height: 38px;
  padding: 0 6px;
  white-space: nowrap;
  cursor: pointer;
}
.step-reopen-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--emerald-border);
  background: var(--bg-card);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.issued-complete-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 13px;
  border-radius: 16px;
  background: var(--emerald-bg);
  border: 1.5px solid var(--emerald-border);
}
.issued-complete-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--emerald);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.issued-complete-banner strong {
  display: block;
  font-size: 13.5px;
  font-weight: 900;
  color: var(--text-main);
}
.issued-complete-banner span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.45;
}
.issued-stuck-card {
  margin: 0 0 12px;
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--error-bg);
  border: 1.5px solid var(--error-border);
  display: grid;
  gap: 8px;
}
.issued-stuck-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--error);
  font-size: 13.5px;
  font-weight: 900;
}
.issued-stuck-card p {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.issued-support-btn.is-copied {
  background: var(--emerald-bg) !important;
  border-color: var(--emerald-border) !important;
  color: var(--emerald) !important;
}
.issued-assist-card {
  margin: 0 0 12px;
  padding: 12px 13px;
  border-radius: 16px;
  background: var(--bg-active-gold);
  border: 1.5px solid var(--border-gold);
  display: grid;
  gap: 7px;
}
.issued-assist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.issued-assist-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
}
.issued-assist-close {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 6px;
  flex-shrink: 0;
}
.issued-assist-card p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
}
.issued-assist-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.issued-sim-details {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 16px;
  background: var(--bg-well);
  border: 1px solid var(--border-card);
}
.issued-sim-details summary {
  width: 100%;
  min-height: 30px;
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 850;
}
.issued-sim-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-card);
}
.issued-new-wrap {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-card);
  text-align: center;
}
.issued-new-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.14s var(--spring);
}
.issued-new-subtle:active { transform: scale(0.97); }
.issued-leave-dialog {
  padding: 20px !important;
  max-width: 400px;
  width: calc(100% - 28px);
}
.issued-leave-dialog p {
  margin: 8px 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.55;
}
.issued-leave-dialog .download-dialog-actions {
  display: grid;
  gap: 8px;
}

.issued-countdown-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 13px;
  background: var(--bg-active-gold);
  border: 1px solid var(--border-gold);
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 750;
  color: var(--text-main);
}
.issued-custom-promo {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: 16px 15px 15px;
  border-radius: 22px;
  background:
    radial-gradient(95% 85% at 100% 0%, rgba(255, 192, 32, 0.28) 0%, rgba(255, 214, 102, 0.08) 48%, transparent 72%),
    linear-gradient(155deg, #FFFFFF 0%, #FFFBF0 48%, #FFF2CC 100%);
  border: 1px solid rgba(217, 144, 0, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 28px -14px rgba(176, 114, 0, 0.28);
  color: var(--text-main);
}
html.theme-dark .issued-custom-promo {
  background:
    radial-gradient(95% 85% at 100% 0%, rgba(255, 192, 32, 0.2) 0%, rgba(255, 184, 0, 0.05) 50%, transparent 74%),
    linear-gradient(150deg, #272115 0%, #1B1814 58%, #151419 100%);
  border-color: rgba(255, 196, 46, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 224, 130, 0.22),
    0 14px 32px -12px rgba(0, 0, 0, 0.72);
}
.custom-promo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.custom-promo-emblem {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #FFD866 0%, #FFB800 62%, #F29F05 100%);
  color: #1A1200;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow:
    0 8px 18px -6px rgba(217, 144, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.custom-promo-spark {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #D98A00;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(138, 92, 0, 0.26);
}
html.theme-dark .custom-promo-spark {
  background: #231E14;
  color: #FFD666;
  border: 1px solid rgba(255, 204, 68, 0.35);
}
.custom-promo-heading {
  min-width: 0;
  flex: 1;
}
.custom-promo-eyebrow {
  font-size: 11px;
  font-weight: 850;
  color: var(--gold-ink);
  line-height: 1.25;
  margin-bottom: 2px;
}
.custom-promo-title {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}
.custom-promo-desc {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 12px;
}
.custom-promo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 13px;
}
.custom-promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(217, 144, 0, 0.22);
  box-shadow: 0 1px 2px rgba(138, 92, 0, 0.06);
  color: #3A2C12;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.1;
}
.custom-promo-chip svg {
  color: #C77D00;
  flex-shrink: 0;
}
html.theme-dark .custom-promo-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 196, 46, 0.2);
  box-shadow: none;
  color: rgba(247, 244, 236, 0.92);
}
html.theme-dark .custom-promo-chip svg {
  color: #FFCA3A;
}
.custom-promo-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.custom-promo-open,
.custom-promo-copy {
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.14s var(--spring), filter 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.custom-promo-open {
  background: linear-gradient(180deg, #FFD34E 0%, #FFB800 100%);
  border: 1px solid rgba(196, 132, 0, 0.34);
  color: #1A1200;
  box-shadow:
    0 8px 20px -8px rgba(217, 144, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}
.custom-promo-open:hover { filter: brightness(1.04); }
.custom-promo-copy {
  background: #FFFFFF;
  border: 1px solid rgba(26, 18, 0, 0.12);
  color: #1A1200;
  box-shadow:
    0 2px 6px rgba(84, 58, 0, 0.08),
    inset 0 1px 0 #FFFFFF;
}
.custom-promo-copy:hover {
  background: #FFFDF7;
  border-color: rgba(217, 144, 0, 0.35);
}
html.theme-dark .custom-promo-copy {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  color: #F5F2EA;
  box-shadow: none;
}
html.theme-dark .custom-promo-copy:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}
.custom-promo-copy.is-copied,
html.theme-dark .custom-promo-copy.is-copied {
  background: var(--emerald-bg);
  border-color: var(--emerald-border);
  color: var(--emerald);
  box-shadow: none;
}
.custom-promo-open:active,
.custom-promo-copy:active { transform: scale(0.97); }
.custom-promo-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(154, 101, 0, 0.14);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.5;
}
html.theme-dark .custom-promo-note {
  border-top-color: rgba(255, 255, 255, 0.09);
}
.custom-promo-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold-ink);
}
.custom-promo-note strong {
  color: var(--text-main);
  font-weight: 800;
}
.custom-promo-code {
  display: inline-block;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(255, 184, 0, 0.18);
  border: 1px solid rgba(217, 144, 0, 0.28);
  color: #8A5800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
html.theme-dark .custom-promo-code {
  background: rgba(255, 184, 0, 0.14);
  border-color: rgba(255, 200, 61, 0.26);
  color: #FFD666;
}
.issued-mode-seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.issued-seg-btn {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
}
.issued-seg-btn.active {
  background: var(--glass-pill-active);
  color: #1A1200;
  box-shadow: 0 4px 12px -4px rgba(217, 144, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.fast-steps { display: grid; gap: 8px; margin-bottom: 12px; }
.fast-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--bg-well);
}
.fast-step-num {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--bg-active-gold);
  border: 1px solid var(--border-gold);
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.fast-step b { display: block; font-size: 13px; font-weight: 850; color: var(--text-main); }
.fast-step > div > span { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-top: 2px; line-height: 1.48; }
.fast-step b span,
.fast-step li span,
.fast-step button span { display: inline; font: inherit; color: inherit; margin: 0; }

.safe-reassure {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 15px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: var(--emerald);
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.45;
}
.safe-reassure svg { flex-shrink: 0; }
.inapp-visual {
  padding: 13px;
  border-radius: 16px;
  background: var(--bg-well);
  border: 1px solid var(--border-card);
  margin-bottom: 14px;
}
.inapp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  gap: 8px;
}
.inapp-dots-highlight {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-active-gold);
  border: 1.5px solid var(--locket-amber);
  color: var(--gold-ink);
  font-weight: 900;
  font-size: 11px;
  white-space: nowrap;
}

/* REDESIGNED COMPACT MOBILE IOS-GUIDE WITH LIQUID GLASS MEDIA DECK */
.guide-box {
  margin-top: 16px !important;
  border-top: 1px solid var(--border-card) !important;
  padding-top: 14px !important;
}
.guide-title {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: var(--text-main) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin-bottom: 10px !important;
}
.ios-guide {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.ios-guide-header { order: 1; margin-bottom: 6px !important; }
.ios-guide-eyebrow { font-size: 11px !important; font-weight: 800; color: var(--text-muted) !important; }
.ios-guide-count { font-size: 11px !important; font-weight: 900; color: var(--gold-ink) !important; }
.ios-guide-tabs {
  order: 2;
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(0, 1fr) !important;
  gap: 2px !important;
  padding: 3px !important;
  margin-bottom: 8px !important;
  border-radius: 13px !important;
  background: var(--bg-well) !important;
  border: 1px solid var(--border-card) !important;
  overflow: hidden !important;
}
.ios-guide-tabs button {
  min-height: 38px !important;
  padding: 4px 2px !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
  border-radius: 10px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: var(--text-secondary) !important;
}
.ios-guide-tabs button[aria-selected="true"] { color: var(--text-main) !important; }
.ios-guide-tab-indicator {
  border-radius: 10px !important;
  background: var(--bg-card) !important;
  box-shadow: 0 2px 6px rgba(26, 18, 0, 0.1) !important;
}
.ios-guide-panel { display: contents !important; }
.ios-guide-instruction {
  order: 3;
  min-height: var(--guide-instruction-height, 68px) !important;
  padding: 2px 2px 8px !important;
  gap: 9px !important;
}
.ios-guide-step-number {
  width: 24px !important;
  height: 24px !important;
  border-radius: 8px !important;
  background: var(--locket-amber) !important;
  color: var(--cta-ink) !important;
  border: 0 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}
.ios-guide-instruction h3,
html.theme-light .ios-guide-instruction h3 {
  font-size: 13.5px !important;
  font-weight: 850 !important;
  color: var(--text-main) !important;
  margin-bottom: 2px !important;
}
.ios-guide-instruction p,
html.theme-light .ios-guide-instruction p {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  line-height: 1.45 !important;
}

.ios-player-dock {
  order: 4;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 42px 42px;
  align-items: center;
  gap: 6px;
  padding: 5px;
  margin-bottom: 8px;
  border-radius: 999px;
}
.ios-guide[data-enhanced="true"] .ios-player-dock .ios-guide-controls,
.ios-guide[data-enhanced="true"] .ios-player-dock .ios-guide-navigation,
.ios-player-dock .ios-guide-controls,
.ios-player-dock .ios-guide-navigation {
  display: contents !important;
  margin: 0 !important;
}
.ios-player-dock .ios-guide-controls button,
.ios-player-dock .ios-guide-navigation button,
html.theme-light .ios-player-dock .ios-guide-navigation button {
  min-width: 0 !important;
  min-height: 40px !important;
  height: 40px !important;
  width: 100% !important;
  border-radius: 999px !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer;
  background: var(--bg-well) !important;
  color: var(--text-main) !important;
}
.ios-player-dock .ios-guide-navigation [data-guide-previous] { grid-column: 1; grid-row: 1; }
.ios-player-dock .ios-guide-controls [data-guide-play] {
  grid-column: 2;
  grid-row: 1;
  padding: 0 14px !important;
  background: var(--glass-pill-active) !important;
  color: #1A1200 !important;
  font-size: 12.5px !important;
  font-weight: 850 !important;
  box-shadow: 0 4px 12px -4px rgba(217, 144, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}
.ios-player-dock .ios-guide-controls [data-guide-replay] { grid-column: 3; grid-row: 1; color: var(--text-secondary) !important; }
.ios-player-dock .ios-guide-navigation [data-guide-next] { grid-column: 4; grid-row: 1; }
.ios-player-dock [data-guide-previous] span,
.ios-player-dock [data-guide-next] span,
.ios-player-dock [data-guide-replay] span { display: none !important; }

.ios-guide-progress {
  order: 5;
  height: 3.5px !important;
  border-radius: 999px !important;
  margin: 0 4px 7px !important;
  background: var(--bg-well) !important;
}
.ios-guide-progress span { background: var(--locket-amber) !important; border-radius: 999px; }

/* KEEP NATIVE 202px iPHONE GEOMETRY INTACT SO TOUCH DOTS NEVER DRIFT */
.ios-guide-stage,
html.theme-light .ios-guide-stage {
  order: 6;
  border-radius: 20px !important;
  padding: 14px 0 !important;
  background: radial-gradient(ellipse at 50% 18%, rgba(255, 184, 0, 0.2), transparent 68%), #F5EFE2 !important;
}
html.theme-dark .ios-guide-stage {
  background: radial-gradient(ellipse at 50% 18%, rgba(255, 184, 0, 0.16), transparent 68%), #101016 !important;
}
.ios-demo-phone { width: min(90%, 202px) !important; border-width: 4px !important; border-radius: 32px !important; }
.ios-guide-caption { order: 7; min-height: 36px !important; padding: 7px 4px 0 !important; font-size: 11.5px !important; line-height: 1.38 !important; }
.ios-guide-note { order: 8; font-size: 10.5px !important; text-align: center !important; margin-top: 6px !important; }

/* QUICK HELP SHEET MODAL */
html.modal-open, body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}
body.modal-open {
  position: fixed !important;
  left: 0;
  right: 0;
  width: 100%;
}
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 6, 0.56);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  z-index: 80;
  touch-action: none;
  overscroll-behavior: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0s linear 0.28s;
}
@media (hover: hover) and (pointer: fine) {
  .modal-bg {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}
.modal-bg.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0s;
}
.modal-sheet {
  width: 100%;
  max-width: 440px;
  max-height: 86vh;
  max-height: 86dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 18px;
  box-shadow: 0 26px 60px -16px rgba(0, 0, 0, 0.4);
  overscroll-behavior: contain;
  touch-action: pan-y;
  transform: translate3d(0, 28px, 0) scale(0.98);
  opacity: 0;
  transition: transform 0.28s var(--spring), opacity 0.2s ease;
}
.modal-bg.open .modal-sheet {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

/* GPU-NATIVE 120Hz SVG SPOTLIGHT WALKTHROUGH LAYER (visual-viewport unified coords, zero 9999px shadow) */
.wl-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 95;
  display: block;
  contain: layout style;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.wl-layer.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0s;
}
.wl-scrim { position: absolute; inset: 0; pointer-events: none; background: transparent; }
.wl-scrim-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.wl-scrim-path { fill: rgba(14, 11, 4, 0.62); pointer-events: none; }
.wl-layer.open .wl-scrim-path { pointer-events: auto; }
html.theme-dark .wl-scrim-path { fill: rgba(0, 0, 0, 0.76); }
.wl-ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 20px;
  box-shadow:
    0 0 0 2.5px var(--locket-amber),
    0 10px 26px -8px rgba(255, 184, 0, 0.45);
  pointer-events: none;
  transition: opacity 0.16s ease;
}
html.theme-dark .wl-ring {
  box-shadow:
    0 0 0 2.5px var(--locket-amber),
    0 10px 28px -8px rgba(255, 184, 0, 0.38);
}
.wl-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(420px, max(0px, calc(100% - 16px)));
  max-width: 100%;
  max-height: calc(100% - 16px);
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px;
  border-radius: 22px;
  pointer-events: none;
  z-index: 98;
  transform: translate3d(-50%, 0, 0);
}
.wl-layer.open .wl-card { pointer-events: auto; }
.wl-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.wl-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-active-gold);
  border: 1px solid var(--border-gold);
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 850;
}
.wl-skip {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 10px;
}
.wl-title { font-size: 15.5px; font-weight: 900; color: var(--text-main); line-height: 1.3; margin-bottom: 5px; }
.wl-body { font-size: 13px; font-weight: 600; color: var(--text-secondary); line-height: 1.5; margin-bottom: 13px; }
.wl-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wl-dots { display: inline-flex; align-items: center; gap: 2px; }
.wl-dot {
  width: 16px;
  height: 6px;
  border-radius: 999px;
  background: var(--border-strong);
  transform: scaleX(0.375);
  transform-origin: center;
  transition: transform 0.22s var(--spring), background-color 0.18s ease;
}
.wl-dot.active {
  transform: scaleX(1);
  background: var(--locket-amber);
}
.wl-actions { display: inline-flex; align-items: center; gap: 8px; }
.wl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--border-card);
  background: var(--bg-well);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.wl-btn.primary {
  border: 0;
  background: var(--glass-pill-active);
  color: #1A1200;
  box-shadow: 0 4px 12px -4px rgba(217, 144, 0, 0.55);
}
.wl-btn:active { transform: scale(0.96); }

/* 48h Free Trial Surfaces (synced with dlnd.store/dung-thu warm buttercream & obsidian) */
.trial-info-card {
  margin: 0 0 16px;
  padding: 14px 15px;
  border-radius: 18px;
  background: var(--bg-active-gold);
  border: 1.5px solid var(--border-gold);
  box-shadow: 0 8px 22px -12px rgba(154, 101, 0, 0.18);
}
html.theme-dark .trial-info-card {
  background: rgba(255, 184, 0, 0.09);
  border-color: rgba(255, 184, 0, 0.34);
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.55);
}
.trial-info-card[hidden] { display: none !important; }
.trial-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.trial-info-badge,
.trial-issued-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}
html.theme-dark .trial-info-badge,
html.theme-dark .trial-issued-badge {
  background: rgba(22, 22, 28, 0.9);
  color: #FCD34D;
  border-color: rgba(255, 184, 0, 0.35);
}
.trial-info-title {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0 0 9px;
  letter-spacing: -0.015em;
}
.trial-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.trial-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.48;
  color: var(--text-secondary);
}
.trial-info-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold-ink);
}
html.theme-dark .trial-info-list li svg { color: #FFC857; }
.trial-info-list li strong {
  color: var(--text-main);
  font-weight: 850;
}

.trial-ready-callout {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  padding: 12px 13px;
  border-radius: 15px;
  background: var(--bg-active-gold);
  border: 1px solid var(--border-gold);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-secondary);
}
html.theme-dark .trial-ready-callout {
  background: rgba(255, 184, 0, 0.09);
  border-color: rgba(255, 184, 0, 0.3);
}
.trial-ready-callout svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold-ink);
}
html.theme-dark .trial-ready-callout svg { color: #FFC857; }
.trial-ready-callout strong { color: var(--text-main); font-weight: 850; }
.trial-ready-callout a {
  color: var(--gold-ink);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}
html.theme-dark .trial-ready-callout a { color: #FCD34D; }

.trial-issued-card {
  margin: 12px 0;
  padding: 14px 15px;
  border-radius: 18px;
  background: var(--bg-active-gold);
  border: 1.5px solid var(--border-gold);
  display: grid;
  gap: 9px;
}
html.theme-dark .trial-issued-card {
  background: rgba(255, 184, 0, 0.09);
  border-color: rgba(255, 184, 0, 0.34);
}
.trial-issued-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.trial-remaining-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.trial-remaining-pill.is-expired {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error);
}
.trial-issued-expiry {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}
.trial-issued-desc {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-secondary);
}
.trial-upgrade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 13px;
  background: var(--glass-pill-active);
  color: #1A1200;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 16px -6px rgba(217, 144, 0, 0.52);
  transition: transform 0.14s var(--spring);
}
.trial-upgrade-btn:active { transform: scale(0.97); }
.trial-issued-note {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-muted);
}

.footer,
html.theme-light .footer {
  text-align: center;
  margin-top: 16px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
}

@media (max-width: 425px) {
  .top-nav-bar, html.theme-light .top-nav-bar, .issued-portal .top-nav-bar, .safety-page .top-nav-bar { gap: 5px !important; }
  .brand-pill, html.theme-light .brand-pill, .issued-portal .brand-pill, .safety-page .brand-pill { padding: 4px 9px 4px 5px !important; font-size: 10.5px !important; gap: 5px !important; letter-spacing: 0.01em !important; }
  .brand-pill img { width: 22px; height: 22px; }
  .top-actions { gap: 4px; }
  .pill-btn, .theme-toggle-btn, html.theme-light .theme-toggle-btn, .issued-portal .theme-toggle-btn, .safety-page .theme-toggle-btn { padding: 0 9px !important; font-size: 11.5px !important; gap: 4px !important; min-height: 36px !important; }
}
@media (max-width: 400px) {
  .card, html.theme-light .card, .card.safari-card, .card.issued-card { padding: 15px !important; border-radius: 23px !important; }
  .header h1, html.theme-light .header h1, .success-hero h1 { font-size: 25px !important; }
  .brand-suffix { display: none; }
}
@media (max-width: 388px) {
  body, html.theme-light body { padding-inline: 10px !important; }
  .pill-btn, .theme-toggle-btn, html.theme-light .theme-toggle-btn, .issued-portal .theme-toggle-btn, .safety-page .theme-toggle-btn { padding: 0 8px !important; font-size: 11px !important; gap: 3px !important; }
}
/* iOS TOUCH 120Hz BUDGET: keep visible floating mini-pass softly frosted; drop expensive backdrop blur on static in-flow capsules */
@media (hover: none) {
  .brand-pill,
  html.theme-light .brand-pill,
  .safety-page .brand-pill,
  .issued-portal .brand-pill,
  .pill-btn,
  .theme-toggle-btn,
  html.theme-light .theme-toggle-btn,
  .safety-page .theme-toggle-btn,
  .issued-portal .theme-toggle-btn,
  .journey-bar.liquid-glass,
  .ios-player-dock.liquid-glass,
  .wl-card.liquid-glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 250, 238, 0.94) 100%) !important;
  }
  html.theme-dark .brand-pill,
  html.theme-dark .pill-btn,
  html.theme-dark .theme-toggle-btn,
  html.theme-dark .journey-bar.liquid-glass,
  html.theme-dark .ios-player-dock.liquid-glass,
  html.theme-dark .wl-card.liquid-glass {
    background: linear-gradient(180deg, rgba(36, 36, 46, 0.96) 0%, rgba(24, 24, 32, 0.95) 100%) !important;
  }
  .sticky-mini-pass.liquid-glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .sticky-mini-pass.liquid-glass.visible {
    backdrop-filter: blur(10px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(145%) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 251, 240, 0.84) 100%) !important;
  }
  html.theme-dark .sticky-mini-pass.liquid-glass.visible {
    background: linear-gradient(180deg, rgba(36, 36, 46, 0.9) 0%, rgba(22, 22, 29, 0.85) 100%) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .wl-layer, .modal-bg { transition: opacity 0.12s ease !important; }
  .modal-sheet { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .liquid-glass,
  .brand-pill,
  html.theme-light .brand-pill,
  html.theme-dark .brand-pill,
  .safety-page .brand-pill,
  .issued-portal .brand-pill,
  .pill-btn,
  html.theme-dark .pill-btn,
  .theme-toggle-btn,
  html.theme-light .theme-toggle-btn,
  html.theme-dark .theme-toggle-btn,
  .safety-page .theme-toggle-btn,
  .issued-portal .theme-toggle-btn,
  .journey-bar.liquid-glass,
  html.theme-dark .journey-bar.liquid-glass,
  .ios-player-dock.liquid-glass,
  html.theme-dark .ios-player-dock.liquid-glass,
  .wl-card.liquid-glass,
  html.theme-dark .wl-card.liquid-glass,
  .sticky-mini-pass.liquid-glass,
  .sticky-mini-pass.liquid-glass.visible,
  html.theme-dark .sticky-mini-pass.liquid-glass.visible {
    background: var(--bg-card-solid) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: var(--border-strong) !important;
  }
}
