/* SANCTUARY ORACLE — Pricing Page Styles */
html { overscroll-behavior: none; }

/* Self-hosted Cinzel — eliminates FOUT */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url('/assets/fonts/cinzel-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url('/assets/fonts/cinzel-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── CSS Variables ─── */
:root {
  --gold: #F2CF73;
  --gold-dim: #c9a84e;
  --rose: #E59BCF;
  --deep: #0d0618;
  --purple: #1a0e29;
  --purple-mid: #2d1b4e;
  --text: rgba(255,255,255,.85);
  --text-dim: rgba(255,255,255,.5);
  --glass-bg: linear-gradient(145deg, rgba(45,27,78,.75), rgba(13,6,24,.88));
  --glass-border: rgba(180,140,255,.1);
  --card-radius: 20px;
}

/* ─── Base ─── */
body {
  font-family: 'Cormorant Garamond', serif;
  background: #0d0618;
  color: #f6f0ea;
  overflow-x: hidden;
  min-height: 100svh;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

html { scroll-behavior: smooth; }
h1, h2, h3 { font-family: 'Cinzel', serif; }
h2, h3 { letter-spacing: .05em; }

/* ─── Cosmos Background ─── */
#cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(107,76,154,.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(229,155,207,.08), transparent),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(242,207,115,.03), transparent);
}

/* ─── Z-Content Wrapper ─── */
.z-content {
  position: relative;
  z-index: 1;
}

/* ─── Stars ─── */
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--d,3s) ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: .1; transform: scale(.8); }
  100% { opacity: var(--o,.7); transform: scale(1.2); }
}

/* ─── Topbar ─── */
.pricing-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 1.5rem;
  background: rgba(13,6,24,.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242,207,115,.1);
}

/* ─── Auth Link ─── */
#auth-link:hover {
  background: rgba(212,168,64,.1);
  border-color: rgba(212,168,64,.5);
  color: rgba(212,168,64,.9);
}

/* ─── Orb ─── */
.orb-container { position: relative; margin-bottom: 1rem; }

.orb {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(242,207,115,.4), rgba(107,76,154,.3) 40%, rgba(229,155,207,.2) 70%, transparent);
  box-shadow: 0 0 50px rgba(242,207,115,.15), 0 0 100px rgba(107,76,154,.1), inset 0 0 40px rgba(180,140,255,.15);
  animation: orbFloat 6s ease-in-out infinite;
  position: relative;
}

.orb::after {
  content: '';
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  border: 1px solid rgba(180,140,255,.08);
  animation: orbRing 8s linear infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-10px) scale(1.02); }
}

@keyframes orbRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .orb { width: 80px; height: 80px; }
}

/* ─── Hero Section ─── */
.pricing-hero {
  text-align: center;
  padding: 4rem 1rem;
}

.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.hero-tagline {
  font-style: italic;
  color: rgba(255,255,255,.7);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ─── Pricing Grid ─── */
.pricing-section {
  padding: 0 1rem 5rem;
}

.pricing-grid {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Plan Cards ─── */
.plan-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 1s ease, box-shadow 1s ease, border-color 1s ease;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(107,76,154,0.3);
  border-color: rgba(242,207,115,.2);
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(242,207,115,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.plan-card:hover::before { transform: translateX(100%); }

/* ─── Plan Card Typography ─── */
.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-subtitle {
  color: rgba(255,255,255,.6);
  margin: 0 0 1.5rem;
}

.plan-price-block { margin-bottom: 1rem; }

.plan-price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: .5rem;
}

.plan-price-detail { color: rgba(255,255,255,.6); }

/* ─── Plan Features ─── */
.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  color: rgba(255,255,255,.8);
}

.plan-features-list li.muted { color: rgba(255,255,255,.6); }

/* ─── Popular Badge ─── */
.popular-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, #F2CF73, #E59BCF);
  color: #1a0e29;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(242,207,115,0.5);
  z-index: 10;
}

/* ─── Feature Check ─── */
.feature-check { color: #F2CF73; font-size: 20px; margin-right: 12px; }

/* ─── Buttons ─── */
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--rose));
  color: var(--deep);
  border: none;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: .06em;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(242,207,115,.3);
}

.btn-block { width: 100%; }

.btn-premium {
  background: linear-gradient(135deg, #F2CF73, #E59BCF);
  color: #1a0e29;
  border: none;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background .3s, transform .3s;
  width: 100%;
}

.btn-premium:hover {
  background: linear-gradient(135deg, #FFE089, #FF9BCF);
  transform: translateY(-2px);
}

/* ─── Billing Toggle ─── */
.billing-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 3px;
  margin-bottom: 1rem;
}

.billing-toggle button {
  flex: 1;
  padding: 6px 12px;
  border-radius: 18px;
  border: none;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  letter-spacing: .05em;
  transition: all .3s;
}

/* ─── Manage Card ─── */
.manage-wrapper {
  max-width: 80rem;
  margin: 2rem auto 0;
}

.manage-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .manage-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.manage-content { flex: 1; }

.manage-title-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}

.manage-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  font-size: .875rem;
}

@media (min-width: 640px) {
  .manage-features-grid { grid-template-columns: repeat(2, 1fr); }
}

.manage-feature-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.7);
}

.manage-cta { flex-shrink: 0; }

.btn-manage {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  border: 2px solid rgba(74,222,128,.6);
  background: transparent;
  cursor: pointer;
  transition: background .3s;
  min-width: 220px;
  font-family: 'Cinzel', serif;
}

.btn-manage:hover { background: rgba(74,222,128,.2); }

/* ─── Section Layouts ─── */
.compare-section {
  padding: 3rem 1rem 5rem;
}

.faq-section {
  padding: 3rem 1rem 5rem;
}

.section-inner {
  max-width: 62rem;
  margin: 0 auto;
}

.section-inner-sm {
  max-width: 50rem;
  margin: 0 auto;
}

/* ─── Comparison Table ─── */
.comparison-table {
  background: rgba(255,255,255,.05);
  border-radius: var(--card-radius);
  border: 1px solid rgba(255,255,255,.1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  text-align: left;
}

.comparison-table th {
  background: rgba(45,27,78,.6);
  font-family: 'Cinzel', serif;
  letter-spacing: .05em;
  padding: 1rem 1.5rem;
  color: #fff;
  font-weight: 600;
}

.comparison-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(180,140,255,.12);
  color: rgba(255,255,255,.8);
  font-size: .875rem;
}

.comparison-table thead tr { border-bottom: 1px solid rgba(255,255,255,.1); }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:nth-child(even) { background: rgba(107,76,154,.06); }

@media (min-width: 768px) {
  .comparison-table td { font-size: 1rem; }
}

@media (max-width: 768px) {
  .comparison-table table { min-width: 600px; }
}

.text-center { text-align: center; }

/* ─── FAQ ─── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

details {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
}

details summary {
  font-family: 'Cinzel', serif;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

details[open] { border-color: rgba(242,207,115,.15); }

details p {
  color: rgba(255,255,255,.7);
  margin-top: 1rem;
  line-height: 1.5;
  font-size: .9375rem;
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid rgba(255,255,255,.04);
  padding: 3rem 1rem;
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
  color: rgba(255,255,255,.6);
}

.footer-links { margin-top: 1rem; }

footer a { color: var(--gold); opacity: .7; transition: opacity .3s; text-decoration: none; }
footer a:hover { opacity: 1; }

/* ─── Message Banners ─── */
.message-banner {
  max-width: 700px;
  margin: 0 auto 24px;
  padding: 20px 28px;
  border-radius: 16px;
  text-align: center;
  animation: slideDown 0.4s ease-out;
}

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

.message-banner.warning {
  background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(217,119,6,0.2));
  border: 2px solid #f59e0b;
}
.message-banner.error {
  background: linear-gradient(135deg, rgba(220,38,38,0.2), rgba(185,28,28,0.2));
  border: 2px solid #dc2626;
}
.message-banner.info {
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(37,99,235,0.2));
  border: 2px solid #3b82f6;
}
.message-banner.success {
  background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(22,163,74,0.2));
  border: 2px solid #22c55e;
}
.message-banner.neutral {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.3);
}
.message-banner h3   { font-size: 22px; margin-bottom: 8px; }
.message-banner p    { font-size: 15px; opacity: 0.9; line-height: 1.5; }
.message-banner .icon { font-size: 36px; margin-bottom: 12px; }

/* ─── Google Translate Overrides ─── */
#lang-trigger:hover { background: rgba(242,207,115,0.2); }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
#goog-gt-tt, .goog-te-balloon-frame, .goog-text-highlight,
.goog-tooltip, .VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-ZVi9od-SmKAyb,
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }
.goog-te-gadget { font-size: 0 !important; }
.goog-te-gadget .goog-te-combo {
  background: rgba(255,255,255,0.08);
  color: #F2CF73;
  border: 1px solid rgba(242,207,115,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
}
.goog-te-gadget .goog-te-combo option { background: #1a0e29; color: #f6f0ea; }

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  .star, .orb, .orb::after, .plan-card::before {
    animation: none;
    transition: none;
  }
}
