/* ==========================================================================
   ASTRAL CHALDEAN NUMEROLOGY DESIGN SYSTEM & THEME
   ========================================================================== */

:root {
  /* Mystical Color Palettes */
  --bg-space: #050510;
  --bg-deep-indigo: #0b071e;
  --accent-teal: #00F5D4;
  --accent-purple: #7B2CBF;
  --accent-gold: #E0A96D;
  --accent-gold-glow: rgba(224, 169, 109, 0.4);
  --accent-teal-glow: rgba(0, 245, 212, 0.4);
  --accent-purple-glow: rgba(123, 44, 191, 0.4);
  --text-primary: #FFFFFF;
  --text-secondary: #A09CBE;
  --text-muted: #6C668D;
  
  /* Glassmorphic Tokens */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(0, 245, 212, 0.3);
  
  /* Typography */
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', sans-serif;
  
  /* Utilities */
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease-out;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-space);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(5, 5, 16, 0.5);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-purple-glow);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* ==========================================================================
   COSMIC BACKGROUND ANIMATIONS
   ========================================================================== */

.stars, .twinkling, .nebula {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  pointer-events: none;
}

.stars {
  background: #000 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="2" cy="2" r="1" fill="white" opacity="0.3"/><circle cx="50" cy="20" r="0.75" fill="white" opacity="0.5"/><circle cx="80" cy="70" r="1.25" fill="white" opacity="0.4"/><circle cx="20" cy="80" r="0.5" fill="white" opacity="0.2"/></svg>') repeat;
  opacity: 0.7;
}

.twinkling {
  background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><circle cx="10" cy="30" r="1.5" fill="white" opacity="0.7"/><circle cx="120" cy="70" r="2" fill="white" opacity="0.9"/><circle cx="70" cy="150" r="1" fill="white" opacity="0.5"/><circle cx="180" cy="120" r="2.5" fill="white" opacity="0.8"/></svg>') repeat;
  animation: twinkle 30s linear infinite;
  opacity: 0.5;
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { opacity: 0.3; }
}

.nebula {
  filter: blur(100px);
  opacity: 0.15;
  mix-blend-mode: screen;
}

.nebula-purple {
  background: radial-gradient(circle at 10% 20%, var(--accent-purple) 0%, transparent 60%);
  animation: pulseNebula 20s infinite alternate;
}

.nebula-blue {
  background: radial-gradient(circle at 90% 80%, #0c4383 0%, transparent 60%);
  animation: pulseNebula 25s infinite alternate-reverse;
}

@keyframes pulseNebula {
  0% { transform: scale(1) translate(0, 0); opacity: 0.1; }
  50% { transform: scale(1.1) translate(5%, 5%); opacity: 0.18; }
  100% { transform: scale(0.95) translate(-3%, -2%); opacity: 0.1; }
}

/* ==========================================================================
   APP LAYOUT
   ========================================================================== */

.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background: rgba(5, 5, 16, 0.7);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-left: 5px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 8px rgba(0, 245, 212, 0.3));
}

.brand-text h1 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  background: linear-gradient(135deg, #FFF 30%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-teal);
  font-weight: 600;
  display: block;
  margin-top: 1px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 14px 16px;
  text-align: left;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.nav-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.03);
  transform: translateX(4px);
}

.nav-btn.active {
  background: radial-gradient(100% 100% at 0% 0%, rgba(123, 44, 191, 0.15) 0%, rgba(0, 245, 212, 0.03) 100%);
  border: 1px solid rgba(0, 245, 212, 0.15);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 245, 212, 0.05);
}

.nav-btn.active .nav-icon {
  fill: var(--accent-teal);
  opacity: 1;
  filter: drop-shadow(0 0 4px var(--accent-teal-glow));
}

.sidebar-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
  letter-spacing: 0.5px;
}

/* Main Content Wrapper */
.main-content {
  flex-grow: 1;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Mobile Header */
.mobile-header {
  display: none;
}

/* ==========================================================================
   COMPONENTS: GLASS CARDS, BUTTONS & FORMS
   ========================================================================= */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--glass-bg-hover);
}

/* Form Styles */
.numerology-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
}

.form-group input, 
.form-group select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.form-group input:focus, 
.form-group select:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.15), inset 0 2px 4px rgba(0,0,0,0.5);
  background: rgba(0, 0, 0, 0.4);
}

.form-group small {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Mystic Glowing Buttons */
.mystic-btn {
  background: linear-gradient(135deg, var(--accent-purple) 0%, #4c1186 100%);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
  align-self: flex-start;
}

.mystic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 44, 191, 0.5), 0 0 12px var(--accent-teal-glow);
  border-color: var(--accent-teal);
}

.mystic-btn:active {
  transform: translateY(1px);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: 0.5s;
}

.mystic-btn:hover .btn-glow {
  left: 100%;
}

.btn-text {
  position: relative;
  z-index: 2;
}

/* Panel Header Utilities */
.panel-header {
  margin-bottom: 30px;
}

.panel-header h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #FFF 30%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 800px;
}

/* ==========================================================================
   TAB NAVIGATION SYSTEM
   ========================================================================== */

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.tab-panel.active {
  display: block;
}

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

/* ==========================================================================
   TAB 1: INDIVIDUAL ANALYZER DASHBOARD
   ========================================================================== */

.results-dashboard {
  margin-top: 40px;
  animation: slideUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

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

/* Metrics Dashboard Cards Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.metric-card:hover {
  transform: translateY(-4px);
}

.metric-card.active {
  background: rgba(255, 255, 255, 0.05);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ring-teal {
  border: 2px solid var(--accent-teal);
  color: var(--accent-teal);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.15);
}

.ring-gold {
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(224, 169, 109, 0.15);
}

.ring-purple {
  border: 2px solid #BC8CF2;
  color: #BC8CF2;
  box-shadow: 0 0 10px rgba(188, 140, 242, 0.15);
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.card-info h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.number-val {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.text-teal { color: var(--accent-teal); filter: drop-shadow(0 0 6px var(--accent-teal-glow)); }
.text-gold { color: var(--accent-gold); filter: drop-shadow(0 0 6px var(--accent-gold-glow)); }
.text-purple { color: #BC8CF2; filter: drop-shadow(0 0 6px rgba(188, 140, 242, 0.3)); }

.compound-badge {
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.name-num-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-detail {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-arrow {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0;
  transition: var(--transition-smooth);
}

.metric-card:hover .card-arrow {
  opacity: 0.7;
  right: 16px;
}

/* Glowing Card Borders */
.border-glow-teal { border-left: 3px solid var(--accent-teal); }
.border-glow-gold { border-left: 3px solid var(--accent-gold); }
.border-glow-purple { border-left: 3px solid var(--accent-purple); }
.border-glow-harmony { border-left: 3px solid #00F5D4; }

/* Circular Progress Dashboard Widget */
.circular-progress-container {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-bar {
  transition: stroke-dashoffset 0.6s ease-in-out;
}

.progress-txt {
  position: absolute;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.harmony-status {
  font-size: 1.15rem;
  font-weight: 700;
}

/* Subtab Navigation Panel */
.tab-subnav {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 12px;
}

.sub-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sub-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.sub-btn.active {
  background: rgba(255,255,255,0.06);
  color: var(--accent-teal);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
}

.sub-panel {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.sub-panel.active {
  display: block;
}

/* Overview layout */
.summary-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 25px;
}

.main-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cosmic-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.cosmic-header h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
}

.sparkle {
  color: var(--accent-teal);
  animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.5; filter: drop-shadow(0 0 1px var(--accent-teal-glow)); }
  100% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 5px var(--accent-teal)); }
}

.summary-paragraph {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.lucky-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.attr-chip {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip-label {
  color: var(--text-muted);
}

.attr-chip strong {
  color: var(--accent-teal);
}

.name-meaning-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 380px;
}

.name-meaning-card h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 8px;
}

.mystic-badge {
  font-family: var(--font-serif);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-teal);
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.08) 0%, transparent 100%);
  padding: 8px 0;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid rgba(0, 245, 212, 0.1);
}

.scroll-box {
  overflow-y: auto;
  padding-right: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

/* ==========================================================================
   SUBTAB 2: NAME MECHANICS (LETTER CHIPS)
   ========================================================================== */

.name-mechanics-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 25px;
}

.letter-analysis-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.letter-nodes-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 0;
}

.letter-node-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  min-width: 48px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition-fast);
}

.letter-node-box:hover {
  transform: translateY(-2px);
  border-color: var(--accent-teal);
  background: rgba(0, 245, 212, 0.05);
}

.letter-node-box.is-vowel {
  border-color: rgba(224, 169, 109, 0.3);
}

.letter-node-box.is-vowel:hover {
  border-color: var(--accent-gold);
  background: rgba(224, 169, 109, 0.05);
}

.letter-char {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.letter-num {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.letter-node-box:hover .letter-num {
  color: var(--text-primary);
}

.vowel-marker {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 4px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 50%;
  filter: drop-shadow(0 0 2px var(--accent-gold));
}

.name-subcalculations {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subcalc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.insight-box {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.insight-box:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.insight-box h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.insight-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   SUBTAB 3: BIRTH ASTROLOGICAL CORE
   ========================================================================== */

.birth-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.birth-detail-layout h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.birth-explain-para {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   SUBTAB 4: HARMONY & SPELLTUNER SUGGESTIONS
   ========================================================================== */

.harmony-details-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 25px;
}

/* Harmony pointer indicator gauge */
.harmony-gauge-box {
  margin: 30px 0;
  position: relative;
}

.gauge-meter {
  height: 8px;
  background: linear-gradient(90deg, #e63946 0%, #ffb703 50%, #2a9d8f 100%);
  border-radius: 4px;
  position: relative;
}

.gauge-pointer {
  width: 14px;
  height: 14px;
  background: var(--text-primary);
  border: 2px solid var(--bg-space);
  border-radius: 50%;
  position: absolute;
  top: -3px;
  margin-left: -7px;
  box-shadow: 0 0 6px rgba(255,255,255,0.8);
  transition: left 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.harmony-report-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Name Correction Card & Suggestions Table */
.card-header-with-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.card-header-with-badge h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent-gold);
}

.magic-sparkle-badge {
  font-size: 0.72rem;
  color: var(--accent-teal);
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.2);
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  animation: shine 2s infinite linear;
}

@keyframes shine {
  0% { box-shadow: 0 0 2px var(--accent-teal-glow); }
  50% { box-shadow: 0 0 10px rgba(0, 245, 212, 0.3); }
  100% { box-shadow: 0 0 2px var(--accent-teal-glow); }
}

.section-intro {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.suggestions-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.15);
}

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

.suggestions-table th, 
.suggestions-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.suggestions-table th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.suggestions-table tr:last-child td {
  border-bottom: none;
}

.sug-spelling {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Status Badges */
.badge-status {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.badge-harmonious {
  background: rgba(42, 157, 143, 0.12);
  border: 1px solid #2a9d8f;
  color: #52b788;
}

.badge-neutral {
  background: rgba(255, 183, 3, 0.08);
  border: 1px solid #ffb703;
  color: #f7d070;
}

.badge-conflict {
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid #e63946;
  color: #f28482;
}

.apply-btn {
  background: transparent;
  border: 1px solid rgba(0, 245, 212, 0.3);
  color: var(--accent-teal);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.apply-btn:hover {
  background: var(--accent-teal);
  color: var(--bg-space);
  box-shadow: 0 0 8px var(--accent-teal-glow);
}

/* ==========================================================================
   TAB 2: COMPATIBILITY MATCHER
   ========================================================================== */

.matching-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.p-card {
  position: relative;
  overflow: hidden;
  padding-top: 40px;
}

.card-corner-label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom-right-radius: var(--radius-sm);
}

.bg-teal { background-color: rgba(0, 245, 212, 0.15); color: var(--accent-teal); border: 1px solid rgba(0, 245, 212, 0.2); border-top: none; border-left: none; }
.bg-gold { background-color: rgba(224, 169, 109, 0.15); color: var(--accent-gold); border: 1px solid rgba(224, 169, 109, 0.2); border-top: none; border-left: none; }
.bg-purple { background-color: rgba(121, 44, 191, 0.15); color: #BC8CF2; border: 1px solid rgba(121, 44, 191, 0.2); border-top: none; border-left: none; }

.partner-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.action-btn-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

/* Compatibility result view layout with Glassmorphism Widget styling */
.match-results-panel {
  display: flex;
  flex-direction: column;
  gap: 25px;
  animation: slideUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.match-overview-glass {
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

/* Cosmic Glow States for Compatibility Card */
.card-glow-green {
  border-color: rgba(16, 185, 129, 0.25) !important;
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4), 0 0 25px rgba(16, 185, 129, 0.15) !important;
}

.card-glow-red {
  border-color: rgba(239, 68, 68, 0.25) !important;
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4), 0 0 25px rgba(239, 68, 68, 0.15) !important;
}

.card-glow-yellow {
  border-color: rgba(245, 158, 11, 0.25) !important;
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4), 0 0 25px rgba(245, 158, 11, 0.15) !important;
}

.main-match-circle {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.match-ring {
  transform: rotate(-90deg);
}

.match-ring-bar {
  transition: stroke-dashoffset 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.match-score-display {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.score-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  transition: var(--transition-smooth);
}

.text-green {
  color: #10B981 !important;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4));
}

.text-red {
  color: #EF4444 !important;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.4));
}

.text-yellow {
  color: #F59E0B !important;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
}

.score-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-top: 6px;
}

.match-breakdown-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.match-breakdown-details h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 8px;
}

.breakdown-meter-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meter-info {
  display: flex;
  justify-between: space-between; /* Wait, using justify-content fallback below */
  display: -webkit-flex;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.meter-bar-container {
  height: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.meter-fill {
  height: 100%;
  border-radius: 20px;
  width: 0%; /* Initialize at 0 for slide animation */
  transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

/* Glowing Tube Fill Variants (Green for Matching, Red for Mismatch) */
.bar-fill-green {
  background: linear-gradient(90deg, #10B981 0%, #059669 100%) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5) !important;
}

.bar-fill-red {
  background: linear-gradient(90deg, #EF4444 0%, #B91C1C 100%) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5) !important;
}

.bar-fill-yellow {
  background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
}

.match-verdict-box h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.verdict-para {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   TAB 3: INTERACTIVE LIVE SPELLING TUNER
   ========================================================================== */

.tuner-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 25px;
}

.tuner-card h4, 
.tuner-outputs h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.live-grid-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
  min-height: 110px;
  padding: 15px;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius-md);
  border: 1px dashed var(--glass-border);
}

.tuner-node {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  min-width: 44px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition-fast);
}

.tuner-node.is-vowel {
  border-color: rgba(224, 169, 109, 0.4);
}

.tuner-char {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.tuner-val {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.big-counter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
  background: radial-gradient(circle, rgba(123, 44, 191, 0.05) 0%, transparent 80%);
}

.live-val-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px double var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-teal);
  filter: drop-shadow(0 0 10px var(--accent-teal-glow));
  background: rgba(0,0,0,0.2);
}

.big-counter-box span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.tuner-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.tuner-bar-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.t-label {
  color: var(--text-secondary);
}

.tuner-cheiro-box {
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 15px;
}

.tuner-cheiro-box h5 {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.tuner-cheiro-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-height: 120px;
}

/* ==========================================================================
   TAB 4: SACRED CHALDEAN ALPHABET CHART
   ========================================================================== */

.grid-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 25px;
}

.grid-card h4, 
.inspector-card h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.chart-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.interactive-alphabet-chart {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.chart-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.chart-header-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chart-header-num:hover {
  transform: scale(1.15);
}

.chart-letters-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.char-node {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.char-node:hover {
  background: var(--accent-teal);
  color: var(--bg-space);
  border-color: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal-glow);
  transform: translateY(-2px);
}

.char-node.highlight-node {
  background: var(--accent-purple);
  color: var(--text-primary);
  border-color: #BC8CF2;
  box-shadow: 0 0 8px var(--accent-purple-glow);
}

/* Sacred Nine Info Card */
.sacred-nine-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.05) 0%, rgba(224, 169, 109, 0.03) 100%);
  border: 1px solid rgba(224, 169, 109, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.badge-9 {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 900;
  flex-shrink: 0;
  background: rgba(0,0,0,0.2);
}

.nine-info h5 {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--accent-gold);
  margin-bottom: 2px;
}

.nine-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Node Inspector panel styling */
.helper-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.inspector-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.inspector-large-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 2px solid var(--accent-teal);
  color: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 900;
}

.inspector-title h5 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-primary);
}

.planet-badge {
  font-size: 0.7rem;
  color: var(--accent-gold);
  background: rgba(224, 169, 109, 0.08);
  border: 1px solid var(--accent-gold-glow);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inspector-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.detail-row strong {
  color: var(--text-primary);
}

.ins-description {
  margin-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   TAB 5: SACRED NUMEROLOGY LEARNING CENTER
   ========================================================================== */

.learning-resources-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.article-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.article-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
}

.article-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.compound-search-card {
  grid-column: span 1;
}

.search-form-row {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.search-form-row input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  width: 80px;
  text-align: center;
}

.inline-btn {
  padding: 8px 16px;
  font-size: 0.8rem;
  align-self: center;
}

.compound-search-result {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 10px;
  min-height: 100px;
}

.compound-search-result h5 {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--accent-teal);
  margin-bottom: 6px;
}

.compound-search-result p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Helper Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ==========================================================================
   TAB 6: SAVED HISTORY LOGS & EXPORTS
   ========================================================================== */

.history-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.history-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.history-card.h-individual-card {
  border-left: 3px solid var(--accent-teal);
}

.history-card.h-match-card {
  border-left: 3px solid var(--accent-gold);
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 10px;
}

.history-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-type-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.h-individual-badge {
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.2);
  color: var(--accent-teal);
}

.h-match-badge {
  background: rgba(224, 169, 109, 0.08);
  border: 1px solid rgba(224, 169, 109, 0.2);
  color: var(--accent-gold);
}

.history-details-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.history-details-list div {
  display: flex;
  justify-content: space-between;
}

.history-details-list div strong {
  color: var(--text-primary);
}

.history-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
}

.h-action-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.h-action-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
}

.h-action-btn.h-export-word {
  color: #a09cbe;
  border-color: rgba(43, 87, 154, 0.2);
  background: rgba(43, 87, 154, 0.03);
}

.h-action-btn.h-export-word:hover {
  background: #2b579a;
  color: #fff;
  border-color: #2b579a;
  box-shadow: 0 0 10px rgba(43, 87, 154, 0.4);
}

.h-action-btn.h-export-pdf {
  color: #a09cbe;
  border-color: rgba(226, 135, 67, 0.2);
  background: rgba(226, 135, 67, 0.03);
}

.h-action-btn.h-export-pdf:hover {
  background: #e28743;
  color: #fff;
  border-color: #e28743;
  box-shadow: 0 0 10px rgba(226, 135, 67, 0.4);
}

.h-action-btn.h-delete {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.03);
  margin-left: auto;
}

.h-action-btn.h-delete:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & PHONES)
   ========================================================================== */

@media (max-width: 1024px) {
  .app-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 20px;
  }
  
  .brand {
    margin-bottom: 20px;
  }
  
  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .nav-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  
  .main-content {
    padding: 25px 20px;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .summary-layout, 
  .name-mechanics-grid, 
  .harmony-details-grid, 
  .tuner-layout, 
  .grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .learning-resources-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .sidebar {
    display: none; /* Hide sidebar completely in mobile view, replace with slider header */
  }
  
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(5, 5, 16, 0.9);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 25px;
  }
  
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .mobile-brand .brand-logo {
    width: 32px;
    height: 32px;
  }
  
  .mobile-brand h2 {
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 0.5px;
  }

  .nav-menu-mobile {
    display: flex;
    flex-direction: column;
    background: rgba(5,5,16,0.98);
    position: absolute;
    top: 63px;
    left: 0;
    width: 100%;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    border-bottom: 1px solid var(--glass-border);
    gap: 10px;
    z-index: 999;
  }
  
  .nav-menu-mobile button {
    width: 100%;
    justify-content: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .panel-header h2 {
    font-size: 1.6rem;
  }
  
  .matching-grid {
    grid-template-columns: 1fr;
  }
  
  .match-overview-glass {
    flex-direction: column;
    gap: 20px;
  }
  
  .suggestions-table th, 
  .suggestions-table td {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   TAB: NAME SUGGEST STYLES
   ========================================================================== */

.suggest-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 15px;
}

.suggest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 25px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.suggest-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--glass-bg-hover);
}

.suggest-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.suggest-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
  line-height: 1.3;
}

.suggest-type-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.suggest-badge-business { background: rgba(0, 245, 212, 0.1); color: var(--accent-teal); border: 1px solid rgba(0, 245, 212, 0.2); }
.suggest-badge-shop { background: rgba(224, 169, 109, 0.1); color: var(--accent-gold); border: 1px solid rgba(224, 169, 109, 0.2); }
.suggest-badge-house { background: rgba(123, 44, 191, 0.1); color: var(--accent-purple); border: 1px solid rgba(123, 44, 191, 0.2); }
.suggest-badge-other { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); border: 1px solid var(--glass-border); }

.suggest-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 12px 0;
}

.suggest-details-list div {
  display: flex;
  justify-content: space-between;
}

.suggest-details-list span {
  color: var(--text-secondary);
}

.suggest-details-list strong {
  color: var(--text-primary);
}

.suggest-compat-ring-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compat-percentage {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.compat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--text-muted);
}

.suggest-actions {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.suggest-action-btn {
  flex-grow: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.suggest-action-btn:hover {
  background: var(--glass-bg-hover);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

/* Media Query overrides for Name Suggest responsiveness */
@media (max-width: 992px) {
  .suggest-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .suggest-cards-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   TAB: LO SHU MAGIC SQUARE STYLES
   ========================================================================== */

.loshu-dashboard-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 30px;
}

.loshu-magic-grid {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  grid-template-rows: repeat(3, 80px);
  gap: 12px;
  justify-content: center;
  margin: 0 auto;
}

.loshu-node {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.loshu-node.populated {
  background: rgba(0, 245, 212, 0.05);
  border-color: var(--accent-teal);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.2), inset 0 0 10px rgba(0, 245, 212, 0.1);
}

.loshu-node.missing {
  opacity: 0.4;
  background: rgba(255, 255, 255, 0.01);
  border-style: dashed;
}

.loshu-cell-standard {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.6;
}

.loshu-cell-value {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-muted);
}

.populated .loshu-cell-value {
  color: var(--accent-teal);
  text-shadow: 0 0 8px var(--accent-teal-glow);
}

.loshu-planes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.loshu-plane-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.loshu-plane-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255,255,255,0.15);
}

.plane-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.plane-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.plane-descr {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.plane-indicator-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plane-bar-container {
  width: 60px;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
}

.plane-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s ease-out;
}

.plane-pct {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 35px;
  text-align: right;
}

.loshu-remedy-card {
  border-left: 4px solid var(--glass-border);
  padding-left: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.loshu-remedy-card.card-wood { border-left-color: #10B981; }
.loshu-remedy-card.card-water { border-left-color: #3B82F6; }
.loshu-remedy-card.card-earth { border-left-color: #D97706; }
.loshu-remedy-card.card-metal { border-left-color: #94A3B8; }
.loshu-remedy-card.card-fire { border-left-color: #EF4444; }

.loshu-remedy-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.loshu-remedy-number-badge {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.3rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  margin-right: 12px;
  flex-shrink: 0;
}

.badge-water { background: rgba(59, 130, 246, 0.1); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-wood { background: rgba(16, 185, 129, 0.1); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-earth { background: rgba(217, 119, 6, 0.1); color: #FBBF24; border: 1px solid rgba(217, 119, 6, 0.3); }
.badge-metal { background: rgba(148, 163, 184, 0.1); color: #CBD5E1; border: 1px solid rgba(148, 163, 184, 0.3); }
.badge-fire { background: rgba(239, 68, 68, 0.1); color: #FCA5A5; border: 1px solid rgba(239, 68, 68, 0.3); }

.loshu-remedy-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 0;
}

.loshu-remedy-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.remedy-sub-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 5px;
}

/* Media overrides for Lo Shu Tab responsiveness */
@media (max-width: 900px) {
  .loshu-dashboard-layout {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
}


