/* ============================================
   ASTROMANTIKA — Killer Features CSS v1.0
   Daily Briefing, Voice Mode, Transit Calendar,
   Chart Sharing, Compatibility, Year Planner
   ============================================ */

/* ═══════════════════════════════════════
   1. DAILY BRIEFING
   ═══════════════════════════════════════ */

.briefing-page {
  min-height: 100vh;
  padding: var(--nav-offset) 0 var(--space-12);
}

.briefing-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Hero Card */
.briefing-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(124,92,255,0.15), rgba(212,160,74,0.1));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.briefing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(124,92,255,0.12), transparent 70%);
  pointer-events: none;
}

.briefing-date {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-subtle);
  margin-bottom: var(--space-3);
}

.briefing-headline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.briefing-mood {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(124,92,255,0.15);
  border: 1px solid rgba(124,92,255,0.3);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--brand-light);
  margin-bottom: var(--space-6);
}

.briefing-mood-emoji {
  font-size: 1.3em;
}

/* Energy Meter */
.energy-meter {
  margin-bottom: var(--space-6);
}

.energy-meter-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.energy-meter-bar {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.energy-meter-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transition: width 1.5s var(--ease-out);
  position: relative;
}

.energy-meter-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  animation: shimmer-energy 2.5s infinite;
}

@keyframes shimmer-energy {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Transit Cards */
.briefing-transits {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.transit-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition: all var(--duration-base) var(--ease-out);
}

.transit-card:hover {
  border-color: var(--glass-border);
  transform: translateX(4px);
}

.transit-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2em;
  flex-shrink: 0;
}

.transit-card-icon.positive { background: rgba(74,222,128,0.15); }
.transit-card-icon.neutral { background: rgba(124,92,255,0.15); }
.transit-card-icon.challenging { background: rgba(239,68,68,0.15); }

.transit-card-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-snug);
}

.transit-card-planet {
  font-weight: var(--weight-semibold);
  color: var(--text);
}

/* Advice Box */
.briefing-advice {
  background: linear-gradient(135deg, rgba(212,160,74,0.1), rgba(212,160,74,0.05));
  border: 1px solid rgba(212,160,74,0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.briefing-advice-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-semibold);
  color: var(--gold-light);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
}

.briefing-advice-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* Personal Insight Box (new) */
.briefing-insight {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(139,92,246,0.05));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.briefing-insight-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-semibold);
  color: #c4b5fd;
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
}
.briefing-insight-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  font-style: italic;
}

/* Warnings Section (new) */
.briefing-warnings {
  margin-bottom: var(--space-4);
}
.briefing-warning-item {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 6px;
  font-size: var(--text-sm);
  color: #fca5a5;
  line-height: 1.5;
}

/* Lucky Time & Focus */
.briefing-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.briefing-meta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
}

.briefing-meta-icon {
  font-size: 1.5em;
  margin-bottom: var(--space-2);
}

.briefing-meta-label {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.briefing-meta-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text);
}

/* Subscription Toggle */
.briefing-subscribe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.briefing-subscribe-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.briefing-subscribe-title {
  font-weight: var(--weight-semibold);
  color: var(--text);
  font-size: var(--text-base);
}

.briefing-subscribe-desc {
  font-size: var(--text-xs);
  color: var(--text-subtle);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  transition: all var(--duration-base);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform var(--duration-base) var(--ease-out);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--brand);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

/* ═══════════════════════════════════════
   2. STELLA VOICE MODE
   ═══════════════════════════════════════ */

.voice-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(124,92,255,0.3);
  background: rgba(124,92,255,0.1);
  color: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
}

.voice-btn:hover {
  border-color: var(--brand);
  background: rgba(124,92,255,0.2);
  transform: scale(1.05);
}

.voice-btn.recording {
  border-color: #EF4444;
  background: rgba(239,68,68,0.15);
  color: #EF4444;
  animation: voice-pulse 1.5s ease-in-out infinite;
}

@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
}

.voice-btn.recording::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(239,68,68,0.3);
  animation: voice-ring 1.5s ease-in-out infinite;
}

@keyframes voice-ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Voice Visualizer */
.voice-visualizer {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  padding: 0 var(--space-3);
}

.voice-bar {
  width: 3px;
  height: 8px;
  background: var(--brand);
  border-radius: 2px;
  transition: height 0.1s ease;
}

.voice-bar.active {
  animation: voice-wave 0.5s ease-in-out infinite alternate;
}

@keyframes voice-wave {
  0% { height: 4px; }
  100% { height: 28px; }
}

.voice-bar:nth-child(2) { animation-delay: 0.1s; }
.voice-bar:nth-child(3) { animation-delay: 0.2s; }
.voice-bar:nth-child(4) { animation-delay: 0.15s; }
.voice-bar:nth-child(5) { animation-delay: 0.25s; }
.voice-bar:nth-child(6) { animation-delay: 0.1s; }
.voice-bar:nth-child(7) { animation-delay: 0.3s; }

/* TTS Playback */
.tts-player {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(124,92,255,0.1);
  border: 1px solid rgba(124,92,255,0.2);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
  transition: all var(--duration-base);
  font-size: var(--text-xs);
  color: var(--brand-light);
  margin-top: var(--space-2);
}

.tts-player:hover {
  background: rgba(124,92,255,0.2);
}

.tts-player.playing {
  border-color: var(--brand);
}

.tts-player-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════
   3. TRANSIT CALENDAR
   ═══════════════════════════════════════ */

.calendar-page {
  min-height: 100vh;
  padding: var(--nav-offset) 0 var(--space-12);
}

.calendar-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.calendar-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-base);
}

.calendar-nav-btn:hover {
  border-color: var(--brand);
  color: var(--brand-light);
  background: rgba(124,92,255,0.1);
}

.calendar-month-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text);
}

/* Month Summary Bar */
.calendar-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.calendar-summary-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
}

.calendar-summary-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}

.calendar-summary-num.green { color: var(--green); }
.calendar-summary-num.yellow { color: #FBBF24; }
.calendar-summary-num.orange { color: #FB923C; }
.calendar-summary-num.red { color: #EF4444; }

.calendar-summary-label {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin-top: var(--space-1);
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: var(--space-6);
}

.calendar-weekday {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-subtle);
  padding: var(--space-2) 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-day {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  border: 1px solid transparent;
  min-height: 58px;
}

.calendar-day.empty { cursor: default; }

.calendar-day:not(.empty):hover {
  transform: scale(1.08);
  z-index: 2;
  border-color: var(--glass-border);
}

.calendar-day.green {
  background: rgba(74,222,128,0.08);
  border-color: rgba(74,222,128,0.15);
}
.calendar-day.yellow {
  background: rgba(251,191,36,0.08);
  border-color: rgba(251,191,36,0.15);
}
.calendar-day.orange {
  background: rgba(251,146,60,0.08);
  border-color: rgba(251,146,60,0.15);
}
.calendar-day.red {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.15);
}

.calendar-day.today {
  border: 2px solid var(--brand) !important;
  box-shadow: 0 0 12px rgba(124,92,255,0.3);
}

.calendar-day-num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text);
}

.calendar-day-moon {
  font-size: 10px;
  opacity: 0.7;
}

.calendar-day-dots {
  display: flex;
  gap: 2px;
  margin-top: 1px;
}

.calendar-day-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.calendar-day-dot.positive { background: var(--green); }
.calendar-day-dot.neutral { background: var(--brand-light); }
.calendar-day-dot.challenging { background: #EF4444; }

/* Day Detail Panel */
.calendar-detail {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  backdrop-filter: blur(12px);
  animation: slideUp 0.3s var(--ease-out);
}

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

.calendar-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.calendar-detail-date {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text);
}

.calendar-detail-scores {
  display: flex;
  gap: var(--space-3);
}

.calendar-detail-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.calendar-detail-score-val {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
}

.calendar-detail-score-label {
  font-size: 9px;
  color: var(--text-subtle);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════
   4. CHART SHARING
   ═══════════════════════════════════════ */

.share-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
}

.share-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(160deg, #0F0A2A 0%, #1A0F3A 40%, #0A0A2E 100%);
  border: 1px solid rgba(124,92,255,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(124,92,255,0.1);
}

.share-card-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(124,92,255,0.15), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(212,160,74,0.1), transparent 60%);
  pointer-events: none;
}

.share-card-content {
  position: relative;
  z-index: 1;
  padding: var(--space-8);
  text-align: center;
}

.share-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  border: 2px solid rgba(124,92,255,0.4);
}

.share-card-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text);
  margin-bottom: var(--space-6);
}

.share-card-signs {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.share-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.share-sign-symbol {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(124,92,255,0.1);
  border: 1px solid rgba(124,92,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  transition: all var(--duration-base) var(--ease-out);
}

.share-sign:hover .share-sign-symbol {
  transform: scale(1.1);
  border-color: var(--brand);
  box-shadow: 0 0 20px rgba(124,92,255,0.3);
}

.share-sign-label {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-sign-name {
  font-weight: var(--weight-semibold);
  color: var(--text);
  font-size: var(--text-sm);
}

.share-card-footer {
  padding: var(--space-4) var(--space-8);
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.share-card-brand {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--text-subtle);
}

.share-card-cta {
  font-size: var(--text-xs);
  color: var(--brand-light);
  text-decoration: none;
}

/* Share Actions */
.share-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.share-action-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-base);
  font-size: 1.1em;
}

.share-action-btn:hover {
  transform: scale(1.1);
}

.share-action-btn.whatsapp:hover { background: rgba(37,211,102,0.15); border-color: #25D366; color: #25D366; }
.share-action-btn.telegram:hover { background: rgba(38,166,227,0.15); border-color: #26A5E4; color: #26A5E4; }
.share-action-btn.twitter:hover { background: rgba(29,155,240,0.15); border-color: #1DA1F2; color: #1DA1F2; }
.share-action-btn.instagram:hover { background: rgba(225,48,108,0.15); border-color: #E1306C; color: #E1306C; }
.share-action-btn.copy:hover { background: rgba(124,92,255,0.15); border-color: var(--brand); color: var(--brand-light); }

/* ═══════════════════════════════════════
   5. COMPATIBILITY INVITE
   ═══════════════════════════════════════ */

.match-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
}

.match-container {
  width: 100%;
  max-width: 520px;
}

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.match-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(239,68,108,0.1), transparent 70%);
  pointer-events: none;
}

.match-hearts {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.match-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.match-person-sign {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(124,92,255,0.1);
  border: 2px solid rgba(124,92,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
}

.match-person-name {
  font-weight: var(--weight-semibold);
  color: var(--text);
  font-size: var(--text-sm);
}

.match-heart-icon {
  font-size: 2em;
  color: #EF4444;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
}

.match-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text);
  margin-bottom: var(--space-3);
}

.match-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

/* Score Ring */
.score-ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-6);
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 8;
}

.score-ring-fill {
  fill: none;
  stroke: url(#score-gradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 408;
  stroke-dashoffset: 408;
  transition: stroke-dashoffset 2s var(--ease-out);
}

.score-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-ring-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--text);
}

.score-ring-label {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════
   6. ASTRO YEAR PLANNER
   ═══════════════════════════════════════ */

.planner-page {
  min-height: 100vh;
  padding: var(--nav-offset) 0 var(--space-12);
}

.planner-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.planner-hero {
  text-align: center;
  margin-bottom: var(--space-8);
}

.planner-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, rgba(212,160,74,0.15), rgba(212,160,74,0.05));
  border: 1px solid rgba(212,160,74,0.3);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-xs);
  color: var(--gold-light);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-4);
}

.planner-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--text);
  margin-bottom: var(--space-3);
}

.planner-hero-sub {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Timeline */
.planner-timeline {
  position: relative;
  padding-left: var(--space-8);
}

.planner-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--gold), var(--brand));
}

.planner-month {
  position: relative;
  margin-bottom: var(--space-6);
  animation: fadeInLeft 0.4s var(--ease-out) backwards;
}

.planner-month:nth-child(2) { animation-delay: 0.05s; }
.planner-month:nth-child(3) { animation-delay: 0.1s; }
.planner-month:nth-child(4) { animation-delay: 0.15s; }
.planner-month:nth-child(5) { animation-delay: 0.2s; }
.planner-month:nth-child(6) { animation-delay: 0.25s; }

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

.planner-month-dot {
  position: absolute;
  left: calc(-1 * var(--space-8) + 8px);
  top: var(--space-4);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg-base);
  z-index: 1;
}

.planner-month-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--duration-base) var(--ease-out);
}

.planner-month-card:hover {
  border-color: var(--glass-border);
  transform: translateX(4px);
}

.planner-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.planner-month-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text);
}

.planner-month-score {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.planner-month-score.great { color: var(--green); }
.planner-month-score.good { color: #FBBF24; }
.planner-month-score.challenging { color: #FB923C; }
.planner-month-score.difficult { color: #EF4444; }

.planner-month-events {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.planner-event-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(124,92,255,0.08);
  border: 1px solid rgba(124,92,255,0.15);
  border-radius: var(--radius-pill);
  padding: 2px var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.planner-event-tag.retrograde {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.2);
  color: #FCA5A5;
}

.planner-event-tag.eclipse {
  background: rgba(212,160,74,0.08);
  border-color: rgba(212,160,74,0.2);
  color: var(--gold-light);
}

.planner-month-summary {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* Kybele Analyse Buttons */
.planner-month-actions {
  margin-top: 10px;
}
.planner-oria-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 20px;
  background: rgba(139,92,246,0.1);
  color: #c4b5fd;
  cursor: pointer;
  transition: all 0.2s;
}
.planner-oria-btn:hover {
  background: rgba(139,92,246,0.2);
  border-color: rgba(139,92,246,0.5);
  color: #e9d5ff;
}
.planner-oria-btn.saved {
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.08);
  color: #6ee7b7;
}
.planner-oria-btn.saved:hover {
  background: rgba(16,185,129,0.15);
}
.planner-month-detail {
  /* Placeholder for expandable month detail */
}

/* Calendar Language Switcher */
#cal-lang-menu.show {
  display: block !important;
}
#cal-lang-menu button:hover {
  background: rgba(139,92,246,0.1) !important;
}

/* Calendar mobile snap scroll improvements */
@media (max-width: 768px) {
  .calendar-grid {
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .calendar-nav {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .calendar-lang-switcher button {
    font-size: 11px !important;
    padding: 3px 8px !important;
  }
}

/* ═══════════════════════════════════════
   DASHBOARD WIDGET (Briefing Preview)
   ═══════════════════════════════════════ */

.dash-briefing-widget {
  background: linear-gradient(135deg, rgba(124,92,255,0.08), rgba(212,160,74,0.06));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
}

.dash-briefing-widget:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,92,255,0.15);
}

.dash-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.dash-widget-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-semibold);
  color: var(--text);
  font-size: var(--text-base);
}

.dash-widget-badge {
  font-size: var(--text-xs);
  color: var(--gold-light);
  background: rgba(212,160,74,0.15);
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .calendar-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calendar-day {
    min-height: 48px;
  }
  
  .calendar-day-num {
    font-size: var(--text-xs);
  }
  
  .share-card-signs {
    gap: var(--space-4);
  }
  
  .share-sign-symbol {
    width: 50px;
    height: 50px;
    font-size: 1.4em;
  }
  
  .planner-hero-title {
    font-size: var(--text-2xl);
  }
  
  .briefing-headline {
    font-size: var(--text-xl);
  }
  
  .briefing-meta {
    grid-template-columns: 1fr;
  }
  
  .match-person-sign {
    width: 60px;
    height: 60px;
    font-size: 1.6em;
  }
}

@media (max-width: 480px) {
  .calendar-grid {
    gap: 1px;
  }
  
  .calendar-day {
    min-height: 40px;
    border-radius: 4px;
  }
  
  .calendar-day-moon {
    display: none;
  }
  
  .share-card-content {
    padding: var(--space-5);
  }
  
  .planner-timeline {
    padding-left: var(--space-6);
  }
}

/* ═══════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════ */

.kf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  gap: var(--space-4);
}

.kf-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(124,92,255,0.2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: kf-spin 0.8s linear infinite;
}

@keyframes kf-spin {
  to { transform: rotate(360deg); }
}

.kf-loading-text {
  font-size: var(--text-sm);
  color: var(--text-subtle);
}

/* ═══════════════════════════════════════
   NAVIGATION LINKS (Feature access)
   ═══════════════════════════════════════ */

.feature-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.feature-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-muted);
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
}

.feature-nav-item:hover {
  border-color: var(--brand);
  color: var(--text);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.feature-nav-icon {
  font-size: 1.5em;
  margin-bottom: var(--space-1);
}

.feature-nav-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-align: center;
}
