/* ==========================================================================
   GRANDZEIT ASTRIA - OBSIDIAN & AMETHYST MODERN DESIGN SYSTEM
   Minimalist, high-contrast, pure Vanilla CSS with deep obsidian & purple accents.
   No artificial AI clutter or fake particle grids; clean, premium typography & cards.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Obsidian & Purple Palette */
  --bg-space: #09080F;
  --bg-deep: #0F0D18;
  --bg-card: rgba(19, 17, 32, 0.78);
  --bg-card-hover: rgba(28, 24, 46, 0.88);
  --bg-glass: rgba(22, 19, 36, 0.82);
  --bg-input: #12101E;

  /* Vibrant Violet / Amethyst Primary */
  --purple-primary: #8B5CF6;
  --purple-light: #C084FC;
  --purple-bright: #A855F7;
  --purple-dark: #6D28D9;
  --purple-deep: #4C1D95;
  --purple-glow: rgba(139, 92, 246, 0.28);
  --purple-subtle: rgba(139, 92, 246, 0.12);

  /* Gold / Accent Mappings (Preserved for compatibility, tuned to warm champagne/amethyst harmony) */
  --gold-primary: #A855F7;
  --gold-light: #E9D5FF;
  --gold-dark: #7C3AED;
  --gold-glow: rgba(168, 85, 247, 0.25);
  --text-gold: #DDD6FE;
  --border-gold: rgba(168, 85, 247, 0.24);
  --border-gold-bright: rgba(168, 85, 247, 0.55);

  /* Neutrals */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-purple: rgba(139, 92, 246, 0.22);
  --border-purple-bright: rgba(168, 85, 247, 0.6);

  /* Astrological Elements */
  --elem-fire: #F87171;
  --elem-earth: #34D399;
  --elem-air: #38BDF8;
  --elem-water: #818CF8;

  /* Typography */
  --font-serif: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows */
  --shadow-card: 0 12px 36px -8px rgba(0, 0, 0, 0.65), 0 0 1px 1px var(--border-subtle);
  --shadow-glow: 0 0 28px rgba(139, 92, 246, 0.22);
  --shadow-ambient: 0 24px 48px -18px rgba(0, 0, 0, 0.85);

  /* Layout */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-space);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(109, 40, 217, 0.06) 0%, transparent 55%);
  background-attachment: fixed;
}

a {
  color: var(--purple-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #FFFFFF;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: -0.015em;
  color: #FFFFFF;
  font-weight: 700;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

.page-py {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .page-py {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }
}

/* Header & Navbar */
.astria-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(9, 8, 15, 0.88);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.brand-symbol {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1E1738, #100D20);
  border: 1px solid var(--purple-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  font-size: 1.25rem;
  box-shadow: 0 0 16px var(--purple-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-primary), transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn-primary {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.32);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(139, 92, 246, 0.07);
  border-color: var(--border-purple);
  color: var(--purple-light);
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.16);
  border-color: var(--purple-bright);
  color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 0.38rem 0.85rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.02rem;
  font-weight: 600;
}

/* Clean Modern Cards */
.astria-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.astria-card:hover {
  border-color: var(--border-purple);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  color: var(--purple-light);
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #FFFFFF 40%, #D8B4FE 80%, #A855F7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Calculation & Form Cards */
.calc-card {
  max-width: 840px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(22, 19, 36, 0.95) 0%, rgba(14, 12, 23, 0.98) 100%);
  border: 1px solid var(--border-purple);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--purple-bright);
  box-shadow: 0 0 14px var(--purple-glow);
  background: rgba(24, 20, 40, 0.95);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-wrap input[type="checkbox"] {
  accent-color: var(--purple-primary);
  width: 16px;
  height: 16px;
}

/* City Autocomplete Dropdown */
.city-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #141122;
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-sm);
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.85);
  display: none;
}

.city-dropdown-item {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}

.city-dropdown-item:hover, .city-dropdown-item.selected {
  background: rgba(139, 92, 246, 0.18);
  color: #FFFFFF;
}

/* Big Three Display Cards */
.big-three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.big-three-card {
  background: linear-gradient(145deg, rgba(25, 21, 42, 0.8) 0%, rgba(15, 12, 24, 0.9) 100%);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.big-three-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--purple-primary), transparent);
}

.big-three-role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-light);
  margin-bottom: 6px;
  font-weight: 700;
}

.big-three-symbol {
  font-size: 2.2rem;
  line-height: 1;
  margin: 10px 0;
}

.big-three-sign {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
}

.big-three-degree {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Element Distribution Bars */
.element-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.element-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.element-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
}

.element-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.element-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Interactive Natal Wheel Container */
.wheel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  position: relative;
}

.grandzeit-natal-wheel {
  width: 100%;
  max-width: 720px;
  height: auto;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.75));
  user-select: none;
}

.chart-planet-node:hover circle {
  fill: var(--purple-primary);
  stroke: #FFFFFF;
  filter: drop-shadow(0 0 8px var(--purple-primary));
}

.chart-planet-node:hover text {
  fill: #FFFFFF;
  font-weight: bold;
}

.aspect-line {
  transition: opacity 0.2s ease, stroke-width 0.2s ease;
}

.aspect-line:hover {
  stroke-opacity: 1 !important;
  stroke-width: 3.5 !important;
  filter: drop-shadow(0 0 8px var(--purple-primary));
}

/* Tables for Celestial Data */
.astro-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.astro-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.astro-table th {
  background: rgba(14, 12, 23, 0.95);
  padding: 12px 16px;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--purple-light);
  border-bottom: 1px solid var(--border-purple);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.astro-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.astro-table tr:hover td {
  background: rgba(139, 92, 246, 0.04);
}

/* Report Sections */
.report-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.report-section-card:hover {
  border-color: var(--border-purple);
}

.report-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.report-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--border-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  font-size: 1.3rem;
}

.report-item-box {
  background: rgba(14, 12, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.report-item-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.report-item-guidance {
  margin-top: 0.75rem;
  padding: 10px 14px;
  background: rgba(139, 92, 246, 0.08);
  border-left: 3px solid var(--purple-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--purple-light);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-gold {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple-light);
  border: 1px solid var(--border-purple);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.18);
  color: #D8B4FE;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Flash Messages */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6EE7B7;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}

.alert-info {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #DDD6FE;
}

/* V2 Specific Components: Compatibility Meter & Category Cards */
.compat-meter-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(15, 13, 24, 0.9) 70%);
  border: 3px solid var(--purple-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 0 30px var(--purple-glow);
}

.compat-score {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.compat-label {
  font-size: 0.8rem;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

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

.score-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 6px;
}

.score-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8B5CF6, #C084FC);
  border-radius: var(--radius-full);
}

/* Footer */
.astria-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 9, 16, 0.95);
  padding: 4rem 0 2rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
  display: inline-block;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MOBILE & RESPONSIVE DESIGN SYSTEM
   Full coverage for 360px, 480px, 768px, 992px and above.
   Zero horizontal overflow, app-like mobile UX with drawer navigation.
   ========================================================================== */

/* Responsive Grid Utilities */
.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.grid-main-side-responsive {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
}

.grid-tables-responsive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.grid-content-sidebar-responsive {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}

.grid-cards-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-zodiac-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
}

.grid-stats-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-purple);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
  z-index: 101;
}

.mobile-toggle:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--purple-primary);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Overlay & Menu */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 9, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 86%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: #0E0C18;
  border-left: 1px solid var(--border-purple);
  z-index: 999;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.mobile-drawer-close:hover {
  color: #FFFFFF;
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid transparent;
}

.mobile-links a:hover, .mobile-links a.active {
  color: #FFFFFF;
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--border-purple);
  padding-left: 1.2rem;
}

.mobile-drawer-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Tablet Breakpoint (max-width: 992px) */
@media (max-width: 992px) {
  .nav-links {
    display: none !important;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-actions {
    display: none;
  }
  .nav-actions-mobile-visible {
    display: flex;
  }
  .grid-main-side-responsive,
  .grid-tables-responsive,
  .grid-content-sidebar-responsive {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .big-three-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Standard Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --container-max: 100%;
  }

  body {
    background-attachment: scroll; /* Mobil pil ve GPU optimizasyonu */
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .grid-2col-responsive {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .calc-card,
  .astria-card {
    padding: 1.35rem 1.15rem !important;
    border-radius: 16px;
  }

  /* Form & Touch Targets (iOS zoom engeli ve rahat dokunma) */
  .form-control,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  input[type="time"],
  select {
    font-size: 16px !important;
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
  }

  .btn {
    min-height: 46px;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
  }

  .btn-sm {
    min-height: 38px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
  }

  /* Typography Scale Down for Mobile */
  h1, .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.5rem) !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 1.45rem !important;
    line-height: 1.3 !important;
  }

  h3 {
    font-size: 1.2rem !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  .brand-logo {
    font-size: 1.15rem;
  }

  .brand-symbol {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }

  /* Charts & Visuals */
  .chart-wheel-container {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    overflow: hidden;
  }

  .chart-wheel-container svg {
    max-width: 100%;
    height: auto;
  }

  /* Tables Scrollable Wrap */
  .astro-table-wrap {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .astro-table {
    min-width: 500px;
    font-size: 0.85rem;
  }

  .astro-table th, 
  .astro-table td {
    padding: 0.75rem 0.65rem;
  }

  /* Actions Bar */
  .chart-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .chart-actions-bar .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Compact Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .grid-zodiac-responsive {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .grid-cards-responsive {
    grid-template-columns: 1fr;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  .chart-wheel-container {
    max-width: 320px;
  }
}

/* Print Styles for Natal Report */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .astria-header, .astria-footer, .btn, .no-print, .chart-toolbar, .cosmic-tabs-nav {
    display: none !important;
  }
  .report-section-card {
    border: 1px solid #CCCCCC !important;
    background: #FFFFFF !important;
    page-break-inside: avoid;
  }
  .report-item-box {
    background: #F9F9F9 !important;
    border: 1px solid #EEEEEE !important;
  }
}

/* ==========================================================================
   ADVANCED NATAL CHART CONTROLS & LUXURY INTERACTIVE ELEMENTS
   ========================================================================== */

.chart-stage-card {
  background: radial-gradient(circle at 50% 30%, rgba(26, 20, 48, 0.75) 0%, rgba(10, 9, 18, 0.95) 100%);
  border: 1px solid rgba(192, 132, 252, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.chart-stage-card::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(18, 16, 32, 0.85);
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(16px);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-right: 0.25rem;
}

.chart-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
}

.chart-toggle-btn:hover {
  background: rgba(192, 132, 252, 0.12);
  color: #FFFFFF;
  border-color: rgba(192, 132, 252, 0.4);
}

.chart-toggle-btn.active {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.25) 0%, rgba(139, 92, 246, 0.4) 100%);
  color: #FFFFFF;
  border-color: #C084FC;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.35);
}

.chart-toggle-btn .indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748B;
  transition: var(--transition);
}

.chart-toggle-btn.active .indicator-dot {
  background: #4ADE80;
  box-shadow: 0 0 6px #4ADE80;
}

.zoom-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: bold;
  transition: var(--transition);
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: var(--gold-light);
}

.chart-wheel-viewport {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(192, 132, 252, 0.08);
  transition: transform 0.25s ease-out;
}

.chart-wheel-viewport svg {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center center;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}

/* ==========================================================================
   12 HOUSES GRID (EVLER VE DERECELERİ)
   ========================================================================== */

.houses-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.houses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
  .houses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .houses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .houses-grid {
    grid-template-columns: 1fr;
  }
}

.house-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 155px;
}

.house-card:hover {
  border-color: rgba(192, 132, 252, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.house-card.angular-house {
  border-color: rgba(212, 175, 55, 0.35);
  background: linear-gradient(145deg, rgba(30, 24, 48, 0.8) 0%, rgba(18, 15, 30, 0.9) 100%);
}

.house-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.house-number-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.house-angular-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.15);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.house-sign-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.house-sign-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.house-degree-text {
  font-size: 0.88rem;
  color: var(--gold-primary);
  font-weight: 600;
  font-family: var(--font-sans);
}

.house-meaning-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.house-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.house-ruler-text {
  color: #94A3B8;
}

.house-ruler-text strong {
  color: var(--text-gold);
}

.house-occupants {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.house-planet-pill {
  font-size: 0.8rem;
  color: #E2E8F0;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-weight: 600;
}

/* ==========================================================================
   COSMIC EXTENSIONS TABS (ASTEROIDLER, SANAL NOKTALAR, SABİT YILDIZLAR)
   ========================================================================== */

.cosmic-tabs-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 3.5rem;
}

.cosmic-tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.cosmic-tabs-nav::-webkit-scrollbar {
  display: none;
}

.cosmic-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cosmic-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
}

.cosmic-tab-btn.active {
  color: #FFFFFF;
  background: rgba(192, 132, 252, 0.15);
  border-color: rgba(192, 132, 252, 0.35);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.2);
}

.cosmic-tab-pane {
  display: none;
}

.cosmic-tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

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

.cosmic-badge-star {
  font-size: 0.75rem;
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}
