/* ============================================
   ASTROCHARTS — Chart Pages v2.0
   Styles for: chart creation form + chart result
   Premium Dark Cosmic Design with Tabs
   ============================================ */

/* ============================================
   CHART CREATION FORM
   ============================================ */

.chart-form-page {
  min-height: 100vh;
  padding: calc(var(--nav-height) + var(--space-10)) 0 var(--space-16);
}

.chart-form-header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.chart-form-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}
.chart-form-header p {
  max-width: 500px;
  margin: 0 auto;
}

/* Form Container – glass card */
.chart-form-card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: var(--space-10);
}

/* Form Groups */
.form-group {
  margin-bottom: var(--space-6);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text);
  margin-bottom: var(--space-2);
}
.form-hint {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin-top: var(--space-1);
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Input Fields */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  transition: all var(--duration-fast);
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder {
  color: var(--text-subtle);
}
.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
  background: rgba(255,255,255,0.06);
}
.form-input:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

/* Select styling */
select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239B7AFF' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
select.form-input option {
  background: var(--bg-surface);
  color: var(--text);
}

/* Location Autocomplete */
.location-wrap {
  position: relative;
}
.location-results {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(15, 12, 30, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  z-index: 50;
  box-shadow: var(--shadow-lg);
}
.location-results.active {
  display: block;
}
.location-item {
  padding: 10px 16px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--duration-fast);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.location-item:last-child {
  border-bottom: none;
}
.location-item:hover,
.location-item.active {
  background: rgba(124, 92, 255, 0.10);
  color: var(--text);
}
.location-item small {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin-top: 2px;
}

/* Timezone display */
.tz-display {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.15);
  font-size: var(--text-xs);
  color: var(--brand-light);
  margin-top: var(--space-2);
}

/* Form Divider */
.form-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-8) 0;
}

/* Submit Button Area */
.form-submit {
  margin-top: var(--space-8);
  text-align: center;
}
.form-submit .btn {
  width: 100%;
  padding: 14px 32px;
  font-size: var(--text-lg);
}

/* Error Message */
.form-error {
  display: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.form-error.visible {
  display: block;
}

/* Loading Overlay */
.chart-loading {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: var(--space-6);
}
.chart-loading.active {
  display: flex;
}
.chart-loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--border-light);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.chart-loading-text {
  font-size: var(--text-lg);
  color: var(--text);
  font-weight: var(--weight-medium);
}
.chart-loading-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

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

/* Chart Placeholder */
.chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-16);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ============================================
   CHART RESULT PAGE
   ============================================ */

.chart-result-page {
  min-height: 100vh;
  padding: calc(var(--nav-height) + var(--space-8)) 0 var(--space-16);
}

/* Chart Header */
.chart-header {
  text-align: center;
  margin-bottom: var(--space-8);
}
.chart-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}
.chart-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.chart-meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

/* ============================================
   BIG THREE CARDS — Sun / Ascendant / Moon
   ============================================ */
.chart-big-three {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
@media (min-width: 640px) {
  .chart-big-three { grid-template-columns: repeat(3, 1fr); }
}

.big-three-card {
  text-align: center;
  background: rgba(14, 11, 30, 0.92);
  border: 1px solid rgba(124, 92, 255, 0.20);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-6);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.big-three-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--gold), transparent);
  opacity: 0.5;
}
.big-three-card:hover {
  border-color: rgba(124, 92, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.big-three-icon {
  font-size: var(--text-sm);
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.big-three-label {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}
.big-three-symbol {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, var(--brand-light), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.big-three-sign {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text);
  margin-bottom: var(--space-1);
}
.big-three-detail {
  font-size: var(--text-xs);
  color: var(--text-subtle);
}

/* ============================================
   CHART TABS — Navigation
   ============================================ */
.chart-tabs {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
  padding: 4px;
  background: rgba(15, 12, 30, 0.40);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.chart-tab {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  white-space: nowrap;
}
.chart-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.chart-tab.active {
  color: var(--text);
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.20);
}
.chart-tab i {
  font-size: 0.7rem;
}

/* Tab Content */
.chart-tab-content {
  display: none;
  animation: fadeInUp 0.3s var(--ease-out) forwards;
}
.chart-tab-content.active {
  display: block;
}

/* ============================================
   CHART SVG CONTAINER — with Pinch-to-Zoom
   ============================================ */
.chart-svg-wrap {
  max-width: 700px;
  margin: 0 auto var(--space-8);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--glass-blur));
  padding: var(--space-8);
  text-align: center;
  overflow: visible;
  /* Enable touch interactions for zoom */
  touch-action: manipulation;
}
#chart-svg-container {
  position: relative;
  overflow: visible;
  /* Allow pinch-to-zoom */
  touch-action: pinch-zoom pan-x pan-y;
}
.chart-svg-wrap svg {
  width: 100%;
  height: auto;
  max-width: 620px;
  overflow: visible;
  display: block;
  margin: 0 auto;
}

/* ============================================
   SUMMARY CARDS & TABLES
   ============================================ */
.chart-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
@media (min-width: 768px) {
  .chart-summary-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .chart-summary-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.chart-summary-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  padding: var(--space-6);
  overflow: hidden;
}
.chart-summary-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.chart-summary-card h3 i {
  color: var(--brand-light);
  font-size: var(--text-base);
}

/* Table scroll on mobile */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Planet Table */
.planet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.planet-table th {
  text-align: left;
  font-weight: var(--weight-semibold);
  color: var(--text-subtle);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
}
.planet-table td {
  padding: 10px 6px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.planet-table tr:hover td {
  background: rgba(124, 92, 255, 0.04);
}
.planet-symbol {
  font-size: var(--text-lg);
  width: 28px;
  display: inline-block;
  text-align: center;
}
.planet-retro {
  color: #ef4444;
  font-size: var(--text-xs);
  margin-left: 2px;
  font-weight: var(--weight-bold);
}

/* ============================================
   ASPECTS
   ============================================ */
.aspect-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.aspect-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  border: 1px solid;
  transition: all var(--duration-fast);
}
.aspect-chip:hover {
  transform: scale(1.05);
}
.aspect-chip.conjunction { color: #a78bfa; border-color: rgba(167,139,250,0.25); background: rgba(167,139,250,0.06); }
.aspect-chip.trine      { color: #4ade80; border-color: rgba(74,222,128,0.25);  background: rgba(74,222,128,0.06);  }
.aspect-chip.sextile    { color: #38bdf8; border-color: rgba(56,189,248,0.25);  background: rgba(56,189,248,0.06);  }
.aspect-chip.square     { color: #f87171; border-color: rgba(248,113,113,0.25); background: rgba(248,113,113,0.06); }
.aspect-chip.opposition { color: #fbbf24; border-color: rgba(251,191,36,0.25);  background: rgba(251,191,36,0.06);  }

.aspect-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* ============================================
   HOUSES GRID
   ============================================ */
.houses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
@media (min-width: 640px) {
  .houses-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .houses-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .houses-grid { grid-template-columns: repeat(6, 1fr); }
}

.house-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-2);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all var(--duration-fast);
}
.house-item:hover {
  border-color: var(--glass-border);
  background: rgba(124, 92, 255, 0.04);
}
.house-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(212, 160, 74, 0.10));
  border: 1px solid rgba(124, 92, 255, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--brand-light);
}
.house-sign {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
}
.house-deg {
  font-size: 0.65rem;
  color: var(--text-subtle);
}

/* ============================================
   FREE INSIGHT BOX
   ============================================ */
.insight-box {
  background: linear-gradient(135deg, rgba(16, 12, 35, 0.95), rgba(22, 16, 45, 0.92));
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.insight-box h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.insight-item {
  margin-bottom: var(--space-6);
}
.insight-item:last-child {
  margin-bottom: 0;
}
.insight-item h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.insight-item p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
}

/* ============================================
   PREMIUM CTA CARDS
   ============================================ */
.premium-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
@media (min-width: 640px) {
  .premium-cta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .premium-cta-grid { grid-template-columns: repeat(4, 1fr); }
}

.premium-cta-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
}
.premium-cta-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(212, 160, 74, 0.10);
  transform: translateY(-2px);
}
.premium-cta-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}
.premium-cta-card h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}
.premium-cta-card p {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin-bottom: var(--space-3);
}
.premium-cta-price {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--gold-light);
  background: rgba(212, 160, 74, 0.10);
  border: 1px solid rgba(212, 160, 74, 0.20);
}

/* ============================================
   ELEMENT/MODALITY DISTRIBUTION
   ============================================ */
.dist-bar-wrap {
  margin-bottom: var(--space-3);
}
.dist-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 4px;
}
.dist-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.dist-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s var(--ease-out);
}
.dist-bar-fill.fire   { background: linear-gradient(90deg, #ef4444, #f97316); }
.dist-bar-fill.earth  { background: linear-gradient(90deg, #22c55e, #84cc16); }
.dist-bar-fill.air    { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.dist-bar-fill.water  { background: linear-gradient(90deg, #6366f1, #8b5cf6); }

/* ============================================
   BOTTOM ACTIONS
   ============================================ */
.chart-bottom-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-10) 0 var(--space-4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .chart-header h1 { font-size: var(--text-2xl); }
  .chart-tabs { gap: 2px; }
  .chart-tab { padding: 8px 8px; font-size: 0.65rem; }
  .chart-tab i { display: none; }
  .big-three-symbol { font-size: 2rem; }
  .chart-svg-wrap { padding: var(--space-3); }
  .chart-form-card { padding: var(--space-6); }
}

/* ============================================
   INSIGHT DETAIL + SUMMARY (Enhanced v2.1)
   ============================================ */
.insight-detail {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-left: 2px solid rgba(124, 92, 255, 0.30);
  line-height: var(--leading-relaxed);
  background: rgba(124, 92, 255, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.insight-detail strong {
  color: var(--text);
}

.insight-summary {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: rgba(16, 12, 35, 0.90);
  border: 1px solid rgba(124, 92, 255, 0.22);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.insight-summary h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.insight-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .insight-summary-grid { grid-template-columns: repeat(4, 1fr); }
}
.insight-summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.insight-summary-label {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.insight-summary-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
#toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.toast {
  background: rgba(16, 16, 24, 0.95);
  border: 1px solid var(--brand);
  color: var(--text);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s var(--ease-out);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast i {
  color: var(--brand-light);
}
@media (max-width: 640px) {
  #toast-container {
    bottom: var(--space-4);
    right: var(--space-4);
    left: var(--space-4);
  }
}

/* ============================================
   KI-ANALYSE RESULT (Premium Analysis)
   ============================================ */
.analysis-result {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.06), rgba(16, 16, 24, 0.95));
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
  position: relative;
}
.analysis-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(124, 92, 255, 0.15);
}
.analysis-result-header h2 {
  font-size: var(--text-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.btn-sm {
  padding: 6px 12px;
  font-size: var(--text-sm);
}

/* Demo Badge */
.analysis-demo-badge {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--gold-light);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Executive Summary */
.analysis-summary {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--brand);
  margin-bottom: var(--space-8);
}

/* Highlights Grid */
.analysis-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
@media (min-width: 640px) {
  .analysis-highlights { grid-template-columns: repeat(4, 1fr); }
}
.analysis-highlight {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--duration-fast);
}
.analysis-highlight:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.2);
}
.analysis-highlight-icon {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.analysis-highlight.primary .analysis-highlight-icon { color: #8b5cf6; }
.analysis-highlight.success .analysis-highlight-icon { color: #22c55e; }
.analysis-highlight.warning .analysis-highlight-icon { color: #f59e0b; }
.analysis-highlight.danger .analysis-highlight-icon { color: #ef4444; }
.analysis-highlight.info .analysis-highlight-icon { color: #3b82f6; }
.analysis-highlight-label {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.analysis-highlight-value {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--text);
  margin: 2px 0;
}
.analysis-highlight-desc {
  font-size: 0.65rem;
  color: var(--text-subtle);
  line-height: 1.3;
}

/* Analysis Sections */
.analysis-section {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.analysis-section:last-child {
  border-bottom: none;
}
.analysis-section h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.analysis-section h3 i {
  color: var(--brand-light);
}
.analysis-intro {
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.analysis-insights {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}
.analysis-insights li {
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  position: relative;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}
.analysis-insights li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.6rem;
  top: var(--space-3);
}
.analysis-details {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  font-style: italic;
  padding-left: var(--space-4);
  border-left: 2px solid rgba(124, 92, 255, 0.15);
  margin-top: var(--space-3);
}

/* Pros & Cons */
.analysis-proscons {
  margin-bottom: var(--space-8);
}
.analysis-proscons h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.analysis-pros, .analysis-cons {
  margin-bottom: var(--space-5);
}
.analysis-pros h4, .analysis-cons h4 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.analysis-pro-item, .analysis-con-item {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* Recommendations */
.analysis-recommendations {
  margin-bottom: var(--space-8);
}
.analysis-recommendations h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.analysis-rec {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.analysis-rec-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-light);
  font-size: var(--text-sm);
}
.analysis-rec strong {
  font-size: var(--text-sm);
  display: block;
  margin-bottom: 2px;
}
.analysis-rec p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* Conclusion */
.analysis-conclusion {
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(212, 160, 74, 0.06), rgba(124, 92, 255, 0.06));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 160, 74, 0.15);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-6);
}

/* Error */
.analysis-error {
  color: #f87171;
  padding: var(--space-5);
  text-align: center;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

/* ============================================
   USER DASHBOARD
   ============================================ */
.dashboard-page {
  min-height: 100vh;
  padding: calc(var(--nav-height) + var(--space-10)) 0 var(--space-16);
}
.dashboard-header {
  text-align: center;
  margin-bottom: var(--space-10);
}
.dashboard-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}
.dashboard-header p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Stats Row */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
@media (min-width: 640px) {
  .dashboard-stats { grid-template-columns: repeat(4, 1fr); }
}
.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  padding: var(--space-5);
  text-align: center;
}
.stat-icon {
  color: var(--brand-light);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text);
  margin-bottom: 2px;
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Dashboard Tabs */
.dashboard-tab-content {
  display: none;
  animation: fadeInUp 0.3s var(--ease-out) forwards;
}
.dashboard-tab-content.active {
  display: block;
}
.dashboard-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}
.dashboard-section-header h2 {
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.dashboard-section-header h2 i {
  color: var(--brand-light);
}

/* Loading & Empty States */
.dashboard-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-10);
  color: var(--text-subtle);
}
.dashboard-empty {
  text-align: center;
  padding: var(--space-12) var(--space-6);
}
.dashboard-empty p {
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}
.text-subtle {
  color: var(--text-subtle) !important;
  font-size: var(--text-sm);
}

/* Charts List */
.chart-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  text-decoration: none;
  color: var(--text);
  transition: all var(--duration-fast);
}
.chart-list-item:hover {
  border-color: var(--brand);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.1);
}
.chart-list-sign {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(212, 160, 74, 0.1));
  border: 1px solid rgba(124, 92, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  flex-shrink: 0;
}
.chart-list-info {
  flex: 1;
  min-width: 0;
}
.chart-list-name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  margin-bottom: 2px;
}
.chart-list-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.chart-list-date {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin-top: 2px;
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.chart-list-date i {
  font-size: 0.6rem;
  margin-right: 2px;
}
.chart-list-arrow {
  color: var(--text-subtle);
  flex-shrink: 0;
}

/* Credit Wallet */
.credit-wallet-card {
  background: linear-gradient(135deg, rgba(212, 160, 74, 0.08), rgba(124, 92, 255, 0.06));
  border: 1px solid rgba(212, 160, 74, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
}
.credit-wallet-balance {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: var(--space-4);
}
.credit-wallet-amount {
  font-size: 3rem;
  font-weight: var(--weight-bold);
  color: var(--gold);
  line-height: 1;
}
.credit-wallet-label {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.credit-wallet-info {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* Credit Packages */
.credit-packages {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .credit-packages { grid-template-columns: repeat(3, 1fr); }
}
.credit-package {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  position: relative;
  transition: all var(--duration-fast);
}
.credit-package:hover {
  border-color: var(--brand);
}
.credit-package.popular {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(212, 160, 74, 0.1);
}
.credit-package-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #000;
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}
.credit-package-amount {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--text);
  margin-bottom: 2px;
}
.credit-package-label {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.credit-package-price {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--brand-light);
  margin-bottom: 2px;
}
.credit-package-per {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin-bottom: var(--space-4);
}

/* Promo Section */
.promo-section {
  margin-top: var(--space-10);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.promo-section h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.promo-section h4 i { color: var(--gold); }
.promo-input-wrap {
  display: flex;
  gap: var(--space-2);
}
.promo-input-wrap .form-input {
  flex: 1;
}

/* ============================================
   DEEP ANALYSIS – PREMIUM TEASER SYSTEM
   Psychologisch optimiertes Freemium-Modell
   ============================================ */

/* ── Cosmic Stats Mini-Grid ── */
.cr-cosmic-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0 24px;
}
.cr-cosmic-stat {
  text-align: center;
  padding: 14px 8px;
  background: rgba(16, 12, 35, 0.88);
  border: 1px solid rgba(124, 92, 255, 0.18);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cr-cosmic-stat__value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #c084fc;
  margin-bottom: 2px;
}
.cr-cosmic-stat__label {
  display: block;
  font-size: 11px;
  color: rgba(200,200,220,0.60);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Psychological Trigger Box ── */
.cr-trigger-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(22, 18, 40, 0.92), rgba(28, 20, 45, 0.88));
  border: 1px solid rgba(251,191,36,0.20);
  border-radius: 14px;
  margin-top: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cr-trigger-box__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(251,191,36,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fbbf24;
  font-size: 18px;
}
.cr-trigger-box strong {
  display: block;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  margin-bottom: 4px;
}
.cr-trigger-box p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(200,200,220,0.75);
  margin: 0;
}

/* ── Deep Section Divider ── */
.cr-deep-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0 28px;
}
.cr-deep-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,132,252,0.30), transparent);
}
.cr-deep-divider__icon {
  font-size: 20px;
  color: #c084fc;
  animation: crPulseGlow 2.5s ease infinite;
}

/* ── Deep Intro ── */
.cr-deep-intro {
  text-align: center;
  margin-bottom: 28px;
}
.cr-deep-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cr-deep-intro__text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(200,200,220,0.80);
  max-width: 560px;
  margin: 0 auto 16px;
}
.cr-deep-intro__badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.cr-deep-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(220,210,240,0.95);
  background: rgba(192,132,252,0.12);
  border: 1px solid rgba(192,132,252,0.25);
}
.cr-deep-badge i { font-size: 10px; color: #c084fc; }

/* ── Bundle CTA – Psychologisch prominent ── */
.cr-deep-bundle {
  position: relative;
  background: linear-gradient(135deg, rgba(18, 14, 38, 0.95), rgba(24, 16, 45, 0.92));
  border: 1px solid rgba(192,132,252,0.30);
  border-radius: 20px;
  padding: 32px 24px 28px;
  text-align: center;
  margin-bottom: 28px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cr-deep-bundle::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #c084fc, #f472b6);
}
.cr-deep-bundle__ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(251,191,36,0.35);
  z-index: 2;
}
.cr-deep-bundle__icon {
  font-size: 40px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 12px rgba(192,132,252,0.3));
}
.cr-deep-bundle__title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.cr-deep-bundle__desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(200,200,220,0.75);
  max-width: 460px;
  margin: 0 auto 18px;
}
.cr-deep-bundle__savings {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cr-deep-bundle__old-price {
  font-size: 14px;
  color: rgba(200,200,220,0.50);
  text-decoration: line-through;
}
.cr-deep-bundle__arrow { color: rgba(200,200,220,0.40); }
.cr-deep-bundle__new-price {
  font-size: 16px;
  font-weight: 800;
  color: #fbbf24;
}
.cr-deep-bundle__save-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.3);
}
.cr-deep-bundle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  color: #000;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(251,191,36,0.30);
}
.cr-deep-bundle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251,191,36,0.40);
}

/* ── Deep Cards Grid ── */
.cr-deep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (min-width: 640px) {
  .cr-deep-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Individual Deep Card ── */
.cr-deep-card {
  position: relative;
  background: rgba(14, 11, 30, 0.92);
  border: 1px solid rgba(124, 92, 255, 0.15);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cr-deep-card:hover {
  border-color: rgba(192,132,252,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.cr-deep-card__glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0.8;
}
.cr-deep-card__content {
  padding: 22px 20px;
}
.cr-deep-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.cr-deep-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.cr-deep-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
}
.cr-deep-card__hook {
  font-size: 12px;
  color: rgba(200,200,220,0.60);
  font-style: italic;
  margin: 0;
}

/* ── Blur Overlay Teaser ── */
.cr-deep-card__teaser {
  position: relative;
  margin-bottom: 14px;
}
.cr-deep-card__teaser > p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(210,210,230,0.88);
  margin: 0 0 8px;
}
.cr-deep-card__blur-overlay {
  position: relative;
  overflow: hidden;
  max-height: 60px;
}
.cr-deep-card__blur-text {
  filter: blur(4px);
  -webkit-filter: blur(4px);
  user-select: none;
  pointer-events: none;
}
.cr-deep-card__blur-text p {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(200,200,220,0.50);
  margin: 0;
}
.cr-deep-card__blur-overlay::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(12,10,28,0.95) 85%);
}

/* ── Unlock Button ── */
.cr-deep-card__cta {
  text-align: center;
}
.cr-deep-unlock-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--cat-gradient, linear-gradient(135deg, #c084fc, #818cf8));
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(192,132,252,0.20);
}
.cr-deep-unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,132,252,0.35);
}
.cr-deep-cost {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(251,191,36,0.18);
  border: 1px solid rgba(251,191,36,0.3);
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
  margin-left: 6px;
}

/* ── Child CTA Special ── */
.cr-deep-child-cta {
  margin: 20px 0;
  background: rgba(18, 14, 35, 0.90);
  border: 1px solid rgba(251,191,36,0.18);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cr-deep-child-cta__content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}
.cr-deep-child-cta h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
}
.cr-deep-child-cta p {
  font-size: 12px;
  color: rgba(200,200,220,0.65);
  margin: 0;
}
.cr-deep-child-btn {
  flex-shrink: 0;
  width: auto;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
}

/* ── Stagger Animation ── */
.cr-stagger {
  opacity: 0;
  transform: translateY(20px);
  animation: crStagger 0.5s ease forwards;
}
@keyframes crStagger {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Modal Overlay ── */
.cr-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: crFadeIn 0.25s ease;
}
.cr-modal {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e, #16162a);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 36px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.cr-modal__close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  color: rgba(200,200,220,0.50);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
}
.cr-modal__close:hover { color: #fff; }
.cr-modal__icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.cr-modal h3 {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.cr-modal p {
  font-size: 14px;
  color: rgba(200,200,220,0.75);
  line-height: 1.6;
  margin-bottom: 0;
}
.cr-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.cr-modal__btn.primary {
  background: linear-gradient(135deg, #c084fc, #818cf8);
  color: #fff;
}
.cr-modal__btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(192,132,252,0.35);
}
.cr-modal__btn.outline {
  background: transparent;
  color: rgba(200,200,220,0.80);
  border: 1px solid rgba(255,255,255,0.15);
}
.cr-modal__btn.outline:hover {
  background: rgba(255,255,255,0.05);
}

/* ── Loading Overlay ── */
.cr-deep-loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(8,6,20,0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: crFadeIn 0.3s ease;
}
.cr-deep-loading-content {
  text-align: center;
  max-width: 400px;
  padding: 0 20px;
}
.cr-deep-loading-orbs {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
}
.cr-deep-loading-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}
.cr-deep-loading-orb.orb-1 {
  width: 40px; height: 40px;
  background: radial-gradient(circle, #c084fc, transparent);
  top: 10px; left: 10px;
  animation: crOrb1 3s ease-in-out infinite;
}
.cr-deep-loading-orb.orb-2 {
  width: 32px; height: 32px;
  background: radial-gradient(circle, #f472b6, transparent);
  top: 40px; right: 10px;
  animation: crOrb2 3.5s ease-in-out infinite;
}
.cr-deep-loading-orb.orb-3 {
  width: 28px; height: 28px;
  background: radial-gradient(circle, #fbbf24, transparent);
  bottom: 10px; left: 30px;
  animation: crOrb3 2.8s ease-in-out infinite;
}
.cr-deep-loading-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.cr-deep-loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c084fc, #f472b6, #fbbf24);
  border-radius: 2px;
  transition: width 0.8s ease;
}

/* ── Result Sections ── */
.cr-deep-result-section {
  background: rgba(14, 11, 30, 0.94);
  border: 1px solid rgba(124, 92, 255, 0.15);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cr-deep-result-section:hover {
  border-color: rgba(192,132,252,0.18);
}

/* ── Highlight Cards ── */
.cr-deep-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (min-width: 640px) {
  .cr-deep-highlights { grid-template-columns: repeat(4, 1fr); }
}
.cr-deep-highlight {
  background: rgba(16, 12, 35, 0.88);
  border: 1px solid rgba(124, 92, 255, 0.12);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  opacity: 0;
  animation: crStagger 0.5s ease forwards;
}
.cr-deep-highlight__icon {
  font-size: 22px;
  color: #c084fc;
  margin-bottom: 8px;
}
.cr-deep-highlight__title {
  font-size: 11px;
  color: rgba(200,200,220,0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.cr-deep-highlight__value {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.cr-deep-highlight__desc {
  font-size: 11px;
  color: rgba(200,200,220,0.55);
  line-height: 1.4;
}

/* ── Conclusion Card ── */
.cr-deep-conclusion {
  position: relative;
  background: rgba(14, 11, 30, 0.94);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cr-deep-conclusion__glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(251,191,36,0.06) 0%, transparent 70%);
}

/* ── Share Button ── */
.cr-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(200,200,220,0.80);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  transition: all 0.2s ease;
}
.cr-share-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ── Animations ── */
@keyframes crFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes crPulseGlow {
  0%, 100% { opacity: 0.7; text-shadow: 0 0 8px rgba(192,132,252,0.3); }
  50% { opacity: 1; text-shadow: 0 0 16px rgba(192,132,252,0.6); }
}
@keyframes crDeepReveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes crOrb1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -15px); }
}
@keyframes crOrb2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-18px, 12px); }
}
@keyframes crOrb3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -20px); }
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .cr-cosmic-stats { grid-template-columns: repeat(2, 1fr); }
  .cr-deep-grid { grid-template-columns: 1fr; }
  .cr-deep-highlights { grid-template-columns: repeat(2, 1fr); }
  .cr-deep-bundle { padding: 24px 16px 20px; }
  .cr-deep-bundle__title { font-size: 18px; }
  .cr-deep-child-cta__content { flex-wrap: wrap; }
  .cr-deep-child-btn { width: 100%; justify-content: center; }
  .cr-deep-bundle__savings { flex-direction: column; gap: 6px; }
}

/* ── Custom SVG Analysis Icons ── */
.ac-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}
.ac-icon svg {
  width: 100%;
  height: 100%;
}
.cr-deep-card__icon .ac-icon {
  width: 26px;
  height: 26px;
}
.cr-deep-bundle__icon .ac-icon {
  width: 48px;
  height: 48px;
}
.cr-deep-divider__icon .ac-icon {
  width: 22px;
  height: 22px;
}
.cr-trigger-box__icon .ac-icon {
  width: 22px;
  height: 22px;
}
.cr-deep-badge .ac-icon {
  width: 12px;
  height: 12px;
}
.cr-deep-unlock-btn .ac-icon {
  width: 14px;
  height: 14px;
  margin-right: 3px;
}
.cr-deep-bundle-btn .ac-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}
.cr-deep-cost .ac-icon {
  width: 13px;
  height: 13px;
  margin-right: 2px;
}

/* ============================================
   Dashboard Analysis List – Items with Delete
   ============================================ */
.analysis-list-item {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(124, 92, 255, 0.04);
  border: 1px solid rgba(124, 92, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.2s;
  overflow: hidden;
}
.analysis-list-item:hover {
  border-color: rgba(124, 92, 255, 0.25);
  background: rgba(124, 92, 255, 0.08);
}
.analysis-list-link {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  padding: 14px 4px 14px 16px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.analysis-list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.1);
  font-size: 1rem;
}
.analysis-list-info {
  flex: 1;
  min-width: 0;
}
.analysis-list-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text, #e2e8f0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.analysis-list-meta {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 3px;
}
.analysis-list-meta i {
  margin-right: 4px;
  font-size: 0.65rem;
}
.analysis-list-arrow {
  color: var(--text-muted, #94a3b8);
  font-size: 0.75rem;
  margin-right: 4px;
}
.analysis-delete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: none;
  background: none;
  color: #6b7280;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 8px;
  margin-right: 8px;
  transition: all 0.2s;
}
.analysis-delete-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 480px) {
  .analysis-list-icon { width: 34px; height: 34px; min-width: 34px; font-size: 0.85rem; }
  .analysis-list-link { padding: 10px 2px 10px 12px; gap: 10px; }
  .analysis-list-name { font-size: 0.82rem; }
}
