
:root {
    --bg-main: #f8f6fc; 
    --text-dark: #1e293b; 
    --text-light: #475569;
    --primary: #5b21b6; 
    --primary-light: #8b5cf6; 
    --primary-dark: #4c1d95;
    --accent-gold: #d97706; 
    --card-bg: #ffffff; 
    --border-line: #e9d8f4;
    --highlight-green: #059669; 
    --highlight-red: #e11d48; 
    --cell-bg: #faf5ff;
    --site-width: 1200px;
}

.page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body { 
    background-color: var(--bg-main); 
    color: var(--text-dark); 
    font-family: 'Inter', sans-serif; 
    line-height: 1.7; 
    display: flex; 
    flex-direction: column; 
    overflow-x: hidden; 
}
h1, h2, h3, h4, h5, h6, .btn-submit, .value, .badge, .matrix-cell { font-family: 'Poppins', sans-serif; }

/* FORCES TITLE TO SPAN FULL WIDTH ABOVE THE GRID */
.full-width-title {
    grid-column: 1 / -1; 
    margin-bottom: 10px;
    border-bottom: 2px solid var(--border-line);
    padding-bottom: 15px;
}
.full-width-title .hero-title {
    margin-bottom: 0 !important;
}

/* Mobile Overrides */
@media (max-width: 768px) {
    .content-panel, .content-card, .input-panel {
        border-radius: 0; border-left: none; border-right: none;
        margin-left: -20px; margin-right: -20px; box-shadow: none;
        border-bottom: 1px solid var(--border-line); padding: 25px 15px;
    }
    .page-container, .main-content { padding-top: 10px !important; }
    .desktop-only { display: none !important; }
}

/* GLOBAL SPACING - CONSISTENT 1024px */
.main-content, .container, .page-container { 
    max-width: var(--site-width) !important; 
    margin-top: 40px !important; 
    margin-bottom: 50px !important;
    margin-left: auto !important; 
    margin-right: auto !important; 
    padding-left: 20px; 
    padding-right: 20px; 
    width: 100%; 
    flex: 1; 
    position: relative; 
    z-index: 5;
}

/* =========================================
   TOP NAVBAR & DROPDOWN FIXES
========================================= */
.top-navbar { 
    width: 100%; box-sizing: border-box; background: var(--primary-dark); 
    padding: 12px max(20px, calc((100% - var(--site-width)) / 2)) !important;
    display: flex; align-items: center; justify-content: space-between; 
    border-bottom: 3px solid var(--accent-gold); 
    box-shadow: 0 4px 15px rgba(76, 29, 149, 0.15); position: relative; z-index: 999; 
}
.logo-box { cursor: pointer; flex-shrink: 0; }
.logo-title { margin: 0; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; font-family: 'Poppins', sans-serif; }

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { text-decoration: none; color: #e9d8f4; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 20px; transition: all 0.25s ease; line-height: 1; }
.nav-links > a:hover, .nav-links > a.active, .dropdown-trigger:hover, .dropdown-trigger.active { color: #fff; background: rgba(255, 255, 255, 0.12); }
.nav-links > a.active, .dropdown-trigger.active { background: var(--primary-light) !important; color: #fff !important; }

/* DROPDOWN FIX: Gap completely removed. Now perfectly flush. */
.dropdown { position: relative; display: inline-flex; align-items: center; height: 38px; }
.dropdown-trigger { cursor: pointer; gap: 4px; }
.arrow-indicator { font-size: 11px; margin-left: 2px; opacity: 0.8; }
.dropdown-content { display: none; position: absolute; background-color: var(--primary-dark); min-width: 220px; box-shadow: 0 10px 25px rgba(0,0,0,0.45); z-index: 999; border-radius: 12px; top: 100%; left: 0; padding: 8px 0; border: 1px solid var(--primary-light); flex-direction: column; margin-top: 0; }

@media (min-width: 901px) { 
    .dropdown:hover .dropdown-content { display: flex !important; } 
}

.dropdown-content a { height: auto !important; padding: 12px 18px !important; border-radius: 0 !important; text-align: left; display: block !important; width: 100%; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: #e9d8f4; }
.dropdown-content a:hover { background-color: var(--primary) !important; color: #fff; padding-left: 22px !important; }

/* =========================================
   MOBILE MENU RESPONSIVENESS
========================================= */
.mobile-toggle-btn { display: none; background: transparent; border: none; cursor: pointer; padding: 5px; outline: none; }

@media (max-width: 900px) {
    .mobile-toggle-btn { display: block; }
    
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: var(--primary-dark); 
        padding: 15px 20px; 
        box-shadow: 0 15px 30px rgba(0,0,0,0.3); 
        border-top: 1px solid rgba(255,255,255,0.1); 
        align-items: stretch;
    }
    
    .nav-links.show-mobile { display: flex !important; }
    
    .nav-links > a, .dropdown { margin-bottom: 8px; }
    .nav-links a { justify-content: flex-start; border-radius: 8px; height: auto; padding: 12px 16px; width: 100%; }
    
    .dropdown { flex-direction: column; align-items: flex-start; height: auto; }
    .dropdown-trigger { width: 100%; justify-content: space-between; }
    
    .dropdown-content { position: static; display: none; box-shadow: none; border: none; padding: 0; width: 100%; background: rgba(0,0,0,0.15); margin-top: 5px; border-radius: 8px; overflow: hidden; }
    .dropdown.mobile-open .dropdown-content { display: flex; }
    
    .dropdown-content a { border-bottom: 1px solid rgba(255,255,255,0.02); }
}

footer { width: 100%; background: var(--primary-dark); color: #d8b4fe; padding: 40px max(20px, calc((100% - var(--site-width)) / 2)) !important; text-align: center; margin-top: auto; border-top: 4px solid var(--primary-light); }



/* =========================================
   MYSTICAL NUMEROLOGY BACKGROUND VIBE
========================================= */
.bg-pattern { 
    position: fixed; 
    top: 60px; 
    left: -50px; 
    width: 600px; 
    max-width: 100vw; 
    height: 600px; 
    max-height: 100vh; 
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA2MDAgNjAwJz48ZyBzdHJva2U9J3JnYmEoNzYsMjksMTQ5LDAuMDcpJyBzdHJva2Utd2lkdGg9JzInIGZpbGw9J25vbmUnPjxjaXJjbGUgY3g9JzMwMCcgY3k9JzMwMCcgcj0nMjUwJy8+PGNpcmNsZSBjeD0nMzAwJyBjeT0nMzAwJyByPScyMzAnIHN0cm9rZS1kYXNoYXJyYXk9JzggMTInLz48Y2lyY2xlIGN4PSczMDAnIGN5PSczMDAnIHI9JzE2MCcvPjxwYXRoIGQ9J00zMDAgMTQwIEwzMzUgMjUwIEw0NTIgMjUwIEwzNTcgMzE4IEwzOTMgNDI5IEwzMDAgMzYxIEwyMDYgNDI5IEwyNDIgMzE4IEwxNDcgMjUwIEwyNjQgMjUwIFonIC8+PHBhdGggZD0nTTMwMCA1MCBMMzAwIDU1MCBNNTAgMzAwIEw1NTAgMzAwIE0xMjMgMTIzIEw0NzYgNDc2IE0xMjMgNDc2IEw0NzYgMTIzJyBzdHJva2U9J3JnYmEoNzYsMjksMTQ5LDAuMDMpJy8+PC9nPjxnIGZpbGw9J3JnYmEoNzYsMjksMTQ5LDAuMTApJyBmb250LWZhbWlseT0nc2Fucy1zZXJpZicgZm9udC1zaXplPScyOCcgZm9udC13ZWlnaHQ9J2JvbGQnIHRleHQtYW5jaG9yPSdtaWRkbGUnPjx0ZXh0IHg9JzMwMCcgeT0nNDAnPjE8L3RleHQ+PHRleHQgeD0nNDgzJyB5PScxMTYnPjI8L3RleHQ+PHRleHQgeD0nNTYwJyB5PSczMDAnPjM8L3RleHQ+PHRleHQgeD0nNDgzJyB5PSc0ODMnPjQ8L3RleHQ+PHRleHQgeD0nMzAwJyB5PSc1NjAnPjU8L3RleHQ+PHRleHQgeD0nMTE2JyB5PSc0ODMnPjY8L3RleHQ+PHRleHQgeD0nNDAnIHk9JzMwMCc+NzwvdGV4dD48dGV4dCB4PScxMTYnIHk9JzExNic+ODwvdGV4dD48dGV4dCB4PSczMDAnIHk9JzMxMCc+OTwvdGV4dD48L2c+PC9zdmc+"); 
    background-position: center; 
    background-repeat: no-repeat; 
    background-size: contain; 
    z-index: -1; 
    pointer-events: none; 
}

/* PANELS & READABILITY */
.body-content { font-size: 15px; color: var(--text-light); line-height: 1.7; margin-bottom: 15px; }
.content-panel, .content-card, .chart-panel { background: var(--card-bg); border-radius: 16px; border: 1px solid var(--border-line); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); padding: 30px; margin-bottom: 25px; }
.chart-panel { display: flex; flex-direction: column; align-items: center; text-align: center; }
.chart-panel h3 { width: 100%; text-align: left; }
.content-panel h3, .chart-panel h3 { margin-top: 0; color: var(--primary-dark); font-size: 18px; border-bottom: 1px solid var(--border-line); padding-bottom: 12px; }
.section-title { font-size: 20px; color: var(--primary-dark); border-bottom: 2px solid var(--border-line); padding-bottom: 12px; display: flex; align-items: center; gap: 12px; font-weight: 600; margin: 0 0 20px 0; }

/* INPUT FORM PAGE & HERO FEATURES */
.hero-layout { display: grid; grid-template-columns: 1.2fr 420px; gap: 50px; align-items: center; margin: 20px auto 40px auto; }
.hero-title { 
    font-size: 32px; /* Decreased from 40px for a more professional look */
    line-height: 1.3; 
    color: var(--primary-dark); 
    margin-top: 0 !important; /* Forces perfect top alignment with sidebar */
    margin-bottom: 25px; 
    font-family: 'Poppins', sans-serif; 
    font-weight: 700;
}
.hero-title span { color: var(--primary-light); }
.hero-features { list-style: none; padding: 0; margin-bottom: 0; }
.hero-features li { display: flex; align-items: flex-start; font-size: 15px; margin-bottom: 15px; color: var(--text-dark); line-height: 1.6; }
.hero-features li svg { width: 20px; height: 20px; color: var(--primary-light); margin-right: 12px; margin-top: 2px; flex-shrink: 0; }
.hero-features strong { color: var(--primary-dark); font-weight: 600; }

.input-panel { background: var(--card-bg); padding: 40px 35px; border-radius: 20px; box-shadow: 0 15px 40px rgba(107,33,168,0.08); border: 1px solid var(--border-line); }
.input-panel h3 { margin-top: 0; color: var(--primary-dark); font-size: 20px; margin-bottom: 20px; text-align: center; }
.input-group { margin-bottom: 18px; }
.input-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-light); font-size: 13px; text-transform: uppercase; }
/* FORCES ALL INPUTS AND DROPDOWNS TO BE THE EXACT SAME SIZE */
.input-group input, .input-group select { 
    width: 100%; 
    height: 50px; /* Fixed height instead of padding */
    padding: 0 15px; 
    border: 2px solid var(--border-line); 
    border-radius: 10px; 
    font-size: 15px; 
    background: #fdfcff; 
    color: var(--text-dark); 
    transition: 0.3s; 
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.input-group input:focus, .input-group select:focus { 
    border-color: var(--primary-light); 
    background: #fff; 
    box-shadow: 0 0 0 4px rgba(147,51,234,0.1); 
}
.btn-submit { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; border: none; padding: 16px 25px; font-size: 16px; border-radius: 10px; cursor: pointer; width: 100%; font-weight: 600; text-transform: uppercase; margin-top: 10px; box-shadow: 0 8px 20px rgba(147,51,234,0.25); transition: 0.3s; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(147,51,234,0.35); }

/* BUTTONS */
.btn-back, .btn-print { background: #fff; border: 1px solid var(--border-line); color: var(--text-dark); padding: 10px 18px; border-radius: 25px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.btn-print { background: var(--primary-dark); color: #fff; border: none; }

/* PROFILE BANNER */
.report-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.profile-hero { display: flex; align-items: center; gap: 20px; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); padding: 25px; border-radius: 16px; color: #fff; margin-bottom: 25px; box-shadow: 0 10px 25px rgba(76, 29, 149, 0.12); }
.profile-avatar { width: 70px; height: 70px; background: var(--accent-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; border: 3px solid rgba(255,255,255,0.2); }
.profile-info h2 { margin: 0 0 6px 0; font-size: 24px; font-weight: 700; text-transform: uppercase; }
.meta-item { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.meta-item svg { width: 16px !important; height: 16px !important; }

/* CORE GRID */
.core-grid { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; }
.core-card { flex: 1; min-width: 130px; background: var(--card-bg); padding: 20px 12px; border-radius: 12px; text-align: center; border: 1px solid var(--border-line); border-top: 4px solid var(--primary-light); box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.core-card.highlight { border-top-color: var(--accent-gold); }
.core-card h4 { margin: 0; font-size: 13px; color: var(--text-light); text-transform: uppercase; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.core-card h4 span { font-weight: 400; font-size: 11px; opacity: 0.8; }
.core-card .value { font-size: 28px; font-weight: 700; color: var(--primary-dark); margin: 8px 0; line-height: 1; }
.core-card .subtitle { font-size: 12px; font-weight: 600; color: var(--accent-gold); text-transform: uppercase; }

/* LO SHU MATRIX */
.loshu-matrix { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 8px; background: var(--border-line); padding: 8px; border-radius: 12px; margin: 20px auto; width: 220px; height: 220px; }
.matrix-cell { background: var(--cell-bg); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: var(--primary-dark); position: relative; border-radius: 6px; }
.matrix-cell small { position: absolute; top: 4px; left: 6px; font-size: 11px; color: #a78bfa; font-weight: normal; }

/* ICONS & ALERTS */
.icon-box { background: var(--cell-bg); width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-line); color: var(--primary); flex-shrink: 0; }
.icon-box svg { width: 18px !important; height: 18px !important; flex-shrink: 0; }
.alert-box { padding: 16px 20px; border-radius: 10px; font-size: 14px; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; line-height: 1.6; border: 1px solid; }
.alert-box.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-box.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-box.danger { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.alert-box svg { width: 22px !important; height: 22px !important; flex-shrink: 0; margin-top: 2px; }

/* CHECKLIST & RULES ICONS */
.check-item .icon-slot svg { width: 22px !important; height: 22px !important; flex-shrink: 0; }
.rules-list li svg { width: 24px !important; height: 24px !important; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.hero-features li svg { width: 22px !important; height: 22px !important; color: var(--primary-light); margin-right: 12px; margin-top: 2px; flex-shrink: 0; }

/* COSMIC ALIGNMENTS */
.lucky-grid { display: grid; gap: 15px; grid-template-columns: repeat(3, 1fr); }
.lucky-item { border: 1px solid; padding: 18px; border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.item-good { background: #f0fdf4; border-color: #bbf7d0; }
.item-bad { background: #fff1f2; border-color: #fecdd3; }
.lucky-label { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.item-good .lucky-label { color: #166534; }
.item-bad .lucky-label { color: #9f1239; }
.number-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.number-pill { font-weight: 600; font-size: 14px; padding: 4px 12px; border-radius: 18px; }
.pill-good { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.pill-bad { background: #fee2e2; color: #b91c1c; border: 1px solid #fecdd3; }
.color-swatch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; background: #fff; padding: 4px 12px; border-radius: 15px; border: 1px solid #e2e8f0; }
.color-circle { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,0.15); }
.text-bold { font-weight: 600; color: var(--text-dark); font-size: 15px; }

/* SYNERGY & BENCHMARKS */
.synergy-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px dashed var(--border-line); padding-bottom: 15px; margin-bottom: 15px; }
.synergy-title { font-size: 16px; font-weight: 600; color: var(--primary-dark); display: flex; align-items: center; gap: 8px; }
.synergy-badge { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #fff; }
.badge-strong { background: #059669; } .badge-good { background: #3b82f6; } .badge-mixed { background: #d97706; } .badge-weak { background: #ef4444; }

.benchmark-list { display: flex; flex-direction: column; gap: 10px; }
.benchmark-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--border-line); border-radius: 10px; }
.bench-text strong { display: block; font-size: 15px; color: var(--text-dark); margin-bottom: 4px; }
.bench-text span { font-size: 13px; color: var(--text-light); }
.status-badge { font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 15px; text-transform: uppercase; }
.status-pass { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.status-fail { background: var(--cell-bg); color: var(--text-light); border: 1px solid var(--border-line); }

/* EQUAL HEIGHT PANELS MAGIC */
.analysis-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; margin-bottom: 25px; align-items: stretch; }
.analysis-layout > .content-panel { display: flex; flex-direction: column; height: 100%; margin-bottom: 0; }
.mt-auto { margin-top: auto !important; }

/* MISSING & YOGAS */
.missing-box-inner { background: #fff1f2; padding: 20px; border-radius: 10px; border: 1px solid #fecdd3; margin-top: 20px; width: 100%; text-align: left; margin-bottom: 15px; }
.missing-box-inner h4, .yoga-box h4 { margin: 0 0 10px 0; color: #be123c; font-size: 13px; text-transform: uppercase; text-align: left; }
.missing-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
.missing-pill { background: #fff; border: 1px solid #fda4af; color: #be123c; padding: 4px 12px; border-radius: 6px; font-size: 13px; font-weight: 600;}
.yoga-box { background: #fffbeb; padding: 20px; border-radius: 10px; border: 1px solid #fde68a; width: 100%; text-align: left; }
.yoga-box h4 { color: #b45309; }
.yoga-box ul { margin: 0; padding-left: 20px; font-size: 14px; color: #78350f; line-height: 1.6; text-align: left;}

/* TRAITS & PRO (Beautiful padded cards) */
.traits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.trait-col { background: #fff; padding: 25px; border-radius: 12px; border: 1px solid var(--border-line); box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.trait-positive { border-top: 4px solid var(--highlight-green); }
.trait-negative { border-top: 4px solid var(--highlight-red); }
.trait-col h4 { font-size: 16px; margin: 0 0 15px 0; display: flex; align-items: center; gap: 8px; }
.trait-positive h4 { color: var(--highlight-green); }
.trait-negative h4 { color: var(--highlight-red); }
.trait-list { margin: 0; padding-left: 18px; font-size: 14px; color: var(--text-light); line-height: 1.7; }
.trait-list li { margin-bottom: 8px; }

/* PRO GRID */
.pro-grid { display: grid; grid-template-columns: 1fr; gap: 20px; } 
.pro-card { background: #fff; border: 1px solid var(--border-line); padding: 25px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.pro-card h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px 0; font-size: 17px; color: var(--primary-dark); }
.pro-card p { font-size: 15px; color: var(--text-light); margin-bottom: 12px; line-height: 1.7; }
.highlight-box { background: var(--cell-bg); border-left: 4px solid var(--primary); padding: 15px 20px; border-radius: 0 8px 8px 0; font-size: 14px; color: var(--text-dark); line-height: 1.6; }
.pro-label-good { display: block; margin: 15px 0 6px; color: var(--highlight-green); font-size: 14px; font-weight: 600; }
.pro-label-bad { display: block; margin: 15px 0 6px; color: var(--highlight-red); font-size: 14px; font-weight: 600; }
.pro-label-neutral { display: block; margin-top: 15px; color: var(--text-dark); font-size: 14px; font-weight: 600; border-top: 1px dashed var(--border-line); padding-top: 12px; }

/* FORECAST */
.forecast-list { display: flex; flex-direction: column; gap: 15px; }
.forecast-box-full { background: #fff; border: 1px solid var(--border-line); padding: 20px; border-radius: 12px; }
.forecast-box-full.current { background: var(--cell-bg); border-color: var(--primary-light); box-shadow: 0 4px 15px rgba(107,33,168,0.04); }
.forecast-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.forecast-year { font-weight: 700; color: var(--text-dark); font-size: 16px; }
.current .forecast-year { color: var(--primary); }
.forecast-theme-num { font-weight: 600; color: var(--primary-light); font-size: 14px; }
.forecast-title { display: block; font-size: 16px; color: var(--primary-dark); margin-bottom: 8px; font-weight: 600; }
.forecast-action-split { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; border-top: 1px dashed var(--border-line); padding-top: 15px; }
.fc-box { background: #fff; padding: 15px; border-radius: 8px; border: 1px solid var(--border-line); }
.fc-label-action { color: var(--highlight-green); font-size: 13px; display: block; margin-bottom: 6px; font-weight: 600; }
.fc-label-caution { color: var(--highlight-red); font-size: 13px; display: block; margin-bottom: 6px; font-weight: 600; }
.fc-text { font-size: 14px; color: var(--text-dark); line-height: 1.6; }

/* NAME BREAKDOWN */
.name-breakdown { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 15px 0; }
.name-char-box { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-line); border-radius: 6px; width: 38px; text-align: center; overflow: hidden; }
.name-char { background: var(--primary); color: white; padding: 6px 0; font-weight: 600; font-size: 14px; }
.name-val { padding: 4px 0; font-size: 13px; font-weight: 600; background: var(--cell-bg); }
.name-total-box { margin-top: 15px; padding: 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; font-size: 14px; color: #92400e; text-align: center; margin-bottom: 15px; }

/* GUIDES & LONG FORM SEO CONTENT */
.guide-article { padding-top: 30px; }
.guide-article h2 { color: var(--primary-dark); font-size: 26px; margin: 40px 0 20px; border-bottom: 2px solid var(--border-line); padding-bottom: 12px; font-family: 'Poppins', sans-serif; font-weight: 700; }
.guide-article h3 { color: var(--primary); font-size: 20px; margin: 30px 0 12px; font-family: 'Poppins', sans-serif; font-weight: 600; }
.guide-article p { font-size: 16px; color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }
.guide-article ul { margin-bottom: 25px; padding-left: 20px; list-style-type: disc; color: var(--text-light); }
.guide-article li { font-size: 16px; line-height: 1.8; margin-bottom: 12px; }
.guide-article strong { color: var(--text-dark); font-weight: 600; }
.guide-btn-wrap { text-align: center; margin-top: 40px; margin-bottom: 20px; }

/* =========================================
   COMPACT LIVE WORKBENCH STYLES
========================================= */
.workbench-grid { display: grid; grid-template-columns: 1fr 340px; gap: 25px; align-items: start; }
.live-output-display { display: flex; gap: 12px; margin-bottom: 15px; }
.output-box { flex: 1; background: #fff; border: 1px solid var(--border-line); border-radius: 8px; padding: 10px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.output-box span { display: block; font-size: 11px; font-weight: 700; color: var(--text-light); text-transform: uppercase; margin-bottom: 2px; }
.output-box strong { font-size: 22px; color: var(--primary-dark); line-height: 1; font-family: 'Poppins', sans-serif; }

.health-score-card { display: flex; align-items: center; gap: 15px; background: #faf5ff; border: 1px solid #e9d8f4; border-radius: 8px; padding: 15px; box-shadow: 0 4px 10px rgba(107,33,168,0.03); }
.score-circle { width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; font-family: 'Poppins', sans-serif; border: 4px solid #e2e8f0; flex-shrink: 0; background: #fff; transition: 0.5s ease-in-out; }
.score-circle.excellent { border-color: var(--highlight-green); color: var(--highlight-green); }
.score-circle.good { border-color: var(--accent-gold); color: var(--accent-gold); }
.score-circle.poor { border-color: var(--highlight-red); color: var(--highlight-red); }
.score-details h4 { margin: 0 0 2px 0; font-size: 14px; color: var(--primary-dark); }
.score-details p { margin: 0; font-size: 12px; color: var(--text-light); line-height: 1.4; }

.checklist-panel { background: #fff; border: 1px solid var(--border-line); border-radius: 8px; padding: 18px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.checklist-panel h4 { margin: 0 0 15px 0; font-size: 15px; color: var(--primary-dark); border-bottom: 1px dashed var(--border-line); padding-bottom: 8px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; transition: 0.3s; }
.check-item .icon-slot svg { width: 18px !important; height: 18px !important; margin-top: 1px; }
.check-item.pass { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.check-item.fail { background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; }

/* Compact Letter Grids & Inputs */
.input-group input { padding: 10px 14px; font-size: 14px; margin-bottom: 5px; }
.name-breakdown { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-start; margin-bottom: 15px; }
.name-char-box { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-line); border-radius: 4px; width: 30px; text-align: center; overflow: hidden; }
.name-char { background: var(--primary); color: white; padding: 3px 0; font-weight: 600; font-size: 13px; }
.name-val { padding: 2px 0; font-size: 11px; font-weight: 600; background: var(--cell-bg); }

/* Compact Chaldean Reference */
.chaldean-reference-chart { display: flex; flex-wrap: wrap; gap: 6px; background: var(--cell-bg); padding: 12px; border-radius: 8px; border: 1px dashed var(--border-line); justify-content: center; margin-bottom: 15px; }
.chaldean-col { display: flex; flex-direction: column; align-items: center; background: #fff; border: 1px solid var(--border-line); border-radius: 6px; padding: 4px 10px; min-width: 45px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.chaldean-num { font-weight: 700; color: var(--primary); font-size: 14px; border-bottom: 1px solid #eee; width: 100%; text-align: center; padding-bottom: 2px; margin-bottom: 2px; }
.chaldean-chars { font-size: 11px; color: var(--text-light); font-weight: 600; white-space: nowrap; }

.compound-badge { padding: 12px 15px; border-radius: 8px; margin-top: 15px; font-size: 13px; line-height: 1.5; display: none; }
.compound-badge.lucky { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.compound-badge.warning { background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; }

/* =========================================
   RECOMMENDATION GRID (SINGLE LINE)
========================================= */
.recommendation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 5px; }
.target-card { background: #fff; border: 1px solid var(--border-line); border-radius: 8px; padding: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); display: flex; flex-direction: column; transition: 0.3s; }
.target-card.best { border-left: 4px solid var(--highlight-green); }
.target-card.avoid { border-left: 4px solid var(--highlight-red); background: #fffafb; }
.target-card h4 { margin: 0 0 8px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; color: var(--primary-dark); font-weight: 600; line-height: 1.2; }
.target-card p { margin: 0; font-size: 13px; color: var(--text-light); line-height: 1.5; }
.badge-rec { font-size: 9px; font-weight: 700; padding: 3px 6px; border-radius: 12px; text-transform: uppercase; display: inline-block; }
.badge-rec.best { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-rec.avoid { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

/* =========================================
   LANDING PAGE STYLES (INDEX.PHP)
========================================= */
.landing-hero { text-align: center; padding: 60px 20px 40px; display: flex; flex-direction: column; align-items: center; }
.hero-subtitle { font-size: 18px; color: var(--text-light); max-width: 800px; margin: 0 auto 30px auto; line-height: 1.7; }
.cta-group { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 15px; margin-bottom: 30px; }

.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; border: none; padding: 14px 28px; font-size: 15px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; text-transform: uppercase; text-decoration: none; box-shadow: 0 8px 20px rgba(147,51,234,0.25); transition: 0.3s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(147,51,234,0.35); }
.btn-primary svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-secondary { background: #fff; border: 2px solid var(--primary-light); color: var(--primary-dark); padding: 14px 28px; font-size: 15px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; text-transform: uppercase; text-decoration: none; transition: 0.3s; }
.btn-secondary:hover { background: var(--cell-bg); transform: translateY(-2px); }

/* Tools Grid */
.tools-section { margin-bottom: 50px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.tool-card { background: var(--card-bg); border-radius: 16px; border: 1px solid var(--border-line); padding: 35px 30px; text-align: left; box-shadow: 0 4px 15px rgba(0,0,0,0.02); transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.tool-card:hover:not(.disabled) { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(107,33,168,0.08); border-color: var(--primary-light); }

.tool-icon-wrapper { width: 60px; height: 60px; background: var(--cell-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 25px; transition: 0.3s; border: 1px solid var(--border-line); }
.tool-icon-wrapper svg { width: 28px; height: 28px; flex-shrink: 0; }
.tool-card:hover:not(.disabled) .tool-icon-wrapper { background: var(--primary); color: #fff; border-color: var(--primary); }

.tool-card h3 { color: var(--primary-dark); font-size: 20px; margin: 0 0 12px 0; font-family: 'Poppins', sans-serif; font-weight: 700; }
.tool-desc { color: var(--text-light); font-size: 14px; line-height: 1.7; margin-bottom: 25px; flex-grow: 1; }
.tool-link { font-weight: 700; color: var(--primary); text-transform: uppercase; font-size: 13px; letter-spacing: 0.5px; transition: 0.3s; display: inline-flex; align-items: center; gap: 4px; }
.tool-card:hover:not(.disabled) .tool-link { color: var(--primary-dark); }

/* Disabled Card (Coming Soon) */
.tool-card.disabled { cursor: default; }
.tool-card.disabled .tool-icon-wrapper { opacity: 0.5; background: #f8f6fc; color: #94a3b8; border-color: #e2e8f0; }
.tool-link.disabled-link { color: #94a3b8; }
.badge-soon { position: absolute; top: 25px; right: 25px; background: var(--accent-gold); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 15px; box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2); }

/* Trust Section */
.trust-section { padding: 40px; margin-bottom: 60px; }
.trust-title { margin-top: 0; justify-content: center; border-bottom: none; font-size: 26px; margin-bottom: 30px; text-align: center; }
.dual-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; text-align: left; }
.trust-col h4 { color: var(--primary-dark); font-family: 'Poppins', sans-serif; font-size: 18px; margin: 0 0 10px 0; font-weight: 600; }

@media (max-width: 900px) {
    .recommendation-grid { grid-template-columns: repeat(2, 1fr); }
    .workbench-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .recommendation-grid { grid-template-columns: 1fr; }
    .dual-col { grid-template-columns: 1fr; gap: 25px; }
    .trust-section { padding: 30px 20px; }
    .landing-hero { padding: 30px 10px; }
}

/* PERFECT PDF PRINT STYLES - 1 COLUMN MAGIC */
@media print {
    @page { margin: 1.2cm; }
    body { background-color: #ffffff !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; zoom: 95%; }
    
    header, footer, nav, .top-navbar, .report-controls, 
    .mobile-toggle-btn, .mobile-bottom-nav, #mobile-menu, .floating-nav { display: none !important; }
    
    .page-container { margin: 0 !important; max-width: 100% !important; padding: 0 !important; }
    .content-panel, .core-card, .pro-card, .forecast-box-full, .lucky-item, .trait-col { 
        box-shadow: none !important; border: 1px solid #e9d8f4 !important; page-break-inside: avoid !important; break-inside: avoid !important;
    }
    .analysis-layout { display: block !important; }
    .analysis-layout > div { width: 100% !important; margin-bottom: 20px !important; }
    .traits-grid { display: block !important; }
    .trait-col { width: 100% !important; margin-bottom: 15px !important; }
    .pro-grid { display: block !important; }
    .pro-card { width: 100% !important; margin-bottom: 15px !important; }
    .forecast-action-split { display: block !important; }
    .fc-box { width: 100% !important; margin-bottom: 10px !important; }
    
    .lucky-grid { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; }
    .lucky-item { flex: 1 1 30% !important; }
    .core-grid { display: flex !important; flex-wrap: nowrap !important; }
    .bg-pattern, .profile-hero::after { display: none !important; }
    .page-break { page-break-before: always !important; break-before: page !important; }
}

@media (max-width: 900px) {
    .lucky-grid, .analysis-layout, .traits-grid, .forecast-action-split { grid-template-columns: 1fr !important; }
    .hero-layout { grid-template-columns: 1fr; }
    .core-grid { grid-template-columns: repeat(2, 1fr); }
}
/* =========================================
   PAGE-SPECIFIC SIDEBAR LAYOUT
========================================= */
.layout-with-sidebar {
    display: grid !important;
    grid-template-columns: 1fr 320px !important; 
    gap: 40px !important;
    align-items: start;
    max-width: var(--site-width) !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    width: 100%;
}

/* 1. Stack the Hero section vertically inside the left column */
.layout-with-sidebar .hero-layout {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
}

/* 2. Make the input form a sleek 2-column grid so it fills the wide space beautifully */
.input-panel form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
    align-items: start;
}

/* 3. Force the submit button and secure text to span across both columns at the bottom */
.input-panel .btn-submit,
.input-panel .secure-text {
    grid-column: 1 / -1;
}

/* Sidebar Container */
.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border-line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    position: sticky; 
    top: 90px; 
}

.sidebar-header {
    background: var(--cell-bg);
    color: var(--primary-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-line);
}

.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li { border-bottom: 1px solid #f1f5f9; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a {
    display: block; padding: 14px 20px; color: var(--text-dark);
    text-decoration: none; font-size: 14px; transition: 0.2s ease;
}
.sidebar-list a:hover {
    background: var(--bg-main); color: var(--primary);
    padding-left: 25px; font-weight: 600;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .layout-with-sidebar { grid-template-columns: 1fr !important; }
    .sidebar-widget { position: static; margin-top: 40px; }
}

@media (max-width: 768px) {
    /* Stack the form inputs on mobile phones */
    .input-panel form { grid-template-columns: 1fr; }
}

@media print {
    .sidebar-widget { display: none !important; }
    .layout-with-sidebar { display: block !important; }
    
    
    /* =========================================
   REUSABLE DATE OF BIRTH (NUMBER INPUTS)
========================================= */
.date-input-group { 
    display: flex; 
    gap: 10px; 
    width: 100%; 
}
.date-input-group input {
    flex: 1;
    text-align: center;
    -moz-appearance: textfield; /* Hides spinner in Firefox */
    font-family: 'Inter', sans-serif;
}
/* Hides spinner in Chrome/Safari/Edge */
.date-input-group input::-webkit-inner-spin-button, 
.date-input-group input::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
.hidden-label {
    visibility: hidden;
    display: block;
    margin-bottom: 8px;
}
.tip-text {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
    padding-top: 12px;
}



@media (max-width: 768px) {
    .hidden-label { display: none; }
    .tip-text { padding-top: 0; margin-bottom: 15px; }
}

/* Screening Page Specific Banners (if not already in style.css) */
.status-hero-banner { padding: 24px 28px; border-radius: 14px; margin-bottom: 25px; border: 1px solid transparent; }
.status-hero-banner.conflict { background: #fff1f2; border-color: #fecdd3; color: #9f1239; box-shadow: 0 4px 15px rgba(225, 29, 72, 0.04); }
.status-hero-banner.favourable { background: #f0fdf4; border-color: #bbf7d0; color: #166534; box-shadow: 0 4px 15px rgba(22, 101, 52, 0.04); }
.consult-cta-box { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: #fff; padding: 35px 30px; border-radius: 16px; text-align: center; margin-top: 35px; box-shadow: 0 10px 25px rgba(76, 29, 149, 0.15); }
.consult-cta-box h3 { font-size: 22px; margin: 0 0 10px 0; color: #fff; font-family: 'Poppins', sans-serif; }
.consult-cta-box p { font-size: 14px; margin: 0 auto 22px auto; max-width: 750px; opacity: 0.9; line-height: 1.7; }

@media (max-width: 768px) {
    .hidden-label { display: none; }
    .tip-text { padding-top: 0; margin-bottom: 15px; }
}
}

/* =========================================
   UTILITIES & EXTRACTED CLASSES
========================================= */
.mt-0 { margin-top: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-25 { margin-bottom: 25px !important; }
.text-center { text-align: center !important; }
.text-justify { text-align: justify; hyphens: auto; }
.w-auto { width: auto !important; }

/* Grid specific to features */
.features-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

/* Custom Scroll Up Button */
.btn-scroll-up { display: inline-flex; padding: 14px 35px; text-decoration: none; border-radius: 8px; }

/* =========================================
   REUSABLE DOB INPUT COMPONENT
========================================= */
.date-input-group { 
    display: flex; 
    gap: 10px; 
    width: 100%; 
}
.date-input-group input {
    flex: 1;
    text-align: center;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    font-weight: 600;
}
/* Focus state for individual inputs */
.date-input-group input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(147,51,234,0.1);
}
.secure-text { font-size: 12px; color: var(--text-light); margin-top: 15px; margin-bottom: 0; text-align: center; }

/* =========================================
   REPORT PAGE EXTRACTED STYLES
========================================= */
.color-swatch-wrapper { display: flex; flex-wrap: wrap; gap: 5px; }
.swatch-border-light { border: 1px solid #cbd5e1; }
.swatch-border-dark { border: 1px solid rgba(0,0,0,0.05); }

.alert-title { font-size: 14px; margin-bottom: 4px; display: block; font-weight: 700; }
.alert-balanced { justify-content: center; text-align: center; flex-direction: column; padding: 25px; }
.alert-balanced strong { font-size: 15px; margin-bottom: 6px; }
.alert-balanced span { font-size: 14px; }

/* Section Header Banner */
.section-header-banner { background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%); color: #fff; padding: 18px 25px; display: flex; align-items: center; gap: 12px; }
.section-header-banner h3 { margin: 0; border: none; padding: 0; color: #fff; }

/* Remedies Grid */
.remedies-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; margin-top: 15px; }
.remedy-card { background: var(--cell-bg); border: 1px solid var(--border-line); border-radius: 10px; padding: 18px; break-inside: avoid; page-break-inside: avoid; }
.remedy-header { display: flex; align-items: center; gap: 10px; border-bottom: 1px dashed rgba(107,33,168,0.15); padding-bottom: 10px; margin-bottom: 10px; }
.remedy-badge { background: var(--primary-light); color: #fff; padding: 4px 10px; border-radius: 15px; font-size: 12px; font-weight: bold; }
.remedy-planet { font-size: 13px; color: var(--text-light); font-weight: 600; text-transform: uppercase; }
.remedy-title { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.remedy-desc { font-size: 14px; line-height: 1.6; color: var(--text-dark); }

@media (max-width: 768px) {
    .features-grid-2 { grid-template-columns: 1fr; }
}

/* =========================================
   NAME CORRECTION WORKBENCH STYLES
========================================= */
.mb-0 { margin-bottom: 0 !important; }
.pb-20 { padding-bottom: 20px !important; }

/* Workbench Panel */
.workbench-panel {
    border: 2px solid var(--primary-light);
    margin-bottom: 30px;
    padding: 20px;
}
.workbench-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.live-label {
    margin: 0;
    font-size: 12px;
}
.live-total-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--cell-bg);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid var(--border-line);
    display: none;
}

/* Checklist Subtext */
.check-subtext {
    font-size: 12px;
    color: var(--text-light);
}
.check-item strong {
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}