.kundli-detail-page {
    min-height: 100vh;
    padding: 105px 20px 60px;
}

.kundli-detail-container {
    max-width: 1130px;
    margin: 0 auto;
}

.kundli-profile-header {
    text-align: center;
    margin-bottom: 25px;
}

.kundli-profile-header h1 {
    margin: 0 0 8px;
    font-size: 34px;
    font-weight: 700;
}

.kundli-profile-header p {
    margin: 0;
    opacity: .65;
    font-size: 13px;
}


/* TABS */

.kundli-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.kundli-tab {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    padding: 10px 28px;
    border-radius: 22px;
    cursor: pointer;
    font-size: 13px;
}

.kundli-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}


/* CARDS */

.kundli-card {
    padding: 20px;
    margin-bottom: 18px;
    border-radius: 16px;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,.08),
        rgba(255,255,255,.03)
    );

    border: 1px solid rgba(255,255,255,.15);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    
}

.kundli-card h2 {
    margin: 0 0 16px;
    font-size: 16px;
}
.ashtakvarga-chart img {
    background: #fff;
}

/* BASIC */

.basic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, .12);
}

.detail-item span {
    color: rgba(255, 255, 255, .48);
    font-size: 11px;
    text-transform: uppercase;
}

.detail-item strong {
    text-align: right;
    font-size: 12px;
}


/* AVAKHADA */

.avakhada-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 28px;
}


/* CHART */

.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.chart-card {
    padding: 15px;
    border-radius: 13px;
    background: rgba(0, 0, 0, .16);
    border: 1px solid rgba(255, 255, 255, .12);
}
.api-chart-image img {
    background: #ffffff;
}

.chart-card h3 {
    margin: 0 0 10px;
    font-size: 13px;
}

.chart-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 360px;
    margin: auto;
    border: 2px solid rgba(255, 230, 0, .65);
    background: rgba(255, 230, 0, .035);
    overflow: hidden;
}

.chart-placeholder::before,
.chart-placeholder::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 230, 0, .65);
    transform: rotate(45deg);
}

.chart-placeholder::after {
    transform: rotate(-45deg);
}

.chart-diamond {
    position: absolute;
    left: 25%;
    top: 25%;
    width: 50%;
    height: 50%;
    transform: rotate(45deg);
    border: 1px solid rgba(255, 230, 0, .7);
}

.chart-diamond span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}


/* ASHTAKVARGA */

.ashtakvarga-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}


/* CHARTS */

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}


/* TABLE */

.table-wrapper {
    overflow-x: auto;
}

.kundli-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.kundli-table th,
.kundli-table td {
    padding: 9px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    font-size: 14px;
}

.kundli-table th {
    color: rgba(255, 255, 255, .55);
    font-size: 14px;
    text-transform: uppercase;
}

.kundli-table tbody tr:hover {
    background: rgba(255, 255, 255, .04);
}

.table-description,
.section-description {
    font-size: 14px;
    opacity: .55;
}


/* DASHA */

.section-heading-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.section-heading-row h2 {
    margin-bottom: 5px;
}

.section-heading-row p {
    margin: 0;
    font-size: 12px;
    opacity: .55;
}

.dasha-switch,
.chart-direction,
.report-subtabs {
    display: flex;
    gap: 5px;
}

.dasha-switch button,
.chart-direction button,
.report-subtabs button {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    color: white;
    padding: 7px 14px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 11px;
}

.dasha-switch button.active,
.chart-direction button.active,
.report-subtabs button.active {
    border-color: #ffe600;
}

.dasha-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dasha-card {
    padding: 15px;
    min-height: 190px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer;
}

.dasha-card.active {
    border-color: #ffe600;
}

.dasha-card h3 {
    margin: 0 0 5px;
    font-size: 13px;
}

.dasha-card small {
    opacity: .45;
}

.dasha-card p {
    font-size: 11px;
    line-height: 1.6;
    opacity: .7;
    margin: 8px 0 0;
}

.dasha-switch-center {
    justify-content: center;
    margin-bottom: 20px;
}

.dasha-section-hint {
    margin: 0 0 16px;
    font-size: 12px;
    opacity: .55;
}

.dasha-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    margin-bottom: 5px;
}

.dasha-card-header h3 {
    margin: 0;
}

.dasha-active-badge {
    display: inline-block;
    flex-shrink: 0;

    padding: 2px 8px;

    border-radius: 10px;

    background: #ffe600;
    color: #241300;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .4px;
}

.drill-btn {
    border: 1px solid #ffe600;
    color: white;
    background: transparent;
    border-radius: 15px;
    padding: 4px 10px;
    font-size: 10px;
}


/* REPORT */

.report-subtabs {
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.report-card {
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
}

.report-card h3 {
    font-size: 18px;
    margin: 0 0 8px;
}

.report-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    opacity: .7;
}


/* PDF CTA */

.kundli-pdf-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 25px;
    margin-top: 25px;
    border: 1px dashed #ffe600;
    border-radius: 16px;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,.08),
        rgba(255,255,255,.03)
    );

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 10px 35px rgba(0,0,0,.35);
}

.pdf-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #222;
    border-radius: 10px;
    font-size: 25px;
}

.pdf-content {
    flex: 1;
}

.pdf-content h3 {
    margin: 0 0 5px;
    font-size: 22px;
}

.pdf-content p {
    margin: 0;
}

.kundli-pdf-cta>button {
    border: 1px solid #ffe600;
    background: transparent;
    color: white;
    padding: 11px 22px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
}


/* ASTROLOGER CTA */

.kundli-astrologer-cta {
    margin-top: 25px;
    min-height: 300px;
    padding: 55px 25px;
    text-align: center;
    border-radius: 16px;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,.08),
        rgba(255,255,255,.03)
    );

    border: 1px solid rgba(255,255,255,.15);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    
}

.cta-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 100, 100, .5);
    border-radius: 50%;
}

.kundli-astrologer-cta h2 {
    margin: 0 0 15px;
    font-size: 28px;
}

.kundli-astrologer-cta p {
    max-width: 600px;
    margin: 0 auto 25px;
    color: #bfbfbf;
}



/* LOADING */

.kundli-detail-loading {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kundli-loading-spinner {
    opacity: .7;
}


/* NOT FOUND */

.kundli-not-found {
    text-align: center;
    padding: 100px 20px;
}

.kundli-not-found h1 {
    font-size: 28px;
}

.kundli-not-found p {
    opacity: .6;
}

.kundli-not-found button {
    border: 0;
    background: #ffe52f;
    color: #111;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
}


/* MOBILE */

@media (max-width: 768px) {

    .kundli-detail-page {
        padding: 90px 12px 40px;
    }

    .kundli-profile-header h1 {
        font-size: 25px;
    }

    .kundli-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }

    .kundli-tab {
        flex: 0 0 auto;
        padding: 9px 16px;
    }

    .basic-grid,
    .chart-grid {
        grid-template-columns: 1fr;
    }

    .avakhada-grid {
        grid-template-columns: 1fr;
    }

    .ashtakvarga-grid,
    .charts-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .report-grid {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .section-heading-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .kundli-pdf-cta {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .pdf-content {
        min-width: calc(100% - 75px);
    }

    .kundli-pdf-cta>button {
        width: 100%;
    }

    .kundli-astrologer-cta {
        padding: 45px 20px;
    }

    .kundli-astrologer-cta h2 {
        font-size: 24px;
    }
}