/* ================================
   Astrowize — Global Styles
   Dark cosmic theme
   ================================ */

/* ── CSS Variables (easy to change colors everywhere) ── */
:root {
  --bg: #0B0E17;
  --bg-card: #111827;
  --bg-surface: #0f1521;
  --bg-input: #1a2235;
  --border: #1e293b;
  --accent: #4A5FC1;
  --accent-bright: #6B7FE0;
  --accent-glow: rgba(74, 95, 193, 0.15);
  --gold: #f59e0b;
  --teal: #14b8a6;
  --rose: #f43f5e;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --success: #22c55e;
  --error: #ef4444;
  --radius: 12px;
  --max-width: 1200px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/public/images/bg-stars.webp') center / cover no-repeat;
  opacity: 0.40;
  pointer-events: none;
  z-index: 0;
}

body > *:not(.site-header):not(.fomo-popup):not(.toast):not(.stars-container):not(.sticky-footer-ad):not(.chatbot-fab) {
  position: relative;
  z-index: 1;
}
.site-header {
  z-index: 100;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

/* Prevent horizontal overflow globally */
.site-footer,
.footer-container {
  overflow-x: hidden;
}

select, input, textarea, button {
  max-width: 100%;
}

/* ── Header / Navigation ── */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.logo:hover {
  color: var(--text);
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ── Main Content ── */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 24px 24px;
  min-height: calc(100vh - 64px - 200px);
  background: rgba(11, 14, 23, 0.75);
  backdrop-filter: blur(6px);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── Hero Section ── */
.hero {
  text-align: center;
  padding: 40px 20px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.3;
  padding: 4px 0;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Sign Grid ── */
.sign-grid-section {
  padding: 60px 0;
}

.sign-grid-section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 32px;
}

.sign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.sign-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  text-decoration: none;
}

.sign-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12);
}

.sign-symbol {
  font-size: 36px;
  margin-bottom: 8px;
}

.sign-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.sign-dates {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── Features Section ── */
.features-section {
  padding: 60px 0;
}

.features-section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Content Pages ── */
.content-page {
  max-width: 1100px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.content-page h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 24px;
}

.content-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.content-body p {
  margin-bottom: 16px;
}

/* ── Error Pages ── */
.error-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  text-align: center;
}

.error-symbol {
  font-size: 64px;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.error-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.error-details {
  background: var(--bg-card);
  padding: 16px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--rose);
  text-align: left;
  margin-bottom: 24px;
  overflow-x: auto;
}

/* ── Auth Pages ── */
.auth-page {
  display: flex;
  justify-content: center;
  padding-top: 60px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.auth-card h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.auth-card > p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-link {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 16px;
}

/* ── Dashboard ── */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.dashboard-card h3 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.text-success { color: var(--success); }

/* ── Footer ── */

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-section h3 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.footer-grid a {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-grid a:hover {
  color: var(--text);
}

/* ── Article Pages ── */
.article-header {
  margin-bottom: 32px;
}

.article-date {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
}

.content-section {
  margin-bottom: 32px;
}

.content-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.content-section p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.lead-text {
  font-size: 18px;
  color: var(--text) !important;
  line-height: 1.7;
}

.text-muted {
  color: var(--text-dim);
  font-size: 14px;
}

/* ── Score Cards (Compatibility) ── */
.score-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.score-card.score-main {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.score-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.score-value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-bright);
}

/* ── Horoscope Meta ── */
.horoscope-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.horoscope-rating {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 2px;
}

/* ── Tip Box ── */
.tip-box {
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--text);
}

/* ── FAQ Section ── */
.faq-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.faq-section h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: '+';
  display: inline-block;
  width: 20px;
  margin-right: 8px;
  color: var(--accent-bright);
  font-weight: 700;
}

.faq-item[open] .faq-question::before {
  content: '−';
}

.faq-answer {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ── Related Content ── */
.related-section {
  margin-top: 40px;
}

.related-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.related-card {
  display: block;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}

.related-card:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* ── Element Cards (Chinese Zodiac) ── */
.element-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.element-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.element-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.element-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Nakshatra Cards (Vedic) ── */
.nakshatra-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.nakshatra-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.nakshatra-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Coming Soon ── */
.coming-soon-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  text-align: center;
}

.coming-soon-icon {
  font-size: 64px;
  margin-bottom: 16px;
  color: var(--accent-bright);
}

.coming-soon-content h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.coming-soon-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 400px;
}

/* ── Tool Pages ── */
.tool-description {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 8px;
}

.tool-guide {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.tool-guide h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.tool-guide h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--accent);
}
.tool-guide p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.tool-guide ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}
.tool-guide ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}
.tool-guide ul li::before {
  content: '\2727';
  position: absolute;
  left: 0;
  font-size: 11px;
  top: 4px;
  color: var(--accent);
}
.tool-guide strong {
  color: var(--text);
  font-weight: 600;
}

.tool-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.result-card-large {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.result-card-large h2 {
  margin-top: 12px;
  font-size: 28px;
}

.result-header {
  margin-bottom: 24px;
}

.result-summary {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 8px;
}

/* ── Planet Table ── */
.planet-table-wrap {
  overflow-x: auto;
}

.planet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.planet-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.planet-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.planet-table tr:hover td {
  background: var(--bg-card);
}

.retro-row td {
  color: var(--rose) !important;
}

/* ── Aspect List ── */
.aspect-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aspect-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.aspect-planets {
  font-weight: 600;
  color: var(--text);
  min-width: 160px;
}

.aspect-name {
  color: var(--text-muted);
}

.aspect-orb {
  color: var(--text-dim);
  font-size: 12px;
  margin-left: auto;
}

/* ── Mobile Nav Toggle ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ── Footer Columns ── */
.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── Focus States (Accessibility) ── */
a:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.sign-card:focus-visible,
.widget-card:focus-visible,
.quick-tool-card:focus-visible,
.feature-card:focus-visible,
.testimonial-card:focus-visible,
.search-result-card:focus-visible,
.related-card:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-color: var(--accent);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ── Toast Notification ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast.toast-error {
  background: var(--error);
  color: #fff;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}
.toast.toast-success {
  background: var(--success);
  color: #fff;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

/* (responsive media queries moved to end of file) */

/* ── Live Widgets ── */
.widgets-section {
  margin-bottom: 8px;
}
.widgets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.widget-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.widget-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.widget-icon { font-size: 48px; flex-shrink: 0; }
.widget-body { flex: 1; }
.widget-body h3 { font-size: 16px; margin-bottom: 4px; }
.widget-body p { font-size: 13px; color: var(--text-muted); margin: 0; }
.widget-cta {
  font-size: 13px;
  color: var(--accent-bright);
  white-space: nowrap;
}

/* ── Quick Tools ── */
.quick-tools-section {
  padding: 16px 0;
}
.quick-tools-section h2 { text-align: center; margin-bottom: 24px; }
.quick-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quick-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.quick-tool-icon { font-size: 40px; margin-bottom: 12px; }
.quick-tool-card h3 { font-size: 18px; margin-bottom: 8px; }
.quick-tool-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.quick-tool-card::after { content: none; }
.quick-tool-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quick-tool-form input,
.quick-tool-form select {
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.quick-tool-form input::placeholder { color: var(--text-dim); }
.quick-tool-form input:focus,
.quick-tool-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.quick-tool-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.compat-selects {
  display: flex;
  align-items: center;
  gap: 8px;
}
.compat-selects select { flex: 1; }
.compat-heart { color: var(--rose); font-size: 20px; flex-shrink: 0; }

/* ── Testimonials ── */
.testimonials-section {
  padding: 16px 0;
}
.testimonials-section h2 { text-align: center; margin-bottom: 24px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial-stars {
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 12px;
}
.testimonial-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin-bottom: 12px;
}
.testimonial-author {
  font-size: 13px;
  color: var(--text-muted);
}


/* ── Search Page ── */
.search-page { margin-top: 24px; }
.search-form { margin-bottom: 24px; }
.search-input-wrap {
  display: flex;
  gap: 12px;
}
.search-input-wrap input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
}
.search-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.search-results { display: flex; flex-direction: column; gap: 12px; }
.search-result-card {
  display: block;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.search-result-card:hover { border-color: var(--accent); }
.search-result-card h3 { font-size: 16px; margin-bottom: 4px; color: var(--accent-bright); }
.search-result-card p { font-size: 14px; color: var(--text-muted); margin: 0; }
.search-result-type {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  background: var(--bg-surface);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ── Chatbot CTA Banner ── */
.chatbot-cta-banner {
  margin: 32px 0;
  background: linear-gradient(135deg, rgba(74,95,193,0.12), rgba(139,92,246,0.08));
  border: 1px solid rgba(74,95,193,0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color 0.2s;
}
.chatbot-cta-banner:hover { border-color: rgba(74,95,193,0.6); }
.chatbot-cta-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.chatbot-cta-icon { font-size: 32px; flex-shrink: 0; }
.chatbot-cta-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chatbot-cta-text strong { font-size: 15px; color: var(--text); }
.chatbot-cta-text span { font-size: 13px; color: var(--muted); }
.chatbot-cta-button {
  flex-shrink: 0;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.chatbot-cta-button:hover { background: #3a4faa; transform: translateY(-1px); }

/* ── Floating Chatbot Button ── */
.chatbot-fab {
  position: fixed;
  bottom: 170px;
  right: 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(20, 24, 40, 0.92);
  border: 1px solid rgba(74,95,193,0.4);
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(139,92,246,0.15);
  backdrop-filter: blur(12px);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.chatbot-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(74,95,193,0.4);
  border-color: rgba(74,95,193,0.7);
  color: #fff;
}
.chatbot-fab-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4A5FC1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.chatbot-fab-text { white-space: nowrap; }
.chatbot-fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 22px;
  height: 22px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  border: 2px solid rgba(20,24,40,0.9);
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(239,68,68,0.5);
  animation: badgeBounce 2s ease-in-out infinite;
}
@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ── AstroBot Stats Bar ── */
.astrobot-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(74,95,193,0.15), rgba(139,92,246,0.1));
  border: 1px solid rgba(74,95,193,0.3);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-top: 16px;
}
.astrobot-streak {
  display: flex;
  align-items: center;
  gap: 6px;
}
.streak-fire { font-size: 22px; }
.streak-count {
  font-size: 22px;
  font-weight: 800;
  color: #f59e0b;
  line-height: 1;
}
.streak-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.astrobot-daily {
  display: flex;
  align-items: center;
  gap: 6px;
}
.daily-icon { font-size: 16px; }
.daily-text {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.daily-text.low { color: #f59e0b; }
.daily-text.out { color: #ef4444; }

/* Daily Briefing */
.daily-briefing {
  background: linear-gradient(135deg, rgba(74,95,193,0.12), rgba(139,92,246,0.08));
  border: 1px solid rgba(74,95,193,0.25);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
}
.daily-briefing-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8b5cf6;
}
.daily-briefing-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

/* Streak milestone toast */
.streak-milestone {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  animation: streakPulse 0.5s ease;
}
@keyframes streakPulse {
  0% { transform: scale(0.9); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Chatbot ── */
.chat-container {
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 500px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-message { display: flex; }
.chat-message.user { justify-content: flex-end; }
.chat-message.bot { justify-content: flex-start; }
.chat-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.chat-message.user .chat-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-message.bot .chat-bubble {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}
.chat-input-area input:focus {
  outline: none;
  border-color: var(--accent);
}
.chat-cta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 20px 12px;
}
.chat-cta-btn {
  padding: 10px 18px;
  background: rgba(212, 175, 55, 0.12);
  border: 1.5px solid var(--gold, #d4af37);
  border-radius: 20px;
  color: var(--gold, #d4af37);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
}
.chat-cta-btn:hover {
  background: var(--gold, #d4af37);
  color: #1a1a2e;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}
.chat-choices-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.chat-choices-grid .chat-cta-btn {
  text-align: left;
  white-space: normal;
}
.chat-choices-grid.chat-choices-row {
  flex-direction: row;
  flex-wrap: wrap;
}
.chat-choices-grid.chat-choices-row .chat-cta-btn {
  text-align: center;
}
.chat-cta-btn.chat-cta-compact {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  min-width: 42px;
}
.chat-cta-btn.chat-cta-premium {
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(139,92,246,0.15));
  border-color: rgba(212,175,55,0.5);
  color: #d4af37;
}
.chat-cta-btn.chat-cta-premium:hover {
  background: linear-gradient(135deg, rgba(212,175,55,0.25), rgba(139,92,246,0.25));
  border-color: #d4af37;
}
.premium-lock { font-size: 12px; }
.premium-hint {
  background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(139,92,246,0.06)) !important;
  border: 1px dashed rgba(212,175,55,0.3) !important;
  transition: border-color 0.2s;
}
.premium-hint:hover { border-color: #d4af37 !important; }
/* Paywall */
.chat-paywall-wrap {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}
.chat-paywall {
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(74,95,193,0.12));
  border: 1.5px solid var(--gold, #d4af37);
  border-radius: 16px;
  text-align: center;
  padding: 24px;
  max-width: 480px;
  width: 100%;
}
.paywall-icon { font-size: 32px; margin-bottom: 8px; }
.paywall-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold, #d4af37);
  margin: 0 0 8px;
}
.paywall-text {
  font-size: 14px;
  margin: 0 0 12px;
  line-height: 1.5;
}
.paywall-list {
  text-align: left;
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.7;
}
.paywall-list li::marker { color: var(--gold, #d4af37); }
.paywall-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.paywall-btn {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.paywall-btn:hover { transform: translateY(-1px); }
.paywall-btn-primary {
  background: linear-gradient(135deg, #d4af37, #f0d060);
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(212,175,55,0.35);
}
.paywall-btn-primary:hover { box-shadow: 0 6px 28px rgba(212,175,55,0.5); }
.paywall-btn-secondary {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
}
.paywall-btn-secondary:hover { border-color: var(--gold, #d4af37); color: var(--gold, #d4af37); }
.paywall-note {
  font-size: 11px;
  color: var(--text-muted);
  margin: 10px 0 0;
}
.chat-sign-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
}
.chat-sign-btn {
  padding: 8px 4px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold, #d4af37);
  border-radius: 10px;
  color: var(--gold, #d4af37);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.chat-sign-btn:hover {
  background: var(--gold, #d4af37);
  color: #1a1a2e;
}
.chat-input-area {
  position: relative;
}
.chat-char-count {
  position: absolute;
  right: 100px;
  bottom: -16px;
  font-size: 11px;
  color: var(--text-muted);
}
.chat-bubble.typing {
  display: flex;
  gap: 4px;
  padding: 14px 20px;
}
.chat-bubble.typing span {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.chat-bubble.typing span:nth-child(1) { animation-delay: 0s; }
.chat-bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--gold, #d4af37);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.6s steps(1) infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Newsletter Widget ── */
.newsletter-section {
  margin-top: 32px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.newsletter-section h3 { margin-bottom: 8px; }
.newsletter-section p { color: var(--text-muted); margin-bottom: 16px; }
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}
.newsletter-form input:focus { outline: none; border-color: var(--accent); }
.newsletter-msg { margin-top: 12px; font-size: 14px; }

/* ── Horoscope Nav ── */
.sign-grid.compact { gap: 8px; }
.sign-grid.compact .sign-card { padding: 8px 12px; min-height: auto; }
.sign-grid.compact .sign-card.active { border-color: var(--accent); background: var(--accent-glow); }
.horoscope-nav h3 { margin-bottom: 12px; }
.horoscope-lucky { margin-left: 16px; font-size: 14px; color: var(--text-muted); }

/* ── Footer Legal Links ── */
.footer-legal {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}
.footer-legal a {
  color: var(--text-dim);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: var(--text);
}

/* ── Nav Search Input ── */
.nav-search-form {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}
.nav-search-input {
  width: 160px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, width 0.3s;
}
.nav-search-input::placeholder {
  color: rgba(255,255,255,0.45);
}
.nav-search-input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
  width: 200px;
}

/* ================================================================
   VISUAL UPGRADES — Animations, effects, polish
   ================================================================ */

/* ── 1. Scroll Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 2. Enhanced Hover on Zodiac Cards ── */
.sign-card {
  transition: all 0.3s ease;
}
.sign-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 20px var(--accent-glow), 0 8px 30px rgba(0,0,0,0.3);
}
.sign-card:hover .sign-symbol {
  filter: drop-shadow(0 0 8px var(--accent-bright));
}

/* ── 3. Animated Gradient Hero Title ── */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero h1 {
  background: linear-gradient(270deg, var(--text), var(--accent-bright), var(--gold), var(--accent-bright), var(--text));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

/* ── 4. Button Glow & Hover ── */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::after {
  opacity: 1;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(74, 95, 193, 0.5), 0 8px 25px rgba(0,0,0,0.3);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* ── 5. Floating Stars Animation ── */
@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
}
.star.large {
  width: 3px;
  height: 3px;
  box-shadow: 0 0 6px 1px rgba(255,255,255,0.3);
  animation: twinkle var(--dur) ease-in-out infinite, float 5s ease-in-out infinite;
}

/* ── 6. Footer Redesign ── */
.site-footer {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(11, 14, 23, 0.95) 100%);
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding: 48px 0 120px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer-section h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-grid a,
.footer-links a {
  transition: color 0.2s, padding-left 0.2s;
}
.footer-grid a:hover,
.footer-links a:hover {
  color: var(--accent-bright);
  padding-left: 4px;
}
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* ── 7. Loading Skeleton ── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-surface) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  color: transparent !important;
}

/* ── 8. Section Dividers ── */
.section-divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--accent-glow), var(--accent), var(--accent-glow), transparent);
  margin: 8px 0;
  opacity: 0.6;
}

/* ── Feature Card Hover ── */
.feature-card {
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.feature-icon {
  transition: transform 0.3s;
}
.feature-card:hover .feature-icon {
  transform: scale(1.15);
}

/* ── Widget Card Hover ── */
.widget-card {
  transition: all 0.3s ease;
}
.widget-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--accent-glow), 0 8px 25px rgba(0,0,0,0.2);
}

/* ── Quick Tool Card Hover ── */
.quick-tool-card {
  transition: all 0.3s ease;
}
.quick-tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ── Testimonial Card Hover ── */
.testimonial-card {
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ── Newsletter Glow ── */
.newsletter-section {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
}
.newsletter-section:hover::before {
  opacity: 1;
}
.newsletter-section > * {
  position: relative;
}

/* ── Hub Pages ── */
.hub-page { max-width: 1100px; margin: 0 auto; padding-bottom: 60px; }
.hub-header { text-align: center; margin-bottom: 40px; }
.hub-header h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.hub-subtitle { font-size: 17px; color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.6; }
.hub-section-title { font-size: 20px; font-weight: 700; margin: 32px 0 16px; color: var(--text); }

/* Compatibility hub picker */
.compat-picker { max-width: 860px; margin: 0 auto; }
.compat-picker label { display: block; font-size: 18px; font-weight: 700; margin-bottom: 14px; text-align: center; color: var(--text); }
.compat-hub-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 28px; }
.compat-hub-col { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.compat-hub-col .sign-grid { gap: 8px; grid-template-columns: repeat(3, 1fr); }
.compat-hub-col .sign-card { padding: 12px 8px; cursor: pointer; }
.compat-hub-col .sign-card.active { border-color: var(--accent); background: var(--accent-glow); box-shadow: 0 0 12px var(--accent-glow); }
.compat-hub-col .sign-card .sign-dates { display: none; }
.compat-hub-col .sign-symbol { font-size: 28px; }
.compat-hub-col .sign-name { font-size: 13px; }

/* Tarot grid */
.tarot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.tarot-card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.tarot-card-link:hover { border-color: var(--accent); color: var(--accent-bright); transform: translateY(-2px); }
.tarot-number { font-size: 11px; color: var(--text-dim); font-weight: 700; min-width: 18px; }
.tarot-card-link small { color: var(--text-dim); font-weight: 400; font-size: 11px; }

/* Birthday hub grid */
.birthday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 6px;
  margin-bottom: 28px;
}
.birthday-day-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.birthday-day-link:hover { border-color: var(--accent); color: var(--accent-bright); transform: translateY(-2px); }

/* ── Social Proof FOMO Popup ── */
.fomo-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px var(--accent-glow);
  z-index: 9998;
  max-width: 360px;
  opacity: 0;
  transform: translateY(20px) translateX(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.fomo-popup.fomo-show {
  opacity: 1;
  transform: translateY(0) translateX(0);
  pointer-events: auto;
}
.fomo-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}
.fomo-body {
  flex: 1;
  min-width: 0;
}
.fomo-line1 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fomo-line2 {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.fomo-time {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ================================================================
   BLOG
   ================================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-bottom: 40px; }
.blog-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-decoration: none; color: var(--text); transition: all 0.25s; }
.blog-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(74, 95, 193, 0.15); }
.blog-card-title { font-size: 18px; font-weight: 700; color: var(--text-bright); margin-bottom: 10px; line-height: 1.4; }
.blog-card-excerpt { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-date { font-size: 12px; color: var(--text-dim); opacity: 0.7; }
.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.blog-page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; transition: all 0.2s; }
.blog-page-link:hover, .blog-page-link.active { border-color: var(--accent); color: var(--accent-bright); background: rgba(74, 95, 193, 0.1); }
.hub-empty { text-align: center; padding: 60px 20px; color: var(--text-dim); font-size: 16px; }
.blog-hero-image { margin: 0 0 24px 0; border-radius: 12px; overflow: hidden; }
.blog-hero-image img { width: 100%; height: auto; display: block; }
.blog-card-image { border-radius: 12px 12px 0 0; overflow: hidden; margin: -24px -24px 16px -24px; }
.blog-card-image img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.3s; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }

/* ================================================================
   RESPONSIVE — must be LAST to override all desktop styles
   ================================================================ */

.ad-c5 {
  max-width: 970px;
  margin: 35px auto;
  text-align: center;
  overflow: hidden;
}

.layout-desktop { display: block; }
.layout-mobile { display: none; }

.header-ad {
  max-width: 1001px;
  margin: 0 auto 16px;
  text-align: center;
  overflow: hidden;
  min-height: 250px;
}

.sticky-footer-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  max-width: 970px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
  background: var(--bg-surface);
}

/* ── Tablet (1024px) ── */
@media (max-width: 1024px) {
  .ad-c5 { max-width: 336px; }
  .main-content { padding-left: 20px; padding-right: 20px; }
  .nav-container { padding: 0 20px; }
  .hero { padding: 60px 16px; }
  .hero h1 { font-size: 40px; }
  .quick-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* ── Ad layout switch (728px) ── */
@media (max-width: 727px) {
  .layout-desktop { display: none; }
  .layout-mobile { display: block; }
}

/* ── Mobile (768px) ── */
@media (max-width: 768px) {
  /* Layout */
  .main-content { padding-left: 18px; padding-right: 18px; border-left: none; border-right: none; }


  /* Navigation */
  .nav-toggle { display: block; }
  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-surface);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  .nav-search-form { width: 100%; margin-left: 0; margin-top: 4px; }
  .nav-search-input { width: 100%; }
  .nav-search-input:focus { width: 100%; }

  /* Hero */
  .hero { padding: 48px 12px; }
  .hero h1 { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }

  /* All grids → single column */
  .widgets-grid { grid-template-columns: 1fr; }
  .quick-tools-grid { grid-template-columns: 1fr; gap: 10px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 12px; }
  .features-grid { grid-template-columns: 1fr; }
  .sign-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-columns { grid-template-columns: 1fr; }
  .dashboard-cards { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }

  /* Widget cards: stack vertically */
  .widget-card { flex-direction: column; text-align: center; padding: 16px; }
  .widget-icon { font-size: 36px; }
  .widget-cta { margin-top: 8px; }

  /* Quick tool cards: compact horizontal rows */
  .quick-tools-section h2 { font-size: 22px; margin-bottom: 16px; }
  .quick-tool-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 14px 16px;
    gap: 14px;
    cursor: pointer;
  }
  .quick-tool-icon { font-size: 28px; margin-bottom: 0; flex-shrink: 0; width: 40px; text-align: center; }
  .quick-tool-body { flex: 1; min-width: 0; }
  .quick-tool-card h3 { font-size: 15px; margin-bottom: 2px; }
  .quick-tool-card p { font-size: 13px; margin-bottom: 0; line-height: 1.4; }
  .quick-tool-form { display: none; }
  .quick-tool-card::after {
    content: '\203A';
    font-size: 22px;
    color: var(--text-dim);
    flex-shrink: 0;
    margin-left: auto;
  }

  /* Feature cards */
  .feature-card { padding: 24px 16px; }

  /* Score cards (tools) */
  .score-cards { flex-direction: column; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input,
  .newsletter-form button { width: 100%; }
  .compat-selects { flex-direction: column; }
  .compat-heart { display: none; }

  /* Content pages */
  .content-page { max-width: 100%; }
  .content-page h1 { font-size: 26px; }

  /* Aspect list */
  .aspect-item { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .aspect-planets { min-width: auto; }

  /* Search */
  .search-input-wrap { flex-direction: column; }
  .search-input-wrap .btn { width: 100%; }

  /* Chat */
  .chat-container { height: 60vh; min-height: 350px; }
  .chat-bubble { max-width: 85%; }

  /* Hub pages */
  .hub-header h1 { font-size: 26px; }
  .hub-subtitle { font-size: 15px; }
  .compat-hub-row { grid-template-columns: 1fr; gap: 24px; }
  .tarot-grid { grid-template-columns: repeat(2, 1fr); }

  /* FOMO popup */
  .fomo-popup { left: 12px; right: 12px; bottom: 16px; max-width: none; }
}

/* ── Small Mobile (480px) ── */
@media (max-width: 480px) {
  .main-content { padding: 76px 16px 16px; }
  .nav-container { padding: 0 12px; }
  .logo-text { font-size: 16px; }

  .hero { padding: 36px 10px; }
  .hero h1 { font-size: 24px; }
  .hero-subtitle { font-size: 14px; }

  .sign-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { padding: 0 12px; }
  .footer-legal { flex-direction: column; gap: 12px; }
  .related-grid { grid-template-columns: 1fr; }

  .sign-grid-section h2,
  .features-section h2,
  .testimonials-section h2,
  .quick-tools-section h2 { font-size: 22px; }
  .content-page h1 { font-size: 22px; }
  .content-section h2 { font-size: 18px; }

  .score-card { padding: 12px 14px; }
  .score-value { font-size: 20px; }
  .tool-form { padding: 14px; }
  .tool-form .btn { width: 100%; justify-content: center; }
  .newsletter-section { padding: 24px 16px; }

  .chat-container { height: 55vh; min-height: 300px; }
  .chat-input-area { padding: 8px 12px; }
  .astrobot-stats { padding: 10px 14px; }
  .chatbot-cta-inner { flex-direction: column; text-align: center; }
  .chatbot-cta-button { width: 100%; text-align: center; }
  .chatbot-fab { bottom: 160px; right: 14px; padding: 10px 14px; font-size: 13px; }
  .chatbot-fab-text { display: none; }
  .chatbot-fab-icon { width: 42px; height: 42px; font-size: 20px; }
  .streak-count { font-size: 18px; }
  .streak-label, .daily-text { font-size: 12px; }
  .chat-input-area input { font-size: 16px; }
  .form-group input,
  .form-group select { font-size: 16px; }
}
