/* =========================================================
   Attract & Align — app-hub styles
   Palette derived from hero.jpg:
   black → royal/electric blue cosmos · violet glow ·
   warm GOLD accent (her hair) · white text
   Social icons keep official brand colors.
   ========================================================= */

:root {
  /* Cosmic base (from the photo's background) */
  --bg:          #000000;
  --bg-card:     #05030f;

  --blue:        #2f28bf;   /* royal electric blue (cards)  */
  --blue-bright: #4339e6;   /* hover                        */
  --blue-deep:   #1c1675;   /* card gradient / borders      */
  --violet:      #6b54b0;   /* energy glow                  */
  --cyan:        #6aa8ff;

  /* Gold accent (from her hair / abundance) */
  --gold:        #ecc77d;
  --gold-bright: #f7dc9d;
  --gold-deep:   #cda14e;
  --gold-grad:   linear-gradient(180deg, #f7dc9d 0%, #e6bd66 55%, #cda14e 100%);

  --ink:         #ffffff;
  --ink-soft:    #d8d4f2;
  --ink-faint:   #9a93c4;

  /* Type */
  --serif:   "Cinzel", Georgia, serif;             /* small-caps titles  */
  --display: "Playfair Display", Georgia, serif;   /* elegant hero title */
  --sans:    "Inter", system-ui, sans-serif;       /* body               */

  --app-w:    460px;
  --radius:   16px;
  --radius-lg:24px;
  --ease:     cubic-bezier(.22, 1, .36, 1);
  --shadow:   0 10px 30px -10px rgba(47, 40, 191, 0.5);
  --tabbar-h: 70px;
}

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--gold); color: #1a1206; padding: .55rem 1rem; border-radius: 10px;
  box-shadow: var(--shadow); transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }

.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0); }

/* ---------- Black cosmic backdrop ---------- */
.aura {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(46% 36% at 50% 20%, rgba(47,40,191,.45), transparent 70%),
    radial-gradient(42% 32% at 80% 68%, rgba(107,84,176,.30), transparent 72%),
    radial-gradient(40% 30% at 16% 78%, rgba(106,168,255,.18), transparent 72%),
    radial-gradient(38% 30% at 50% 100%, rgba(236,199,125,.10), transparent 70%),
    var(--bg);
}
.aura__blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
  animation: drift 20s ease-in-out infinite; }
.aura__blob--1 { width: 42vw; height: 42vw; left: 50%; top: -8vw; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(67,57,230,.6), transparent 70%); }
.aura__blob--2 { width: 36vw; height: 36vw; right: -8vw; top: 34vh; animation-delay: -7s;
  background: radial-gradient(circle, rgba(107,84,176,.42), transparent 70%); }
.aura__blob--3 { width: 38vw; height: 38vw; left: -8vw; bottom: -10vw; animation-delay: -13s;
  background: radial-gradient(circle, rgba(236,199,125,.20), transparent 70%); }
.aura__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(2vw,-2vw) scale(1.06); }
}

/* ---------- App shell ---------- */
.app {
  width: min(100%, var(--app-w));
  margin-inline: auto;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: 0 16px calc(var(--tabbar-h) + 22px);
}

/* ---------- Top header ---------- */
.topbar { padding: 20px 0 14px; text-align: center; position: sticky; top: 0; z-index: 30; }
.topbar::before { content: ""; position: absolute; inset: -20px 0 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg) 35%, transparent);
  -webkit-mask: linear-gradient(180deg, #000 60%, transparent);
          mask: linear-gradient(180deg, #000 60%, transparent); }
.topbar__title {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: clamp(.9rem, 3.6vw, 1.05rem); letter-spacing: .28em; text-transform: uppercase;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Hero card ---------- */
.hero {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 12px 44px -12px rgba(47,40,191,.6); aspect-ratio: 1 / 1; margin-top: 6px;
  background: var(--bg-card); border: 1px solid rgba(236,199,125,.18);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* Cosmic gradient fallback shown only if hero.jpg is missing */
.hero__art {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 50% 28%, #4339e6 0%, transparent 60%),
    radial-gradient(70% 60% at 22% 72%, #6aa8ff 0%, transparent 62%),
    radial-gradient(70% 60% at 80% 78%, #6b54b0 0%, transparent 60%),
    linear-gradient(160deg, #161048, #0a0a2e 55%, #05030f);
  display: grid; place-items: center; color: rgba(236,199,125,.6);
}
.hero__mandala { width: 76%; filter: drop-shadow(0 0 18px rgba(236,199,125,.5)); }
.hero__mandala svg { width: 100%; height: auto; }
.hero__petals { animation: spin 60s linear infinite; transform-origin: 100px 100px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__overlay {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 30px 22px 26px; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(3,2,12,.55) 42%, rgba(3,2,12,.9));
}
.hero__title {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(2rem, 9vw, 2.7rem); letter-spacing: .5px; line-height: 1;
  color: #fff; text-shadow: 0 2px 20px rgba(236,199,125,.45), 0 1px 2px rgba(0,0,0,.55);
}
.hero__sub {
  margin: 9px auto 0; max-width: 32ch; color: rgba(255,255,255,.92);
  font-size: .84rem; line-height: 1.5; text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

/* Social row — official brand colors */
.socials { display: flex; justify-content: center; gap: 13px; margin-top: 18px; }
.social {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: #333;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.10);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.social svg { width: 22px; height: 22px; }
.social:hover { transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 26px -6px rgba(0,0,0,.85); }
.social--spotify   { background: #1db954; }
.social--tiktok    { background: #010101; }
.social--youtube   { background: #ff0000; }
.social--instagram { background: linear-gradient(45deg,#feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5); }
.social--facebook  { background: #1877f2; }

/* ---------- Menu tiles — royal-blue cards, gold titles ---------- */
.menu { display: flex; flex-direction: column; gap: 13px; margin-top: 18px; }
.tile {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px;
  background: linear-gradient(135deg, #322ac4 0%, #211b8f 100%);
  border: 1px solid rgba(236,199,125,.22); border-radius: var(--radius);
  box-shadow: 0 8px 24px -12px rgba(47,40,191,.7);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.tile:hover { transform: translateY(-2px); border-color: rgba(236,199,125,.55);
  box-shadow: 0 14px 32px -12px rgba(47,40,191,.85), 0 0 0 1px rgba(236,199,125,.25); }
.tile:active { transform: translateY(0); }

.tile__badge {
  flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.35rem; color: var(--gold-bright); background: rgba(236,199,125,.14);
  box-shadow: inset 0 0 0 1px rgba(236,199,125,.32);
}

.tile__body { flex: 1; min-width: 0; }
.tile__title {
  display: block; font-family: var(--serif); font-weight: 600; font-size: 1rem;
  letter-spacing: .07em; text-transform: uppercase;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tile__sub { display: block; margin-top: 3px; font-size: .8rem; color: rgba(255,255,255,.8); }
.tile__chev { flex: none; font-size: 1.5rem; color: var(--gold); line-height: 1;
  transition: transform .2s var(--ease); }
.tile:hover .tile__chev { transform: translateX(3px); color: var(--gold-bright); }

.madewith { text-align: center; margin: 26px 0 6px; font-family: var(--serif);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- Bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 40;
  width: min(100%, var(--app-w)); height: var(--tabbar-h);
  display: grid; grid-template-columns: repeat(6, 1fr); align-items: center;
  padding: 0 6px calc(env(safe-area-inset-bottom, 0));
  background: rgba(6,5,20,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(236,199,125,.30);
  box-shadow: 0 -8px 30px -16px rgba(47,40,191,.7);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0;
  color: var(--ink-faint); transition: color .2s var(--ease), transform .2s var(--ease); }
.tab__icon { font-size: 1.2rem; line-height: 1; }
.tab__label { font-family: var(--serif); font-size: .56rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 600; }
.tab:hover { color: var(--ink-soft); transform: translateY(-1px); }
.tab.is-active { color: var(--gold); text-shadow: 0 0 12px rgba(236,199,125,.7); }
.tab.is-active .tab__icon { color: var(--gold-bright); }

/* ---------- Subpage (Songs & Lyrics, etc.) ---------- */
.subhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--gold);
  font-family: var(--serif); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.backlink:hover { color: var(--gold-bright); transform: translateX(-2px); }
.backlink__arrow { font-size: 1.1rem; line-height: 1; }

.page-head { text-align: center; margin: 12px 0 18px; }
.page-head h1 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; font-size: clamp(1.3rem, 5.4vw, 1.7rem);
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { color: var(--ink-soft); font-size: .85rem; margin: .45rem auto 0; max-width: 32ch; }

/* Streaming chips */
.streaming { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.stream-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px;
  background: linear-gradient(135deg, #322ac4 0%, #211b8f 100%);
  border: 1px solid rgba(236,199,125,.22); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.stream-link:hover { transform: translateY(-2px); border-color: rgba(236,199,125,.5); }
.stream-link__ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.stream-link__ic svg { width: 19px; height: 19px; }
.stream-link__ic--spotify { background: #1db954; }
.stream-link__ic--youtube { background: #ff0000; }
.stream-link span { flex: 1; font-weight: 600; font-size: .9rem; color: #fff; white-space: nowrap; }
.stream-link__chev { flex: none; color: var(--gold); font-size: 1.3rem; }

/* Song list */
.songs { display: flex; flex-direction: column; gap: 11px; }
.song { display: flex; align-items: center; gap: 13px; padding: 10px; border-radius: 14px;
  background: linear-gradient(135deg, #2b24a8 0%, #1d1780 100%);
  border: 1px solid rgba(236,199,125,.18);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.song:hover { transform: translateY(-2px); border-color: rgba(236,199,125,.5);
  box-shadow: 0 12px 28px -14px rgba(47,40,191,.85); }
.song__art { flex: none; width: 60px; height: 60px; border-radius: 11px; object-fit: cover;
  display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(236,199,125,.3); }
.song__art--ph1 { background: radial-gradient(circle at 30% 25%, #6b54b0, #1d1780 70%); }
.song__art--ph2 { background: radial-gradient(circle at 30% 25%, #4339e6, #120c5c 70%); }
.song__art--ph3 { background: radial-gradient(circle at 30% 25%, #c850e0, #3a1f6b 70%); }
.song__art--ph4 { background: radial-gradient(circle at 30% 25%, #ecc77d, #6b4a1f 72%); color: #2a1c06; }
.song__art--ph5 { background: radial-gradient(circle at 30% 25%, #6aa8ff, #102a66 70%); }
.song__body { flex: 1; min-width: 0; }
.song__title { display: block; font-family: var(--serif); font-weight: 600; font-size: .9rem;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.song__sub { display: block; font-size: .75rem; color: rgba(255,255,255,.68); margin-top: 2px; }
.song__chev { flex: none; color: var(--gold); font-size: 1.4rem; transition: transform .2s var(--ease); }
.song:hover .song__chev { transform: translateX(3px); color: var(--gold-bright); }

/* ---------- Free Alignment Code (numerology) ---------- */
.code-orb { width: 94px; height: 94px; margin: 8px auto 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.3rem; color: var(--gold-bright);
  background: radial-gradient(circle at 35% 28%, #6b54b0, #1d1780 72%);
  box-shadow: 0 0 44px rgba(107,84,176,.6), inset 0 0 0 1px rgba(236,199,125,.4);
  animation: orbpulse 4s var(--ease) infinite; }
@keyframes orbpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.input-card, .result-card {
  background: linear-gradient(135deg, #2b24a8 0%, #1d1780 100%);
  border: 1px solid rgba(236,199,125,.22); border-radius: var(--radius-lg);
  padding: 22px 20px; box-shadow: 0 10px 30px -14px rgba(47,40,191,.8); }
.input-card { margin-top: 18px; }

.field-label { display: block; font-family: var(--serif); font-weight: 600; font-size: .66rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 9px; }
.date-input { width: 100%; padding: 13px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(236,199,125,.3); background: rgba(0,0,0,.32); color: #fff;
  font-family: var(--sans); font-size: 1rem; color-scheme: dark; transition: border-color .2s var(--ease); }
.date-input:focus { outline: none; border-color: var(--gold); }

.btn-reveal { width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 100px; cursor: pointer;
  font-family: var(--serif); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem;
  color: #2a1c06; background: var(--gold-grad); box-shadow: 0 10px 26px -10px rgba(236,199,125,.7);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn-reveal:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(236,199,125,.9); }
.btn-reveal:active { transform: translateY(0); }
.code-error { color: #ffb3c7; font-size: .82rem; margin-top: 10px; text-align: center; min-height: 1em; }

.result-card { margin-top: 16px; text-align: center; }
.result-card[hidden] { display: none; }
.result-card.is-shown { animation: rise .6s var(--ease); }
.result-label { font-family: var(--serif); font-weight: 600; font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); }
.result-number { font-family: var(--display); font-weight: 700; font-size: 4.2rem; line-height: 1; margin: 4px 0 2px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 30px rgba(236,199,125,.4); }
.result-title { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; }
.result-desc { color: rgba(255,255,255,.85); font-size: .9rem; line-height: 1.6; margin: 14px auto 0; max-width: 36ch; }
.reminder { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px;
  background: rgba(236,199,125,.08); border: 1px solid rgba(236,199,125,.28); }
.reminder__label { display: block; font-family: var(--serif); font-size: .58rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.reminder__text { font-family: var(--display); font-style: italic; font-size: 1.02rem; color: #fff; }
.btn-premium { display: block; width: 100%; margin-top: 18px; padding: 15px 14px; border-radius: 14px;
  font-weight: 600; font-size: .86rem; color: #fff; text-align: center;
  background: linear-gradient(135deg, #4339e6 0%, #6b54b0 55%, #c850e0 100%);
  border: 1px solid rgba(236,199,125,.45); box-shadow: 0 10px 30px -12px rgba(107,84,176,.9);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn-premium:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(200,80,224,.8); }

/* ---------- Daily Affirmations flip card ---------- */
.flip { perspective: 1200px; width: 100%; max-width: 330px; margin: 14px auto 0; }
.flip__inner { position: relative; width: 100%; aspect-ratio: 4 / 5; transform-style: preserve-3d;
  transition: transform .7s var(--ease); cursor: pointer; }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip:focus-visible { outline: none; }
.flip:focus-visible .flip__inner { box-shadow: 0 0 0 3px var(--gold-bright); border-radius: 22px; }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 22px; overflow: hidden; border: 1px solid rgba(236,199,125,.35);
  box-shadow: 0 18px 46px -18px rgba(47,40,191,.85); }
.flip__front img { width: 100%; height: 100%; object-fit: cover; }
.flip__front-overlay { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px;
  background: linear-gradient(180deg, rgba(3,2,12,.25) 0%, rgba(3,2,12,.5) 55%, rgba(3,2,12,.82)); }
.flip__tap { font-family: var(--display); font-weight: 700; font-size: 1.7rem; color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.7); }
.flip__hint { font-family: var(--serif); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); }
.flip__back { transform: rotateY(180deg);
  background: linear-gradient(150deg, #2b24a8 0%, #1d1780 60%, #161048 100%);
  display: grid; place-items: center; padding: 30px 26px; }
.flip__back::before { content: "\201C"; position: absolute; top: 6px; left: 18px; font-family: var(--display);
  font-size: 3rem; color: var(--gold); opacity: .35; line-height: 1; }
.flip__aff { font-family: var(--display); font-style: italic; font-size: 1.32rem; line-height: 1.45;
  color: #fff; text-align: center; }

.newcard-wrap { text-align: center; margin-top: 22px; }
.btn-newcard { display: inline-flex; align-items: center; gap: 8px; padding: 11px 26px; border-radius: 100px;
  cursor: pointer; font-family: var(--serif); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  font-size: .72rem; color: var(--gold); background: rgba(236,199,125,.08);
  border: 1px solid rgba(236,199,125,.45);
  transition: background .2s var(--ease), transform .2s var(--ease), color .2s var(--ease); }
.btn-newcard:hover { background: rgba(236,199,125,.16); transform: translateY(-2px); color: var(--gold-bright); }
.btn-newcard:active { transform: translateY(0); }

/* ---------- Free Star Code (birth chart) ---------- */
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.text-input, .select-input, .time-input, .date-input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(236,199,125,.3);
  background: rgba(0,0,0,.32); color: #fff; font-family: var(--sans); font-size: .98rem;
  color-scheme: dark; transition: border-color .2s var(--ease); }
.text-input:focus, .select-input:focus, .time-input:focus { outline: none; border-color: var(--gold); }
.text-input::placeholder { color: var(--ink-faint); }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.checkbox-row label { font-size: .82rem; color: var(--ink-soft); cursor: pointer; }

.loading { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold);
  font-family: var(--serif); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; margin: 18px 0; }
.loading[hidden] { display: none; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(236,199,125,.3); border-top-color: var(--gold);
  border-radius: 50%; animation: spin 0.8s linear infinite; }

.star-result { text-align: left; }
.star-result .result-label { text-align: center; display: block; }
.star-wholine { text-align: center; color: var(--ink-soft); font-size: .82rem; margin: 2px 0 10px; }
.starsummary { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin: 4px 0 6px; }
.star-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 100px;
  background: rgba(236,199,125,.1); border: 1px solid rgba(236,199,125,.32); font-size: .82rem; color: #fff; }
.star-chip b { color: var(--gold); font-family: var(--serif); }

.chart-wrap { margin: 14px 0 4px; text-align: center; }
.chart-svg { width: 100%; max-width: 360px; height: auto; margin: 0 auto; display: block; }

.placements { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .84rem; }
.placements th { font-family: var(--serif); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); text-align: left; padding: 8px 6px; border-bottom: 1px solid rgba(236,199,125,.25); }
.placements td { padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
.placements .pl-glyph { font-size: 1.15rem; color: var(--gold); width: 1.4rem; }
.placements .retro { color: #ff9ec4; font-size: .72rem; }

.readings { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.reading { padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg, #2b24a8 0%, #1d1780 100%); border: 1px solid rgba(236,199,125,.2); }
.reading h3 { font-family: var(--serif); font-size: .82rem; letter-spacing: .08em; color: var(--gold);
  margin: 0 0 4px; text-transform: uppercase; }
.reading p { margin: 0; font-size: .86rem; line-height: 1.55; color: rgba(255,255,255,.9); }
.star-note { font-size: .74rem; color: var(--ink-faint); text-align: center; margin-top: 12px; font-style: italic; }

/* ---------- YouTube playlist embed ---------- */
.yt-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 18px 0 14px;
  border-radius: 16px; overflow: hidden; border: 1px solid rgba(236,199,125,.3);
  box-shadow: 0 12px 34px -14px rgba(47,40,191,.75); background: #000; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- My Journey ---------- */
.journey-card { background: linear-gradient(135deg, #2b24a8 0%, #1d1780 100%);
  border: 1px solid rgba(236,199,125,.2); border-radius: 20px; padding: 20px; margin-top: 16px; }
.journey-card h2 { font-family: var(--serif); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px; }
.intention-display { font-family: var(--display); font-style: italic; font-size: 1.18rem; color: #fff;
  line-height: 1.4; min-height: 1.4em; }
.intention-display.empty { color: var(--ink-faint); font-style: italic; }
.journey-input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(236,199,125,.3);
  background: rgba(0,0,0,.32); color: #fff; font-family: var(--sans); font-size: .95rem; resize: vertical; }
.journey-input:focus { outline: none; border-color: var(--gold); }
.journey-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.btn-sm { font-family: var(--serif); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; padding: 10px 18px; border-radius: 100px; border: 0; color: #2a1c06; background: var(--gold-grad);
  transition: transform .2s var(--ease); }
.btn-sm:hover { transform: translateY(-2px); }
.btn-sm--ghost { color: var(--gold); background: rgba(236,199,125,.08); border: 1px solid rgba(236,199,125,.4); }
.streak { display: flex; align-items: center; gap: 14px; }
.streak__num { font-family: var(--display); font-size: 2.4rem; color: var(--gold-bright); line-height: 1; }
.streak__txt { font-size: .82rem; color: var(--ink-soft); }
.log-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.log-item { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: rgba(255,255,255,.92);
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.log-item time { color: var(--ink-faint); font-size: .7rem; white-space: nowrap; }
.log-empty { color: var(--ink-faint); font-size: .82rem; font-style: italic; text-align: center; padding: 10px; }

/* ---------- Shop ---------- */
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 18px; }
.product { display: flex; flex-direction: column; background: linear-gradient(135deg, #2b24a8 0%, #1d1780 100%);
  border: 1px solid rgba(236,199,125,.2); border-radius: 16px; overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s var(--ease); }
.product:hover { transform: translateY(-3px); border-color: rgba(236,199,125,.55); }
.product__img { aspect-ratio: 1 / 1; display: grid; place-items: center; font-size: 2.4rem; color: var(--gold-bright);
  background: radial-gradient(circle at 35% 28%, #4339e6, #161048 75%); }
.product__body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product__title { font-family: var(--serif); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product__desc { font-size: .74rem; color: rgba(255,255,255,.72); flex: 1; line-height: 1.45; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.product__price { font-family: var(--display); font-weight: 600; color: #fff; font-size: 1.05rem; }
.product__btn { font-family: var(--serif); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  color: #2a1c06; background: var(--gold-grad); padding: 8px 13px; border-radius: 100px; white-space: nowrap; }
.product--wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.product--wide .product__img { width: 104px; aspect-ratio: 1; flex: none; font-size: 2.2rem; }
.shop-note { text-align: center; color: var(--ink-faint); font-size: .76rem; font-style: italic; margin-top: 14px; }

/* ---------- Date & time inputs — robust on iOS Safari ---------- */
.date-input, .time-input {
  -webkit-appearance: none; appearance: none;
  color: #fff; -webkit-text-fill-color: #fff; color-scheme: dark;
  min-height: 50px; line-height: 1.2;
  background-color: rgba(0,0,0,.32);
  background-repeat: no-repeat; background-position: right 14px center; background-size: 19px 19px;
  padding-right: 44px;
}
.date-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ecc77d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}
.time-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ecc77d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15 14'/%3E%3C/svg%3E");
}
/* hide the default desktop picker icon (stays clickable) so there's no double icon */
.date-input::-webkit-calendar-picker-indicator,
.time-input::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
/* iOS: keep the value left-aligned and readable */
.date-input::-webkit-date-and-time-value,
.time-input::-webkit-date-and-time-value { text-align: left; }

/* ---------- Song lyrics page ---------- */
.song-head { display: flex; align-items: center; gap: 14px; margin-top: 8px;
  padding: 14px; border-radius: var(--radius);
  background: linear-gradient(135deg, #2b24a8 0%, #1d1780 100%); border: 1px solid rgba(236,199,125,.22); }
.song-head__art { flex: none; width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.6rem; color: #fff; box-shadow: inset 0 0 0 1px rgba(236,199,125,.3);
  background: radial-gradient(circle at 30% 25%, #6b54b0, #1d1780 70%); }
.song-head__title { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .05em;
  text-transform: uppercase; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.song-head__sub { display: block; font-size: .78rem; color: rgba(255,255,255,.72); margin-top: 3px; }

.track-embed { margin-top: 14px; }
.track-embed iframe { width: 100%; height: 152px; border: 0; border-radius: 12px; display: block; }

.lyrics { margin-top: 16px; padding: 20px 18px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04); border: 1px solid rgba(236,199,125,.18); }
.lyrics__label { display: block; font-family: var(--serif); font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px; text-align: center; }
.lyrics .stanza { margin: 0 0 22px; text-align: center; }
.lyrics .stanza:last-child { margin-bottom: 0; }
.lyrics .stanza span { display: block; font-family: var(--display); font-size: 1.06rem; line-height: 1.75;
  color: rgba(255,255,255,.92); }
.lyrics .stanza--tag span { font-style: italic; color: var(--gold); }
.lyrics .stanza .stanza__name { display: block; font-family: var(--serif); font-size: .56rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 9px;
  font-style: normal; opacity: .9; }

/* ---------- Reveal ---------- */
.hero, .tile, .madewith, .song, .stream-link { opacity: 0; transform: translateY(16px);
  animation: rise .6s var(--ease) forwards; }
.tile:nth-child(1) { animation-delay: .05s; }
.tile:nth-child(2) { animation-delay: .10s; }
.tile:nth-child(3) { animation-delay: .15s; }
.tile:nth-child(4) { animation-delay: .20s; }
.tile:nth-child(5) { animation-delay: .25s; }
.tile:nth-child(6) { animation-delay: .30s; }
.streaming .stream-link:nth-child(1) { animation-delay: .04s; }
.streaming .stream-link:nth-child(2) { animation-delay: .08s; }
.songs .song:nth-child(1) { animation-delay: .06s; }
.songs .song:nth-child(2) { animation-delay: .10s; }
.songs .song:nth-child(3) { animation-delay: .14s; }
.songs .song:nth-child(4) { animation-delay: .18s; }
.songs .song:nth-child(5) { animation-delay: .22s; }
.songs .song:nth-child(6) { animation-delay: .26s; }
.songs .song:nth-child(n+7) { animation-delay: .30s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Desktop framing ---------- */
@media (min-width: 768px) {
  .app { padding-top: 8px; }
}

/* ---------- Buy Us a Coffee (support page) ---------- */
.opt { color: var(--ink-faint); font-weight: 400; text-transform: none; letter-spacing: 0; }
.coffee-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }
.coffee-opt {
  padding: 12px 4px; border-radius: 12px; cursor: pointer; font-size: .9rem;
  color: var(--ink-soft); background: rgba(255,255,255,.04);
  border: 1px solid rgba(236,199,125,.28);
  transition: transform .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.coffee-opt b { color: var(--gold-bright); }
.coffee-opt:hover { transform: translateY(-2px); border-color: rgba(236,199,125,.6); }
.coffee-opt.is-active {
  background: rgba(236,199,125,.16); border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset, 0 8px 22px -12px rgba(236,199,125,.8);
}
.coffee-opt--custom { font-size: .82rem; }
.coffee-customwrap { margin-top: 14px; }
.coffee-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding: 13px 16px; border-radius: 12px;
  background: rgba(236,199,125,.08); border: 1px solid rgba(236,199,125,.25);
  font-family: var(--serif); color: var(--ink-soft); font-size: .9rem;
}
.coffee-total__amt {
  font-size: 1.4rem; font-weight: 700;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
textarea.text-input { resize: vertical; min-height: 64px; font-family: inherit; }
.coffee-note { margin-top: 12px; font-size: .72rem; color: var(--ink-faint); text-align: center; line-height: 1.5; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; }
  .hero, .tile, .madewith { opacity: 1; transform: none; }
}
