/*
================================================================================
COSMIC ORACLE - UNIFIED STYLESHEET
================================================================================
Consolidated styles for the Cosmic Oracle WordPress plugin
Includes all styles for both the landing page and shortcode functionality
================================================================================
*/

/* ===== CSS CUSTOM PROPERTIES (COSMIC VARIABLES) ===== */
:root {
  --co-bg: #01021B;
  --co-gold: #E8CC80;
  --co-gold-dark: #B98B44;
  --co-ink: #D4C6A8;
  --co-teal: #87D6FF;
  --co-deep: #03062F;
}

/*
================================================================================
COSMIC ORACLE LANDING PAGE STYLES
================================================================================
*/

/* ===== PAGE BODY & LAYOUT ===== */
body.cosmic-oracle-page {
  margin: 0;
  background: var(--co-bg);
  color: var(--co-ink);
  font-family: "Orbitron", sans-serif;
  overflow-x: hidden;
}

/* Hide WordPress default elements on cosmic oracle page */
.cosmic-oracle-page .site-header,
.cosmic-oracle-page .site-footer,
.cosmic-oracle-page .entry-header,
.cosmic-oracle-page .entry-footer,
.cosmic-oracle-page .post-navigation,
.cosmic-oracle-page #wpadminbar {
  display: none !important;
}

/* ===== COSMIC HEADER ===== */
.cosmic-header {
  position: relative !important;
  z-index: 1000 !important;
  background: linear-gradient(135deg, rgba(1,2,27,0.95), rgba(3,6,47,0.9)) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(135,214,255,0.2) !important;
  padding: 1rem 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.header-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 2rem !important;
  box-sizing: border-box !important;
}

.header-left {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

.header-logo {
  height: 50px !important;
  width: auto !important;
  max-width: 50px !important;
  filter: drop-shadow(0 0 10px rgba(135,214,255,0.3)) !important;
}

.header-brand {
  font-family: "Cinzel Decorative", serif !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: var(--co-gold) !important;
  text-shadow: 0 0 10px rgba(232,204,128,0.5) !important;
  white-space: nowrap !important;
}

.header-right {
  position: relative !important;
}

.nav-dropdown {
  position: relative !important;
}

.nav-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: linear-gradient(135deg, rgba(135,214,255,0.1), rgba(232,204,128,0.1)) !important;
  border: 1px solid rgba(135,214,255,0.3) !important;
  border-radius: 8px !important;
  padding: 0.8rem 1.2rem !important;
  color: var(--co-teal) !important;
  font-family: "Orbitron", sans-serif !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.nav-toggle:hover {
  background: linear-gradient(135deg, rgba(135,214,255,0.2), rgba(232,204,128,0.2)) !important;
  box-shadow: 0 5px 15px rgba(135,214,255,0.2) !important;
  transform: translateY(-1px) !important;
}

.nav-label {
  font-size: 0.95rem !important;
}

.nav-arrow {
  font-size: 1.2rem !important;
  transition: transform 0.3s ease !important;
}

.nav-menu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  background: linear-gradient(135deg, rgba(1,2,27,0.98), rgba(3,6,47,0.95)) !important;
  backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(135,214,255,0.3) !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  min-width: 520px !important;
  max-width: 600px !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: all 0.3s ease !important;
  z-index: 1001 !important;
}

.nav-menu.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Two-column layout for nav sections */
.nav-menu-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem !important;
}

.nav-section {
  margin-bottom: 1.5rem !important;
}

.nav-section:last-child {
  margin-bottom: 0 !important;
}

.nav-section h4 {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-family: "Cinzel Decorative", serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--co-gold) !important;
  margin: 0 0 0.8rem 0 !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 1px solid rgba(135,214,255,0.2) !important;
}

.nav-section h4 .material-icons {
  font-size: 1.1rem !important;
}

.nav-section a {
  display: flex !important;
  align-items: center !important;
  gap: 0.7rem !important;
  color: var(--co-ink) !important;
  text-decoration: none !important;
  padding: 0.6rem 0.8rem !important;
  border-radius: 6px !important;
  font-size: 0.9rem !important;
  transition: all 0.3s ease !important;
  margin-bottom: 0.2rem !important;
}

.nav-section a:hover {
  background: rgba(135,214,255,0.1) !important;
  color: var(--co-teal) !important;
  transform: translateX(5px) !important;
}

.nav-section a .material-icons {
  font-size: 1rem !important;
  opacity: 0.8 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem !important;
  }
  
  .header-brand {
    font-size: 1.1rem !important;
  }
  
  .header-logo {
    height: 40px !important;
    max-width: 40px !important;
  }
  
  .nav-menu {
    right: -1rem !important;
    left: -1rem !important;
    min-width: auto !important;
    max-width: none !important;
  }
  
  /* Single column on mobile */
  .nav-menu-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* ===== HERO SECTION ===== */
.co-hero {
  position: relative;
  background:
    linear-gradient(to bottom, #01021B 0%, #01021B 5%, rgba(1,2,27,0.9) 10%, rgba(1,2,27,0.7) 20%, transparent 50%, transparent 60%, rgba(1,2,27,0.4) 75%, rgba(1,2,27,0.8) 85%, #01021B 100%),
    url("https://galacticfederation.in/wp-content/uploads/2025/10/CosmicOracleBackgroundImage.png") top center/cover no-repeat;
  min-height: 100vh;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--co-gold);
  margin-top: -20px;
  top: -20px;
}

.co-hero h1 {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #E8CC80;
  text-shadow:
    0 3px 6px rgba(0,0,0,0.9),
    0 0 25px rgba(232,204,128,0.6),
    0 0 50px rgba(232,204,128,0.4);
}

.co-hero span {
  color: #FFF9D1;
  text-shadow:
    0 0 20px rgba(255,249,209,0.8),
    0 0 40px rgba(232,204,128,0.5);
}

.co-hero p {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  color: rgba(212,198,168,.9);
  max-width: 800px;
  margin: 1rem auto 0;
}

/* ===== GENERAL SECTION STYLING ===== */
section {
  padding: 1.5rem 2rem;
  position: relative;
  overflow: visible; /* Allow content expansion */
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 20% 25%, rgba(255,255,255,.7), rgba(255,255,255,0) 60%),
    radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,.6), rgba(255,255,255,0) 60%),
    radial-gradient(1px 1px at 35% 70%, rgba(255,255,255,.5), rgba(255,255,255,0) 60%),
    radial-gradient(1px 1px at 80% 85%, rgba(255,255,255,.6), rgba(255,255,255,0) 60%);
  opacity: .15;
  pointer-events: none;
}

.co-section-title {
  text-align: center;
  font-family: "Cinzel Decorative", serif;
  color: var(--co-gold);
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  margin-bottom: 3rem;
}

/* ===== FEATURE GRID ===== */
.co-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: 2rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Force welcome section to always show 3 columns in one row */
#welcome .co-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1400px;
  gap: 2rem;
}

/* On smaller screens, reduce gap but keep 3 columns */
@media (max-width: 768px) {
  #welcome .co-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 1rem;
  }
  
  #welcome .co-card {
    padding: 1rem;
  }
  
  #welcome .co-card h3 {
    font-size: 1.1rem;
  }
  
  #welcome .co-card p {
    font-size: 0.9rem;
  }
}

/* Force star races section to show 3 columns */
#star-races .co-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1400px;
  gap: 2rem;
  justify-content: center;
}

/* Star races responsive design */
@media (max-width: 1200px) {
  #star-races .co-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  #star-races .co-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
  }
  
  #star-races .co-card {
    padding: 1.2rem;
  }
  
  #star-races .co-card h3 {
    font-size: 1.1rem;
  }
  
  #star-races .co-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  #star-races .co-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Force enlightenment and portal sections to show 3 columns */
#enlightenment .co-grid,
#portal .co-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1400px;
  gap: 2rem;
  justify-content: center;
}

/* ===== COSMIC ACCORDION STYLES ===== */
.cosmic-accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: 15px;
  background: rgba(5,10,30,.7);
  border: 1px solid rgba(164,126,37,.3);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: rgba(164,126,37,.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(164,126,37,.2);
}

.accordion-header {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  background: rgba(10,15,35,.8);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(164,126,37,.2);
}

.accordion-header:hover {
  background: rgba(15,20,40,.9);
}

.accordion-header.active {
  background: rgba(164,126,37,.15);
  border-bottom-color: rgba(164,126,37,.4);
}

.accordion-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(164,126,37,.8), rgba(164,126,37,.6));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  transition: all 0.3s ease;
}

.accordion-header:hover .accordion-icon {
  background: linear-gradient(135deg, rgba(164,126,37,1), rgba(164,126,37,.8));
  transform: scale(1.05);
}

.accordion-icon .material-icons {
  color: white;
  font-size: 24px;
}

.accordion-header h3 {
  flex: 1;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(221,214,199,.95);
  transition: color 0.3s ease;
}

.accordion-header:hover h3 {
  color: rgba(164,126,37,.9);
}

.accordion-toggle {
  transition: transform 0.3s ease;
}

.accordion-toggle .material-icons {
  font-size: 28px;
  color: rgba(164,126,37,.7);
}

.accordion-header.active .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  background: rgba(5,10,30,.9);
}

.accordion-content.active {
  max-height: 300px;
  padding: 2rem;
}

.accordion-content p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(221,214,199,.85);
}

/* Accordion responsive design */
@media (max-width: 768px) {
  .cosmic-accordion {
    max-width: 95%;
    margin: 0 auto;
  }
  
  .accordion-header {
    padding: 1.2rem 1.5rem;
  }
  
  .accordion-icon {
    width: 45px;
    height: 45px;
    margin-right: 1rem;
  }
  
  .accordion-icon .material-icons {
    font-size: 20px;
  }
  
  .accordion-header h3 {
    font-size: 1.1rem;
  }
  
  .accordion-content.active {
    padding: 1.5rem;
  }
  
  .accordion-content p {
    font-size: 1rem;
  }
}

/* Box sections responsive design */
@media (max-width: 1200px) {
  #enlightenment .co-grid,
  #portal .co-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  #enlightenment .co-grid,
  #portal .co-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  #enlightenment .co-grid,
  #portal .co-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.co-card {
  background: rgba(5,10,30,.55);
  border: 1px solid rgba(232,204,128,.22);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(6px) saturate(115%);
  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.co-card:hover {
  transform: translateY(-6px);
  border-color: rgba(135,214,255,.35);
  box-shadow:
    0 18px 48px rgba(0,0,0,.45),
    0 0 20px rgba(135,214,255,.15);
}

.co-chip {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: radial-gradient(60% 60% at 50% 35%, rgba(135,214,255,.35), rgba(135,214,255,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--co-teal);
  border: 1px solid rgba(135,214,255,.35);
  box-shadow: inset 0 0 10px rgba(135,214,255,.25), 0 0 12px rgba(135,214,255,.12);
  margin-bottom: .8rem;
}

.material-icons {
  font-family: 'Material Icons';
  font-size: 26px;
}

.co-card h3 {
  font-family: "Cinzel Decorative", serif;
  color: var(--co-gold);
  font-size: 1.4rem;
  margin: .3rem 0 1rem;
}

.co-card p {
  color: rgba(221,214,199,.9);
  font-size: 1rem;
  line-height: 1.6;
}

.co-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: linear-gradient(180deg, #0EA5E9, #0369A1);
  color: #EAF7FF;
  border: 0;
  padding: .8rem 1.2rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-family: "Orbitron", sans-serif;
  box-shadow: 0 8px 18px rgba(14,165,233,.25);
  transition: all .25s ease;
}

.co-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(14,165,233,.35);
  filter: saturate(120%);
  color: #fff;
}

/* ===== TAROT SYSTEM INTEGRATION ===== */
.tarot-placeholder {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  max-width: none;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  height: auto;
  min-height: auto;
  overflow: visible;
  /* Dynamic padding that adapts to content */
  padding-bottom: 2rem; /* Minimal default spacing */
  transition: padding-bottom 0.5s ease;
}

/* When shortcode has active results, add more spacing */
.tarot-placeholder:has(.cosmic-results-container:not([style*="display: none"])) {
  padding-bottom: 4rem;
}

/* Alternative for browsers that don't support :has() */
.tarot-placeholder.has-results {
  padding-bottom: 4rem;
}

/* Ensure the tarot section itself can expand */
#tarot {
  overflow: visible !important;
  height: auto !important;
  min-height: auto !important;
  /* Add clearfix to contain floated/positioned content */
  contain: layout;
}

/* ===== FOOTER ===== */
footer {
  background: #020418;
  color: rgba(232,204,128,.7);
  text-align: center;
  padding: 2rem;
  font-size: .9rem;
  letter-spacing: .05em;
}

/*
================================================================================
COSMIC ORACLE SHORTCODE/WIDGET STYLES
================================================================================
*/

/* ===== SHORTCODE CONTAINER ===== */
.cosmic-oracle-container {
  background: var(--co-bg);
  color: var(--co-ink);
  font-family: "Orbitron", "Montserrat", sans-serif;
  position: relative;
  overflow: visible;
  padding: 3rem 0;
  margin: 0;
  /* Ensure container expands with content */
  min-height: 0; /* Allow natural height */
  contain: layout; /* Contain layout changes */
}

/* When results are shown, add extra bottom padding */
.cosmic-oracle-container:has(.cosmic-results-container:not([style*="display: none"])) {
  padding-bottom: 5rem;
}

/* Alternative for browsers that don't support :has() */
.cosmic-oracle-container.has-results {
  padding-bottom: 5rem;
}

/* Starfield background effect for shortcode */
.cosmic-oracle-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 20% 25%, rgba(255,255,255,.7), rgba(255,255,255,0) 60%),
    radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,.6), rgba(255,255,255,0) 60%),
    radial-gradient(1px 1px at 35% 70%, rgba(255,255,255,.5), rgba(255,255,255,0) 60%),
    radial-gradient(1px 1px at 80% 85%, rgba(255,255,255,.6), rgba(255,255,255,0) 60%),
    radial-gradient(1px 1px at 15% 60%, rgba(255,255,255,.4), rgba(255,255,255,0) 60%),
    radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,.5), rgba(255,255,255,0) 60%);
  opacity: .15;
  pointer-events: none;
}

/* ===== ORACLE INTERFACE STYLING ===== */
.cosmic-oracle-interface {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== ORACLE HEADER ===== */
.cosmic-oracle-header {
  text-align: center;
  margin-bottom: 4rem;
}

.cosmic-oracle-title {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--co-gold);
  letter-spacing: 0.08em;
  text-shadow:
    0 3px 6px rgba(0,0,0,0.9),
    0 0 25px rgba(232,204,128,0.6),
    0 0 50px rgba(232,204,128,0.4);
  margin-bottom: 1rem;
}

.cosmic-oracle-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(212,198,168,.9);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== ORACLE INPUT PANEL ===== */
.cosmic-oracle-panel {
  background: rgba(5,10,30,.65);
  border: 1px solid rgba(232,204,128,.25);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(8px) saturate(115%);
  box-shadow:
    0 15px 40px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.08);
  margin-bottom: 3rem;
  transition: all .3s ease;
}

.cosmic-oracle-panel:hover {
  border-color: rgba(135,214,255,.35);
  box-shadow:
    0 20px 50px rgba(0,0,0,.5),
    0 0 30px rgba(135,214,255,.12);
}

/* ===== FORM ELEMENTS ===== */
.cosmic-form-group {
  margin-bottom: 2rem;
}

.cosmic-form-label {
  display: block;
  font-family: "Cinzel", serif;
  color: var(--co-gold);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.cosmic-form-input {
  width: 100%;
  background: rgba(1,2,27,.8);
  border: 2px solid rgba(135,214,255,.3);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  color: var(--co-ink);
  font-family: "Orbitron", "Montserrat", sans-serif;
  font-size: 1.1rem;
  transition: all .3s ease;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.3);
}

.cosmic-form-input:focus {
  outline: none;
  border-color: var(--co-teal);
  box-shadow: 
    inset 0 2px 8px rgba(0,0,0,.3),
    0 0 20px rgba(135,214,255,.3);
  color: #fff;
}

.cosmic-form-input::placeholder {
  color: rgba(212,198,168,.6);
  font-style: italic;
}

.cosmic-form-input.is-invalid {
  border-color: #dc3545;
  box-shadow: 
    inset 0 2px 8px rgba(0,0,0,.3),
    0 0 20px rgba(220, 53, 69, 0.3);
}

/* ===== OPTIONS GRID ===== */
.cosmic-options-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .cosmic-options-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.cosmic-option-group {
  background: rgba(3,6,47,.6);
  border: 1px solid rgba(232,204,128,.2);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 800px; /* Limit width for better centering */
  width: 100%;
}

.cosmic-option-title {
  font-family: "Cinzel", serif;
  color: var(--co-gold);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

/* ===== COSMIC SWITCHES ===== */
.cosmic-switch {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  cursor: pointer;
}

/* Completely hide the checkbox input */
.cosmic-switch-input {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Style the label to create the toggle switch */
.cosmic-switch-label {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--co-ink);
  font-size: 0.95rem;
  padding-left: 70px; /* Space for the toggle switch */
  user-select: none;
}

/* Toggle switch background */
.cosmic-switch-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 26px;
  background: rgba(1,2,27,.8);
  border: 2px solid rgba(135,214,255,.3);
  border-radius: 13px;
  transition: all .3s ease;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.3);
}

/* Toggle switch handle */
.cosmic-switch-label::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--co-gold);
  border-radius: 50%;
  transition: all .3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  z-index: 1;
}

/* Checked state - background */
.cosmic-switch-input:checked + .cosmic-switch-label::before {
  background: linear-gradient(45deg, var(--co-teal), #0EA5E9);
  border-color: var(--co-teal);
  box-shadow: 
    inset 0 2px 8px rgba(0,0,0,.3),
    0 0 15px rgba(135,214,255,.3);
}

/* Checked state - handle */
.cosmic-switch-input:checked + .cosmic-switch-label::after {
  transform: translateY(-50%) translateX(24px);
  background: #fff;
  box-shadow: 
    0 2px 8px rgba(0,0,0,.4),
    0 0 10px rgba(255,255,255,.3);
}

/* Hover effects */
.cosmic-switch:hover .cosmic-switch-label::before {
  border-color: rgba(135,214,255,.5);
}

.cosmic-switch:hover .cosmic-switch-input:checked + .cosmic-switch-label::before {
  box-shadow: 
    inset 0 2px 8px rgba(0,0,0,.3),
    0 0 20px rgba(135,214,255,.4);
}

/* Focus effects for accessibility */
.cosmic-switch-input:focus + .cosmic-switch-label::before {
  outline: 2px solid rgba(135,214,255,.5);
  outline-offset: 2px;
}

/* ===== BIRTH INFLUENCE STYLES ===== */
.cosmic-birth-options {
  margin-top: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(232,204,128,.1);
  display: none; /* Hidden by default */
}

.cosmic-form-sublabel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--co-gold);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-family: "Cinzel", serif;
}

.cosmic-date-input,
.cosmic-time-input {
  width: 100%;
  background: rgba(1,2,27,.9);
  border: 2px solid rgba(135,214,255,.3);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--co-ink);
  font-family: "Orbitron", "Montserrat", sans-serif;
  font-size: 0.95rem;
  transition: all .3s ease;
  margin-bottom: 0.5rem;
}

.cosmic-date-input:focus,
.cosmic-time-input:focus {
  outline: none;
  border-color: var(--co-teal);
  box-shadow: 
    inset 0 2px 8px rgba(0,0,0,.3),
    0 0 15px rgba(135,214,255,.3);
  color: #fff;
}

.cosmic-help-text {
  color: rgba(212,198,168,.7);
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 0.3rem;
  display: block;
}

/* Date and time input specific styling for different browsers */
.cosmic-date-input::-webkit-calendar-picker-indicator,
.cosmic-time-input::-webkit-calendar-picker-indicator {
  background-color: var(--co-gold);
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity .3s ease;
}

.cosmic-date-input::-webkit-calendar-picker-indicator:hover,
.cosmic-time-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Firefox date/time input styling */
.cosmic-date-input::-moz-focus-inner,
.cosmic-time-input::-moz-focus-inner {
  border: none;
  outline: none;
}

/* ===== ENHANCED BIRTH INFLUENCE STYLES ===== */
.cosmic-birth-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,204,128,.3), transparent);
  margin: 1.5rem 0;
  position: relative;
}

.cosmic-birth-divider::before {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(3,6,47,.8);
  color: var(--co-gold);
  padding: 0 0.8rem;
  font-size: 0.9rem;
}

.cosmic-switch-icon {
  margin-right: 0.5rem;
  color: var(--co-gold);
}

.cosmic-birth-container {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232,204,128,.1);
}

.cosmic-birth-input-section {
  margin-bottom: 1.5rem;
}

.cosmic-birth-input-group {
  margin-bottom: 1.2rem;
}

.cosmic-birth-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--co-gold);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-family: "Cinzel", serif;
  letter-spacing: 0.02em;
}

.cosmic-label-icon {
  color: rgba(232,204,128,.8);
  font-size: 0.9rem;
}

.cosmic-optional {
  color: rgba(212,198,168,.6);
  font-size: 0.8rem;
  font-weight: 400;
  font-style: italic;
}

/* Enhanced Input Styling */
.cosmic-date-input-wrapper,
.cosmic-time-input-wrapper {
  position: relative;
  display: block;
}

.cosmic-birth-input {
  width: 100%;
  background: linear-gradient(135deg, rgba(1,2,27,.95), rgba(14,21,58,.9));
  border: 2px solid rgba(135,214,255,.3);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: var(--co-ink);
  font-family: "Orbitron", "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    inset 0 2px 8px rgba(0,0,0,.3),
    0 0 0 rgba(135,214,255,.0);
  position: relative;
  z-index: 2;
}

.cosmic-birth-input:focus {
  outline: none;
  border-color: var(--co-teal);
  color: #fff;
  box-shadow: 
    inset 0 2px 8px rgba(0,0,0,.3),
    0 0 25px rgba(135,214,255,.4),
    0 0 50px rgba(135,214,255,.1);
  transform: translateY(-2px);
}

.cosmic-birth-input:hover {
  border-color: rgba(135,214,255,.5);
  transform: translateY(-1px);
}

/* Input Glow Effect */
.cosmic-input-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: linear-gradient(45deg, 
    rgba(135,214,255,.1), 
    rgba(232,204,128,.1),
    rgba(135,214,255,.1)
  );
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 1;
}

.cosmic-birth-input:focus + .cosmic-input-glow {
  opacity: 1;
  animation: cosmic-input-pulse 2s ease-in-out infinite;
}

@keyframes cosmic-input-pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.3;
  }
  50% { 
    transform: scale(1.02);
    opacity: 0.6;
  }
}

.cosmic-birth-help {
  color: rgba(212,198,168,.7);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.5rem;
  display: block;
  text-align: center;
}

/* ===== ZODIAC DISPLAY SECTION ===== */
.cosmic-zodiac-display {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.cosmic-zodiac-card {
  background: linear-gradient(135deg, 
    rgba(232,204,128,.1),
    rgba(135,214,255,.08),
    rgba(232,204,128,.05)
  );
  border: 2px solid rgba(232,204,128,.3);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: all .6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.95);
  opacity: 0.8;
}

.cosmic-zodiac-card.revealed {
  transform: scale(1);
  opacity: 1;
  box-shadow: 
    0 10px 30px rgba(232,204,128,.2),
    inset 0 1px 0 rgba(255,255,255,.1);
}

.cosmic-zodiac-card.updating {
  transform: scale(1.05);
  border-color: rgba(135,214,255,.5);
}

.cosmic-zodiac-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--co-gold), #F59E0B);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 25px rgba(232,204,128,.3),
    inset 0 2px 0 rgba(255,255,255,.2);
  position: relative;
}

.zodiac-symbol {
  font-size: 2rem;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,.3);
  font-family: "Times New Roman", serif;
}

.cosmic-zodiac-info {
  flex: 1;
}

.cosmic-zodiac-name {
  color: var(--co-gold);
  font-family: "Cinzel", serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
  letter-spacing: 0.02em;
}

.cosmic-zodiac-element,
.cosmic-zodiac-planet {
  color: var(--co-ink);
  font-size: 0.9rem;
  margin: 0.2rem 0;
  font-weight: 500;
}

.cosmic-zodiac-element {
  opacity: 0.9;
}

.cosmic-zodiac-planet {
  opacity: 0.7;
  font-style: italic;
}

/* Sparkle Animation */
.cosmic-zodiac-animation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 18px;
}

.cosmic-sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--co-gold);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
}

.cosmic-sparkle.active {
  animation: cosmic-sparkle-twinkle 3s ease-in-out infinite;
}

.cosmic-sparkle-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.cosmic-sparkle-2 {
  top: 70%;
  right: 20%;
  animation-delay: 1s;
}

.cosmic-sparkle-3 {
  top: 40%;
  right: 40%;
  animation-delay: 2s;
}

@keyframes cosmic-sparkle-twinkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px var(--co-gold);
  }
}

/* Responsive Design for Birth Influence */
@media (max-width: 768px) {
  .cosmic-zodiac-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .cosmic-zodiac-icon {
    width: 50px;
    height: 50px;
  }
  
  .zodiac-symbol {
    font-size: 1.6rem;
  }
  
  .cosmic-zodiac-name {
    font-size: 1.1rem;
  }
  
  .cosmic-birth-input {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }
}

/* Smooth Easing Functions */
.cosmic-birth-container,
.cosmic-zodiac-display {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Date/Time Picker Enhancement */
.cosmic-birth-input::-webkit-calendar-picker-indicator {
  background-color: var(--co-gold);
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.8;
  transition: all .3s ease;
  padding: 2px;
}

.cosmic-birth-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background-color: #F59E0B;
  transform: scale(1.1);
}

/* Input Processing and Highlight States */
.cosmic-input-processing {
  border-color: var(--co-gold) !important;
  animation: cosmic-input-processing 1.5s ease-in-out infinite;
}

@keyframes cosmic-input-processing {
  0%, 100% {
    box-shadow: 
      inset 0 2px 8px rgba(0,0,0,.3),
      0 0 15px rgba(232,204,128,.3);
  }
  50% {
    box-shadow: 
      inset 0 2px 8px rgba(0,0,0,.3),
      0 0 25px rgba(232,204,128,.6),
      0 0 35px rgba(232,204,128,.3);
  }
}

.cosmic-input-highlight {
  animation: cosmic-input-bounce 0.6s ease-out;
}

@keyframes cosmic-input-bounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  50% { transform: translateY(-4px); }
  70% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/*
================================================================================
🌌 COSMIC CUSTOM DATE PICKER 🌌
================================================================================
Custom date picker overlay with cosmic styling
*/

/* Custom date picker overlay */
.cosmic-date-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.8);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.cosmic-date-picker {
  background: linear-gradient(135deg, 
    rgba(22,33,62,.95) 0%, 
    rgba(15,52,96,.98) 50%, 
    rgba(22,33,62,.95) 100%);
  border: 2px solid var(--co-gold);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 
    0 20px 60px rgba(0,0,0,.5),
    0 0 100px rgba(232,204,128,.3),
    inset 0 1px 0 rgba(255,255,255,.1);
  min-width: 350px;
  max-width: 90vw;
  animation: cosmic-date-picker-appear 0.5s ease-out;
}

@keyframes cosmic-date-picker-appear {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(50px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cosmic-date-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(232,204,128,.3);
}

.cosmic-date-picker-title {
  color: var(--co-gold);
  font-size: 1.3rem;
  font-weight: 600;
  font-family: 'Cinzel Decorative', 'Georgia', serif;
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
  margin: 0;
}

.cosmic-date-picker-close {
  background: none;
  border: 2px solid rgba(232,204,128,.3);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  color: var(--co-gold);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cosmic-date-picker-close:hover {
  border-color: var(--co-gold);
  background: rgba(232,204,128,.1);
  transform: scale(1.1);
}

.cosmic-date-picker-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cosmic-date-nav-btn {
  background: linear-gradient(135deg, 
    rgba(232,204,128,.2) 0%, 
    rgba(15,52,96,.8) 50%, 
    rgba(232,204,128,.2) 100%);
  border: 1px solid rgba(232,204,128,.3);
  border-radius: 8px;
  color: var(--co-gold);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 500;
  font-size: 0.9rem;
}

.cosmic-date-nav-btn:hover {
  border-color: var(--co-gold);
  background: linear-gradient(135deg, 
    rgba(232,204,128,.3) 0%, 
    rgba(15,52,96,.9) 50%, 
    rgba(232,204,128,.3) 100%);
  box-shadow: 0 4px 15px rgba(232,204,128,.2);
}

.cosmic-date-current-month {
  color: var(--co-gold);
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Merriweather', 'Georgia', serif;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

.cosmic-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cosmic-date-day-header {
  text-align: center;
  color: rgba(232,204,128,.8);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem;
  font-family: 'Merriweather', 'Georgia', serif;
}

.cosmic-date-day {
  background: rgba(22,33,62,.6);
  border: 1px solid rgba(232,204,128,.2);
  border-radius: 6px;
  color: rgba(255,255,255,.8);
  padding: 0.8rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.cosmic-date-day::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(232,204,128,.2), 
    transparent);
  transition: left 0.3s ease;
}

.cosmic-date-day:hover::before {
  left: 100%;
}

.cosmic-date-day:hover {
  border-color: var(--co-gold);
  color: var(--co-gold);
  background: rgba(15,52,96,.8);
  box-shadow: 0 4px 15px rgba(232,204,128,.2);
  transform: scale(1.05);
}

.cosmic-date-day.selected {
  background: linear-gradient(135deg, 
    rgba(232,204,128,.3) 0%, 
    rgba(15,52,96,.9) 50%, 
    rgba(232,204,128,.3) 100%);
  border-color: var(--co-gold);
  color: #F59E0B;
  box-shadow: 0 4px 15px rgba(232,204,128,.4);
}

.cosmic-date-day.selected::after {
  content: '✨';
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
  animation: cosmic-sparkle 2s ease-in-out infinite;
}

.cosmic-date-day.other-month {
  color: rgba(255,255,255,.4);
  background: rgba(22,33,62,.3);
}

.cosmic-date-day.today {
  border-color: #F59E0B;
  background: rgba(245,158,11,.1);
  color: #F59E0B;
  font-weight: 600;
}

.cosmic-date-picker-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(232,204,128,.3);
}

.cosmic-date-action-btn {
  background: linear-gradient(135deg, 
    rgba(232,204,128,.2) 0%, 
    rgba(15,52,96,.8) 50%, 
    rgba(232,204,128,.2) 100%);
  border: 2px solid rgba(232,204,128,.3);
  border-radius: 8px;
  color: var(--co-gold);
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 500;
  font-size: 0.9rem;
  flex: 1;
}

.cosmic-date-action-btn:hover {
  border-color: var(--co-gold);
  background: linear-gradient(135deg, 
    rgba(232,204,128,.3) 0%, 
    rgba(15,52,96,.9) 50%, 
    rgba(232,204,128,.3) 100%);
  box-shadow: 0 4px 15px rgba(232,204,128,.2);
  transform: translateY(-2px);
}

.cosmic-date-action-btn.primary {
  background: linear-gradient(135deg, 
    var(--co-gold) 0%, 
    #F59E0B 50%, 
    var(--co-gold) 100%);
  color: var(--co-dark-blue);
  border-color: var(--co-gold);
}

.cosmic-date-action-btn.primary:hover {
  background: linear-gradient(135deg, 
    #F59E0B 0%, 
    var(--co-gold) 50%, 
    #F59E0B 100%);
  box-shadow: 0 6px 20px rgba(232,204,128,.4);
}

/* Enhanced date input wrapper for custom picker */
.cosmic-date-input-wrapper {
  position: relative;
}

.cosmic-date-input-wrapper .cosmic-calendar-trigger {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--co-gold);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cosmic-date-input-wrapper .cosmic-calendar-trigger:hover {
  background: rgba(232,204,128,.2);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px rgba(232,204,128,.3);
}

/* Chrome, Safari, Edge Date Picker Calendar */
::-webkit-datetime-edit {
  color: var(--co-gold);
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

::-webkit-datetime-edit-fields-wrapper {
  color: var(--co-gold);
  font-family: 'Merriweather', 'Georgia', serif;
}

::-webkit-datetime-edit-text {
  color: var(--co-gold-dark);
  font-family: 'Merriweather', 'Georgia', serif;
}

::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-year-field {
  color: var(--co-gold);
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 600;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 2px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

::-webkit-datetime-edit-month-field:hover,
::-webkit-datetime-edit-day-field:hover,
::-webkit-datetime-edit-year-field:hover,
::-webkit-datetime-edit-month-field:focus,
::-webkit-datetime-edit-day-field:focus,
::-webkit-datetime-edit-year-field:focus {
  background: rgba(232,204,128,.15);
  color: #F59E0B;
  text-shadow: 0 0 8px rgba(232,204,128,.4);
}

/* Enhanced Calendar Picker Indicator */
.cosmic-date-input::-webkit-calendar-picker-indicator,
.cosmic-birth-input::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e8cc80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  background-color: transparent;
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(232,204,128,.3);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.cosmic-date-input::-webkit-calendar-picker-indicator:hover,
.cosmic-birth-input::-webkit-calendar-picker-indicator:hover {
  background-color: rgba(232,204,128,.1);
  border-color: var(--co-gold);
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(232,204,128,.4));
  box-shadow: 0 0 15px rgba(232,204,128,.3);
}

/* Enhanced input field styling when calendar is active */
.cosmic-date-input:focus,
.cosmic-birth-input:focus {
  border-color: var(--co-gold);
  box-shadow: 
    inset 0 2px 8px rgba(0,0,0,.3),
    0 0 20px rgba(232,204,128,.4),
    0 0 40px rgba(232,204,128,.2);
  color: var(--co-gold);
  background: linear-gradient(135deg, 
    rgba(22,33,62,.95) 0%, 
    rgba(15,52,96,.95) 50%, 
    rgba(22,33,62,.95) 100%);
}

/* Cosmic glow effect for date inputs */
.cosmic-date-input,
.cosmic-birth-input {
  position: relative;
  z-index: 1;
}

.cosmic-date-input::before,
.cosmic-birth-input::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    rgba(232,204,128,.2), 
    rgba(255,215,0,.1), 
    rgba(232,204,128,.2));
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cosmic-date-input:focus::before,
.cosmic-birth-input:focus::before {
  opacity: 1;
  animation: cosmic-date-glow 2s ease-in-out infinite alternate;
}

@keyframes cosmic-date-glow {
  0% {
    background: linear-gradient(45deg, 
      rgba(232,204,128,.2), 
      rgba(255,215,0,.1), 
      rgba(232,204,128,.2));
  }
  100% {
    background: linear-gradient(45deg, 
      rgba(232,204,128,.4), 
      rgba(255,215,0,.2), 
      rgba(232,204,128,.4));
  }
}

/* Special cosmic typography for date inputs */
.cosmic-date-input,
.cosmic-birth-input {
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* Placeholder styling for date inputs */
.cosmic-date-input::placeholder,
.cosmic-birth-input::placeholder {
  color: rgba(232,204,128,.6);
  font-family: 'Merriweather', 'Georgia', serif;
  font-style: italic;
  text-shadow: none;
}

/* Enhanced date input wrapper for additional effects */
.cosmic-date-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.cosmic-date-input-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 35px;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--co-gold);
  border-radius: 50%;
  opacity: 0.6;
  box-shadow: 
    6px 0 0 var(--co-gold),
    12px 0 0 var(--co-gold);
  pointer-events: none;
  transition: all 0.3s ease;
}

.cosmic-date-input-wrapper:hover::after {
  opacity: 1;
  box-shadow: 
    6px 0 0 #F59E0B,
    12px 0 0 #F59E0B,
    0 0 10px rgba(232,204,128,.4),
    6px 0 10px rgba(232,204,128,.4),
    12px 0 10px rgba(232,204,128,.4);
}

/*
================================================================================
🎨 BROWSER-SPECIFIC DATE PICKER ENHANCEMENTS 🎨
================================================================================
*/

/* Firefox specific enhancements */
@-moz-document url-prefix() {
  .cosmic-date-input,
  .cosmic-birth-input {
    background-image: linear-gradient(135deg, 
      rgba(22,33,62,.95) 0%, 
      rgba(15,52,96,.95) 50%, 
      rgba(22,33,62,.95) 100%);
    color: var(--co-gold);
    font-family: 'Merriweather', 'Georgia', serif;
  }
}

/* Safari specific enhancements */
@supports (-webkit-appearance: none) {
  .cosmic-date-input,
  .cosmic-birth-input {
    -webkit-appearance: none;
    appearance: none;
  }
}

/* Edge specific enhancements */
@supports (-ms-ime-align: auto) {
  .cosmic-date-input,
  .cosmic-birth-input {
    background: linear-gradient(135deg, 
      rgba(22,33,62,.95) 0%, 
      rgba(15,52,96,.95) 50%, 
      rgba(22,33,62,.95) 100%);
  }
}

/*
================================================================================
🕐 COSMIC TIME PICKER STYLING 🕐
================================================================================
Beautiful styling for time input elements
*/

/* Time picker specific enhancements */
.cosmic-time-input::-webkit-datetime-edit {
  color: var(--co-gold);
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

.cosmic-time-input::-webkit-datetime-edit-hour-field,
.cosmic-time-input::-webkit-datetime-edit-minute-field {
  color: var(--co-gold);
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 600;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 2px;
  border-radius: 3px;
  transition: all 0.3s ease;
  min-width: 24px;
  text-align: center;
}

.cosmic-time-input::-webkit-datetime-edit-hour-field:hover,
.cosmic-time-input::-webkit-datetime-edit-minute-field:hover,
.cosmic-time-input::-webkit-datetime-edit-hour-field:focus,
.cosmic-time-input::-webkit-datetime-edit-minute-field:focus {
  background: rgba(232,204,128,.15);
  color: #F59E0B;
  text-shadow: 0 0 8px rgba(232,204,128,.4);
}

.cosmic-time-input::-webkit-datetime-edit-text {
  color: rgba(232,204,128,.7);
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 400;
}

/* Enhanced time picker indicator */
.cosmic-time-input::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e8cc80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12,6 12,12 16,14'%3E%3C/polyline%3E%3C/svg%3E");
  background-color: transparent;
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(232,204,128,.3);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.cosmic-time-input::-webkit-calendar-picker-indicator:hover {
  background-color: rgba(232,204,128,.1);
  border-color: var(--co-gold);
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(232,204,128,.4));
  box-shadow: 0 0 15px rgba(232,204,128,.3);
}

/*
================================================================================
🌟 ENHANCED COSMIC INPUT INTERACTIONS 🌟
================================================================================
*/

/* Cosmic sparkle effect when date/time input is focused */
.cosmic-date-input-wrapper:focus-within,
.cosmic-time-input-wrapper:focus-within {
  position: relative;
}

.cosmic-date-input-wrapper:focus-within::before,
.cosmic-time-input-wrapper:focus-within::before {
  content: '✨';
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 12px;
  color: var(--co-gold);
  animation: cosmic-sparkle 1.5s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
}

@keyframes cosmic-sparkle {
  0%, 100% { 
    opacity: 0.4; 
    transform: scale(0.8) rotate(0deg); 
  }
  50% { 
    opacity: 1; 
    transform: scale(1.2) rotate(180deg); 
  }
}

/* Cosmic input validation styling */
.cosmic-date-input:valid,
.cosmic-time-input:valid {
  border-color: rgba(132,204,22,.6);
  box-shadow: 
    inset 0 2px 8px rgba(0,0,0,.3),
    0 0 15px rgba(132,204,22,.3);
}

.cosmic-date-input:invalid,
.cosmic-time-input:invalid {
  border-color: rgba(239,68,68,.6);
  box-shadow: 
    inset 0 2px 8px rgba(0,0,0,.3),
    0 0 15px rgba(239,68,68,.3);
}

/* Enhanced wrapper positioning for sparkle effects */
.cosmic-date-input-wrapper,
.cosmic-time-input-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

/* Cosmic typing animation for date inputs */
.cosmic-date-input:focus,
.cosmic-time-input:focus {
  animation: cosmic-input-focus 0.6s ease-out;
}

@keyframes cosmic-input-focus {
  0% {
    border-color: rgba(232,204,128,.3);
    box-shadow: inset 0 2px 8px rgba(0,0,0,.3);
  }
  50% {
    border-color: var(--co-gold);
    box-shadow: 
      inset 0 2px 8px rgba(0,0,0,.3),
      0 0 30px rgba(232,204,128,.6);
  }
  100% {
    border-color: var(--co-gold);
    box-shadow: 
      inset 0 2px 8px rgba(0,0,0,.3),
      0 0 20px rgba(232,204,128,.4);
  }
}

/*
================================================================================
🎯 COSMIC READING STYLE BUTTONS 🎯
================================================================================
Beautiful button-based reading style selector
*/

/* Oracle Preferences Toolbar */
.cosmic-preferences-toolbar {
  background: linear-gradient(135deg, 
    rgba(15,52,96,.6) 0%, 
    rgba(22,33,62,.8) 50%, 
    rgba(15,52,96,.6) 100%);
  border: 2px solid rgba(232,204,128,.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

.cosmic-preferences-toolbar:hover {
  border-color: rgba(232,204,128,.5);
  box-shadow: 0 6px 20px rgba(232,204,128,.1);
}

.cosmic-toolbar-title {
  color: var(--co-gold);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
  font-family: 'Cinzel Decorative', 'Georgia', serif;
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
  letter-spacing: 1px;
}

.cosmic-preferences-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cosmic-preference-item {
  display: flex;
  justify-content: center;
}

.cosmic-switch-compact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cosmic-switch-label-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.8rem;
  border: 2px solid rgba(232,204,128,.2);
  border-radius: 8px;
  background: linear-gradient(135deg, 
    rgba(22,33,62,.6) 0%, 
    rgba(15,52,96,.8) 50%, 
    rgba(22,33,62,.6) 100%);
  transition: all 0.3s ease;
  min-width: 100px;
  position: relative;
  overflow: hidden;
}

.cosmic-switch-label-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(232,204,128,.1), 
    transparent);
  transition: left 0.5s ease;
}

.cosmic-switch-label-compact:hover::before {
  left: 100%;
}

.cosmic-switch-label-compact:hover {
  border-color: var(--co-gold);
  box-shadow: 0 4px 15px rgba(232,204,128,.2);
  transform: translateY(-2px);
}

.cosmic-switch-input:checked + .cosmic-switch-label-compact {
  border-color: var(--co-gold);
  background: linear-gradient(135deg, 
    rgba(232,204,128,.2) 0%, 
    rgba(15,52,96,.8) 20%, 
    rgba(22,33,62,.6) 80%,
    rgba(232,204,128,.2) 100%);
  box-shadow: 0 4px 15px rgba(232,204,128,.3);
}

.cosmic-switch-input:checked + .cosmic-switch-label-compact::after {
  content: '✨';
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 12px;
  animation: cosmic-sparkle 2s ease-in-out infinite;
}

.cosmic-pref-icon {
  font-size: 1.5rem;
  color: var(--co-gold);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
  transition: all 0.3s ease;
}

.cosmic-switch-label-compact:hover .cosmic-pref-icon,
.cosmic-switch-input:checked + .cosmic-switch-label-compact .cosmic-pref-icon {
  color: #F59E0B;
  filter: drop-shadow(0 4px 8px rgba(232,204,128,.4));
  transform: scale(1.1);
}

.cosmic-pref-text {
  color: rgba(255,255,255,.8);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'Merriweather', 'Georgia', serif;
  line-height: 1.2;
}

.cosmic-switch-label-compact:hover .cosmic-pref-text,
.cosmic-switch-input:checked + .cosmic-switch-label-compact .cosmic-pref-text {
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* Two-column reading styles layout */
.cosmic-two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.cosmic-reading-column {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.cosmic-reading-styles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

/* Individual reading category styling */
.cosmic-reading-category {
  background: linear-gradient(135deg, 
    rgba(15,52,96,.4) 0%, 
    rgba(22,33,62,.6) 50%, 
    rgba(15,52,96,.4) 100%);
  border: 1px solid rgba(232,204,128,.2);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  height: fit-content;
}

.cosmic-reading-category {
  background: linear-gradient(135deg, 
    rgba(15,52,96,.4) 0%, 
    rgba(22,33,62,.6) 50%, 
    rgba(15,52,96,.4) 100%);
  border: 1px solid rgba(232,204,128,.2);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.cosmic-reading-category:hover {
  border-color: rgba(232,204,128,.4);
  box-shadow: 0 8px 25px rgba(232,204,128,.1);
}

.cosmic-category-title {
  color: var(--co-gold);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
  font-family: 'Cinzel Decorative', 'Georgia', serif;
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
  letter-spacing: 1px;
}

.cosmic-reading-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.cosmic-reading-btn {
  background: linear-gradient(135deg, 
    rgba(22,33,62,.8) 0%, 
    rgba(15,52,96,.9) 50%, 
    rgba(22,33,62,.8) 100%);
  border: 2px solid rgba(232,204,128,.3);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.cosmic-reading-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(232,204,128,.1), 
    transparent);
  transition: left 0.5s ease;
}

.cosmic-reading-btn:hover::before {
  left: 100%;
}

.cosmic-reading-btn:hover {
  border-color: var(--co-gold);
  box-shadow: 
    0 8px 25px rgba(232,204,128,.2),
    inset 0 1px 0 rgba(255,255,255,.1);
  transform: translateY(-2px);
}

.cosmic-reading-btn.active {
  border-color: var(--co-gold);
  background: linear-gradient(135deg, 
    rgba(232,204,128,.2) 0%, 
    rgba(15,52,96,.9) 20%, 
    rgba(22,33,62,.8) 80%,
    rgba(232,204,128,.2) 100%);
  box-shadow: 
    0 8px 25px rgba(232,204,128,.3),
    inset 0 1px 0 rgba(232,204,128,.3);
}

.cosmic-reading-btn.active::after {
  content: '✨';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 14px;
  animation: cosmic-sparkle 2s ease-in-out infinite;
}

.cosmic-btn-icon {
  font-size: 2rem;
  min-width: 50px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
  transition: all 0.3s ease;
}

.cosmic-reading-btn:hover .cosmic-btn-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(232,204,128,.4));
}

.cosmic-btn-content {
  flex: 1;
}

.cosmic-btn-title {
  color: var(--co-gold);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: 'Merriweather', 'Georgia', serif;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  line-height: 1.2;
}

.cosmic-btn-desc {
  color: rgba(255,255,255,.8);
  font-size: 0.85rem;
  line-height: 1.3;
  font-family: 'Merriweather', 'Georgia', serif;
  font-style: italic;
}

.cosmic-reading-btn:hover .cosmic-btn-title {
  color: #F59E0B;
  text-shadow: 0 0 8px rgba(232,204,128,.4);
}

.cosmic-reading-btn:hover .cosmic-btn-desc {
  color: rgba(255,255,255,.95);
}

.cosmic-reading-btn.active .cosmic-btn-title {
  color: #F59E0B;
  text-shadow: 0 0 8px rgba(232,204,128,.6);
}

.cosmic-reading-btn.active .cosmic-btn-desc {
  color: rgba(255,255,255,.95);
}

/* Responsive design for reading buttons */
@media (max-width: 768px) {
  .cosmic-preferences-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .cosmic-switch-label-compact {
    padding: 0.6rem;
    min-width: 80px;
  }
  
  .cosmic-pref-icon {
    font-size: 1.2rem;
  }
  
  .cosmic-pref-text {
    font-size: 0.75rem;
  }
  
  .cosmic-two-column-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cosmic-reading-buttons {
    grid-template-columns: 1fr;
  }
  
  .cosmic-reading-btn {
    padding: 0.8rem;
    gap: 0.8rem;
  }
  
  .cosmic-btn-icon {
    font-size: 1.5rem;
    min-width: 40px;
  }
  
  .cosmic-btn-title {
    font-size: 0.9rem;
  }
  
  .cosmic-btn-desc {
    font-size: 0.8rem;
  }
  
  .cosmic-reading-styles-grid {
    gap: 1.5rem;
  }
  
  .cosmic-reading-category {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .cosmic-preferences-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .cosmic-switch-label-compact {
    flex-direction: row;
    justify-content: center;
    gap: 0.8rem;
    min-width: auto;
    width: 100%;
  }
  
  .cosmic-reading-btn {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .cosmic-btn-content {
    text-align: center;
  }
}

/* Enhanced Zodiac Symbol Styling */
.zodiac-symbol {
  font-size: 2rem;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,.3);
  font-family: "Times New Roman", serif;
  display: inline-block;
  transition: transform .3s ease;
}

.cosmic-zodiac-card.revealed .zodiac-symbol {
  animation: zodiac-symbol-reveal 0.8s ease-out;
}

@keyframes zodiac-symbol-reveal {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  70% {
    transform: scale(1.1) rotate(10deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Hover Effects for Zodiac Card */
.cosmic-zodiac-card:hover {
  transform: scale(1.02);
  border-color: rgba(232,204,128,.5);
  box-shadow: 
    0 15px 40px rgba(232,204,128,.3),
    inset 0 1px 0 rgba(255,255,255,.15);
}

.cosmic-zodiac-card:hover .zodiac-symbol {
  transform: scale(1.1);
}

/* Loading Shimmer Effect for Inputs */
.cosmic-birth-input.loading {
  background: linear-gradient(
    90deg,
    rgba(1,2,27,.95) 25%,
    rgba(135,214,255,.1) 50%,
    rgba(1,2,27,.95) 75%
  );
  background-size: 200% 100%;
  animation: cosmic-shimmer 1.5s infinite;
}

@keyframes cosmic-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== COSMIC SELECT ===== */
.cosmic-select {
  width: 100%;
  background: rgba(1,2,27,.8);
  border: 2px solid rgba(135,214,255,.3);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: var(--co-ink);
  font-family: "Orbitron", "Montserrat", sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all .3s ease;
}

.cosmic-select:focus {
  outline: none;
  border-color: var(--co-teal);
  box-shadow: 0 0 15px rgba(135,214,255,.2);
}

/* ===== COSMIC BUTTONS ===== */
.cosmic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #0EA5E9, #0369A1);
  color: #EAF7FF;
  border: 0;
  padding: 1.2rem 2rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-family: "Orbitron", "Montserrat", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  box-shadow: 
    0 10px 25px rgba(14,165,233,.3),
    inset 0 1px 0 rgba(255,255,255,.2);
  transition: all .3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cosmic-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .6s ease;
}

.cosmic-btn:hover::before {
  left: 100%;
}

.cosmic-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 35px rgba(14,165,233,.4),
    inset 0 1px 0 rgba(255,255,255,.3);
  filter: saturate(120%);
  color: #fff;
}

.cosmic-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.cosmic-btn-secondary {
  background: linear-gradient(135deg, rgba(232,204,128,.3), rgba(185,139,68,.3));
  color: var(--co-gold);
  border: 2px solid rgba(232,204,128,.4);
}

.cosmic-btn-secondary:hover {
  background: linear-gradient(135deg, rgba(232,204,128,.5), rgba(185,139,68,.5));
  border-color: rgba(232,204,128,.6);
  color: var(--co-gold);
}

/* ===== ACTION BUTTONS CONTAINER ===== */
.cosmic-action-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/*
================================================================================
CARD RESULTS SECTION
================================================================================
*/

.cosmic-results-container {
  margin-top: 3rem;
  /* Ensure results container expands properly */
  min-height: 0; /* Allow natural height growth */
  position: relative;
  z-index: 1;
}

.cosmic-results-wrapper {
  background: rgba(3,6,47,.6);
  border: 1px solid rgba(232,204,128,.3);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 
    0 10px 30px rgba(0,0,0,.3),
    0 0 20px rgba(232,204,128,.1);
}

/* When results are visible, ensure proper spacing */
.cosmic-results-container:not([style*="display: none"]) {
  margin-bottom: 3rem; /* Add bottom margin when visible */
}

/* ===== BANGING COSMIC RESULTS HEADER - v1.0.1 ===== */
.cosmic-results-header {
  background: 
    linear-gradient(135deg, rgba(3,6,47,.95) 0%, rgba(1,2,27,.9) 50%, rgba(3,6,47,.95) 100%),
    radial-gradient(circle at 20% 80%, rgba(232,204,128,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(135,214,255,.1) 0%, transparent 50%);
  border: 2px solid rgba(232,204,128,.4);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(16px);
  box-shadow: 
    0 20px 40px rgba(0,0,0,.4),
    0 0 30px rgba(232,204,128,.15),
    inset 0 1px 0 rgba(255,255,255,.1),
    inset 0 -1px 0 rgba(232,204,128,.2);
  position: relative;
  overflow: hidden;
}

.cosmic-results-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle, rgba(232,204,128,.08) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: cosmic-shimmer 20s linear infinite;
  pointer-events: none;
}

@keyframes cosmic-shimmer {
  0% { transform: rotate(0deg) translate(0, 0); }
  100% { transform: rotate(360deg) translate(0, 0); }
}

.cosmic-header-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
}

.cosmic-orb {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.3), rgba(232,204,128,.6) 70%, rgba(184,139,68,.8));
  box-shadow: 
    0 0 20px rgba(232,204,128,.6),
    inset 0 2px 10px rgba(255,255,255,.2);
  animation: cosmic-pulse 3s ease-in-out infinite;
}

.cosmic-orb-left {
  animation-delay: 0s;
}

.cosmic-orb-right {
  animation-delay: 1.5s;
}

@keyframes cosmic-pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 20px rgba(232,204,128,.6), inset 0 2px 10px rgba(255,255,255,.2);
  }
  50% { 
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(232,204,128,.8), inset 0 2px 10px rgba(255,255,255,.3);
  }
}

.cosmic-header-title {
  flex: 1;
  text-align: center;
  margin: 0 2rem;
}

.cosmic-reading-title {
  font-family: "Cinzel Decorative", serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #E8CC80;
  text-shadow: 
    0 0 20px rgba(232,204,128,.8),
    0 2px 4px rgba(0,0,0,.5);
  margin: 0;
  letter-spacing: 0.05em;
}

.cosmic-question-container {
  background: rgba(1,2,27,.6);
  border: 1px solid rgba(232,204,128,.3);
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 2rem;
  box-shadow: 
    inset 0 0 20px rgba(232,204,128,.1),
    0 4px 15px rgba(0,0,0,.2);
}

.cosmic-question-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #E8CC80;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cosmic-icon {
  animation: cosmic-twinkle 2s ease-in-out infinite;
}

.cosmic-icon:nth-child(3) {
  animation-delay: 1s;
}

@keyframes cosmic-twinkle {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.cosmic-question-text {
  font-family: "Orbitron", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #FFF9D1;
  text-align: center;
  font-style: italic;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  line-height: 1.4;
}

.cosmic-reading-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.cosmic-spread-badge {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(3,6,47,.7);
  border: 1px solid rgba(135,214,255,.3);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 
    0 8px 25px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.1);
}

.cosmic-spread-icon {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(135,214,255,.6));
  animation: cosmic-float 3s ease-in-out infinite;
}

@keyframes cosmic-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.cosmic-spread-details {
  flex: 1;
}

.cosmic-spread-name {
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #87D6FF;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.cosmic-spread-description {
  font-size: 1rem;
  color: rgba(212,198,168,.9);
  margin: 0;
  line-height: 1.5;
}

.cosmic-reading-meta {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cosmic-meta-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: rgba(1,2,27,.4);
  border: 1px solid rgba(232,204,128,.2);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.cosmic-meta-item:hover {
  border-color: rgba(232,204,128,.4);
  background: rgba(1,2,27,.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232,204,128,.2);
}

.cosmic-meta-icon {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
}

.cosmic-meta-text {
  font-size: 0.9rem;
  color: rgba(212,198,168,.95);
  font-weight: 500;
}

@media (min-width: 768px) {
  .cosmic-reading-info {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
  
  .cosmic-reading-meta {
    gap: 1rem;
  }
  
  .cosmic-meta-item {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .cosmic-results-header {
    padding: 2rem 1.5rem;
  }
  
  .cosmic-reading-title {
    font-size: 1.8rem;
  }
  
  .cosmic-question-text {
    font-size: 1.2rem;
  }
  
  .cosmic-header-decoration {
    margin-bottom: 1.5rem;
  }
  
  .cosmic-orb {
    width: 50px;
    height: 50px;
  }
}

.cosmic-question-display {
  color: rgba(212,198,168,.8);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.cosmic-question-text {
  font-family: "Cinzel", serif;
  color: var(--co-gold);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cosmic-reading-summary {
  background: rgba(1,2,27,.6);
  border-left: 4px solid var(--co-teal);
  border-radius: 12px;
  padding: 1.5rem;
  color: var(--co-ink);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ===== CARD GRID ===== */
.cosmic-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
  margin-bottom: 4rem; /* Ensure bottom spacing */
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  align-items: start; /* Ensure cards align to top and can expand */
  /* Ensure grid container expands properly */
  min-height: 0;
  position: relative;
  z-index: 1;
}

.cosmic-cards-grid.cards-1 {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.cosmic-cards-grid.cards-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.cosmic-cards-grid.cards-5 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
}

.cosmic-cards-grid.cards-10 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 2000px;
  margin-left: auto;
  margin-right: auto;
}

/*
================================================================================
COSMIC 3D CARDS
================================================================================
*/

.cosmic-card-3d {
  perspective: 1200px;
  transform-style: preserve-3d;
  opacity: 1; /* Change from 0 to 1 for debugging */
  transform: translateY(0px) scale(1); /* Reset transforms for debugging */
  animation: cosmic-card-deal .8s ease forwards;
  animation-delay: var(--deal-delay, 0ms);
  height: auto;
  min-height: 700px; /* Increased from 600px for larger cards */
  width: 100%;
}

.cosmic-card-3d.no-anim { 
  animation: none; 
  opacity: 1; 
  transform: none; 
}

@keyframes cosmic-card-deal {
  0% { 
    opacity: 0; 
    transform: translateY(30px) scale(.9) rotateX(15deg); 
  }
  50% { 
    opacity: 0.8; 
    transform: translateY(-8px) scale(1.02) rotateX(0deg); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1) rotateX(0deg); 
  }
}

.cosmic-card-inner {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 20px;
  cursor: pointer;
}

.cosmic-card-3d.is-flipped .cosmic-card-inner { 
  transform: rotateY(180deg); 
}

.cosmic-card-3d.no-anim .cosmic-card-inner { 
  transition: none; 
}

.cosmic-card-face {
  position: absolute; 
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  min-height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: visible;
  box-shadow: 
    0 15px 40px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.1);
  transition: box-shadow .3s ease;
}

.cosmic-card-3d:hover .cosmic-card-face {
  box-shadow: 
    0 20px 50px rgba(0,0,0,.4),
    0 0 30px rgba(135,214,255,.15);
}

.cosmic-card-face--front { 
  transform: rotateY(180deg); 
}

.cosmic-card-face--back { 
  display: grid; 
  place-items: center; 
  background: linear-gradient(135deg, #0b0b14, #1a1a2e);
}

.cosmic-card-back {
  width: 100%; 
  height: auto;
  min-height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgba(135,214,255,.25), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(232,204,128,.2), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(14,165,233,.15), transparent 50%),
    conic-gradient(from 0deg, rgba(255,255,255,.02) 0deg, rgba(135,214,255,.05) 90deg, rgba(255,255,255,.02) 180deg, rgba(232,204,128,.05) 270deg);
  position: relative;
}

.cosmic-card-back::before {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(232,204,128,.6);
  text-shadow: 0 0 20px rgba(232,204,128,.4);
}

/* ===== CARD CONTENT ===== */
.cosmic-card-content {
  background: linear-gradient(135deg, rgba(5,10,30,.9), rgba(3,6,47,.9));
  backdrop-filter: blur(12px);
  height: auto;
  min-height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(232,204,128,.3);
  border-radius: 20px;
}

.cosmic-card-image-container {
  text-align: center;
  margin-bottom: 2rem;
  flex-shrink: 0;
}

.cosmic-card-image {
  max-height: 450px; /* Increased from 350px for larger cards */
  width: auto;
  max-width: 100%;
  border-radius: 16px;
  border: none;
  box-shadow: 
    0 12px 30px rgba(0,0,0,.4),
    0 0 25px rgba(232,204,128,.2),
    inset 0 1px 0 rgba(255,255,255,.1);
  transition: all 0.3s ease;
}

.cosmic-card-image:hover {
  box-shadow: 
    0 18px 40px rgba(0,0,0,.5),
    0 0 35px rgba(232,204,128,.3),
    inset 0 1px 0 rgba(255,255,255,.15);
  transform: scale(1.02);
}

.cosmic-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.cosmic-card-position {
  font-family: "Cinzel", serif;
  color: var(--co-gold);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
}

.cosmic-orientation-badge {
  background: rgba(135,214,255,.25);
  color: var(--co-teal);
  border: 1px solid rgba(135,214,255,.5);
  border-radius: 14px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(135,214,255,.2);
}

.cosmic-orientation-badge.reversed {
  background: rgba(220,53,69,.2);
  color: #ff6b6b;
  border-color: rgba(220,53,69,.4);
}

.cosmic-card-name-section {
  margin-bottom: 1.5rem;
}

.cosmic-card-name {
  font-family: "Cinzel", serif;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-shadow: 0 2px 6px rgba(0,0,0,.7);
}

/* ===== CARD MEANING CONTAINER ===== */
.cosmic-card-meaning-container {
    padding: 1rem 0 1.5rem 0;
    border-top: 1px solid rgba(232, 204, 128, 0.2);
    margin-top: 1rem;
}

.cosmic-meaning-section {
    margin-bottom: 1rem;
}

.cosmic-meaning-section:last-child {
    margin-bottom: 0;
}

.cosmic-meaning-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--co-gold);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.cosmic-card-meaning {
  color: rgba(212,198,168,.95);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/*
================================================================================
LOADING & ANIMATION STATES
================================================================================
*/

.cosmic-spinner {
  animation: cosmic-spin 1s infinite linear;
}

@keyframes cosmic-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*
================================================================================
RESPONSIVE DESIGN
================================================================================
*/

@media (max-width: 768px) {
  .cosmic-oracle-panel {
    padding: 2rem;
    margin: 0 1rem 2rem;
  }
  
  .cosmic-oracle-interface {
    padding: 0 1rem;
  }
  
  .cosmic-action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cosmic-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .cosmic-cards-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 0.5rem;
  }
  
  .cosmic-cards-grid.cards-3 {
    grid-template-columns: 1fr;
  }
  
  .cosmic-card-3d {
    min-height: 650px; /* Increased from 550px for larger mobile cards */
  }

  .cosmic-card-image {
    max-height: 400px; /* Increased from 320px for larger mobile cards */
  }

  .cosmic-card-content {
    padding: 1.5rem;
  }
}

/* ===== COSMIC CONSCIOUSNESS ENGINE ENHANCEMENTS ===== */
.cosmic-signature {
  background: linear-gradient(135deg, rgba(164,126,37,.1), rgba(164,126,37,.05));
  border: 1px solid rgba(164,126,37,.2);
  border-radius: 8px;
  padding: 0.8rem;
  margin-top: 1rem;
  text-align: center;
}

.cosmic-signature small {
  display: block;
  color: rgba(164,126,37,.8);
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

.resonance-score {
  background: linear-gradient(135deg, rgba(164,126,37,.8), rgba(164,126,37,.6));
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(164,126,37,.3);
}

.galactic-meaning {
  background: linear-gradient(135deg, rgba(100,50,200,.1), rgba(150,80,255,.1));
  border: 1px solid rgba(150,80,255,.2);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}

.galactic-meaning h6 {
  color: rgba(150,80,255,.9);
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.galactic-meaning p {
  color: rgba(221,214,199,.9);
  margin: 0;
  font-style: italic;
  line-height: 1.6;
}

/*
================================================================================
ACCESSIBILITY & PREFERENCES
================================================================================
*/

/* Prefers-reduced-motion: flatten animations */
@media (prefers-reduced-motion: reduce) {
  .cosmic-card-3d,
  .cosmic-card-inner {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --co-bg: #000000;
    --co-gold: #FFFF00;
    --co-ink: #FFFFFF;
    --co-teal: #00FFFF;
  }
}

/* Focus visible support for better keyboard navigation */
.cosmic-btn:focus-visible,
.cosmic-form-input:focus-visible,
.cosmic-select:focus-visible {
  outline: 2px solid var(--co-teal);
  outline-offset: 2px;
}

/* ===== ASTROLOGICAL PROFILE STYLES ===== */
.cosmic-astrology-profile {
  background: linear-gradient(135deg, rgba(3,6,47,.8), rgba(14,21,58,.9));
  border: 2px solid rgba(232,204,128,.3);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 
    0 10px 30px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.1);
}

.astrology-title {
  color: var(--co-gold);
  font-family: "Cinzel", serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

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

.astrology-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(1,2,27,.6);
  border: 1px solid rgba(135,214,255,.2);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  transition: all .3s ease;
}

.astrology-item:hover {
  border-color: rgba(135,214,255,.4);
  box-shadow: 0 5px 15px rgba(135,214,255,.1);
}

.astrology-label {
  color: rgba(212,198,168,.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.astrology-value {
  color: var(--co-ink);
  font-weight: 600;
  font-family: "Orbitron", "Montserrat", sans-serif;
}

.astrology-note {
  text-align: center;
  color: rgba(232,204,128,.8);
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

.astrology-enhancement {
  color: var(--co-gold);
  font-size: 0.8rem;
  font-weight: 500;
  display: block;
  margin-top: 0.3rem;
  animation: gentle-glow 2s ease-in-out infinite alternate;
}

@keyframes gentle-glow {
  0% { 
    text-shadow: 0 0 5px rgba(232,204,128,.5); 
    opacity: 0.8;
  }
  100% { 
    text-shadow: 0 0 10px rgba(232,204,128,.8), 0 0 15px rgba(232,204,128,.4); 
    opacity: 1;
  }
}

/* Mobile responsiveness for astrology grid */

/*
================================================================================
🏛️ LEGAL NOTICE PAGE STYLES 🏛️
================================================================================
Comprehensive styling for the legal notice page including technology descriptions,
disclaimers, IP protection, and professional legal content presentation.
*/

/* ===== LEGAL PAGE HERO SECTION ===== */
.legal-hero {
  position: relative;
  background:
    linear-gradient(to bottom, #01021B 0%, #01021B 5%, rgba(1,2,27,0.9) 10%, rgba(1,2,27,0.7) 20%, transparent 50%, transparent 60%, rgba(1,2,27,0.4) 75%, rgba(1,2,27,0.8) 85%, #01021B 100%),
    url("https://galacticfederation.in/wp-content/uploads/2025/10/CosmicOracleBackgroundImage.png") top center/cover no-repeat;
  min-height: 80vh;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--co-gold);
  margin-top: -20px;
  top: -20px;
  padding: 6rem 2rem 4rem 2rem;
}

.legal-hero h1 {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #E8CC80;
  text-shadow:
    0 3px 6px rgba(0,0,0,0.9),
    0 0 25px rgba(232,204,128,0.6),
    0 0 50px rgba(232,204,128,0.4);
  margin-bottom: 1rem;
}

.legal-hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(212,198,168,.9);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== LEGAL CONTENT CONTAINER ===== */
.legal-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  color: var(--co-ink);
  font-family: "Orbitron", "Montserrat", sans-serif;
}

/* ===== LEGAL CARD GRID SYSTEM ===== */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.legal-card {
  background: linear-gradient(135deg, rgba(5,10,30,.8), rgba(3,6,47,.9));
  border: 2px solid rgba(232,204,128,.3);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  box-shadow:
    0 15px 40px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.1);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.legal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 20% 25%, rgba(255,255,255,.4), rgba(255,255,255,0) 60%),
    radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,.3), rgba(255,255,255,0) 60%),
    radial-gradient(1px 1px at 35% 70%, rgba(255,255,255,.3), rgba(255,255,255,0) 60%);
  opacity: .1;
  pointer-events: none;
}

.legal-card:hover {
  border-color: rgba(135,214,255,.4);
  transform: translateY(-5px);
  box-shadow:
    0 20px 50px rgba(0,0,0,.5),
    0 0 30px rgba(135,214,255,.15);
}

.legal-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(232,204,128,.2);
}

.legal-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(232,204,128,.3), rgba(232,204,128,.1));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232,204,128,.4);
  box-shadow: 
    0 8px 25px rgba(232,204,128,.2),
    inset 0 1px 0 rgba(255,255,255,.2);
}

.legal-icon-box .material-icons {
  color: var(--co-gold);
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.legal-card-title {
  font-family: "Cinzel Decorative", serif;
  color: var(--co-gold);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
}

.legal-card-content {
  position: relative;
  z-index: 2;
}

.legal-card-content p {
  color: rgba(212,198,168,.95);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.legal-card-content p:last-child {
  margin-bottom: 0;
}

.legal-card-content ul {
  color: rgba(212,198,168,.9);
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.legal-card-content li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.legal-card-content strong {
  color: var(--co-gold);
  font-weight: 600;
}

/* ===== CONSCIOUSNESS ENGINE TECHNOLOGY SECTION ===== */
.consciousness-tech-section {
  background: linear-gradient(135deg, 
    rgba(14,21,58,.9) 0%, 
    rgba(22,33,62,.8) 30%,
    rgba(15,52,96,.7) 70%,
    rgba(22,33,62,.8) 100%);
  border: 2px solid rgba(135,214,255,.3);
  border-radius: 24px;
  padding: 3rem;
  margin: 4rem 0;
  box-shadow:
    0 20px 60px rgba(0,0,0,.4),
    0 0 40px rgba(135,214,255,.1),
    inset 0 1px 0 rgba(255,255,255,.1);
  position: relative;
  overflow: hidden;
}

.consciousness-tech-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(135,214,255,.15), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(232,204,128,.1), transparent 50%);
  pointer-events: none;
}

.tech-section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.tech-section-title {
  font-family: "Cinzel Decorative", serif;
  color: var(--co-teal);
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  letter-spacing: 0.05em;
  text-shadow:
    0 0 20px rgba(135,214,255,.6),
    0 2px 4px rgba(0,0,0,.5);
}

.tech-section-subtitle {
  font-size: 1.2rem;
  color: rgba(212,198,168,.9);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  font-style: italic;
}

.tech-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  position: relative;
  z-index: 2;
}

.tech-feature-card {
  background: rgba(1,2,27,.7);
  border: 1px solid rgba(135,214,255,.3);
  border-radius: 16px;
  padding: 2rem;
  transition: all .3s ease;
}

.tech-feature-card:hover {
  border-color: var(--co-teal);
  box-shadow: 0 10px 30px rgba(135,214,255,.2);
  transform: translateY(-3px);
}

.tech-feature-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tech-feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--co-teal), #0EA5E9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(135,214,255,.3);
}

.tech-feature-icon .material-icons {
  color: #fff;
  font-size: 1.5rem;
}

.tech-feature-title {
  color: var(--co-teal);
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.tech-feature-content {
  color: rgba(212,198,168,.9);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== DISCLAIMER SECTIONS ===== */
.disclaimer-section {
  background: linear-gradient(135deg, 
    rgba(185,139,68,.08) 0%, 
    rgba(232,204,128,.05) 50%,
    rgba(185,139,68,.08) 100%);
  border: 2px solid rgba(232,204,128,.2);
  border-left: 5px solid var(--co-gold);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 3rem 0;
  position: relative;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.disclaimer-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--co-gold), #F59E0B);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(232,204,128,.3);
}

.disclaimer-icon .material-icons {
  color: #fff;
  font-size: 1.5rem;
}

.disclaimer-title {
  font-family: "Cinzel Decorative", serif;
  color: var(--co-gold);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
}

.disclaimer-content {
  color: rgba(212,198,168,.95);
  font-size: 1rem;
  line-height: 1.7;
}

.disclaimer-content p {
  margin-bottom: 1.2rem;
}

.disclaimer-content ul {
  padding-left: 2rem;
  margin: 1rem 0;
}

.disclaimer-content li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* ===== IP PROTECTION GRID ===== */
.ip-protection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.ip-card {
  background: linear-gradient(135deg, 
    rgba(220,53,69,.1) 0%, 
    rgba(185,28,28,.08) 50%,
    rgba(220,53,69,.1) 100%);
  border: 2px solid rgba(220,53,69,.3);
  border-radius: 16px;
  padding: 2rem;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.ip-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(220,53,69,.1), 
    transparent);
  transition: left 0.5s ease;
}

.ip-card:hover::before {
  left: 100%;
}

.ip-card:hover {
  border-color: rgba(220,53,69,.5);
  box-shadow: 0 10px 30px rgba(220,53,69,.2);
  transform: translateY(-3px);
}

.ip-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ip-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(220,53,69,.3);
}

.ip-icon .material-icons {
  color: #fff;
  font-size: 1.3rem;
}

.ip-card-title {
  font-family: "Cinzel", serif;
  color: #ff6b6b;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.ip-card-content {
  color: rgba(212,198,168,.9);
  font-size: 0.9rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* ===== TRADEMARK AND COPYRIGHT SECTION ===== */
.trademark-section {
  background: linear-gradient(135deg, 
    rgba(3,6,47,.8) 0%, 
    rgba(14,21,58,.9) 50%, 
    rgba(3,6,47,.8) 100%);
  border: 2px solid rgba(232,204,128,.3);
  border-radius: 20px;
  padding: 3rem;
  margin: 4rem 0;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,.3);
}

.trademark-title {
  font-family: "Cinzel Decorative", serif;
  color: var(--co-gold);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 2rem 0;
  letter-spacing: 0.05em;
}

.trademark-content {
  color: rgba(212,198,168,.9);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.trademark-symbols {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.trademark-symbol {
  background: rgba(232,204,128,.2);
  border: 1px solid rgba(232,204,128,.4);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--co-gold);
  box-shadow: 0 8px 25px rgba(232,204,128,.2);
}

/* ===== CONTACT INFORMATION SECTION ===== */
.contact-info-section {
  background: linear-gradient(135deg, 
    rgba(22,101,52,.1) 0%, 
    rgba(34,197,94,.08) 50%,
    rgba(22,101,52,.1) 100%);
  border: 2px solid rgba(34,197,94,.3);
  border-radius: 20px;
  padding: 3rem;
  margin: 3rem 0;
  text-align: center;
}

.contact-title {
  font-family: "Cinzel Decorative", serif;
  color: #22c55e;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 2rem 0;
  letter-spacing: 0.03em;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(22,101,52,.1);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: 12px;
  transition: all .3s ease;
}

.contact-item:hover {
  border-color: rgba(34,197,94,.4);
  box-shadow: 0 8px 25px rgba(34,197,94,.1);
  transform: translateY(-2px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(34,197,94,.3);
}

.contact-icon .material-icons {
  color: #fff;
  font-size: 1.2rem;
}

.contact-text {
  color: rgba(212,198,168,.9);
  font-size: 1rem;
  font-weight: 500;
}

/* ===== SIGNATURE AND VERSION SECTION ===== */
.legal-signature {
  background: rgba(3,6,47,.6);
  border: 1px solid rgba(232,204,128,.2);
  border-radius: 16px;
  padding: 2rem;
  margin: 4rem 0 2rem 0;
  text-align: center;
}

.signature-content {
  color: rgba(212,198,168,.8);
  font-size: 0.9rem;
  line-height: 1.6;
  font-style: italic;
}

.version-info {
  color: var(--co-gold);
  font-weight: 600;
  margin-top: 1rem;
}

/* ===== RESPONSIVE DESIGN FOR LEGAL PAGE ===== */
@media (max-width: 768px) {
  .legal-content {
    padding: 2rem 1rem;
  }
  
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .legal-card {
    padding: 2rem;
  }
  
  .consciousness-tech-section {
    padding: 2rem;
  }
  
  .tech-features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .ip-protection-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .trademark-symbols {
    gap: 1rem;
  }
  
  .legal-hero h1 {
    font-size: 2.5rem;
  }
  
  .tech-section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .legal-hero {
    min-height: 50vh;
    padding: 2rem 1rem;
  }
  
  .legal-card {
    padding: 1.5rem;
  }
  
  .legal-card-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .consciousness-tech-section {
    padding: 1.5rem;
  }
  
  .disclaimer-section {
    padding: 2rem;
  }
  
  .disclaimer-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .contact-item {
    padding: 1rem;
  }
  
  .trademark-symbols {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== ENHANCED LEGAL PAGE ACCESSIBILITY ===== */
.legal-card:focus-within,
.ip-card:focus-within,
.tech-feature-card:focus-within {
  outline: 2px solid var(--co-teal);
  outline-offset: 2px;
}

/* ===== LEGAL PAGE ANIMATION ENHANCEMENTS ===== */
@keyframes legal-fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-card,
.disclaimer-section,
.consciousness-tech-section {
  animation: legal-fade-in 0.6s ease-out;
}

.legal-card:nth-child(2) { animation-delay: 0.1s; }
.legal-card:nth-child(3) { animation-delay: 0.2s; }
.legal-card:nth-child(4) { animation-delay: 0.3s; }

/* ===== COSMIC CONSCIOUSNESS ENGINE BRANDING ===== */
.consciousness-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--co-teal);
  font-weight: 600;
  font-family: "Cinzel", serif;
}

.consciousness-brand .material-icons {
  color: var(--co-gold);
  font-size: 1.2rem;
  animation: gentle-pulse 2s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ===== ENHANCED SECTION DIVIDERS ===== */
.legal-divider {
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(232,204,128,.3) 20%, 
    rgba(135,214,255,.3) 50%,
    rgba(232,204,128,.3) 80%, 
    transparent);
  margin: 4rem 0;
  position: relative;
}

.legal-divider::before {
  content: '⚖️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(3,6,47,.9);
  padding: 0 1rem;
  font-size: 1.2rem;
}

/* ===== LEGAL NOTICE HIGHLIGHTS ===== */
.legal-highlight {
  background: linear-gradient(135deg, 
    rgba(232,204,128,.15) 0%, 
    rgba(135,214,255,.1) 50%,
    rgba(232,204,128,.15) 100%);
  border-left: 4px solid var(--co-gold);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.legal-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, 
    var(--co-gold) 0%, 
    var(--co-teal) 50%, 
    var(--co-gold) 100%);
}

.legal-highlight-content {
  color: rgba(212,198,168,.95);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 500;
}

/* ===== LEGAL FOOTER ENHANCEMENT ===== */
.legal-footer {
  background: linear-gradient(135deg, 
    rgba(1,2,27,.95) 0%, 
    rgba(3,6,47,.9) 50%, 
    rgba(1,2,27,.95) 100%);
  border-top: 2px solid rgba(232,204,128,.3);
  padding: 3rem 2rem;
  margin-top: 4rem;
  text-align: center;
}

.legal-footer-content {
  max-width: 800px;
  margin: 0 auto;
  color: rgba(212,198,168,.8);
  font-size: 0.9rem;
  line-height: 1.6;
}

.legal-footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.legal-footer-link {
  color: var(--co-gold);
  text-decoration: none;
  font-weight: 500;
  transition: all .3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.legal-footer-link:hover {
  color: var(--co-teal);
  border-color: rgba(135,214,255,.3);
  background: rgba(135,214,255,.1);
  text-shadow: 0 0 10px rgba(135,214,255,.4);
}
@media (max-width: 768px) {
  .astrology-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .cosmic-astrology-profile {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .astrology-title {
    font-size: 1.1rem;
  }
}