/* ===========================
   CSS CUSTOM PROPERTIES
=========================== */
:root {
  --bg-deep: #060514;
  --bg: #080612;
  --bg-raised: #100c1e;
  --bg-card: rgba(255,255,255,0.04);
  --surface: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --border-strong: rgba(157,133,232,0.35);
  --white-10: rgba(255,255,255,0.10);
  --white-15: rgba(255,255,255,0.15);
  --white-20: rgba(255,255,255,0.20);
  --white-45: rgba(255,255,255,0.45);
  --white-70: rgba(255,255,255,0.70);
  --white-90: rgba(255,255,255,0.90);
  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.62);
  --text-sub: rgba(255,255,255,0.85);
  --accent: #9d85e8;
  --accent-2: #2db88a;
  --accent-3: #d96fa8;
  --accent-warm: #e8b84a;
  --card-border: var(--border);
  --card-border-hover: rgba(157,133,232,0.28);
  --shadow: 0 20px 50px rgba(0,0,0,0.45);
  --shadow-sm: 0 6px 20px rgba(0,0,0,0.32);
  --header-height: 64px;
  --input-bg: rgba(0,0,0,0.25);
  --input-border: rgba(255,255,255,0.16);
  --pill-bg: rgba(255,255,255,0.06);
  --pill-border: rgba(255,255,255,0.14);
  --footer-text: rgba(255,255,255,0.38);
  --loader-track: rgba(255,255,255,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-ui: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   VIDEO BACKGROUND
=========================== */
.video-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#bgVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(6,5,20,0.72) 0%,
    rgba(8,6,18,0.58) 50%,
    rgba(6,8,22,0.74) 100%
  );
}

/* ===========================
   LIQUID GLASS BASE CLASS
=========================== */
.liquid-glass {
  background: var(--bg-card);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before { display: none; }

/* ===========================
   HEADER
=========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8,6,18,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  transition: color 0.2s;
}
.logo:hover { color: var(--accent); }
.logo-icon {
  width: 22px;
  height: 22px;
  stroke: var(--accent-2);
  flex-shrink: 0;
}

/* Center nav pill */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  box-shadow: none;
}

.nav-pill .nav-link {
  text-decoration: none;
  color: var(--white-70);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-pill .nav-link:hover { color: #fff; background: rgba(255,255,255,0.10); }
.nav-pill .nav-link.active {
  color: var(--accent);
  background: rgba(157,133,232,0.12);
}

/* Header right actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Ghost & solid buttons */
.btn-ghost {
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid var(--border);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

.btn-solid {
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--accent-warm);
  color: #1a1208;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  line-height: 1.3;
  text-align: center;
}
.btn-solid:hover { background: #f0c45c; }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  color: #fff;
  padding: 0;
  background: var(--bg-raised);
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle svg { width: 18px; height: 18px; stroke: #fff; }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}
.mobile-nav.open { display: flex; }

.mobile-nav-link {
  text-decoration: none;
  color: var(--white-70);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mobile-nav-link:hover { color: #fff; }
.mobile-nav .nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  display: block;
}
.mobile-nav .nav-link:hover { color: var(--text); }

.mobile-nav-ctas {
  display: flex;
  gap: 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 0.3rem;
}
.mobile-nav-ctas .btn-ghost,
.mobile-nav-ctas .btn-solid { flex: 1; justify-content: center; }

/* ===========================
   PAGES
=========================== */
.page { display: none; animation: panelFadeIn 0.4s ease both; }
.page.active { display: block; }

/* ===========================
   MAIN CONTAINER
=========================== */
.app-container {
  min-height: 100vh;
  padding: calc(var(--header-height) + 1.75rem) 1.25rem 3.5rem;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ===========================
   PANELS
=========================== */
.panel {
  border-radius: var(--radius-lg);
  transition: box-shadow 0.3s;
}
.hidden { display: none !important; }

/* ===========================
   INPUT PANEL
=========================== */
.input-panel {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.compat-panel { max-width: 680px; }

.input-hero { margin-bottom: 2rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.4rem;
}
.star-icon { font-size: 0.55rem; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.title-line { display: block; }
.accent-line {
  color: var(--accent);
  font-style: italic;
}

.hero-sub {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
  max-width: 460px;
  margin: 0 auto;
}

.dob-form {
  display: grid;
  gap: 1rem;
}

.form-field { display: grid; gap: 0.5rem; text-align: left; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.form-field label i { color: var(--accent); font-size: 0.8rem; }

.optional-tag {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--pill-bg);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

.dob-form input,
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  background: var(--input-bg);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  min-height: 48px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.dob-form input::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.35); }
.dob-form input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(157,133,232,0.15);
}
.form-field input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85) opacity(0.6);
  cursor: pointer;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}
.form-field select option { background: #100c1e; color: var(--text); }
.form-field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.form-field input.error { border-color: var(--accent-3); }
.field-error {
  font-size: 0.78rem;
  color: var(--accent-3);
  display: none;
  align-items: center;
  gap: 0.3rem;
}
.field-error.visible { display: flex; }

.submit-btn {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1208;
  background: var(--accent-warm);
  cursor: pointer;
  min-height: 52px;
  width: 100%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  -webkit-tap-highlight-color: transparent;
}
.submit-btn:hover { background: #f0c45c; }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-shimmer { display: none; }

.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.trust-strip span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.trust-strip i { color: var(--accent-2); }

/* ===========================
   LOADER
=========================== */
.loader-panel {
  max-width: 400px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  text-align: center;
  border-radius: 28px;
}

.loader-ring {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
}
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: spin 2s linear infinite;
}
.r1 { border-top-color: var(--accent); inset: 0; }
.r2 { border-top-color: var(--accent-2); inset: 10px; animation-duration: 1.4s; animation-direction: reverse; }
.r3 { border-top-color: var(--accent-3); inset: 20px; animation-duration: 1s; }
.loader-symbol {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--text-muted);
}

.loader-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.loader-steps {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.step {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.4s, transform 0.4s;
}
.step.active { color: var(--accent-2); transform: scale(1.02); }

/* ===========================
   RESULT PANEL
=========================== */
.result-panel {
  display: grid;
  gap: 1.5rem;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.result-panel::before { display: none; }

.result-header {
  border-radius: 22px;
  padding: 1.5rem 2rem;
}
.result-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.result-title-row h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.number-summary-pill {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 0.3rem 1rem;
}

.reset-btn-sm {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.reset-btn-sm:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* ===========================
   INSIGHT CARDS
=========================== */
.insight-card {
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  animation: fadeInUp 0.5s ease both;
  transition: box-shadow 0.25s;
}
.insight-card:hover {
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.18), 0 24px 56px rgba(0,0,0,0.5);
}

.combined-card {
  border-radius: 22px;
  padding: 1.8rem 2rem;
}
.combined-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.combined-card p {
  color: var(--text-sub);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* Card title row */
.title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.title-row i { font-size: 0.9rem; }
.title-row h4 {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.insight-card p, .insight-card ul {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.insight-card p strong { color: var(--text-sub); }

/* Group blocks */
.group-block { }
.group-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.group-title i { color: var(--accent-2); font-size: 0.75rem; }

.prediction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* Insight list */
.insight-list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.insight-list li {
  padding-left: 1.1rem;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.insight-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 700;
}

/* Pill wrap for lucky */
.pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.pill {
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  color: var(--text-sub);
}

/* ===========================
   SHARE CARD
=========================== */
.share-section { }

.share-card {
  min-height: 560px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(10,5,40,0.85) 0%, rgba(5,20,35,0.88) 100%);
  border: 1px solid rgba(167,139,250,0.3);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 380px;
  margin: 0 auto;
}

.share-top { text-align: center; }
.share-top .eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.share-top h4 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.share-top .identity {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

.share-numbers {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.share-badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 0.8rem 1.5rem;
  text-align: center;
  flex: 1;
}
.share-badge p { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.share-badge .value { font-size: 2.2rem; font-weight: 700; color: var(--accent-2); line-height: 1.2; }

.share-strip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.7rem 1rem;
}
.share-strip .label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.2rem; }
.share-strip .line { font-size: 0.88rem; color: var(--text-sub); line-height: 1.5; }

.today-insight {
  background: linear-gradient(135deg, rgba(167,139,250,0.12), rgba(52,211,153,0.1));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}
.today-insight p { font-size: 0.84rem; color: var(--text-sub); line-height: 1.6; }
.today-insight strong { color: var(--accent-2); }

.watermark {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  margin-top: auto;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 0.9rem 1.6rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  min-height: 48px;
  max-width: 380px;
  width: 100%;
  margin: 0.8rem auto 0;
  transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.download-btn:hover { background: rgba(255,255,255,0.14); transform: scale(1.01); }

.reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 0.85rem 1.6rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  min-height: 48px;
  transition: background 0.2s, color 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.reset-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }


/* ===========================
   COMPATIBILITY
=========================== */
.compat-score-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 0 1rem;
}
.score-ring-wrap {
  position: relative;
  width: 130px;
  height: 130px;
}
.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.score-num {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.score-pct { font-size: 0.72rem; color: var(--text-muted); }
.score-label { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.04em; }
.score-names { font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.score-nums-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.2rem; }
.score-num-chip {
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.73rem;
  color: var(--text-muted);
}
.compat-cards { display: grid; gap: 1rem; margin-top: 1.2rem; }
.compat-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  transition: border-color 0.2s;
}
.compat-card:hover { border-color: var(--white-20); }
.compat-card .title-row { color: var(--accent); margin-bottom: 0.6rem; }
.compat-card h4 { font-size: 0.88rem; font-weight: 600; }
.compat-card p, .compat-card ul { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ===========================
   ABOUT PAGE
=========================== */
.about-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: 28px;
}

.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.2rem;
  gap: 0.6rem;
}

.about-avatar {
  position: relative;
  width: 170px;
  height: 170px;
  margin-bottom: 0.4rem;
}
.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 6s linear infinite;
}
.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.about-name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.about-tagline { color: var(--text-muted); font-size: 0.9rem; }
.heart-icon { color: var(--accent-3); }

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.about-content { display: grid; gap: 1rem; }
.about-block {
  padding: 1.4rem 1.6rem;
  border-radius: 18px;
}
.about-block h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.about-block p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }
.about-block strong { color: var(--text-sub); }

.social-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.2rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
}
.social-link:hover { transform: translateY(-2px); filter: brightness(1.1); }
.social-link.github   { background: rgba(255,255,255,0.12); }
.social-link.linkedin { background: rgba(0,119,181,0.6); }
.social-link.instagram { background: linear-gradient(135deg, rgba(245,133,41,0.7), rgba(221,42,123,0.7), rgba(129,52,175,0.7)); }
.social-link.email    { background: linear-gradient(135deg, rgba(167,139,250,0.5), rgba(52,211,153,0.5)); }

.tech-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: 10px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.tech-pill i { color: var(--accent); }

.change-list { list-style: none; display: grid; gap: 0.55rem; }
.change-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.change-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }
.change-list strong { color: var(--accent); }

.about-footer {
  margin-top: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
}
.about-footer p { color: var(--text-muted); font-size: 0.83rem; }

/* ===========================
   NEW BADGE
=========================== */
.new-badge {
  display: inline-block;
  background: rgba(157,133,232,0.25);
  color: var(--accent);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  vertical-align: middle;
  line-height: 1.5;
  border: 1px solid rgba(157,133,232,0.35);
}
.new-badge-lg { font-size: 0.58rem; padding: 0.18rem 0.5rem; vertical-align: super; }

/* ===========================
   FOOTER
=========================== */
.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem 1.25rem 2rem;
  color: var(--footer-text);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}
.site-footer strong { color: rgba(255,255,255,0.5); font-weight: 500; }

/* ===========================
   TRANSITIONS
=========================== */
.fade-out { opacity: 0; transform: scale(0.97); transition: opacity 0.3s, transform 0.3s; }
.fade-in { animation: panelFadeIn 0.45s ease both; }

/* ===========================
   KEYFRAMES
=========================== */
@keyframes spin { to { transform: rotate(360deg); } }

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

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

@keyframes shimmer {
  0% { left: -100%; }
  60%, 100% { left: 200%; }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1100px) {
  .header-actions .btn-solid {
    font-size: 0.72rem;
    padding: 0.5rem 0.7rem;
    max-width: 190px;
  }
}

@media (max-width: 900px) {
  .nav-pill { display: none; }
  .header-actions .btn-ghost { display: none; }
  .app-container { padding-top: calc(var(--header-height) + 1.25rem); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .header-actions .btn-solid { display: none; }
  .header-actions .btn-ghost { display: none; }
  .mobile-nav-ctas { flex-direction: column; }
  .mobile-nav-ctas .btn-solid,
  .mobile-nav-ctas .btn-ghost { width: 100%; max-width: none; }
}

@media (max-width: 640px) {
  .panel { border-radius: var(--radius-md); }
  .input-panel { padding: 1.35rem 1rem; }
  .about-panel { padding: 1.5rem 1rem; }
  .share-card { min-height: auto; border-radius: var(--radius-md); padding: 1.5rem; }
  .social-link span { display: none; }
  .social-link { padding: 0.5rem 0.7rem; min-height: 44px; }
  .header-inner { padding: 0 1rem; }
  .app-container { padding-left: 1rem; padding-right: 1rem; }
  .submit-btn { min-height: 52px; }
  .reset-btn, .download-btn { min-height: 48px; width: 100%; }

  .compat-cards { grid-template-columns: 1fr; }
  .score-nums-row { gap: 0.35rem; }
  .score-num-chip { font-size: 0.68rem; padding: 0.2rem 0.55rem; }
  .hero-title { font-size: clamp(1.75rem, 7vw, 2.35rem); }
  .hero-sub { font-size: 0.95rem; }
  .prediction-grid { grid-template-columns: 1fr; }
  .result-header { padding: 1.1rem 1rem; }
  .combined-card { padding: 1.2rem 1rem; }
  .insight-card { padding: 1.2rem 1rem; }
  .group-title { font-size: 0.72rem; }
  .trust-strip { flex-direction: column; gap: 0.5rem; align-items: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(1.65rem, 8vw, 2rem); }
  .input-panel { padding: 1.15rem 0.85rem; }
  .result-title-row { flex-wrap: wrap; }
  .share-badge { padding: 0.65rem 1rem; }
  .share-badge .value { font-size: 1.8rem; }
}

/* ==========================================
   FLOATING CTA WIDGET
   ========================================== */

.floating-cta {
  /* Fixed positioning — stays on screen while scrolling */
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9999;

  /* Shape */
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  padding: 0;
  cursor: pointer;

  /* Glassmorphism background */
  background: rgba(14, 10, 32, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  /* Layered glow */
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.10),
    0 0 22px rgba(212, 175, 55, 0.20),
    0 8px 30px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;

  /* Floating animation */
  animation: fctaFloat 3.4s ease-in-out infinite;

  /* Smooth hover transitions */
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;

  /* Accessible outline, styled to match theme */
  outline: none;
}

/* Hover & focus state */
.floating-cta:hover,
.floating-cta:focus-visible {
  animation-play-state: paused;
  transform: translateY(-5px) scale(1.07);
  border-color: rgba(212, 175, 55, 0.85);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.25),
    0 0 38px rgba(212, 175, 55, 0.38),
    0 12px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Keyboard focus ring */
.floating-cta:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.7);
  outline-offset: 3px;
}

/* Active / pressed */
.floating-cta:active {
  transform: translateY(-2px) scale(1.02);
}

/* Floating keyframes */
@keyframes fctaFloat {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-8px); }
}

/* Pulse ring */
.fcta-pulse-ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.40);
  animation: fctaPulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes fctaPulse {
  0%   { transform: scale(1);    opacity: 0.75; }
  100% { transform: scale(1.6);  opacity: 0;    }
}

/* Kundli SVG icon */
.fcta-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* "Chart Analysis" text */
.fcta-text-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: rgba(212, 175, 55, 0.88);
  letter-spacing: 0.05em;
  line-height: 1;
  text-align: center;
}

/* Floating CTA sublabel */
.fcta-price-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Tooltip */
.fcta-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);

  background: rgba(12, 8, 28, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.38);
  color: rgba(255, 255, 255, 0.9);
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 8px;

  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;

  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

/* Tooltip arrow pointing right */
.fcta-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(212, 175, 55, 0.38);
}

/* Show tooltip on hover / focus */
.floating-cta:hover .fcta-tooltip,
.floating-cta:focus-visible .fcta-tooltip {
  opacity: 1;
}

/* ── Mobile responsive ── */
@media (max-width: 480px) {
  .floating-cta {
    width: 72px;
    height: 72px;
    bottom: 20px;
    right: 16px;
  }
  .fcta-icon {
    width: 24px;
    height: 24px;
  }
  .fcta-text-label {
    font-size: 8px;
  }
  .fcta-price-label {
    font-size: 11px;
  }
  /* On mobile, tooltip appears above instead of to the side */
  .fcta-tooltip {
    right: auto;
    left: 50%;
    top: auto;
    bottom: calc(100% + 12px);
    transform: translateX(-50%);
    white-space: normal;
    width: 160px;
    text-align: center;
  }
  .fcta-tooltip::after {
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(212, 175, 55, 0.38);
    border-left-color: transparent;
  }
}

/* ==========================================
   END FLOATING CTA WIDGET
   ========================================== */
