:root {
  --bg: #0d0a14;
  --bg2: #16101f;
  --glass: rgba(22, 16, 31, 0.82);
  --glass-border: rgba(255, 255, 255, 0.1);
  --purple: #a855f7;
  --purple-dim: #7c3aed;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --pink: #f472b6;
  --red: #f87171;
  --green: #4ade80;
  --text: #f3eef8;
  --muted: #9b8fb0;
  --font: "PingFang SC", "SF Pro Display", system-ui, sans-serif;
  --radius: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(168, 85, 247, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(34, 211, 238, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 0% 60%, rgba(244, 114, 182, 0.1), transparent);
  z-index: 0;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 1.25rem 1.1rem calc(1.5rem + var(--safe-b));
}

.screen {
  display: none;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.35s ease;
}
.screen.active { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Hero */
.hero {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.logo-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(168,85,247,0.3), rgba(34,211,238,0.2));
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.35);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero h1 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero h1 span {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan);
  margin-top: 0.2rem;
}

.tagline {
  margin-top: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub { color: var(--muted); font-size: 0.82rem; margin-top: 0.35rem; }

/* Cards */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  backdrop-filter: blur(12px);
}
.intro-card h2 { font-size: 1rem; margin-bottom: 0.45rem; }
.intro-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-lg { width: 100%; padding: 1rem; font-size: 1.02rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dim));
  color: #fff;
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.4);
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.4rem;
}
.btn-ghost.sm { font-size: 0.78rem; color: var(--cyan); padding: 0.25rem 0.5rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.hidden { display: none !important; }

/* Screen head */
.screen-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.screen-head h2 { flex: 1; font-size: 1.15rem; }
.screen-head.compact {
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(168,85,247,0.25);
  color: var(--purple);
  border: 1px solid rgba(168,85,247,0.35);
}
.badge.gold {
  background: rgba(251,191,36,0.2);
  color: var(--gold);
  border-color: rgba(251,191,36,0.35);
}

/* Slot machine */
.slot-machine {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.2rem 0.8rem 0.9rem;
  backdrop-filter: blur(12px);
}

.slot-window {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.slot-reel {
  height: 88px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.slot-reel::before,
.slot-reel::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 28px;
  z-index: 2;
  pointer-events: none;
}
.slot-reel::before {
  top: 0;
  background: linear-gradient(var(--bg2), transparent);
}
.slot-reel::after {
  bottom: 0;
  background: linear-gradient(transparent, var(--bg2));
}

.reel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.1s linear;
}
.reel-item {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 0.35rem;
  line-height: 1.25;
  color: var(--text);
}

.slot-reel.spinning .reel-inner {
  transition: none;
}

.slot-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.persona-preview {
  text-align: center;
  font-size: 0.9rem;
  color: var(--cyan);
  min-height: 2.6rem;
  line-height: 1.45;
  padding: 0 0.5rem;
}

/* Mode tabs */
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.3rem;
}
.mode-tab {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.5rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mode-tab.active {
  background: linear-gradient(135deg, rgba(168,85,247,0.35), rgba(34,211,238,0.15));
  color: var(--text);
  box-shadow: 0 2px 12px rgba(168,85,247,0.25);
}

/* Custom persona form */
.custom-form h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.form-hint {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
}
.field span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.field span em {
  font-style: normal;
  font-weight: 500;
  color: rgba(155,143,176,0.7);
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus {
  border-color: rgba(168,85,247,0.5);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(155,143,176,0.55); }

.quick-chips { margin-top: 0.25rem; }
.chips-label {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.chip {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.chip:hover {
  background: rgba(168,85,247,0.2);
  color: var(--text);
}
.chip.active {
  background: rgba(168,85,247,0.35);
  color: var(--text);
  border-color: rgba(168,85,247,0.5);
}

.inspire-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0.35rem;
}
.inspire-tab {
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  cursor: pointer;
}
.inspire-tab.active {
  background: rgba(34,211,238,0.15);
  color: var(--cyan);
  border-color: rgba(34,211,238,0.35);
}

.io-row {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.io-btn {
  flex: 1;
  padding: 0.45rem 0.5rem !important;
  border: 1px solid var(--glass-border);
  border-radius: 10px !important;
  background: rgba(255,255,255,0.04);
}

.saved-section { margin-top: 0.25rem; }
.saved-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.saved-head h3 { font-size: 0.88rem; }
.saved-count { font-size: 0.72rem; color: var(--muted); }

.saved-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 28vh;
  overflow-y: auto;
}
.saved-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.saved-item:hover { border-color: rgba(168,85,247,0.4); }
.saved-item.selected {
  border-color: var(--purple);
  background: rgba(168,85,247,0.12);
}
.saved-item-body { flex: 1; min-width: 0; }
.saved-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.saved-item-sub {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.saved-item-actions {
  display: flex;
  gap: 0.25rem;
}
.saved-item-actions button {
  font-family: inherit;
  font-size: 0.72rem;
  padding: 0.25rem 0.4rem;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  cursor: pointer;
}
.saved-item-actions button:hover { color: var(--red); }

/* 先试一句 */
.punch-box {
  background: linear-gradient(135deg, rgba(248,113,113,0.08), rgba(168,85,247,0.1));
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-top: 0.25rem;
}
.punch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}
.punch-head h3 { font-size: 0.95rem; }
.punch-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(248,113,113,0.2);
  color: #fca5a5;
}
.punch-box .btn-primary {
  width: 100%;
  margin-top: 0.35rem;
  background: linear-gradient(135deg, #f472b6, var(--purple));
  box-shadow: 0 6px 20px rgba(244,114,182,0.35);
}
.punch-result {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  animation: slideIn 0.35s ease;
}
.punch-result .msg-in { margin-bottom: 0.45rem; }
.punch-result-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.punch-result-actions button {
  flex: 1;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
}
.punch-hit {
  animation: punchHit 0.45s ease;
}
@keyframes punchHit {
  0% { transform: scale(0.96); opacity: 0.5; }
  40% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

/* Active ghost mode */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(248,113,113,0.15);
  border: 1px solid rgba(248,113,113,0.35);
  color: #fca5a5;
}
.status-pill .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.timer {
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.persona-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, rgba(168,85,247,0.18), rgba(34,211,238,0.08));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.persona-avatar {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: rgba(0,0,0,0.3);
}
.persona-title { font-weight: 800; font-size: 1rem; }
.persona-sub { color: var(--muted); font-size: 0.78rem; margin-top: 0.15rem; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.stat {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.65rem 0.4rem;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 1.25rem;
  color: var(--cyan);
}
.stat span { font-size: 0.68rem; color: var(--muted); }

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feed-header h3 { font-size: 0.95rem; }

.feed {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 42vh;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--purple-dim) transparent;
}

.msg-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  animation: slideIn 0.35s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
}
.msg-tag {
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.65rem;
}
.msg-tag.white { background: rgba(74,222,128,0.2); color: var(--green); }
.msg-tag.yellow { background: rgba(251,191,36,0.2); color: var(--gold); }
.msg-tag.black { background: rgba(248,113,113,0.2); color: #fca5a5; }
.msg-tag.group { background: rgba(156,163,175,0.2); color: #d1d5db; }

.msg-in {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
  line-height: 1.45;
}
.msg-in strong { color: var(--text); }

.msg-draft {
  background: rgba(168,85,247,0.12);
  border-left: 3px solid var(--purple);
  padding: 0.5rem 0.65rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  line-height: 1.5;
}
.msg-draft em {
  display: block;
  font-style: normal;
  color: var(--cyan);
  font-size: 0.68rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.msg-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.msg-actions button {
  flex: 1;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
}
.msg-actions button:hover { background: rgba(168,85,247,0.2); }

/* Report */
.report-preview-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
#reportCanvas {
  display: block;
  width: 100%;
  height: auto;
}

.report-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  width: min(340px, 100%);
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  animation: popIn 0.35s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}

.cert-stamp {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  transform: rotate(-8deg);
  margin-bottom: 0.75rem;
}
.cert-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.cert-body {
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 1.1rem;
  white-space: pre-line;
}

.modal-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; text-align: center; }
.modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.modal-actions .btn { flex: 1; }
.hint.left { text-align: left; margin-top: 0.35rem; }
.toggle-field {
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
}
.toggle-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
}

.btn-loading { opacity: 0.65; pointer-events: none; }

/* 会员定价 */
.plan-entry {
  color: var(--gold) !important;
  border: 1px solid rgba(251,191,36,0.35);
  background: rgba(251,191,36,0.08) !important;
  width: 100%;
  margin-top: 0.25rem;
}
.current-plan {
  text-align: center;
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 600;
  margin-top: 0.35rem;
}
.pricing-lead {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}
.pricing-lead strong { color: var(--text); }

.plan-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem !important;
  margin-bottom: 0.25rem;
}
.plan-current-label {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 700;
}
.plan-current strong { color: var(--gold); font-size: 0.95rem; }
.plan-current span:last-child {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--cyan);
}

.billing-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.28rem;
  margin: 0.5rem 0;
}
.billing-tab {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.billing-tab em {
  font-style: normal;
  font-size: 0.65rem;
  color: var(--green);
}
.billing-tab.active {
  background: linear-gradient(135deg, rgba(251,191,36,0.25), rgba(168,85,247,0.2));
  color: var(--text);
}

.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.price-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1.1rem 1rem 1rem;
  backdrop-filter: blur(12px);
}
.price-card.featured {
  border-color: rgba(251,191,36,0.45);
  background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(168,85,247,0.12));
  box-shadow: 0 8px 32px rgba(168,85,247,0.25);
}
.price-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #1a1028;
}
.price-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-bottom: 0.2rem;
}
.price-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}
.price-card.featured .price-num { color: var(--gold); }
.price-unit {
  font-size: 0.82rem;
  color: var(--muted);
}
.price-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.price-features {
  list-style: none;
  margin-bottom: 0.85rem;
}
.price-features li {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.28rem 0;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.4;
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
  font-size: 0.72rem;
}
.price-features b { color: var(--text); }
.price-cta { width: 100%; }
.price-cta.active-tier {
  opacity: 0.55;
  pointer-events: none;
}

.compare-card h3 {
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}
.compare-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.compare-row:last-child { border-bottom: none; }
.compare-row.highlight span:last-child { color: var(--gold); font-weight: 700; }

/* Toast */
.toast {
  position: fixed;
  bottom: calc(1.5rem + var(--safe-b));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: rgba(22,16,31,0.95);
  border: 1px solid var(--glass-border);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%); }
}

@media (min-width: 421px) {
  #app { padding-top: 2rem; }
}
