/* =============================================================
   DESIGN TOKENS
============================================================= */
:root {
  /* Background */
  --bg-0:       #06060e;
  --bg-1:       #0b0b18;
  --bg-2:       #100f20;
  --bg-card:    rgba(255,255,255,0.045);
  --bg-card-hv: rgba(255,255,255,0.08);

  /* Brand */
  --purple:      #7b2ff7;
  --purple-lt:   #a78bfa;
  --violet:      #9333ea;
  --pink:        #d946ef;
  --blue:        #6366f1;

  /* Text */
  --text-1:  #ede9ff;
  --text-2:  #a898c8;
  --text-3:  #6a5d8a;
  --text-4:  #3e3358;

  /* Borders */
  --border:    rgba(255,255,255,0.08);
  --border-hv: rgba(255,255,255,0.16);

  /* Gradients */
  --grad-main:   linear-gradient(135deg, #7b2ff7 0%, #d946ef 100%);
  --grad-text:   linear-gradient(90deg, #c084fc, #e879f9);
  --grad-card:   linear-gradient(135deg, rgba(123,47,247,.14), rgba(217,70,239,.06));
  --grad-hero:   radial-gradient(ellipse 80% 60% at 50% 0%, rgba(123,47,247,.22) 0%, transparent 70%);

  /* Shadows */
  --shadow-sm:   0 2px 12px rgba(0,0,0,.5);
  --shadow-md:   0 4px 24px rgba(0,0,0,.6);
  --shadow-lg:   0 8px 48px rgba(0,0,0,.7);

  /* Glow */
  --glow-purple: 0 0 24px rgba(123,47,247,.55), 0 0 48px rgba(123,47,247,.2);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'SF Mono', 'Fira Code', monospace;

  /* Scale */
  --text-xs:  11px;
  --text-sm:  13px;
  --text-base:15px;
  --text-md:  17px;
  --text-lg:  20px;
  --text-xl:  26px;
  --text-2xl: 34px;
  --text-3xl: 44px;

  /* Spacing */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;

  /* Radius */
  --r-sm: 8px;  --r-md: 12px; --r-lg: 16px;
  --r-xl: 20px; --r-2xl: 28px; --r-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --t-fast: 150ms var(--ease);
  --t-base: 260ms var(--ease);
  --t-slow: 420ms var(--ease);
}

/* =============================================================
   RESET & BASE
============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--text-base);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; border: none; background: none; cursor: pointer; }
ul, ol { list-style: none; }

/* Background gradient layer */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 50% at 20% -10%, rgba(123,47,247,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 80%,  rgba(99,102,241,.12)  0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* Stars canvas */
#stars-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .7;
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw;
}

/* All content above canvas */
#app { position: relative; z-index: 1; }

/* =============================================================
   TYPOGRAPHY
============================================================= */
.t-display {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.t-heading {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.t-title  { font-size: var(--text-lg); font-weight: 600; line-height: 1.3; }
.t-body   { font-size: var(--text-base); line-height: 1.65; }
.t-small  { font-size: var(--text-sm); color: var(--text-2); }
.t-micro  { font-size: var(--text-xs); color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================================
   LAYOUT
============================================================= */
.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--s5);
}

.container--wide {
  max-width: 1100px;
  padding: 0 var(--s5);
}

.section { padding: var(--s8) 0; }
.section--sm { padding: var(--s5) 0; }
.section--lg { padding: var(--s12) 0; }

/* =============================================================
   NAVIGATION
============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,6,14,.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--s5);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: -.02em;
}

.nav__logo-icon {
  width: 28px; height: 28px;
  background: var(--grad-main);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.nav__logo-icon svg { width: 16px; height: 16px; color: white; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.nav__link {
  font-size: var(--text-sm);
  color: var(--text-2);
  padding: var(--s2) var(--s3);
  border-radius: var(--r-full);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover,
.nav__link--active {
  color: var(--text-1);
  background: rgba(255,255,255,.07);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--s2);
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.nav__burger span {
  width: 22px; height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
  display: block;
}

/* Mobile: collapse links, show burger */
@media (max-width: 600px) {
  .nav__menu { display: none; }
  .nav__burger { display: flex; }

  .nav--open .nav__menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: rgba(11,11,24,.97);
    border-bottom: 1px solid var(--border);
    padding: var(--s4);
    gap: var(--s1);
    align-items: flex-start;
  }
  .nav--open .nav__link { width: 100%; padding: var(--s3) var(--s4); }
  .nav--open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav--open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav--open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =============================================================
   BREADCRUMBS
============================================================= */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s4) 0 var(--s3);
  flex-wrap: wrap;
}
.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
  color: var(--text-3);
}
.breadcrumbs__item a:hover { color: var(--purple-lt); }
.breadcrumbs__sep { color: var(--text-4); font-size: 10px; }
.breadcrumbs__item--current { color: var(--text-2); }

/* =============================================================
   ZODIAC ICON
============================================================= */
.zodiac-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.zodiac-icon svg {
  color: var(--icon-color, var(--purple-lt));
  transition: color var(--t-base);
}

.zodiac-icon--sm  { width: 40px;  height: 40px; }
.zodiac-icon--md  { width: 56px;  height: 56px; }
.zodiac-icon--lg  { width: 80px;  height: 80px; }
.zodiac-icon--xl  { width: 110px; height: 110px; }

.zodiac-icon--sm  svg { width: 22px; height: 22px; }
.zodiac-icon--md  svg { width: 30px; height: 30px; }
.zodiac-icon--lg  svg { width: 42px; height: 42px; }
.zodiac-icon--xl  svg { width: 58px; height: 58px; }

/* Glowing ring */
.zodiac-icon--ring {
  background: var(--bg-2);
  border: 1.5px solid rgba(255,255,255,.1);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), inset 0 1px 0 rgba(255,255,255,.06);
}
.zodiac-icon--ring:hover,
.sign-card:hover .zodiac-icon--ring {
  box-shadow: 0 0 20px var(--glow-color, rgba(123,47,247,.5)),
              0 0 40px var(--glow-color, rgba(123,47,247,.2));
  border-color: rgba(255,255,255,.2);
  transform: scale(1.04);
}

/* Large hero icon */
.zodiac-icon--hero {
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, var(--bg-2) 70%);
  border: 1.5px solid rgba(255,255,255,.1);
  animation: pulseGlow 3s ease-in-out infinite;
}

/* =============================================================
   SIGN CARDS GRID
============================================================= */
.signs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.sign-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  padding: var(--s4) var(--s3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  text-align: center;
  cursor: pointer;
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-base);

  /* reveal animation */
  opacity: 0;
  transform: translateY(16px);
}

.sign-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--t-slow), transform var(--t-slow), background var(--t-base), border-color var(--t-base);
}

.sign-card:hover {
  background: var(--bg-card-hv);
  border-color: var(--border-hv);
  transform: translateY(-2px);
}

.sign-card__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-1);
}
.sign-card__dates {
  font-size: var(--text-xs);
  color: var(--text-3);
  line-height: 1.3;
}

/* Stagger delay */
.sign-card:nth-child(1)  { transition-delay: .00s; }
.sign-card:nth-child(2)  { transition-delay: .04s; }
.sign-card:nth-child(3)  { transition-delay: .08s; }
.sign-card:nth-child(4)  { transition-delay: .12s; }
.sign-card:nth-child(5)  { transition-delay: .16s; }
.sign-card:nth-child(6)  { transition-delay: .20s; }
.sign-card:nth-child(7)  { transition-delay: .24s; }
.sign-card:nth-child(8)  { transition-delay: .28s; }
.sign-card:nth-child(9)  { transition-delay: .32s; }
.sign-card:nth-child(10) { transition-delay: .36s; }
.sign-card:nth-child(11) { transition-delay: .40s; }
.sign-card:nth-child(12) { transition-delay: .44s; }

/* =============================================================
   HERO SECTION
============================================================= */
.hero {
  padding: var(--s10) 0 var(--s8);
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(123,47,247,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero__date {
  font-size: var(--text-sm);
  color: var(--text-3);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
}

.hero__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: var(--s4);
}

.hero__sub {
  font-size: var(--text-base);
  color: var(--text-2);
  max-width: 340px;
  margin: 0 auto var(--s8);
  line-height: 1.6;
}

/* =============================================================
   HOROSCOPE PAGE
============================================================= */
.horoscope-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s8) 0 var(--s6);
  gap: var(--s4);
}

.horoscope-hero__sign-name {
  font-size: var(--text-sm);
  color: var(--text-3);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.horoscope-hero__title {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.horoscope-hero__date {
  font-size: var(--text-sm);
  color: var(--text-2);
}

/* ─── Period tabs ──────── */
.period-tabs {
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 var(--s5);
  margin: 0 calc(-1 * var(--s5));
  -webkit-overflow-scrolling: touch;
}
.period-tabs::-webkit-scrollbar { display: none; }

.period-tabs__item {
  display: inline-flex;
  align-items: center;
  padding: var(--s2) var(--s4);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.period-tabs__item:hover { color: var(--text-1); border-color: var(--border-hv); }
.period-tabs__item--active {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(123,47,247,.4);
}

/* ─── Type pills ──────── */
.type-pills {
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--s4) var(--s5);
  margin: 0 calc(-1 * var(--s5));
  -webkit-overflow-scrolling: touch;
}
.type-pills::-webkit-scrollbar { display: none; }

.type-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px var(--s3);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.type-pill:hover { color: var(--text-1); }
.type-pill--active {
  background: rgba(123,47,247,.18);
  color: var(--purple-lt);
  border-color: rgba(123,47,247,.35);
}

/* ─── Horoscope text card ──── */
.horoscope-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s6);
  position: relative;
  overflow: hidden;
}

.horoscope-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,47,247,.5), transparent);
}

.horoscope-card__body {
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--text-1);
}

.horoscope-card__body p + p { margin-top: var(--s4); }

.horoscope-card__footer {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── Empty state ──── */
.horoscope-empty {
  text-align: center;
  padding: var(--s10) var(--s5);
  color: var(--text-3);
}

/* =============================================================
   RELATED SIGNS (compact row)
============================================================= */
.related-signs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}

.related-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) var(--s2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: background var(--t-fast), border-color var(--t-fast);
  text-align: center;
}
.related-sign:hover { background: var(--bg-card-hv); border-color: var(--border-hv); }
.related-sign__name { font-size: var(--text-xs); color: var(--text-2); font-weight: 600; }

/* =============================================================
   SECTION HEADING
============================================================= */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s5);
}

.section-heading__title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-1);
}

.section-heading__link {
  font-size: var(--text-sm);
  color: var(--purple-lt);
  transition: opacity var(--t-fast);
}
.section-heading__link:hover { opacity: .75; }

/* =============================================================
   SIGN INFO CARD (sign page)
============================================================= */
.sign-info {
  background: var(--grad-card);
  border: 1px solid rgba(123,47,247,.25);
  border-radius: var(--r-2xl);
  padding: var(--s6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4) var(--s6);
}

.sign-info__item {}
.sign-info__label {
  font-size: var(--text-xs);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--s1);
}
.sign-info__value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-1);
}

/* =============================================================
   FOOTER
============================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s8) 0 var(--s10);
  margin-top: var(--s10);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8) var(--s6);
  margin-bottom: var(--s8);
}

.footer__col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: var(--s3);
}

.footer__list { display: flex; flex-direction: column; gap: var(--s2); }

.footer__link {
  font-size: var(--text-sm);
  color: var(--text-3);
  transition: color var(--t-fast);
}
.footer__link:hover { color: var(--purple-lt); }

.footer__bottom {
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3);
}

.footer__copy { font-size: var(--text-xs); color: var(--text-4); }

/* =============================================================
   UTILITY
============================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: var(--s6) 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(123,47,247,.18);
  color: var(--purple-lt);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .04em;
}

/* =============================================================
   ANIMATIONS
============================================================= */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 16px var(--glow-color, rgba(123,47,247,.4)), 0 0 32px var(--glow-color, rgba(123,47,247,.15)); }
  50%       { box-shadow: 0 0 28px var(--glow-color, rgba(123,47,247,.65)), 0 0 56px var(--glow-color, rgba(123,47,247,.25)); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -300px 0; }
  100% { background-position: 300px 0; }
}

.animate-fade-in     { animation: fadeIn    var(--t-slow) both; }
.animate-fade-in-up  { animation: fadeInUp  var(--t-slow) both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ─── Typewriter cursor ──── */
.tw-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--purple-lt);
  margin-left: 1px;
  vertical-align: text-bottom;
  border-radius: 1px;
  animation: tw-blink .75s steps(1) infinite;
}
@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─── Bookmark CTA ──── */
.bookmark-cta {
  margin: var(--s6) 0;
  padding: var(--s6) var(--s6) var(--s5);
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  text-align: center;
}
.bookmark-cta__title {
  font-size: var(--text-md);
  color: var(--text-1);
  font-weight: 600;
}
.bookmark-cta_
/* ─── Bookmark CTA (continued) ──── */
.bookmark-cta__sub {
  font-size: var(--text-sm);
  color: var(--text-2);
}
.bookmark-cta__keys {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: var(--s1) 0;
}
.bookmark-cta__keys-label {
  font-size: var(--text-sm);
  color: var(--text-3);
}
.bookmark-cta__keys-combo {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bookmark-cta__plus {
  color: var(--text-3);
  font-size: var(--text-sm);
}
.bookmark-cta kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 8px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-hv);
  border-bottom-width: 4px;
  border-radius: var(--r-sm);
  color: var(--purple-lt);
  font-family: var(--mono);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -.01em;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  transition: transform var(--t-fast);
}
.bookmark-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-2);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.bookmark-cta__btn:hover {
  border-color: var(--border-hv);
  color: var(--text-1);
}
@keyframes pulse-keys {
  0%, 100% { transform: scale(1); }
  30%       { transform: scale(1.12); }
  60%       { transform: scale(.95); }
}
.pulse kbd { animation: pulse-keys .4s var(--ease); }

/* =============================================================
   AUTH FORMS
============================================================= */
.auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8) var(--s8);
}
@media (max-width: 480px) {
  .auth-box { padding: var(--s6) var(--s5); }
}
.auth-box__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: var(--s2);
}
.auth-box__sub {
  font-size: var(--text-sm);
  color: var(--text-2);
  margin-bottom: var(--s6);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.auth-label {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  font-size: var(--text-sm);
  color: var(--text-2);
}
.auth-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: var(--text-base);
  font-family: var(--font);
  transition: border-color var(--t-fast);
  outline: none;
}
.auth-input:focus { border-color: var(--purple-lt); }
.auth-select { appearance: none; cursor: pointer; }
.auth-remember {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
  color: var(--text-2);
  cursor: pointer;
}
.auth-remember input[type="checkbox"] { accent-color: var(--purple); }
.auth-submit {
  width: 100%;
  padding: 12px;
  background: var(--grad-main);
  border: none;
  border-radius: var(--r-full);
  color: #fff;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.auth-submit:hover { opacity: .88; transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }
.auth-notice {
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  margin-bottom: var(--s4);
}
.auth-notice--ok {
  background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.25);
  color: #4ade80;
}
.auth-notice--err {
  background: rgba(248,113,113,.1);
  border: 1px solid rgba(248,113,113,.25);
  color: #f87171;
}
.auth-switch {
  text-align: center;
  margin-top: var(--s5);
  font-size: var(--text-sm);
  color: var(--text-3);
}
.auth-switch a { color: var(--purple-lt); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* =============================================================
   NAV: Profile / Login button
============================================================= */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.nav__profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(123,47,247,.15);
  border: 1px solid rgba(123,47,247,.3);
  border-radius: var(--r-full);
  color: var(--purple-lt);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.nav__profile-btn:hover,
.nav__profile-btn--active {
  background: rgba(123,47,247,.28);
  border-color: rgba(123,47,247,.55);
}
.nav__profile-label {
  display: none;
}
@media (min-width: 640px) {
  .nav__profile-label { display: inline; }
}

/* =============================================================
   PROFILE PAGE
============================================================= */
.profile-header {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--s4) var(--s5);
  padding: var(--s6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: var(--s6);
}
@media (max-width: 640px) {
  .profile-header {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
  }
  .profile-header__stats { grid-column: 1 / -1; }
}
.profile-header__avatar { line-height: 0; }
.profile-header__name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 2px;
}
.profile-header__email {
  font-size: var(--text-sm);
  color: var(--text-3);
}
.profile-header__sign {
  font-size: var(--text-sm);
  color: var(--purple-lt);
  margin-top: 2px;
}
.profile-header__stats {
  display: flex;
  gap: var(--s5);
}
.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
}
.profile-stat__value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--purple-lt);
  line-height: 1;
}
.profile-stat__label {
  font-size: var(--text-xs);
  color: var(--text-3);
  text-align: center;
}
.profile-logout {
  font-size: var(--text-xs);
  color: var(--text-4);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast);
}
.profile-logout:hover { color: var(--text-2); }

/* Profile cards */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s6);
  margin-bottom: var(--s5);
}
.profile-card__title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: var(--s5);
}

/* Mood check-in form */
.checkin-form { display: flex; flex-direction: column; gap: var(--s4); }
.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--s2);
}
.checkin-hint {
  font-size: var(--text-sm);
  color: var(--text-3);
  margin: 0 0 var(--s2);
}
.mood-option { cursor: pointer; }
.mood-option input[type="radio"],
.mood-option input[type="checkbox"] { display: none; }
.mood-option input:disabled + .mood-option__inner {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.mood-option__inner {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 10px 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: var(--text-sm);
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.mood-option__inner svg { color: var(--mood-color, var(--purple-lt)); flex-shrink: 0; }
.mood-option input:checked + .mood-option__inner {
  border-color: var(--mood-color, var(--purple-lt));
  background: color-mix(in srgb, var(--mood-color, var(--purple-lt)) 12%, transparent);
  color: var(--text-1);
}
.mood-option__inner:hover {
  border-color: var(--border-hv);
  color: var(--text-1);
}
.checkin-note {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: var(--text-sm);
  font-family: var(--font);
  resize: vertical;
  min-height: 72px;
  outline: none;
  transition: border-color var(--t-fast);
}
.checkin-note:focus { border-color: var(--purple-lt); }
.checkin-note::placeholder { color: var(--text-4); }

/* Done state */
.checkin-done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
}
.checkin-done__moods {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.checkin-done__mood {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
}
.checkin-done__text {
  font-size: var(--text-sm);
  color: var(--text-2);
}
.checkin-done__note {
  font-size: var(--text-sm);
  color: var(--text-3);
  font-style: italic;
}

/* Mood calendar */
.mood-calendar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: var(--s4);
}
.mood-day {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: default;
  transition: transform var(--t-fast);
}
.mood-day:hover { transform: scale(1.15); }
.mood-calendar__insight {
  font-size: var(--text-sm);
  color: var(--text-2);
  margin-top: var(--s2);
}

/* Profile horoscope link */
.profile-horoscope-link {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text-1);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 500;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.profile-horoscope-link:hover {
  border-color: var(--border-hv);
  background: var(--bg-card-hv);
}
.profile-horoscope-link svg:last-child { margin-left: auto; color: var(--text-3); }

/* =============================================================
   PWA INSTALL BLOCK (profile page)
============================================================= */
.profile-card--pwa {
  border-color: rgba(123,47,247,.25);
  background: rgba(123,47,247,.06);
}
.pwa-block {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  margin-bottom: var(--s5);
}
.pwa-block__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(123,47,247,.15);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pwa-block__title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: var(--s2);
}
.pwa-block__sub {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.55;
}
.pwa-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}
@media (max-width: 560px) {
  .pwa-steps { grid-template-columns: 1fr; }
}
.pwa-step {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s4);
}
.pwa-step__os {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--purple-lt);
  margin-bottom: var(--s3);
}
.pwa-step__list {
  list-style: none;
  counter-reset: pwa-step;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pwa-step__list li {
  counter-increment: pwa-step;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.4;
}
.pwa-step__list li::before {
  content: counter(pwa-step);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: rgba(123,47,247,.2);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: var(--purple-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.pwa-step__list strong { color: var(--text-1); }

/* =============================================================
   MOBILE RESPONSIVE FIXES
============================================================= */

/* Signs grid — 3 cols → 2 cols on small screens */
@media (max-width: 420px) {
  .signs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Related signs (sign page) — 4 cols → 2 cols on mobile */
@media (max-width: 560px) {
  .related-signs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Sign info card — 2 cols → 1 col on narrow */
@media (max-width: 480px) {
  .sign-info {
    grid-template-columns: 1fr;
    gap: var(--s3);
  }
}

/* Auth box — убираем лишние отступы на телефоне */
@media (max-width: 380px) {
  .auth-box {
    padding: var(--s5) var(--s4);
  }
  .auth-submit {
    font-size: var(--text-sm);
  }
}

/* Profile header — на совсем узких телефонах */
@media (max-width: 360px) {
  .profile-header {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .profile-header__stats {
    grid-column: 1 / -1;
  }
  .mood-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}

/* Horoscope tabs — горизонтальный скролл на узких экранах */
@media (max-width: 480px) {
  .horo-types {
    gap: var(--s1);
  }
  .horo-type-btn {
    padding: 6px 
/* ── Компактный футер на мобиле ───────────────────────────── */
@media (max-width: 639px) {
  .footer {
    padding: var(--s4) 0 var(--s5);
    margin-top: var(--s6);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s4) var(--s4);
    margin-bottom: var(--s3);
  }
  /* Колонка «Гороскопы» (12 знаков) — на всю ширину, 3 столбца */
  .footer__grid > nav:first-child {
    grid-column: 1 / -1;
  }
  .footer__grid > nav:first-child .footer__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px var(--s3);
  }
  .footer__col-title {
    font-size: 11px;
    margin-bottom: var(--s2);
  }
  .footer__link { font-size: 12px; }
  .footer__bottom {
    padding-top: var(--s3);
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
}

/* ── Other signs grid ────────────────────────────────────────── */
.other-signs-section {
  padding: var(--s8) 0 var(--s4);
}
.other-signs__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: var(--s4);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.other-signs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: var(--s2);
}
.other-sign-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  padding: var(--s3) var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  background: var(--card-bg);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.other-sign-card:hover {
  border-color: var(--purple-lt);
  background: color-mix(in srgb, var(--purple) 8%, var(--card-bg));
}
.other-sign-card__icon {
  width: 32px;
  height: 32px;
}
.other-sign-card__name {
  font-size: 0.72rem;
  color: var(--text-2);
  text-align: center;
  line-height: 1.2;
}
@media (max-width: 480px) {
  .other-signs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

