/* WeatherGenie — "Ethereal Ether" design system (see design/*/DESIGN.md).
   Dark glassmorphism. Playfair Display (headlines) + Hanken Grotesk (UI/body).
   Self-hosted fonts (assets/fonts), inline-SVG icons — no CDN. */

/* ---- Fonts (self-hosted) ------------------------------------------------- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/playfair-latin.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/playfair-latin-ext.woff2") format("woff2");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/hanken-latin.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/hanken-latin-ext.woff2") format("woff2");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --background: #111415;
  --surface: #111415;
  --surface-dim: #111415;
  --surface-bright: #373a3b;
  --surface-container-lowest: #0c0f10;
  --surface-container-low: #191c1d;
  --surface-container: #1d2021;
  --surface-container-high: #282a2b;
  --surface-container-highest: #323536;
  --on-surface: #e1e3e4;
  --on-surface-variant: #cac4d2;
  --outline: #938f9c;
  --outline-variant: #484550;

  --primary: #cbbeff;
  --on-primary: #33226f;
  --primary-container: #2d1b69;
  --on-primary-container: #9686d9;
  --inverse-primary: #6252a1;

  --secondary: #9acbff;
  --secondary-container: #2096eb;
  --on-secondary-container: #002c4b;

  --tertiary: #e9c349;
  --tertiary-fixed: #ffe088;
  --on-tertiary-fixed: #241a00;

  --error: #ffb4ab;

  /* Fortune-wheel wedges (3-colour cycle) + "spin again" wedge */
  --wheel-0: #2096eb;
  --wheel-1: #e9c349;
  --wheel-2: #21c17a;
  --wheel-again: #6b6b73;

  /* Shape */
  --r-sm: 0.25rem;
  --r: 0.25rem;
  --r-lg: 0.5rem;
  --r-xl: 0.75rem;
  --r-2xl: 1rem;
  --r-3xl: 1.5rem;
  --r-full: 9999px;

  /* Rhythm */
  --base: 8px;
  --gutter: 24px;
  --margin-desktop: 64px;
  --margin-mobile: 20px;
  --container: 1280px;
  --header-h: 80px;
  --header-h-mobile: 64px;
  --nav-h-mobile: 80px;

  --glass-blur: 20px;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { scrollbar-width: none; }
::-webkit-scrollbar { display: none; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface);
  background: var(--background);
  min-height: 100vh;
  overscroll-behavior: none;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }

/* ---- Type scale ---------------------------------------------------------- */
.t-display { font-family: var(--font-head); font-size: 56px; line-height: 64px; font-weight: 700; letter-spacing: -0.02em; }
.t-headline-lg { font-family: var(--font-head); font-size: 40px; line-height: 48px; font-weight: 600; }
.t-headline-md { font-family: var(--font-head); font-size: 24px; line-height: 32px; font-weight: 500; }
.t-body-lg { font-family: var(--font-body); font-size: 18px; line-height: 28px; font-weight: 400; }
.t-body-md { font-family: var(--font-body); font-size: 16px; line-height: 24px; font-weight: 400; }
.t-label-md { font-family: var(--font-body); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.05em; }
.t-label-sm { font-family: var(--font-body); font-size: 12px; line-height: 16px; font-weight: 500; }
.muted { color: var(--on-surface-variant); }

/* icon helper: inline SVGs inherit currentColor and align with text */
.ic { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ic svg { display: block; width: 1em; height: 1em; }

/* ---- Header -------------------------------------------------------------- */
.wg-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--margin-desktop);
  background: rgba(29, 32, 33, 0.10);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.10);
}
.wg-brand { display: flex; align-items: center; gap: var(--base); min-width: 0; }
.wg-brand img { height: 40px; width: auto; object-fit: contain; }
.wg-wordmark {
  font-family: var(--font-head); font-size: 24px; line-height: 32px; font-weight: 500;
  color: var(--primary); letter-spacing: -0.01em;
}
.wg-pagetitle {
  display: none;
  font-family: var(--font-head); font-size: 24px; line-height: 32px; font-weight: 500;
  color: var(--primary); letter-spacing: -0.01em;
}
.wg-nav-desktop { display: flex; align-items: center; gap: 48px; }
.wg-nav-desktop a {
  font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--on-surface-variant); transition: color 0.2s ease;
}
.wg-nav-desktop a:hover { color: var(--on-surface); }
.wg-nav-desktop a.active { color: var(--primary); }

.wg-avatar {
  width: 40px; height: 40px; border-radius: var(--r-full);
  display: grid; place-items: center; cursor: pointer;
  background: var(--primary); color: var(--on-primary);
  border: none; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.10);
}
.wg-avatar svg { width: 20px; height: 20px; }

/* Header right side: Sign in (signed out) / avatar-menu (signed in) */
.wg-header-actions { display: flex; align-items: center; gap: 12px; }
.btn-signin {
  cursor: pointer; border: none; border-radius: var(--r-full);
  background: var(--primary); color: var(--on-primary);
  font-family: var(--font-body); font-weight: 700; font-size: 14px; letter-spacing: 0.03em;
  padding: 10px 22px; box-shadow: 0 0 20px rgba(203, 190, 255, 0.25); transition: box-shadow 0.2s ease;
}
.btn-signin:hover { box-shadow: 0 0 30px rgba(203, 190, 255, 0.4); }

.wg-menu { position: relative; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  display: flex; flex-direction: column; min-width: 208px; overflow: hidden;
  background: rgba(29, 32, 33, 0.92); border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-2xl); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.menu-panel a, .menu-signout {
  padding: 14px 18px; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; color: var(--on-surface);
}
.menu-panel a:hover, .menu-signout:hover { background: rgba(203, 190, 255, 0.12); }
.menu-signout { color: var(--error); border-top: 1px solid rgba(255, 255, 255, 0.06); }

/* ---- Bottom nav (mobile only) ------------------------------------------- */
.wg-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h-mobile);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(17, 20, 21, 0.85);
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.wg-nav-inner { display: flex; justify-content: space-around; align-items: center; height: var(--nav-h-mobile); padding: 0 16px; }
.wg-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 64px; color: var(--on-surface-variant);
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
}
.wg-nav a.active { color: var(--primary); }
.wg-nav a svg { width: 28px; height: 28px; }

/* ---- Main scaffold ------------------------------------------------------- */
.wg-main { width: 100%; padding-top: var(--header-h); min-height: 100vh; }
.wg-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--margin-desktop); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  cursor: pointer; font-family: var(--font-body); font-size: 16px;
  border: 1px solid transparent; border-radius: var(--r-lg);
  padding: 10px 18px; transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-glass {
  background: rgba(255, 255, 255, 0.06); color: var(--on-surface);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.10); }

/* Make a Wish (desktop hero) */
.btn-wish {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 24px 48px; border-radius: var(--r-xl); border: none; cursor: pointer;
  background: var(--primary); color: var(--on-primary);
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 0 30px rgba(203, 190, 255, 0.30);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-wish::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0; transition: opacity 0.4s ease;
}
.btn-wish:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(203, 190, 255, 0.50); }
.btn-wish:hover::before { opacity: 1; }
.btn-wish svg { width: 24px; height: 24px; }

/* ---- Home hero ----------------------------------------------------------- */
.hero {
  position: relative; width: 100%; height: 600px; overflow: hidden;
  margin-top: calc(-1 * var(--header-h)); /* slide under the fixed header */
  background: var(--surface-container-low);
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-image: linear-gradient(135deg, #2d1b69 0%, #12203a 60%, #0c0f10 100%);
}
.hero.has-bg .hero-bg { background-image: var(--lw-bg); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(17, 20, 21, 0.10) 0%, rgba(17, 20, 21, 0.35) 55%, var(--background) 100%);
}
.hero-inner {
  position: relative; z-index: 2; height: 100%;
  max-width: var(--container); margin: 0 auto; padding: 0 var(--margin-desktop) 96px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gutter); }
.hero-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 8px 16px; border-radius: var(--r-full);
  background: rgba(40, 42, 43, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.pill .ic { color: var(--tertiary-fixed); font-size: 20px; }
.pill span.txt {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-surface);
}
.pill .pill-prefix { color: var(--on-surface-variant); }

.hero-temp {
  margin: 0; display: flex; align-items: center; gap: 24px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em;
  font-size: 56px; line-height: 64px; color: var(--on-surface);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}
.hero-temp .tval { display: inline-flex; }
.hero-icon { color: var(--secondary); filter: drop-shadow(0 0 15px rgba(154, 203, 255, 0.6)); }
.hero-icon svg { width: 64px; height: 64px; }
.hero-desc {
  margin: 0; max-width: 36rem;
  font-family: var(--font-body); font-size: 18px; line-height: 28px; color: var(--on-surface-variant);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-enable { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; }
.hero-enable[hidden] { display: none; }

/* ---- Featured section ---------------------------------------------------- */
.featured { position: relative; padding: 128px 0; overflow: hidden; }
.featured-orb {
  position: absolute; top: -80px; right: -80px; width: 600px; height: 600px;
  background: rgba(45, 27, 105, 0.20); border-radius: var(--r-full);
  filter: blur(120px); mix-blend-mode: screen; pointer-events: none;
}
.featured-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 64px; }
.featured-head .link {
  display: none; /* desktop mockup has no "View All"; shown on mobile only */
  font-size: 12px; font-weight: 600; color: var(--primary);
  background: none; border: none; cursor: pointer;
}
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.feat-card {
  position: relative; overflow: hidden; min-height: 400px;
  border-radius: var(--r-3xl); padding: 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: rgba(29, 32, 33, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s ease;
}
.feat-card:nth-child(2) { margin-top: 64px; }
.feat-card:hover { transform: scale(1.02); }
.feat-card .bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.6; mix-blend-mode: luminosity; transition: mix-blend-mode 0.7s ease, opacity 0.7s ease;
}
.feat-card:hover .bg { mix-blend-mode: normal; opacity: 0.8; }
.feat-card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--background) 0%, rgba(17, 20, 21, 0.6) 45%, transparent 100%);
}
.feat-card .body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.badge {
  width: fit-content; padding: 4px 12px; border-radius: var(--r-full);
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-sale { background: var(--tertiary-fixed); color: var(--on-tertiary-fixed); box-shadow: 0 0 10px rgba(255, 224, 136, 0.5); }
.badge-new { background: var(--secondary-container); color: #ffffff; box-shadow: 0 0 10px rgba(32, 150, 235, 0.4); }
.feat-card p { margin: 0; max-width: 24rem; }

/* ---- Footer -------------------------------------------------------------- */
.wg-footer {
  background: rgba(12, 15, 16, 0.50);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px 0;
}
.wg-footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--margin-desktop);
  display: flex; align-items: center; justify-content: space-between; gap: var(--gutter);
}
.wg-footer-brand { display: flex; align-items: center; gap: var(--base); opacity: 0.7; }
.wg-footer-brand img { height: 24px; width: auto; }
.wg-footer .copy { color: var(--on-surface-variant); font-size: 12px; }
.wg-footer-links { display: flex; gap: 20px; }
.wg-footer-links a { color: var(--on-surface-variant); font-size: 13px; }
.wg-footer-links a:hover { color: var(--on-surface); }

/* ---- Guest thank-you banner --------------------------------------------- */
.wish-thanks {
  max-width: var(--container); margin: 24px auto 0; padding: 16px 20px;
  border-radius: var(--r-2xl); text-align: center;
  background: rgba(45, 27, 105, 0.35); border: 1px solid rgba(203, 190, 255, 0.25);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.wish-thanks[hidden] { display: none; }
.wish-thanks p { margin: 0; color: var(--on-surface); }

/* ---- Auth dialog --------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(6, 8, 10, 0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  position: relative; width: 100%; max-width: 400px; padding: 28px 24px;
  border-radius: var(--r-3xl);
  background: rgba(29, 32, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.modal-card h2 { font-family: var(--font-head); font-size: 24px; font-weight: 600; margin: 0 0 8px; }
.modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--outline);
}
.btn-primary {
  background: var(--primary); color: var(--on-primary);
  border: none; border-radius: var(--r-full); cursor: pointer;
  font-family: var(--font-body); font-weight: 700; letter-spacing: 0.03em;
  padding: 14px 22px; font-size: 16px;
  box-shadow: 0 0 24px rgba(203, 190, 255, 0.30);
}
.btn-primary:hover { box-shadow: 0 0 36px rgba(203, 190, 255, 0.45); }

/* ---- Order composer ------------------------------------------------------ */
.composer { position: relative; overflow: hidden; padding: 48px 0 96px; }
.composer-orb { position: absolute; border-radius: var(--r-full); filter: blur(110px); mix-blend-mode: screen; pointer-events: none; z-index: 0; }
.composer-orb.a { top: 10%; left: 12%; width: 420px; height: 420px; background: rgba(203, 190, 255, 0.10); }
.composer-orb.b { bottom: 10%; right: 10%; width: 500px; height: 500px; background: rgba(154, 203, 255, 0.08); }
.composer-grid {
  position: relative; z-index: 1; max-width: var(--container); margin: 0 auto;
  padding: 0 var(--margin-desktop); display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start;
}

/* Left rail */
.sculptor { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 48px; }
.sculptor-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.sculptor-eyebrow svg { width: 16px; height: 16px; }
.sculptor h1 { margin: 12px 0 0; }
.sculptor > .lead { margin: 12px 0 0; }
.steps { position: relative; display: flex; flex-direction: column; gap: 24px; }
.steps::before { content: ""; position: absolute; left: 24px; top: 24px; bottom: 24px; width: 2px; background: rgba(255, 255, 255, 0.06); border-radius: var(--r-full); }
.step-btn { display: flex; align-items: center; gap: 24px; background: none; border: none; cursor: pointer; text-align: left; padding: 0; opacity: 0.5; transition: opacity 0.3s ease; }
.step-btn:hover { opacity: 0.85; }
.step-btn.active { opacity: 1; }
.step-ic { width: 48px; height: 48px; border-radius: var(--r-full); display: grid; place-items: center; flex: 0 0 auto; background: var(--surface-container-highest); color: var(--on-surface-variant); transition: all 0.3s ease; }
.step-ic svg { width: 20px; height: 20px; }
.step-btn.active .step-ic { background: var(--primary); color: var(--on-primary); box-shadow: 0 0 20px rgba(203, 190, 255, 0.4); }
.step-num { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-surface-variant); }
.step-btn.active .step-num { color: var(--primary); }
.step-title { margin: 0; font-family: var(--font-head); font-size: 24px; line-height: 28px; font-weight: 500; color: var(--on-surface); }

/* Right glass panel */
.composer-panel {
  position: relative; border-radius: var(--r-3xl); padding: 40px; min-height: 600px;
  display: flex; flex-direction: column; scroll-margin-top: 104px;
  background: rgba(29, 32, 33, 0.30); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.10); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Wizard: one step visible at a time */
.wpanel { display: none; flex-direction: column; flex: 1; }
.wpanel.active { display: flex; animation: wp-in 0.35s ease; }
@keyframes wp-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.wpanel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.wpanel-head h2 { margin: 0; }
.wpanel-head .ic { color: var(--primary); }
.wpanel-head .ic svg { width: 32px; height: 32px; }
.wpanel-head .ic.g { color: var(--tertiary); }
.wpanel-body { flex: 1; }
.wpanel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.wbtn-back { background: none; border: none; cursor: pointer; color: var(--on-surface-variant); font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.wbtn-back:hover { color: var(--on-surface); }
.wbtn-next {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 12px 28px; border-radius: var(--r-full); border: none;
  background: var(--primary); color: var(--on-primary);
  font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  box-shadow: 0 0 20px rgba(203, 190, 255, 0.3); transition: transform 0.15s ease, box-shadow 0.3s ease;
}
.wbtn-next:hover { transform: scale(1.04); box-shadow: 0 0 32px rgba(203, 190, 255, 0.45); }
.wbtn-next svg { width: 18px; height: 18px; }
.step-btn.done .step-ic { background: var(--surface-container-highest); color: var(--primary); box-shadow: inset 0 0 0 1px rgba(203, 190, 255, 0.4); }

/* Right column: order summary sits ABOVE the step panel */
.composer-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Order summary bar (was inside the panel) */
.sky-summary .sky-card { width: 100%; }
.sky-card {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--r-2xl);
  background: rgba(50, 53, 54, 0.5); border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Selected location shows in the search field itself — hide the duplicate line */
#loc-chosen { display: none; }

/* Icon carousel (cloud / precipitation pickers) */
.icon-carousel {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.icon-card {
  scroll-snap-align: start; flex: 0 0 auto; width: 132px; min-height: 124px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 20px 12px; cursor: pointer; text-align: center;
  border-radius: var(--r-2xl); border: 1px solid var(--outline-variant);
  background: var(--surface-container-high); color: var(--on-surface);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease;
}
.icon-card:hover { border-color: var(--outline); }
.icon-card:active { transform: translateY(1px); }
.icon-card .ic-lg { color: var(--on-surface-variant); transition: color 0.2s ease; }
.icon-card .ic-lg svg { width: 42px; height: 42px; display: block; }
.icon-card[aria-pressed="true"] {
  border-color: var(--primary); background: rgba(203, 190, 255, 0.12);
  box-shadow: 0 0 22px rgba(203, 190, 255, 0.25);
}
.icon-card[aria-pressed="true"] .ic-lg { color: var(--primary); }
.sky-card .temp { font-family: var(--font-head); font-size: 40px; line-height: 1; font-weight: 700; color: var(--on-surface); }
.sky-card .desc { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px; }

/* Fields */
.field { margin: 28px 0; }
.field:first-of-type { margin-top: 20px; }
.field-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.field-title .ic { color: var(--primary); font-size: 20px; }
.field-title h2 { margin: 0; font-family: var(--font-head); font-size: 24px; line-height: 32px; font-weight: 500; }
.label { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0.05em; color: var(--on-surface-variant); }
.field-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.field-head .val { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--on-surface); }
.field-head-right { display: flex; align-items: center; gap: 10px; }
.axis-off .val, .axis-off .row-choices, .axis-off input[type="range"] { opacity: 0.4; }
.hint { display: flex; justify-content: space-between; font-size: 12px; color: var(--on-surface-variant); margin-top: 8px; }

input[type="text"], input[type="date"], input[type="search"] {
  width: 100%; font: inherit; color: var(--on-surface);
  padding: 14px 16px; border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(50, 53, 54, 0.45); border-radius: var(--r-2xl);
}
input::placeholder { color: var(--on-surface-variant); }
input:focus { outline: none; border-color: rgba(203, 190, 255, 0.5); background: var(--surface-container-highest); }

/* Location results */
#loc-results { display: grid; gap: 8px; margin-top: 8px; }
#loc-results button, .loc-result {
  width: 100%; text-align: left; cursor: pointer;
  padding: 12px 16px; border-radius: var(--r-lg);
  background: var(--surface-container-high); border: 1px solid rgba(255, 255, 255, 0.05); color: var(--on-surface);
}
#loc-results button:hover { background: var(--surface-bright); }
#loc-chosen { color: var(--on-surface-variant); margin-top: 8px; }

/* Range slider */
input[type="range"] { width: 100%; appearance: none; -webkit-appearance: none; height: 8px; border-radius: var(--r-full); margin-top: 8px;
  background: linear-gradient(90deg, var(--secondary), var(--tertiary), var(--error)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: var(--r-full);
  background: var(--tertiary); border: 3px solid var(--surface-container); box-shadow: 0 0 16px rgba(233, 195, 73, 0.6); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: var(--r-full);
  background: var(--tertiary); border: 3px solid var(--surface-container); box-shadow: 0 0 16px rgba(233, 195, 73, 0.6); cursor: pointer; }

/* Pill choice groups */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices button {
  border-radius: var(--r-full); border: 1px solid var(--outline-variant);
  background: var(--surface-container-high); color: var(--on-surface);
  font-family: var(--font-body); font-size: 14px; font-weight: 600; padding: 10px 18px; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.08s ease;
}
.choices button:hover { border-color: var(--outline); }
.choices button:active { transform: translateY(1px); }
.choices button[aria-pressed="true"] {
  background: var(--primary); color: var(--on-primary); border-color: var(--primary);
  box-shadow: 0 0 20px rgba(203, 190, 255, 0.3);
}
.axis-toggle { background: var(--surface-container-high); border: 1px solid var(--outline-variant); color: var(--on-surface); border-radius: var(--r-full); cursor: pointer; font-family: var(--font-body); font-size: 13px; }

/* Per-day nav */
.day-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.day-label { font-weight: 600; min-width: 190px; text-align: center; color: var(--on-surface); }
.cal-nav { border: none; background: transparent; font-size: 20px; line-height: 1; padding: 2px 12px; border-radius: var(--r-full); color: var(--on-surface); cursor: pointer; }
.cal-nav:disabled, .day-nav .cal-nav[disabled] { opacity: 0.35; cursor: default; }

/* Calendar */
.calendar[hidden] { display: none; }
.calendar { margin-top: 12px; padding: 12px; max-width: 360px; border: 1px solid var(--outline-variant); border-radius: var(--r-2xl); background: var(--surface-container); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-title { font-weight: 600; font-size: 15px; color: var(--on-surface); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wd { text-align: center; font-size: 11px; color: var(--on-surface-variant); padding: 2px 0; }
.cal-day { height: 36px; border: none; background: transparent; color: var(--on-surface); border-radius: var(--r-lg); font-size: 14px; padding: 0; cursor: pointer; }
.cal-day:hover:not(:disabled) { background: rgba(203, 190, 255, 0.15); }
.cal-day:disabled { opacity: 0.25; cursor: default; }
.cal-day.in { background: rgba(203, 190, 255, 0.18); }
.cal-day.sel { background: var(--primary); color: var(--on-primary); font-weight: 600; }
.date-chosen { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--outline-variant); border-radius: var(--r-2xl); background: rgba(50, 53, 54, 0.4); }
.date-chosen[hidden] { display: none; }
#date-text { font-weight: 600; color: var(--on-surface); }

/* Reward select */
.reward-select { width: 100%; padding: 12px 14px; border-radius: var(--r-lg); border: 1px solid var(--outline-variant); background: var(--surface-container-high); color: var(--on-surface); font: inherit; }

/* Cost bar */
.cost-bar {
  margin-top: 32px; padding: 20px 24px; border-radius: var(--r-2xl);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: rgba(50, 53, 54, 0.5); border: 1px solid rgba(255, 255, 255, 0.08);
}
.cost-bar .cost { font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--primary); }
.cost-bar .sub { font-size: 13px; color: var(--on-surface-variant); }
#form-msg { margin-top: 12px; color: var(--on-surface-variant); }

/* Legal-waiver checkbox (checkout) */
.legal-check {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 14px 16px; border-radius: var(--r-2xl);
  background: rgba(50, 53, 54, 0.35); border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-body); font-size: 13px; line-height: 20px; color: var(--on-surface-variant);
}
.legal-check input[type="checkbox"] {
  margin-top: 1px; width: 20px; height: 20px; flex: 0 0 auto; cursor: pointer;
  accent-color: var(--primary);
}
.legal-link { color: var(--primary); font-weight: 600; }

/* Grant button (reuse primary pill, larger) */
.btn-grant {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 14px 28px; border-radius: var(--r-full); border: none;
  background: var(--primary); color: var(--on-primary);
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  box-shadow: 0 0 24px rgba(203, 190, 255, 0.3);
}
.btn-grant:hover:not(:disabled) { box-shadow: 0 0 40px rgba(203, 190, 255, 0.5); }
.btn-grant:disabled { opacity: 0.45; box-shadow: none; cursor: not-allowed; }

/* ---- My Orders page ------------------------------------------------------ */
.orders-wrap { max-width: var(--container); margin: 0 auto; padding: 32px var(--margin-desktop) 96px; }
.orders-head { margin: 8px 0 48px; }
.orders-head h1 { margin: 0 0 8px; }
.orders-head p { margin: 0; max-width: 42rem; }
.orders-msg { margin: 0 0 24px; }
.orders-msg[hidden] { display: none; }
.orders-grid { display: grid; grid-template-columns: 8fr 4fr; gap: var(--gutter); align-items: start; }
.orders-main { display: flex; flex-direction: column; gap: 40px; }
.orders-side { display: flex; flex-direction: column; gap: 32px; }

.orders-section { display: flex; flex-direction: column; gap: 24px; }
.orders-section-head { display: flex; align-items: center; justify-content: space-between; }
.orders-section-head h2 { margin: 0; }
.count-pill {
  padding: 4px 12px; border-radius: var(--r-full); white-space: nowrap; flex: 0 0 auto;
  background: rgba(203, 190, 255, 0.18); color: var(--primary);
  font-size: 12px; font-weight: 600; backdrop-filter: blur(8px);
}
.orders-list { display: flex; flex-direction: column; gap: 16px; }
.orders-empty { color: var(--on-surface-variant); padding: 8px 2px; }

/* Active conjuration card */
.oc-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 24px;
  background: rgba(29, 32, 33, 0.30); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.oc-card:hover { transform: translateY(-2px); }
.oc-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background: linear-gradient(90deg, rgba(154, 203, 255, 0.10), transparent 55%);
}
.oc-card.g::before { background: linear-gradient(90deg, rgba(233, 195, 73, 0.10), transparent 55%); }
.oc-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.oc-left { display: flex; align-items: center; gap: 24px; min-width: 0; }
.oc-icon { width: 64px; height: 64px; border-radius: var(--r-full); display: grid; place-items: center; flex: 0 0 auto; }
.oc-icon svg { width: 32px; height: 32px; }
.oc-icon.sec { background: rgba(32, 150, 235, 0.30); color: var(--secondary); box-shadow: inset 0 0 15px rgba(32, 150, 235, 0.3); }
.oc-icon.ter { background: rgba(233, 195, 73, 0.28); color: var(--tertiary); box-shadow: inset 0 0 15px rgba(233, 195, 73, 0.3); }
.oc-title { font-family: var(--font-head); font-size: 24px; line-height: 32px; font-weight: 500; margin: 0 0 4px; }
.oc-meta { display: flex; align-items: center; gap: 10px; color: var(--on-surface-variant); font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.oc-meta .ic { font-size: 16px; }
.oc-meta .dot { width: 4px; height: 4px; border-radius: var(--r-full); background: var(--outline-variant); }
.oc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.oc-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 600; backdrop-filter: blur(8px);
}
.oc-badge .pulse { width: 8px; height: 8px; border-radius: var(--r-full); background: currentColor; animation: wg-pulse 1.6s ease-in-out infinite; }
.oc-badge.brewing { background: rgba(154, 203, 255, 0.20); color: var(--secondary); }
.oc-badge.scheduled { background: rgba(233, 195, 73, 0.20); color: var(--tertiary); }
@keyframes wg-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Past / didn't-come-true card (compact) */
.op-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px; border-radius: var(--r-xl);
  background: rgba(25, 28, 29, 0.50); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.op-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.op-icon { width: 48px; height: 48px; border-radius: var(--r-full); display: grid; place-items: center; flex: 0 0 auto; background: var(--surface-variant); color: var(--on-surface-variant); }
.op-icon svg { width: 24px; height: 24px; }
.op-title { margin: 0; font-size: 16px; font-weight: 600; color: var(--on-surface); }
.op-sub { margin: 2px 0 0; font-size: 12px; color: var(--on-surface-variant); }
.op-right { display: flex; align-items: center; gap: 12px; }
.op-tag { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: var(--r-full); background: #3a2b12; color: var(--tertiary-fixed); }
.op-action {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 16px; border-radius: var(--r-full); border: 1px solid rgba(203, 190, 255, 0.3);
  background: rgba(203, 190, 255, 0.10); color: var(--primary);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
}
.op-action:hover { background: rgba(203, 190, 255, 0.18); }
.op-action svg { width: 16px; height: 16px; }

/* My Incantations (reward codes) */
.inc-card {
  padding: 24px; border-radius: var(--r-2xl);
  background: rgba(25, 28, 29, 0.80); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.inc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.inc-head .ic { color: var(--tertiary); font-size: 24px; }
.inc-head h3 { margin: 0; }
.inc-list { display: flex; flex-direction: column; gap: 12px; }
.inc-empty { color: var(--on-surface-variant); font-size: 14px; }
.inc-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px; border-radius: var(--r-lg);
  background: var(--surface-container); border: 1px solid rgba(255, 255, 255, 0.05);
}
.inc-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--on-surface); }
.inc-sub { margin: 0; font-size: 12px; color: var(--on-surface-variant); }
.inc-code { display: flex; align-items: center; gap: 8px; }
.inc-code code {
  font-family: var(--font-body); font-size: 15px; color: var(--tertiary);
  background: rgba(233, 195, 73, 0.10); padding: 4px 8px; border-radius: var(--r); user-select: all;
}
.inc-copy { width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; border: none; background: none; color: var(--on-surface-variant); border-radius: var(--r-full); }
.inc-copy:hover { background: var(--surface-variant); color: var(--on-surface); }
.inc-copy.copied { color: var(--primary); }
.inc-copy svg { width: 18px; height: 18px; }

/* ---- Fortune wheel (claim dialog) ---------------------------------------- */
.wheel-wrap { position: relative; width: 300px; height: 300px; max-width: 100%; margin: 18px auto 4px; }
.wheel {
  width: 300px; height: 300px; max-width: 100%; border-radius: 50%;
  border: 6px solid var(--surface-container-highest);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative; overflow: hidden;
}
.wheel-seg { position: absolute; inset: 0; display: flex; justify-content: center; pointer-events: none; }
.wheel-seg span { margin-top: 8px; font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55); }
.wheel-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent;
  border-top: 20px solid var(--primary); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}
.wheel-result { text-align: center; margin-top: 12px; }
.wheel-result[hidden] { display: none; }
.wheel-win { font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.wheel-code {
  display: inline-block; margin-top: 4px; padding: 8px 16px;
  background: var(--surface-container-high); border-radius: var(--r-lg);
  font-family: var(--font-body); font-size: 18px; letter-spacing: 0.06em; user-select: all; color: var(--tertiary);
}
.btn-lg { width: 100%; padding: 14px 22px; font-size: 16px; }

/* ---- Reward (watch-to-earn) dialog --------------------------------------- */
.reward-meter { text-align: center; margin-top: 8px; }
.reward-pct { font-family: var(--font-head); font-size: 48px; font-weight: 700; color: var(--primary); line-height: 1; }
.reward-track { height: 10px; border-radius: var(--r-full); background: var(--surface-container-high); overflow: hidden; margin: 14px 0 8px; }
.reward-bar { height: 100%; width: 0; border-radius: var(--r-full); background: linear-gradient(90deg, var(--secondary), var(--primary)); box-shadow: 0 0 12px rgba(203, 190, 255, 0.4); transition: width 0.4s ease; }
.reward-count { font-size: 13px; }
.reward-next { font-size: 13px; color: var(--tertiary); margin-top: 4px; font-weight: 600; min-height: 18px; }
#reward-watch svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }

/* ---- Account page -------------------------------------------------------- */
.acct-wrap {
  position: relative; max-width: 720px; margin: 0 auto;
  padding: 64px var(--margin-desktop) 96px;
  display: flex; flex-direction: column; gap: 48px; overflow: hidden;
}
.acct-orb { position: absolute; border-radius: var(--r-full); filter: blur(110px); pointer-events: none; z-index: 0; }
.acct-orb.a { top: 40px; left: -60px; width: 340px; height: 340px; background: rgba(203, 190, 255, 0.10); }
.acct-orb.b { bottom: 40px; right: -80px; width: 420px; height: 420px; background: rgba(154, 203, 255, 0.06); }
.acct-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 40px; }

.profile-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-3xl); padding: 40px 32px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
  background: linear-gradient(180deg, var(--surface-container) 0%, var(--surface) 100%);
  border: 1px solid rgba(72, 69, 80, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.avatar-lg { position: relative; width: 128px; height: 128px; }
.avatar-lg .glow {
  position: absolute; inset: 0; border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  filter: blur(22px); opacity: 0.5; transform: scale(1.1);
}
.avatar-lg .disc {
  position: relative; width: 128px; height: 128px; border-radius: var(--r-full);
  display: grid; place-items: center; z-index: 1;
  background: var(--surface-container-high);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 0 20px rgba(203, 190, 255, 0.2);
  color: var(--primary);
}
.avatar-lg .disc svg { width: 64px; height: 64px; }
.avatar-lg .badge-mark {
  position: absolute; bottom: 2px; right: 2px; z-index: 2;
  width: 36px; height: 36px; border-radius: var(--r-full);
  display: grid; place-items: center; color: var(--primary);
  background: var(--surface); border: 1px solid var(--outline-variant);
}
.avatar-lg .badge-mark svg { width: 18px; height: 18px; }
.acct-name { font-family: var(--font-head); font-size: 32px; line-height: 40px; font-weight: 600; margin: 0; word-break: break-word; }
.acct-email { display: inline-flex; align-items: center; gap: 8px; color: var(--on-surface-variant); }
.acct-email svg { width: 18px; height: 18px; }

.acct-section { display: flex; flex-direction: column; gap: 16px; }
.acct-section > h3 {
  margin: 0; padding: 0 8px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary);
}
.rows {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-2xl); background: var(--surface-container-high);
  border: 1px solid rgba(72, 69, 80, 0.25); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 20px; text-align: left; cursor: pointer;
  background: none; border: none; color: inherit; font: inherit;
  transition: background 0.2s ease;
}
.row.static { cursor: default; }
.row:not(.static):hover { background: var(--surface-bright); }
.row-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.row-icon { width: 40px; height: 40px; border-radius: var(--r-full); display: grid; place-items: center; flex: 0 0 auto; }
.row-icon svg { width: 20px; height: 20px; }
.row-icon.p { background: rgba(203, 190, 255, 0.12); color: var(--primary); }
.row-icon.g { background: rgba(233, 195, 73, 0.12); color: var(--tertiary); }
.row-icon.s { background: rgba(154, 203, 255, 0.12); color: var(--secondary); }
.row-text { min-width: 0; }
.row-text .t { font-family: var(--font-body); font-size: 18px; color: var(--on-surface); }
.row-text .s { font-size: 12px; color: var(--on-surface-variant); word-break: break-word; }
.row-text .s.hl { color: var(--tertiary); }
.row-chev { color: var(--on-surface-variant); flex: 0 0 auto; }
.row-chev svg { width: 22px; height: 22px; }
.row-divider { height: 1px; background: rgba(72, 69, 80, 0.30); margin-left: 76px; }

.acct-actions { display: flex; justify-content: center; margin-top: 8px; }
.btn-signout {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; max-width: 320px; padding: 16px 32px; cursor: pointer;
  border-radius: var(--r-full);
  background: var(--surface-container); border: 1px solid rgba(255, 180, 171, 0.30);
  color: var(--error); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 0 24px rgba(186, 26, 26, 0.10); transition: background 0.2s ease;
}
.btn-signout:hover { background: rgba(147, 0, 10, 0.14); }
.btn-signout svg { width: 20px; height: 20px; }

.acct-signedout {
  position: relative; z-index: 1; text-align: center;
  border-radius: var(--r-3xl); padding: 48px 32px;
  background: var(--surface-container); border: 1px solid rgba(72, 69, 80, 0.35);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.acct-signedout .avatar-lg { margin-bottom: 8px; }

/* ---- Auth pages (custom sign-in / sign-up) ------------------------------- */
.auth-wrap {
  position: relative; min-height: calc(100vh - var(--header-h));
  display: grid; place-items: center; padding: 48px var(--margin-mobile); overflow: hidden;
}
.auth-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.7;
  background: radial-gradient(ellipse at top, var(--primary-container) 0%, var(--surface) 45%, var(--background) 80%);
}
.auth-orb { position: absolute; z-index: 0; border-radius: var(--r-full); filter: blur(110px); mix-blend-mode: screen; pointer-events: none; }
.auth-orb.a { top: -18%; left: -10%; width: 44%; height: 44%; background: rgba(203, 190, 255, 0.10); }
.auth-orb.b { top: 55%; right: -10%; width: 40%; height: 40%; background: rgba(154, 203, 255, 0.08); }
.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 440px; padding: 40px 32px;
  display: flex; flex-direction: column; gap: 28px;
  background: rgba(29, 32, 33, 0.30); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.10); border-radius: var(--r-2xl); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.auth-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.auth-badge { position: relative; width: 64px; height: 64px; border-radius: var(--r-full); display: grid; place-items: center; background: rgba(50, 53, 54, 0.5); color: var(--primary); }
.auth-badge::before { content: ""; position: absolute; inset: -1px; border-radius: var(--r-full); border: 1px solid rgba(203, 190, 255, 0.25); border-top-color: var(--primary); animation: auth-spin 4s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-badge svg { width: 30px; height: 30px; }
.auth-head h1 { font-family: var(--font-head); font-size: 24px; line-height: 32px; font-weight: 600; margin: 0; }
.auth-head p { margin: 0; color: var(--on-surface-variant); }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-fields { display: flex; flex-direction: column; gap: 16px; }
.auth-field { position: relative; }
.auth-field > .fic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--on-surface-variant); pointer-events: none; }
.auth-field > .fic svg { width: 20px; height: 20px; display: block; }
.auth-field input {
  width: 100%; font: inherit; color: var(--on-surface);
  padding: 15px 44px; border: 1px solid transparent; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(50, 53, 54, 0.30); border-radius: var(--r-lg);
}
.auth-field input::placeholder { color: rgba(202, 196, 210, 0.5); }
.auth-field input:focus { outline: none; border-bottom-color: var(--tertiary); background: rgba(50, 53, 54, 0.5); }
.auth-field .eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--on-surface-variant); padding: 6px; }
.auth-field .eye svg { width: 20px; height: 20px; display: block; }
.auth-inrow { display: flex; align-items: center; justify-content: space-between; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--on-surface-variant); font-size: 12px; }
.auth-check input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.auth-forgot { color: var(--tertiary); font-size: 12px; font-weight: 600; background: none; border: none; cursor: pointer; padding: 0; }
.auth-forgot:hover { text-decoration: underline; }
.btn-invoke {
  position: relative; overflow: hidden; width: 100%; cursor: pointer; border: none; border-radius: var(--r-lg); padding: 15px;
  background: linear-gradient(90deg, var(--secondary-container), var(--primary-container)); color: #e7deff;
  font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(45, 27, 105, 0.4); transition: transform 0.15s ease, box-shadow 0.3s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-invoke:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(45, 27, 105, 0.55); }
.btn-invoke:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-invoke svg { width: 18px; height: 18px; }
.auth-or { display: flex; align-items: center; gap: 16px; color: var(--on-surface-variant); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.auth-or::before, .auth-or::after { content: ""; height: 1px; flex: 1; background: rgba(72, 69, 80, 0.4); }
.auth-social { display: flex; flex-direction: column; gap: 12px; }
.btn-social {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; cursor: pointer;
  padding: 12px; border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(50, 53, 54, 0.4); color: var(--on-surface);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
}
.btn-social:hover { background: rgba(50, 53, 54, 0.7); }
.btn-social svg { width: 20px; height: 20px; }
.auth-alt { text-align: center; color: var(--on-surface-variant); font-size: 14px; }
.auth-alt a { color: var(--primary); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }
.auth-error { color: var(--error); font-size: 13px; text-align: center; }
.auth-error:empty { display: none; }
.auth-note { color: var(--on-surface-variant); font-size: 13px; text-align: center; }
.auth-legal { color: var(--on-surface-variant); font-size: 12px; line-height: 18px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.auth-legal input { margin-top: 1px; width: 18px; height: 18px; accent-color: var(--primary); flex: 0 0 auto; cursor: pointer; }
.auth-legal a { color: var(--primary); font-weight: 600; }
.pw-hint { color: var(--on-surface-variant); font-size: 12px; margin-top: -4px; }
[data-view][hidden] { display: none; }

/* ---- Legal pages (terms / privacy) --------------------------------------- */
.legal { max-width: 780px; margin: 0 auto; padding: 56px var(--margin-desktop) 96px; }
.legal-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  color: var(--primary); font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.legal-eyebrow svg { width: 16px; height: 16px; }
.legal h1 { font-family: var(--font-head); font-size: 40px; line-height: 48px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.legal .legal-meta { color: var(--on-surface-variant); font-size: 14px; margin: 0 0 8px; }
.legal .legal-meta a { color: var(--primary); }
.legal h2 {
  font-family: var(--font-head); font-size: 26px; line-height: 34px; font-weight: 600;
  margin: 48px 0 8px; padding-top: 8px;
}
.legal h3 { font-family: var(--font-head); font-size: 19px; line-height: 26px; font-weight: 600; margin: 28px 0 6px; color: var(--on-surface); }
.legal p { color: var(--on-surface-variant); line-height: 28px; margin: 12px 0; }
.legal ul { margin: 12px 0; padding-left: 22px; }
.legal li { color: var(--on-surface-variant); line-height: 28px; margin: 8px 0; }
.legal strong { color: var(--on-surface); font-weight: 600; }
.legal a { color: var(--primary); }
.legal hr { border: none; border-top: 1px solid var(--outline-variant); margin: 40px 0; }
.legal-provider {
  margin: 20px 0 8px; padding: 20px 22px; border-radius: var(--r-2xl);
  background: rgba(50, 53, 54, 0.35); border: 1px solid rgba(255, 255, 255, 0.06);
}
.legal-provider p { margin: 4px 0; }
.legal-fill { color: var(--tertiary); font-style: italic; }
.legal-updated { margin-top: 8px; }

/* ---- Responsive: mobile -------------------------------------------------- */
@media (max-width: 900px) {
  .wg-header { height: var(--header-h-mobile); padding: 0 var(--margin-mobile); padding-top: env(safe-area-inset-top, 0px); }
  .wg-brand img { height: 32px; }
  .wg-wordmark { display: none; }
  .wg-pagetitle { display: inline; }
  .wg-nav-desktop { display: none; }
  .wg-avatar { width: 36px; height: 36px; }

  .wg-nav { display: block; }
  .wg-main { padding-top: var(--header-h-mobile); padding-bottom: calc(var(--nav-h-mobile) + env(safe-area-inset-bottom, 0px)); }

  /* Mobile hero: centered, no full-bleed photo */
  .hero { height: auto; margin-top: 0; background: transparent; }
  .hero-bg { display: none; }
  .hero-scrim { display: none; }
  .hero-inner { padding: 32px var(--margin-mobile) 32px; align-items: center; }
  .hero-row { flex-direction: column; align-items: center; text-align: center; gap: 24px; width: 100%; }
  .hero-info { align-items: center; text-align: center; }
  .pill .pill-prefix { display: none; }
  .pill span.txt { letter-spacing: 0.02em; }
  .hero-temp { font-size: 80px; line-height: 80px; }
  .hero-desc { margin-bottom: 8px; }
  .btn-wish {
    width: 100%; max-width: 320px; justify-content: center; border-radius: var(--r-full);
    background: var(--surface-container-highest); color: var(--on-surface);
    box-shadow: 0 0 24px rgba(203, 190, 255, 0.25);
  }
  .btn-wish svg { color: var(--tertiary); }

  .featured { padding: 8px 0 40px; }
  .featured-orb { display: none; }
  .featured .wg-container { padding: 0 var(--margin-mobile); }
  .featured-head { flex-direction: row; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
  .featured-head h2 { font-size: 24px; line-height: 32px; }
  .featured-head p { display: none; }
  .featured-head .link { display: inline-block; white-space: nowrap; }
  .featured-grid { grid-template-columns: 1fr; gap: 16px; }
  .feat-card { min-height: 192px; padding: 0; border-radius: var(--r-xl); }
  .feat-card:nth-child(2) { margin-top: 0; }
  .feat-card .bg { opacity: 1; mix-blend-mode: normal; }
  .feat-card .veil { background: linear-gradient(to top, var(--surface-dim) 0%, rgba(17,20,21,0.4) 40%, transparent 100%); }
  .feat-card .body { padding: 20px; }

  .wg-footer { display: none; }

  /* Legal pages (mobile) */
  .legal { padding: 24px var(--margin-mobile) 32px; }
  .legal h1 { font-size: 30px; line-height: 38px; }
  .legal h2 { font-size: 22px; line-height: 30px; margin-top: 36px; }

  /* Order composer (mobile) */
  .composer { padding: 16px 0 32px; }
  .composer-orb { display: none; }
  .composer-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 var(--margin-mobile); }
  .sculptor { position: static; gap: 16px; }
  .sculptor-eyebrow, .sculptor h1, .sculptor > .lead { display: none; }
  .steps { flex-direction: row; overflow-x: auto; gap: 12px; padding-bottom: 4px; }
  .steps::before { display: none; }
  .step-btn { flex-direction: column; gap: 8px; text-align: center; min-width: 68px; }
  .step-num { display: none; }
  .step-title { font-size: 12px; line-height: 16px; }
  .composer-panel { padding: 24px 20px; border-radius: var(--r-3xl); }
  .icon-card { width: 108px; min-height: 108px; padding: 16px 10px; }
  .icon-card .ic-lg svg { width: 36px; height: 36px; }

  /* My Orders (mobile) */
  .orders-wrap { padding: 24px var(--margin-mobile) 24px; }
  .orders-head { margin: 8px 0 24px; }
  .orders-grid { grid-template-columns: 1fr; gap: 32px; }
  .orders-side { order: 3; }
  .oc-icon { width: 48px; height: 48px; }
  .oc-icon svg { width: 24px; height: 24px; }
  .oc-title { font-size: 20px; line-height: 28px; }
  .oc-row { gap: 16px; }
  .oc-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }

  /* Account (mobile) */
  .acct-wrap { padding: 24px var(--margin-mobile) 24px; gap: 32px; }
  .acct-inner { gap: 32px; }
  .profile-card { border-radius: 32px; padding: 32px 24px; }
  .acct-name { font-size: 28px; line-height: 36px; }
}

@media (max-width: 900px) {
  .t-display { font-size: 32px; line-height: 40px; }
  .t-headline-lg { font-size: 28px; line-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
