﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700&display=swap');

:root {
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --primary-accent: #f39c12;
    /* Rich Orange-Gold */
    --text-main: #333333;
    --text-dim: #888888;
    --border-color: #e0e0e0;
    --transition-speed: 0.3s;
}

.dmc-wrapper {
    background-color: #ffffff;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
}

.dmc-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .dmc-container {
        padding: 20px;
        border-radius: 10px;
    }
}

/* Hide inactive sections */
.dmc-section {
    display: none;
}

.dmc-section.active {
    display: block;
}

/* Tabs Styling - Clean minimal design */
.dmc-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    background: transparent;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.dmc-tabs::-webkit-scrollbar {
    display: none;
}

.dmc-tab {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 30px;
    transition: var(--transition-speed);
    position: relative;
    border-bottom: 3px solid transparent;
}

.dmc-tab.active {
    background: linear-gradient(180deg, #2c3150 0%, #070314 100%) !important;
    color: #ffffff !important;
    border-radius: 4px 4px 0 0;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Gender Toggle - Clean design */
/* Gender Toggle - Box Design */
/* Gender Toggle - Box Design */
.dmc-gender-toggle {
    display: flex;
    border: 1px solid #070314;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
}

.dmc-gender-option {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 15px;
    line-height: normal;
    /* Match input height better */
    color: #070314;
    background: #fff;
    transition: all 0.3s;
    border-right: 1px solid #070314;
    font-weight: 500;
    /* Match input font weight */
}

.dmc-gender-option:last-child {
    border-right: none;
}

.dmc-gender-option:hover {
    background: #f9f9f9;
}

.dmc-gender-option.active {
    background: linear-gradient(180deg, #2c3150 0%, #070314 100%) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dmc-form {
    max-width: 650px;
    margin: 50px auto;
    /* Centered with top margin */
}

.dm-form-group {
    margin-bottom: 25px;
}

.dm-label {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.dmc-form input[type="text"],
.dmc-form input[type="date"],
.dmc-form input[type="time"],
.dmc-form select {
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #070314;
    border-radius: 4px;
    color: #070314;
    font-size: 15px;
    transition: var(--transition-speed);
    box-sizing: border-box;
}

.dmc-form input::placeholder {
    color: #070314;
    opacity: 0.5;
}


/* Custom Searchable Dropdown */
.dmc-custom-select {
    position: relative;
    width: 100%;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.dmc-select-selected {
    padding: 12px 16px;
    /* Match input padding */
    background: #fff;
    border: 1px solid #070314;
    /* Match input border */
    border-radius: 4px;
    /* Match input radius */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    /* Match input font size */
    color: #070314;
    transition: var(--transition-speed);
    box-sizing: border-box;
}

.dmc-select-selected .selected-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    /* Take up available space */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dmc-select-arrow {
    font-size: 10px;
    color: #999;
}

.dmc-select-dropdown {
    position: absolute;
    top: 100%;
    /* Align directly bottom */
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #070314;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 99999;
    /* Ensure it floats above everything */
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.dmc-custom-select.active .dmc-select-dropdown {
    display: block;
}

.dmc-select-search {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.dmc-select-search input {
    width: 100%;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 14px;
}

.dmc-select-options {
    max-height: 250px;
    overflow-y: auto;
}

.dmc-country-option {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.dmc-country-option:hover {
    background: #f5f5f5;
}

.dmc-flag {
    font-size: 18px;
}

.dmc-country-name {
    font-size: 14px;
    color: #333;
}

.dmc-form input:focus {
    outline: none;
    border-color: var(--primary-accent);
}

.dmc-result {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Main Result Titles matching reference */
.dmc-result-main-title {
    font-size: 28px !important;
    font-weight: 700;
    color: #333;
    margin: 30px 0 15px;
    text-align: center !important;
}

.dmc-user-info-header {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    text-align: center !important;
}

.dmc-main-result-header {
    font-size: 32px !important;
    font-weight: 800;
    color: #333;
    text-align: center;
    margin: 10px 0 15px;
    letter-spacing: -0.5px;
}

/* Updated Accordions matching image */
.dmc-accordion-container {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 30px;
}

.dmc-accordion-item {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.dmc-accordion-item:last-child {
    border-bottom: none;
}

.dmc-accordion-header {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(180deg, #1f2347 0%, #070314 100%);
    border-bottom: 1px solid #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.dmc-accordion-header:hover {
    background: #0f1128;
    /* Slightly lighter on hover */
}

.dmc-accordion-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    /* White text */
}

.dmc-accordion-icon {
    font-size: 10px;
    color: #fff;
    /* White icon */
}

/* Triangle icon style */
.dmc-accordion-icon::before {
    content: '▼';
}

.dmc-accordion-item.open .dmc-accordion-icon {
    transform: rotate(180deg);
}

.dmc-accordion-content {
    display: none;
    padding: 20px 15px;
    background: #fff;
    border-top: 1px solid #f9f9f9;
}

.dmc-accordion-item.open .dmc-accordion-content {
    display: block;
}

/* CTA & Bottom Buttons */
.dmc-cta-container {
    margin: 20px 0;
}

.dmc-btn-buy {
    background-color: #f39c12;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.dmc-bottom-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.dmc-btn-secondary {
    background: linear-gradient(180deg, #2c3150 0%, #070314 100%) !important;
    color: #fff !important;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    width: fit-content;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 12px rgba(7, 3, 20, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dmc-btn-secondary:hover,
.dmc-btn-secondary.reset-btn,
.dmc-btn-secondary.reset-btn:hover,
.dmc-btn-secondary.download-btn,
.dmc-btn-secondary.download-btn:hover {
    background: linear-gradient(180deg, #2c3150 0%, #070314 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(7, 3, 20, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.dm-arcana-badge {
    background: #fdfaf0;
    color: #f39c12;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid #f39c12;
}

/* Row/Grid */
.dmc-row {
    display: flex;
    gap: 20px;
}

.dmc-col {
    flex: 1;
}

/* Gender Cards */
.dmc-gender-cards {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.dmc-gender-card {
    flex: 1;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: var(--transition-speed);
    font-weight: 500;
}

.dmc-gender-card:first-child {
    border-right: 1px solid var(--border-color);
}

.dmc-gender-card {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fcfcfc;
    color: var(--text-main);
    font-size: 16px;
}

.dmc-gender-card.active {
    background: #fffdf0 !important;
    border-color: var(--primary-accent) !important;
    color: var(--primary-accent) !important;
    font-weight: 600;
}

/* Calculate Button */
.dmc-btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(180deg, #2c3150 0%, #070314 100%);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(7, 3, 20, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dmc-btn-primary:hover {
    background-color: #0f1128;
    box-shadow: 0 2px 8px rgba(7, 3, 20, 0.4);
}

/* Results Layout */
.dmc-chart-flex-row {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    align-items: flex-start;
}

.dmc-chakra-column {
    flex: 0 0 35%;
    min-width: 300px;
}

.dmc-chart-column {
    flex: 0 0 65%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff !important;
}

@media (max-width: 1024px) {
    .dmc-chart-flex-row {
        flex-direction: column;
    }

    .dmc-chakra-column,
    .dmc-chart-column {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.dmc-result {
    background: #ffffff !important;
    padding: 30px;
    border-radius: 15px;
}

.dmc-result-split {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.dmc-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .dmc-container {
        padding: 20px;
        border-radius: 10px;
    }
}

.dmc-column-left {
    flex: 1;
    min-width: 320px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.dmc-column-right {
    flex: 1.2;
    min-width: 400px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}



/* Duplicate Accordion styles removed to prevent conflicts */

/* Interpretation Details */
.dm-essence {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.dm-interpretation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dm-state-block {
    padding: 15px;
    border-radius: 8px;
}

.pos-state {
    background: rgba(38, 222, 129, 0.05);
    border-left: 3px solid #26de81;
}

.neg-state {
    background: rgba(235, 59, 90, 0.05);
    border-left: 3px solid #eb3b5a;
}

.dm-state-title {
    margin: 0 0 10px 0;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
}

.dm-points-list {
    margin: 0;
    padding: 0 0 0 15px;
    font-size: 13px;
    line-height: 1.5;
}

.dm-nums-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.dm-num-badge {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
}

.dm-num-badge strong {
    color: var(--primary-accent);
}

.dm-clean-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.dm-clean-table th,
.dm-clean-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #eee;
    font-size: 13px;
}

.dm-clean-table th {
    background: #fcfcfc;
}

/* Matrix Side-by-Side and Purposes Styles Update */

.dmc-chart-meta-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #f9f9f9;
}

.dmc-health-card-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.dmc-chart-flex-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 50px;
    justify-content: space-between;
}

.dmc-chakra-column {
    flex: 0.7;
    min-width: 280px;
    width: 35%;
}

.dmc-chakra-column {
    flex: 0.8;
    min-width: 300px;
    width: 40%;
}

.dmc-chart-column {
    flex: 1.2;
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
}

.dmc-chart-container {
    width: 100%;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dmc-chart-container svg {
    display: block;
}

.chakra-table {
    width: 100%;
    border-collapse: collapse;
}

.chakra-table th {
    padding: 12px 10px;
    text-align: left;
    font-size: 13px;
    color: #ffffff !important;
    font-weight: 700;
    border-bottom: 1px solid #000;
    background: linear-gradient(180deg, #2c3150 0%, #070314 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chakra-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.chakra-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chakra-info-cell strong {
    font-size: 13px;
    color: #333;
}

.chakra-info-cell small {
    font-size: 11px;
    color: #999;
}

.chakra-num-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
}

/* Generation Lines */
.dmc-gen-lines-container {
    margin: 40px 0;
}

.dmc-gen-line {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
}

.dmc-gen-circles {
    display: flex;
    gap: 12px;
}

.dmc-circle-num {
    width: 35px;
    height: 35px;
    border: 1.5px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

/* Dual Chart Layout for Compatibility */
.dmc-dual-chart.dmc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.dmc-tabs::-webkit-scrollbar {
    display: none;
}

.dmc-dual-chart-row {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
    justify-content: center;
}

.dmc-single-chart-container {
    flex: 1;
    max-width: 600px;
    text-align: center;
}

.dmc-chart-partner-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
    text-align: center;
}

/* Responsive: Stack charts vertically on smaller screens */
@media (max-width: 1024px) {
    .dmc-dual-chart-row {
        flex-direction: column;
        align-items: center;
    }

    .dmc-single-chart-container {
        max-width: 100%;
        width: 100%;
    }
}

/* Combined Compatibility Chart (centered below dual charts) */
.dmc-combined-chart-container {
    margin-top: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Partner Energy Analysis Tables */
.dmc-energy-tables-container {
    margin-top: 40px;
    padding: 40px 20px;
    background: #f8f9fa;
}

.dmc-energy-tables-heading {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 8px;
}

.dmc-energy-tables-subtitle {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 40px;
}

.dmc-energy-tables-row {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.dmc-energy-table-container {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dmc-energy-table-name {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    text-align: center;
}

.dmc-energy-table {
    width: 100%;
    border-collapse: collapse;
}

.dmc-energy-table thead tr {
    background: linear-gradient(180deg, #2c3150 0%, #070314 100%);
}

.dmc-energy-table thead th {
    padding: 10px;
    text-align: left;
    font-size: 12px;
    color: #ffffff !important;
    font-weight: 700;
    border-bottom: 1px solid #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dmc-energy-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.dmc-energy-table tbody tr.result-row {
    background: linear-gradient(180deg, #2c3150 0%, #070314 100%);
    color: white;
    font-weight: 600;
}

.dmc-energy-table td {
    padding: 8px 10px;
    font-size: 13px;
}

.dmc-energy-table .chakra-name-cell {
    color: #495057;
    font-weight: 500;
    text-align: left;
}

.dmc-energy-table .chakra-value-cell {
    text-align: center;
    color: #333;
    font-weight: 600;
    width: 60px;
}

.dmc-energy-table tr.result-row .chakra-name-cell,
.dmc-energy-table tr.result-row .chakra-value-cell {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .dmc-energy-tables-row {
        flex-direction: column;
    }

    .dmc-energy-table-container {
        width: 100%;
    }
}


/* Purposes */
.dmc-purposes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 50px 0;
}

.dmc-purpose-block h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.dmc-purpose-block p {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.dmc-purpose-svg {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dm-purpose-num-circ {
    width: 32px;
    height: 32px;
    border: 1px solid #aaa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* Fix Result Row in Table */
.chakra-table tr:last-child td {
    border-top: 2px solid #eee;
    font-weight: 700;
}

@media (max-width: 900px) {
    .dmc-chart-flex-row {
        flex-direction: column;
        gap: 30px;
    }

    .dmc-chakra-column,
    .dmc-chart-column {
        width: 100%;
        max-width: 100%;
    }

    .dmc-purposes-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Premium Interpretation Styles */
.dm-intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
    padding: 20px 25px;
    background: #fff;
    border-left: 4px solid #f1c40f;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.dm-state-section {
    margin-bottom: 35px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease;
}

.dm-state-section:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.dm-report-block {
    background: #ffffff;
    border: 1px solid #f1f2f6;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}

.dm-report-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
}

.dm-section-heading {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #f1f2f6;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dm-state-paragraph {
    font-size: 17px;
    line-height: 1.75;
    color: #444;
    margin-bottom: 25px;
    text-align: left;
}

.dm-sub-heading {
    display: block;
    /* To wrap around text */
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 30px 0 10px 0;
    padding: 0;
    background: transparent;
    border: none;
    line-height: 1.4;
    box-shadow: none;
}

.dm-state-paragraph strong {
    color: #d35400;
    font-weight: 600;
}

/* Specific styling for positive/negative sections */
.dm-state-section:has(.dm-section-heading:contains("Positive")) {
    background: linear-gradient(to bottom right, #fafffa, #ffffff);
    border-left: 4px solid #2ecc71;
}

.dm-state-section:has(.dm-section-heading:contains("Negative")) {
    background: linear-gradient(to bottom right, #fffafa, #ffffff);
    border-left: 4px solid #e74c3c;
}

.dm-health-analysis {
    margin-top: 20px;
    overflow-x: auto;
}

.dm-clean-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.dm-clean-table th {
    text-align: left;
    padding: 12px 15px;
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
}

.dm-clean-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f1f1;
    color: #555;
}

/* Remove old grid layout since we're using sections now */
.dm-interpretation-grid {
    display: block;
}

/* --- SPECIFIC SECTION STYLES --- */
.dm-styled-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.dm-styled-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
    font-size: 16px;
}

.dm-styled-list li:before {
    content: "•";
    color: #d35400;
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: -2px;
}

.dm-styled-list.check li:before {
    content: "✓";
    color: #27ae60;
    font-size: 14px;
    top: 1px;
}

.dm-styled-list.star li:before {
    content: "*";
    color: #f39c12;
    font-size: 18px;
    top: 4px;
}

.dm-styled-list.warning li:before {
    content: "!";
    font-weight: bold;
    color: #e74c3c;
    font-size: 14px;
    top: 1px;
}

.dm-timeline-box {
    border-left: 3px solid #3498db;
    padding-left: 15px;
    margin: 15px 0;
    font-size: 0.95em;
    color: #555;
    background: #fdfdfd;
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
}

.soft-bg {
    background: #fff0f5;
    border-left: 4px solid #ff69b4;
    padding: 15px;
    border-radius: 4px;
}

.emotional-bg {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
}

.spiritual-bg {
    background: #f3e5f5;
    border-left: 4px solid #9c27b0;
    padding: 15px;
    border-radius: 4px;
}

.dm-num-card {
    background: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.dm-num-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.dm-num-card strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
}

.dm-big-num {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* Dashboard Mathematical Brackets - Enhanced */
.dmc-purposes-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.dmc-purpose-block {
    flex: 1;
}

.dmc-purpose-block h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000;
}

.dmc-purpose-block p {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
    max-width: 250px;
}

.dm-form-group {
    margin-bottom: 20px;
    flex: 1;
    min-width: 250px;
}

@media (max-width: 480px) {
    .dm-form-group {
        min-width: 100%;
    }
}

.dmc-math-bracket-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dmc-math-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    /* Space between Sky and Earth */
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: right;
}

.dmc-math-left div {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* The Bracket Itself */
.dmc-math-bracket {
    width: 20px;
    height: 50px;
    /* Height spanning the two items */
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    border-right: 1px solid #333;
    border-radius: 0 5px 5px 0;
    /* Rounded corners on the right */
    position: relative;
    margin-right: 10px;
}

/* The little dash pointing to the result */
.dmc-math-bracket::after {
    content: '';
    position: absolute;
    right: -10px;
    /* Extend out to result */
    top: 50%;
    width: 10px;
    height: 1px;
    background: #333;
}

.dmc-math-result-circle,
.dmc-math-result .dmc-circle-num,
.dmc-circle-num {
    width: 40px;
    height: 40px;
    border: 1.5px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    background: #f5f5f5;
    color: #333;
    transition: all 0.3s ease;
}

.dmc-math-visual {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.dmc-math-labels {
    display: flex;
    flex-direction: column;
    gap: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: right;
    min-width: 60px;
}

.dmc-math-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Chakra Table Enhancements */
.chakra-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 30px;
    display: table;
}

.dmc-chakra-column {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.chakra-table thead tr {
    background: linear-gradient(180deg, #2c3150 0%, #070314 100%);
}

.dmc-wrapper .chakra-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: none;
    border: none;
}

.chakra-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #333;
    vertical-align: middle;
}

.chakra-table tr:last-child {
    background-color: #f9f9f9;
}

.chakra-table tr:last-child td {
    border-bottom: none;
    font-weight: 600;
}

.chakra-info-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chakra-num-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15), inset 0 2px 2px rgba(255, 255, 255, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.chakra-table tbody tr {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chakra-table tbody tr:hover {
    background-color: #fbfdff;
    transform: translateX(4px);
}

.chakra-info-cell div strong {
    font-size: 15px;
    color: #333;
    display: block;
    margin-bottom: 2px;
}

.chakra-info-cell div small {
    font-size: 12px;
    color: #888;
}

/* Responsive Fixes */
@media (max-width: 900px) {
    .dmc-purposes-grid {
        flex-direction: column;
    }
}

/* --- New Result Layout Styles --- */

.dmc-result-heading {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 30px 0 15px;
    padding-bottom: 5px;
}

.dmc-buy-access-wrapper {
    margin: 30px 0;
}

.dmc-btn-buy {
    display: inline-block;
    background: #f39c12;
    /* Fallback */
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    color: #fff;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dmc-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.dmc-bottom-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* 3 Columns */
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
}

.dmc-detail-col {
    font-size: 14px;
    color: #555;
}

.dmc-detail-col h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 5px;
    display: inline-block;
}

.dmc-gen-group {
    margin-bottom: 15px;
}

.dmc-circles-row {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.dmc-circle-sm {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid #ccc;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    background: #fff;
    margin-left: 5px;
}

.dmc-action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.dmc-btn-secondary {
    background: #e67e22;
    /* Use existing orange-red theme */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.dmc-btn-secondary:hover {
    background: #d35400;
}

@media (max-width: 768px) {
    .dmc-bottom-details {
        grid-template-columns: 1fr;
    }

    .dmc-action-buttons {
        flex-direction: column;
    }

    .dmc-chart-container {
        max-width: 100%;
        height: auto;
    }

    .dmc-main-result-header {
        font-size: 24px;
        text-align: center;
    }

    .dmc-user-info-header {
        font-size: 18px !important;
        text-align: center;
    }
}



/* Make chart numbers prominent (white stroke popping against backgrounds) */
.chart-node-text {
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 0.8px;
    font-weight: 950 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Compatibility Subsections */
.dm-comp-section {
    margin-bottom: 30px;
    border-left: 3px solid #6a2d8a;
    padding-left: 15px;
    margin-top: 10px;
}

.dm-comp-section h3 {
    font-size: 1.5em;
    /* Increased from 1.15em as requested */
    color: #333;
    margin-bottom: 15px;
    text-transform: none;
    /* Removed uppercase for consistency */
    letter-spacing: normal;
    font-weight: 700;
}

.dm-comp-item {
    margin-bottom: 20px;
}

.dm-comp-sub {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.dm-comp-para {
    font-size: 17px;
    line-height: 1.75;
    color: #444;
    margin: 0;
    text-align: justify;
}


/* Compatibility Score Section */
.dmc-compatibility-container {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    margin-top: 40px;
    border-radius: 12px;
}

.dmc-score-title {
    font-family: 'Playfair Display', serif;
    /* Elegant serif font */
    font-size: 28px;
    background: linear-gradient(180deg, #2c3150 0%, #070314 100%);
    color: #fff;
    /* White text on dark background */
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    margin: -60px -20px 30px -20px;
    /* Pull to edges of container */
    font-weight: 700;
}

.dmc-score-value {
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    color: #2c3150;
    /* Dark Theme Color */
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
}

.dmc-score-desc {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.dmc-score-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.dmc-score-tag {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #fff;
    transition: all 0.3s ease;
}

.dmc-score-tag:hover {
    border-color: #2c3150;
    color: #fff;
    background: #2c3150;
    transform: translateY(-2px);
}

.dm-comp-main-sub {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.3;
    display: block;
}

/* Compatibility Math Visualization */
.dmc-comp-math-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.dmc-comp-math-block {
    flex: 1;
    min-width: 280px;
    background: #fff;
    /* optional card bg if needed, or transparent */
}

.dmc-comp-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.dmc-comp-info p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 25px;
    min-height: 60px;
    /* Align visuals */
}

.dmc-math-visual {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dmc-math-labels {
    display: flex;
    flex-direction: column;
    gap: 25px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: right;
    min-width: 70px;
}

.dmc-math-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Vertical Bracket Logic */
.dmc-math-bracket-vertical {
    width: 20px;
    height: 70px;
    /* Spans the two input circles */
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    border-right: 1px solid #333;
    border-radius: 0 5px 5px 0;
    position: relative;
    margin-right: 10px;
}

.dmc-math-bracket-vertical::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    width: 10px;
    height: 1px;
    background: #333;
}

.dmc-math-result-circle {
    width: 45px;
    height: 45px;
    border: 1.5px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    background: #fff;
    color: #333;
}

@media (max-width: 900px) {
    .dmc-comp-math-container {
        flex-direction: column;
        gap: 40px;
    }

    .dmc-purposes-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .dmc-math-visual {
        justify-content: center;
    }
}