/* Tamil Jothidam - Frontend Styles */
 
.tj-birth-chart-form,
.tj-porutham-form,
.tj-prediction-section,
.tj-dasa-section {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: 'Noto Sans Tamil', sans-serif;
}
 
.tj-birth-chart-form h3,
.tj-porutham-form h3,
.tj-prediction-section h3,
.tj-dasa-section h3 {
    color: #ff6600;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5em;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 10px;
}
 
.tj-form-row {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
 
.tj-form-row label {
    min-width: 180px;
    font-weight: bold;
    color: #333;
}
 
.tj-form-row input,
.tj-form-row select {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}
 
.tj-form-row input:focus,
.tj-form-row select:focus {
    border-color: #ff6600;
    outline: none;
}
 
.tj-submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6600, #ff8533);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s;
}
 
.tj-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,102,0,0.4);
}
 
.tj-form-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
 
.tj-form-section h4 {
    color: #333;
    margin-bottom: 15px;
}
 
/* Result Area */
.tj-result-area {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
}
 
/* Rasi Chart (South Indian Style) */
.tj-rasi-chart {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 100px);
    gap: 2px;
    max-width: 500px;
    margin: 20px auto;
    border: 3px solid #333;
}
 
.tj-rasi-cell {
    border: 1px solid #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-align: center;
    padding: 5px;
    background: #fffef0;
}
 
.tj-rasi-cell.center {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
    background: #fff3e0;
    font-weight: bold;
    font-size: 14px;
}
 
/* Prediction Cards */
.tj-rasi-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}
 
.tj-rasi-btn {
    padding: 8px 16px;
    border: 2px solid #ff6600;
    background: #fff;
    color: #ff6600;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}
 
.tj-rasi-btn:hover,
.tj-rasi-btn.active {
    background: #ff6600;
    color: #fff;
}
 
.tj-prediction-card {
    background: linear-gradient(135deg, #fff9f0, #fff3e0);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #ff6600;
}
 
.tj-pred-item {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}
 
.tj-lucky {
    margin-top: 10px;
    color: #ff6600;
    font-weight: bold;
}
 
/* Porutham Results */
.tj-porutham-result-card {
    background: #f0fff0;
    padding: 20px;
    border-radius: 12px;
}
 
.tj-porutham-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 6px;
}
 
.tj-porutham-item.match {
    background: #e8f5e9;
}
 
.tj-porutham-item.no-match {
    background: #ffebee;
}
 
.tj-match-icon {
    font-size: 18px;
}
 
.tj-score-display {
    text-align: center;
    font-size: 2em;
    color: #ff6600;
    font-weight: bold;
    margin: 20px 0;
}
 
/* Dasa Table */
.tj-dasa-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
 
.tj-dasa-table th,
.tj-dasa-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}
 
.tj-dasa-table th {
    background: #ff6600;
    color: #fff;
}
 
.tj-dasa-table tr.current {
    background: #fff3e0;
    font-weight: bold;
}
 
/* Loading */
.tj-loading {
    text-align: center;
    padding: 20px;
}
 
.tj-loading::after {
    content: '🔮 கணிக்கிறது...';
    animation: pulse 1.5s infinite;
}
 
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
 
/* Responsive */
@media (max-width: 768px) {
    .tj-form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .tj-form-row label {
        min-width: auto;
    }
    .tj-rasi-chart {
        grid-template-rows: repeat(4, 80px);
    }
}

/* Varga Charts - Tabs, South Indian Grid, and Tables */
.tj-varga-section {
    margin-top: 28px;
    padding: 18px;
    background: #fffaf0;
    border: 1px solid #f0d9a8;
    border-radius: 10px;
}
.tj-varga-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
}
.tj-varga-tab {
    border: 1px solid #c28a2c;
    background: #fff;
    color: #7a4a00;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.tj-varga-tab.active,
.tj-varga-tab:hover {
    background: #c28a2c;
    color: #fff;
}
.tj-varga-chart {
    display: grid;
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    grid-template-rows: repeat(4, minmax(70px, auto));
    gap: 3px;
    max-width: 560px;
    margin: 16px auto;
    border: 3px solid #8a5a13;
    background: #8a5a13;
}
.tj-varga-cell {
    min-height: 72px;
    background: #fffdf7;
    padding: 6px;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
    border: 1px solid #e4c078;
}
.tj-varga-cell.center {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #704400;
    background: #fff2cd;
}
.tj-varga-cell small {
    display: block;
    color: #7a4a00;
    font-weight: 700;
    margin-bottom: 3px;
}
.tj-varga-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: #fff;
}
.tj-varga-table th,
.tj-varga-table td {
    border: 1px solid #ead2a2;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}
.tj-varga-table th {
    background: #8a5a13;
    color: #fff;
}
.tj-varga-table tr:nth-child(even) {
    background: #fff8e8;
}
.tj-varga-note {
    padding: 10px;
    border-left: 4px solid #c28a2c;
    background: #fff8e8;
    margin: 10px 0;
}
@media (max-width: 600px) {
    .tj-varga-chart {
        grid-template-columns: repeat(4, minmax(55px, 1fr));
    }
    .tj-varga-cell {
        font-size: 11px;
        padding: 4px;
    }
    .tj-varga-table {
        font-size: 12px;
    }
}



/* Ashtakavarga Styles */
.tj-ashtakavarga-section,
.tj-ashtakavarga-standalone {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #d7ead7;
    border-radius: 12px;
    background: #fbfffb;
}
.tj-ashta-note {
    padding: 10px 12px;
    background: #fff8dc;
    border-left: 4px solid #d8a600;
    border-radius: 6px;
    color: #5c4a00;
}
.tj-ashta-sav,
.tj-ashta-bav,
.tj-ashta-components {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 14px;
}
.tj-ashta-sav th,
.tj-ashta-sav td,
.tj-ashta-bav th,
.tj-ashta-bav td,
.tj-ashta-components th,
.tj-ashta-components td {
    border: 1px solid #d9e5d9;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}
.tj-ashta-sav th,
.tj-ashta-bav th,
.tj-ashta-components th {
    background: #247a39;
    color: #ffffff;
    font-weight: 700;
}
.tj-ashta-high {
    background: #d7f5d7;
    color: #12651e;
}
.tj-ashta-medium {
    background: #fff3c4;
    color: #7a5a00;
}
.tj-ashta-low {
    background: #ffdede;
    color: #8a1f1f;
}
.tj-ashta-components-wrap summary {
    cursor: pointer;
    font-weight: 700;
    color: #247a39;
    margin: 10px 0;
}
@media (max-width: 768px) {
    .tj-ashta-sav,
    .tj-ashta-bav,
    .tj-ashta-components {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Upagraha and Enhanced Porutham Integration */
.tj-upagraha-complete, .tj-porutham-result { font-family: "Noto Sans Tamil", sans-serif; max-width: 950px; margin: 24px auto; }
.tj-upagraha-complete h2, .tj-upagraha-complete h3 { text-align: center; }
.tj-si-chart { border-collapse: collapse; width: 100%; margin: 15px 0; table-layout: fixed; }
.tj-chart-cell { border: 2px solid #2c3e50; padding: 8px; width: 25%; height: 80px; vertical-align: top; text-align: center; position: relative; }
.tj-rasi-num { position: absolute; top: 2px; right: 4px; font-size: 9px; color: #999; }
.tj-rasi-label { position: absolute; top: 2px; left: 4px; font-size: 10px; color: #666; }
.tj-upa-in-cell { font-size: 11px; color: #8b0000; font-weight: 700; margin-top: 18px; }
.tj-chart-center { border: 2px solid #2c3e50; text-align: center; vertical-align: middle; background: #f0f0f0; }
.tj-upagraha-table, .tj-porutham-table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 13px; }
.tj-upagraha-table th { background: #1a237e; color: #fff; padding: 10px 6px; text-align: center; }
.tj-upagraha-table td, .tj-porutham-table td { border: 1px solid #ddd; padding: 8px 6px; text-align: center; }
.tj-upagraha-table tr:nth-child(even) { background: #f5f5f5; }
.tj-interp-box { padding: 8px 12px; margin: 5px 0; background: #fff8dc; border-left: 3px solid #ff6600; border-radius: 4px; }
.tj-divider { border: 1px dashed #aaa; margin: 20px 0; }
.tj-porutham-header { text-align: center; padding: 20px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border-radius: 10px; margin-bottom: 20px; }
.tj-score-num { font-size: 42px; font-weight: 700; }
.tj-verdict { font-size: 20px; }
.tj-couple-info { display: flex; gap: 20px; margin: 20px 0; }
.tj-person-box { flex: 1; padding: 15px; background: #f8f9fa; border-radius: 8px; border: 1px solid #ddd; }
.tj-porutham-table th { background: #2c3e50; color: #fff; padding: 10px 6px; }
.tj-matched { background: #e8f5e9; }
.tj-not-matched { background: #ffebee; }
.tj-recommendation { padding: 15px; background: #fff3e0; border-radius: 8px; margin: 20px 0; border-left: 4px solid #ff9800; }
.tj-warning { color: #d32f2f; font-weight: 700; }
@media (max-width: 768px) { .tj-couple-info { flex-direction: column; } .tj-upa-table-wrap, .tj-porutham-result { overflow-x: auto; } }



/* Sarvashtakavarga additions */
.tj-sav-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
    padding: 14px;
    background: #eefaf0;
    border: 1px solid #bee6c5;
    border-radius: 10px;
    color: #174f26;
}
.tj-sav-summary small {
    grid-column: 1 / -1;
    color: #466b4d;
    line-height: 1.5;
}
.tj-ashta-bhava {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 14px;
}
.tj-ashta-bhava th,
.tj-ashta-bhava td {
    border: 1px solid #d9e5d9;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}
.tj-ashta-bhava th {
    background: #1f6f35;
    color: #fff;
}
.tj-ashta-sav em {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    font-style: normal;
    opacity: .85;
}
@media (max-width: 768px) {
    .tj-ashta-bhava {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Full Width Horoscope / Gochara Layout Additions */
.tj-birth-chart-form,
.tj-porutham-form,
.tj-prediction-section,
.tj-dasa-section,
.tj-gochara-shortcode,
.tj-horoscope-result {
    width: min(100%, 1280px);
    max-width: 1280px;
    box-sizing: border-box;
}

.tj-full-width-module {
    width: min(100%, 1280px);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.tj-result-header {
    text-align: center;
    padding: 18px 18px 8px;
}

.tj-result-header h3 {
    color: #b45309;
    margin-bottom: 8px;
}

.tj-result-header p,
.tj-help-note {
    color: #6b7280;
    font-size: 14px;
}

.tj-result-section-buttons {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    margin: 10px 0 20px;
    background: rgba(255, 251, 235, 0.96);
    border: 1px solid #fde68a;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(6px);
}

.tj-result-section-btn {
    border: 1px solid #f59e0b;
    background: #ffffff;
    color: #92400e;
    padding: 10px 16px;
    border-radius: 999px;
    font-family: 'Noto Sans Tamil', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tj-result-section-btn:hover,
.tj-result-section-btn.active {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.28);
}

.tj-result-section-content {
    width: 100%;
}

.tj-result-section-panel {
    display: none;
    animation: tjFadeIn 0.25s ease-in-out;
}

.tj-result-section-panel.active {
    display: block;
}

.tj-section-card,
.tj-gochara-result {
    padding: 22px;
    margin: 18px 0;
    background: #ffffff;
    border: 1px solid #f3e2c7;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}

.tj-section-card h4,
.tj-gochara-result h3,
.tj-gochara-result h4 {
    color: #9a3412;
    margin-top: 0;
}

.tj-table-wrap,
.tj-gochara-result table,
.tj-section-card table {
    overflow-x: auto;
}

.tj-table-wrap {
    width: 100%;
}

.tj-gochara-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px 18px;
    margin-top: 18px;
}

.tj-gochara-grid .tj-form-row {
    margin-bottom: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
}

.tj-gochara-grid .tj-form-row label {
    min-width: auto;
}

.tj-gochara-shortcode {
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 22px rgba(0,0,0,0.10);
    font-family: 'Noto Sans Tamil', sans-serif;
}

.tj-gochara-shortcode h3 {
    color: #ff6600;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 10px;
}

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

@media (min-width: 1024px) {
    .tj-rasi-chart,
    .tj-varga-chart {
        max-width: 680px;
    }
    .tj-rasi-chart {
        grid-template-rows: repeat(4, 125px);
    }
}

@media (max-width: 768px) {
    .tj-birth-chart-form,
    .tj-gochara-shortcode {
        padding: 18px;
    }
    .tj-result-section-buttons {
        position: static;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .tj-result-section-btn {
        flex: 0 0 auto;
        font-size: 13px;
        padding: 9px 13px;
    }
    .tj-section-card,
    .tj-gochara-result {
        padding: 16px;
    }
}

/* Enhanced Horoscope Result Button Panels */
.tj-horoscope-result {
    padding: 8px 0 24px;
}

.tj-result-section-buttons[role="tablist"],
.tj-result-section-buttons {
    align-items: center;
}

.tj-result-section-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    letter-spacing: 0.01em;
}

.tj-result-section-btn .tj-btn-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.tj-result-section-btn.active .tj-btn-dot,
.tj-result-section-btn:hover .tj-btn-dot {
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
}

.tj-result-section-panel.active {
    display: block;
    border-radius: 18px;
}

.tj-result-section-panel .tj-section-card {
    border-top: 5px solid #f59e0b;
}

.tj-result-section-panel .tj-section-card > h4:first-child {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-radius: 999px;
    color: #9a3412;
}

.tj-result-section-panel .tj-rasi-chart,
.tj-result-section-panel .tj-varga-chart {
    box-shadow: 0 10px 26px rgba(120, 53, 15, 0.12);
}

@media (max-width: 480px) {
    .tj-result-header h3 {
        font-size: 20px;
    }
    .tj-result-section-btn {
        min-height: 38px;
        padding: 8px 12px;
    }
}

/* Compact Sarvashtakavarga 4 x 3 Layout */
.tj-ashta-sav-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 24px;
}

.tj-ashta-sav-card {
    min-height: 128px;
    padding: 14px 10px;
    border: 1px solid #d9e5d9;
    border-radius: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.tj-sav-rasi-name {
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 6px;
}

.tj-sav-points {
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    color: #111827;
    margin: 4px 0 6px;
}

.tj-sav-strength {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

.tj-sav-guidance {
    font-size: 12px;
    line-height: 1.35;
    color: #4b5563;
}

.tj-ashta-sav-card.tj-ashta-high,
.tj-ashta-high {
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    border-color: #86efac;
}

.tj-ashta-sav-card.tj-ashta-medium,
.tj-ashta-medium {
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    border-color: #fcd34d;
}

.tj-ashta-sav-card.tj-ashta-low,
.tj-ashta-low {
    background: linear-gradient(135deg, #fee2e2, #fff1f2);
    border-color: #fca5a5;
}

@media (max-width: 900px) {
    .tj-ashta-sav-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tj-ashta-sav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tj-ashta-sav-card {
        min-height: 112px;
    }
}

@media (max-width: 420px) {
    .tj-ashta-sav-grid {
        grid-template-columns: 1fr;
    }
}


/* Full-detail horoscope restoration: planet table, panchanga grid, dasa drill-down */
.tj-planet-detail-wrap { margin-top: 22px; }
.tj-planet-detail-table th, .tj-planet-detail-table td { white-space: nowrap; }
.tj-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 14px; }
.tj-info-item { background: linear-gradient(135deg, #fffaf1, #ffffff); border: 1px solid #f1d7a3; border-radius: 14px; padding: 13px 15px; box-shadow: 0 4px 12px rgba(136, 85, 0, .06); }
.tj-info-item span { display: block; color: #9a5a00; font-size: 12px; margin-bottom: 5px; font-weight: 700; }
.tj-info-item strong { display: block; color: #222; font-size: 15px; line-height: 1.35; }
.tj-dasa-tree { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.tj-dasa-node { border-left: 3px solid #e7a02d; padding-left: 10px; }
.tj-dasa-node.level-1 { margin-left: 18px; border-left-color: #c97b20; }
.tj-dasa-node.level-2 { margin-left: 28px; border-left-color: #a75d18; }
.tj-dasa-node.level-3 { margin-left: 38px; border-left-color: #7c4a15; }
.tj-dasa-node.level-4 { margin-left: 48px; border-left-color: #4b3514; }
.tj-dasa-node-btn { width: 100%; border: 1px solid #f0d49e; background: #fffdfa; border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; justify-content: flex-start; cursor: pointer; color: #452606; box-shadow: 0 2px 8px rgba(120,70,0,.05); }
.tj-dasa-node-btn:hover { background: #fff3dc; border-color: #de982a; }
.tj-dasa-node.current > .tj-dasa-node-btn { background: #fff0c9; border-color: #d88800; }
.tj-dasa-caret { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; background: #e58a00; color: #fff; border-radius: 50%; font-weight: 800; }
.tj-dasa-node-btn em { margin-left: auto; color: #7c6a55; font-style: normal; font-size: 12px; }
.tj-dasa-children { display: none; margin-top: 8px; }
@media (max-width: 720px) {
  .tj-planet-detail-table th, .tj-planet-detail-table td { white-space: normal; font-size: 12px; }
  .tj-dasa-node.level-1, .tj-dasa-node.level-2, .tj-dasa-node.level-3, .tj-dasa-node.level-4 { margin-left: 10px; }
  .tj-dasa-node-btn { align-items: flex-start; flex-wrap: wrap; }
  .tj-dasa-node-btn em { margin-left: 30px; width: 100%; }
}


/* Requested Preview, Print, Shadbala, and Action Controls */
.tj-result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 12px auto 16px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.tj-action-btn,
.tj-ai-disabled-btn {
    border: 1px solid #0f766e;
    background: #ffffff;
    color: #0f766e;
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}
.tj-action-btn:hover {
    background: #0f766e;
    color: #ffffff;
}
.tj-preview-status {
    flex-basis: 100%;
    text-align: center;
    color: #475569;
    font-size: 13px;
}
.tj-full-row {
    grid-column: 1 / -1;
}
.tj-shadbala-table td,
.tj-shadbala-table th,
.tj-planet-detail-table td,
.tj-planet-detail-table th {
    white-space: nowrap;
}
.tj-ai-question {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px;
    font-family: inherit;
    margin: 10px 0;
}
.tj-ai-disabled-btn {
    opacity: 0.55;
    cursor: not-allowed;
}
@media print {
    .tj-birth-chart-form > form,
    .tj-result-actions,
    .tj-result-section-buttons,
    .tj-aiqa-section { display: none !important; }
    .tj-result-section-panel { display: block !important; page-break-inside: avoid; }
    .tj-horoscope-result { box-shadow: none !important; width: 100% !important; max-width: none !important; }
    .tj-section-card { box-shadow: none !important; border: 1px solid #999 !important; }
}


/* Planet degree display inside Rasi and Varga charts */
.tj-chart-planets { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; align-items: center; }
.tj-chart-planet { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px; line-height: 1.1; color: #4a148c; }
.tj-chart-planet strong { font-weight: 700; color: #1a237e; }
.tj-chart-planet small { font-size: 10px; color: #374151; white-space: nowrap; }
.tj-ai-ask-btn { margin-top: 10px; background: linear-gradient(135deg, #4a148c, #7b1fa2); color: #ffffff; border: 0; border-radius: 6px; padding: 9px 16px; cursor: pointer; font-weight: 600; }
.tj-ai-ask-btn:disabled { opacity: 0.65; cursor: wait; }
.tj-ai-response { margin-top: 12px; padding: 12px; border-left: 4px solid #7b1fa2; background: #faf5ff; border-radius: 6px; line-height: 1.6; }

/* Tamil Jothidam v2.0.11: Geocoding status and render safety */
.tj-geo-status {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
}
.tj-geo-status.ok { color: #166534; font-weight: 600; }
.tj-geo-status.warn { color: #92400e; }
.tj-geo-status.error { color: #b91c1c; font-weight: 600; }
.tj-render-warning {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}
.tj-render-warning .tj-error {
    color: #b45309;
}
