/* Foodie Plus page */
[hidden] { display: none !important; }
.plus-wrap { max-width: 920px; margin: 0 auto; padding: 40px 24px 96px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plus-gold-text { background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.plus-hero { text-align: center; padding: 24px 0 36px; position: relative; isolation: isolate; }
.plus-hero::before { content: ""; position: absolute; inset: -40px 0 auto; height: 320px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0, rgba(255, 183, 0, .18), transparent 65%); }
.plus-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: var(--radius-full);
  border: 1px solid rgba(255, 183, 0, .35); background: rgba(255, 183, 0, .08); color: var(--brand-gold); font-weight: 700; font-size: 13px; }
.plus-kicker-icon svg { width: 16px; height: 16px; display: block; }
.plus-hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.3; margin: 18px 0 12px; }
.plus-hero p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.9; font-size: 15px; }

.plus-status { display: flex; align-items: center; gap: 14px; text-align: start; max-width: 460px; margin: 26px auto 0; padding: 14px 18px;
  border-radius: var(--radius-lg); border: 1px solid rgba(255, 183, 0, .4); background: linear-gradient(135deg, rgba(255, 183, 0, .12), rgba(255, 107, 53, .06)); }
.plus-status-icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--gradient-gold); color: #1a1200; }
.plus-status b { display: block; font-size: 15px; }
.plus-status span { color: var(--text-secondary); font-size: 13px; }

/* Billing toggle */
.plus-toggle { display: flex; width: max-content; margin: 0 auto 26px; padding: 4px; border-radius: var(--radius-full); background: var(--bg-card); border: 1px solid var(--border-mild); }
.plus-toggle button { border: 0; background: none; color: var(--text-secondary); font: inherit; font-weight: 600; font-size: 14px; padding: 10px 22px; border-radius: var(--radius-full); cursor: pointer; transition: var(--transition); }
.plus-toggle button[aria-checked="true"] { background: var(--bg-elevated); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.plus-toggle button:focus-visible { outline: 2px solid var(--brand-gold); }
.plus-save { font-size: 11px; color: var(--brand-green); margin-inline-start: 4px; }

/* Plan cards */
.plus-plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: stretch; }
.plus-plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--radius-xl); background: var(--bg-card); border: 1px solid var(--border-mild); }
.plus-plan h3 { font-size: 18px; margin-bottom: 14px; }
.plus-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plus-price b { font-size: 36px; line-height: 1; }
.plus-price span, .plus-price small { color: var(--text-secondary); font-size: 14px; }
.plus-plan-note { color: var(--text-muted); font-size: 13px; margin: 8px 0 18px; min-height: 1.5em; }
.plus-list { list-style: none; display: grid; gap: 11px; margin-bottom: 24px; flex: 1; }
.plus-list li { position: relative; padding-inline-start: 26px; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.plus-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; background: var(--bg-elevated); color: var(--text-primary); }
.plus-list-pro li { color: var(--text-primary); }
.plus-list-pro li::before { background: var(--gradient-gold); color: #1a1200; }
.plus-list .plus-soon { color: var(--text-muted); }
.plus-list .plus-soon::before { background: var(--bg-elevated); color: var(--text-muted); }
.plus-soon span { font-size: 11px; padding: 2px 8px; border-radius: var(--radius-full); border: 1px solid var(--border-mild); margin-inline-start: 4px; }
.plus-plan-current { text-align: center; padding: 12px; border-radius: var(--radius-full); border: 1px dashed var(--border-mild); color: var(--text-muted); font-size: 14px; }

.plus-plan-pro { border: 1px solid transparent; background:
  linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
  linear-gradient(135deg, #FFB700, rgba(255, 107, 53, .4) 50%, #FFB700) border-box;
  box-shadow: 0 20px 60px rgba(255, 183, 0, .12); }
.plus-ribbon { position: absolute; top: -12px; inset-inline-end: 22px; padding: 5px 14px; border-radius: var(--radius-full);
  background: var(--gradient-gold); color: #1a1200; font-size: 12px; font-weight: 700; }
.plus-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.plus-cta .plus-btn { width: 100%; }
.plus-cta-sub { color: var(--text-muted); font-size: 12px; }
.plus-link-btn { background: none; border: 0; color: var(--text-secondary); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px; }
.plus-link-btn:hover { color: var(--brand-gold); }
.plus-fine { text-align: center; color: var(--text-muted); font-size: 12px; margin-top: 16px; }

/* Sections */
.plus-section { margin-top: 64px; }
.plus-section-head { margin-bottom: 20px; }
.plus-section-head h2 { font-size: 22px; }
.plus-section-head p { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

/* Wrapped */
.plus-wrapped { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.wr-card { padding: 18px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wr-card small { color: var(--text-muted); font-size: 12px; }
.wr-card b { font-size: 22px; overflow-wrap: anywhere; }
.wr-wide { grid-column: span 2; }
.wr-wide b { font-size: 17px; }
.wr-hero { grid-column: 1 / -1; align-items: center; text-align: center; padding: 28px 18px;
  background: radial-gradient(circle at 50% 0, rgba(255, 183, 0, .16), transparent 70%), var(--bg-card); border-color: rgba(255, 183, 0, .3); }
.wr-hero b { font-size: 26px; }
.wr-hero p { color: var(--text-secondary); font-size: 14px; }
.wr-emoji { font-size: 44px; line-height: 1; }
.wr-blur b { filter: blur(6px); user-select: none; }
.plus-wrapped-locked { min-height: 300px; }
.wr-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px;
  border-radius: var(--radius-lg); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-dark) 88%, transparent) 35%); }
.wr-lock b { font-size: 18px; }
.wr-lock span { color: var(--text-secondary); font-size: 14px; max-width: 380px; line-height: 1.8; }
.wr-lock .plus-upsell-crown { margin: 0; width: 52px; height: 52px; }
.plus-empty { padding: 24px; border-radius: var(--radius-lg); background: var(--bg-card); color: var(--text-secondary); text-align: center; }
.plus-empty a { color: var(--brand-gold); }

/* Theme picker */
.plus-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plus-theme { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 2px solid var(--border-subtle); color: var(--text-primary); font: inherit; font-size: 14px; cursor: pointer; transition: var(--transition); }
.plus-theme:hover { border-color: var(--c1); }
.plus-theme.on { border-color: var(--c1); background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--c1) 18%, transparent), transparent 70%), var(--bg-card); }
.plus-theme:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }
.plus-theme-swatch { width: 60px; height: 60px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 0 18px color-mix(in srgb, var(--c1) 45%, transparent); }
.plus-theme-swatch img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg-card); display: block; }
.plus-lock { position: absolute; top: 8px; inset-inline-end: 8px; color: var(--brand-gold); }
.plus-lock svg { width: 16px; height: 16px; }

/* History */
.plus-history { list-style: none; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-subtle); }
.plus-history li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; }
.plus-history li + li { border-top: 1px solid var(--border-subtle); }
.plus-history b { display: block; font-size: 14px; }
.plus-history span { color: var(--text-muted); font-size: 12px; }
.plus-history-amount { text-align: end; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.plus-paid { font-size: 11px; padding: 2px 8px; border-radius: var(--radius-full); }
.plus-paid.paid { color: var(--brand-green); background: rgba(46, 196, 182, .12); }
.plus-paid.pending { color: var(--brand-gold); background: rgba(255, 183, 0, .12); }
.plus-paid.failed { color: var(--brand-accent); background: rgba(230, 57, 70, .12); }

/* FAQ */
.plus-faq { display: grid; gap: 10px; }
.plus-faq details { border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-subtle); padding: 0 18px; }
.plus-faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.plus-faq summary::-webkit-details-marker { display: none; }
.plus-faq summary::after { content: "+"; color: var(--brand-gold); font-size: 20px; line-height: 1; transition: transform .2s; }
.plus-faq details[open] summary::after { transform: rotate(45deg); }
.plus-faq summary:focus-visible { outline: 2px solid var(--brand-gold); border-radius: 4px; }
.plus-faq p { color: var(--text-secondary); font-size: 14px; line-height: 1.9; padding-bottom: 16px; }

/* Checkout */
.plus-checkout { max-width: 420px; padding: 22px 24px 20px; }
.plus-checkout-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.plus-checkout-head h3 { font-size: 18px; }
.plus-test-banner { padding: 10px 14px; border-radius: var(--radius-md); background: rgba(255, 183, 0, .1); border: 1px dashed rgba(255, 183, 0, .5); color: var(--brand-gold); font-size: 13px; margin-bottom: 14px; }
.plus-receipt { display: grid; gap: 0; margin-bottom: 18px; border-radius: var(--radius-md); background: var(--bg-card-2); }
.plus-receipt div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 14px; }
.plus-receipt div + div { border-top: 1px solid var(--border-subtle); }
.plus-receipt dt { color: var(--text-secondary); }
.plus-receipt dd { font-weight: 600; }
.plus-receipt-total dd { color: var(--brand-gold); font-size: 16px; }

/* Welcome overlay */
.plus-celebrate { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.plus-celebrate.show { opacity: 1; }
.plus-celebrate canvas { position: fixed; inset: 0; pointer-events: none; }
.plus-celebrate-card { position: relative; max-width: 400px; width: 100%; text-align: center; padding: 36px 26px 22px; border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 0, rgba(255, 183, 0, .2), transparent 60%), var(--bg-card); border: 1px solid rgba(255, 183, 0, .4);
  transform: scale(.9); transition: transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.plus-celebrate.show .plus-celebrate-card { transform: scale(1); }
.plus-celebrate-card .plus-upsell-crown { width: 76px; height: 76px; animation: plusFloat 2.4s ease-in-out infinite; }
.plus-celebrate-card h2 { font-size: 24px; margin-bottom: 10px; }
.plus-celebrate-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.9; margin-bottom: 22px; }
.plus-celebrate-card .plus-btn { width: 100%; }
@keyframes plusFloat { 50% { transform: translateY(-6px) rotate(-4deg); } }

@media (max-width: 768px) {
  .plus-wrap { padding: 24px 16px 96px; }
  .plus-plans { grid-template-columns: 1fr; }
  .plus-plan-pro { order: -1; }
  .plus-wrapped { grid-template-columns: repeat(2, 1fr); }
  .plus-themes { grid-template-columns: repeat(2, 1fr); }
  .plus-section { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .plus-celebrate-card, .plus-celebrate-card .plus-upsell-crown { animation: none; transition: none; }
}
