.pc-wrap {
    padding: 5px 0 5px;
}

/* ── Hero Summary Bar ── */
.pc-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

@media (max-width: 900px) {
    .pc-hero {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .pc-hero {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.pc-hero-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 5px 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
    border-left: 4px solid var(--accent, #f59e0b);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform .18s, box-shadow .18s;
}

.pc-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .11);
}

.pc-hero-card::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent, #f59e0b);
    opacity: .06;
    pointer-events: none;
}

.phc-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--icon-bg, #fef3c7);
    font-size: 22px;
    line-height: 1;
}

.phc-body {
    min-width: 0;
}

.phc-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: #52565e;
    margin-bottom: 3px;
}

.phc-value {
    font-size: 17px;
    font-weight: 800;
    color: var(--val-color, #111827);
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phc-sub {
    font-size: 16px;
    font-weight: 500;
    color: #3e424a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phc--tithi {
    --accent: #8b5cf6;
    --icon-bg: #ede9fe;
    --val-color: #6d28d9;
}

.phc--naksh {
    --accent: #0ea5e9;
    --icon-bg: #e0f2fe;
    --val-color: #0369a1;
}

.phc--karna {
    --accent: #0e3ae9;
    --icon-bg: #e0f2fe;
    --val-color: #0323a1;
}

.phc--rashi {
    --accent: #ec4899;
    --icon-bg: #fce7f3;
    --val-color: #9d174d;
}

.phc--sunrise {
    --accent: #f59e0b;
    --icon-bg: #fef3c7;
    --val-color: #d97706;
}

.phc--rahu {
    --accent: #ef4444;
    --icon-bg: #fee2e2;
    --val-color: #b91c1c;
}

.phc--abhijit {
    --accent: #10b981;
    --icon-bg: #d1fae5;
    --val-color: #065f46;
}

/* ── Tab Nav ── */


/* ── Card ── */
.pc-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 22px rgba(0, 0, 0, .07);
    border: 1px solid rgba(0, 0, 0, .05);
    overflow: hidden;
}

.pc-card-head {
    background: rgba(241, 143, 6, .13);
    border-bottom: 1px solid rgba(241, 143, 6, .22);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-card-head h6 {
    margin: 0;
    font-weight: 800;
    color: #1a1a1a;
    font-size: 20px;
}

.pc-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #f18f06;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    font-weight: 700;
}

.pc-icon-green {
    background: #16a34a;
}

.pc-icon-red {
    background: #dc2626;
}

.pc-icon-navy {
    background: #3b4a9e;
}

.pc-icon-purple {
    background: #7c3aed;
}

.pc-icon-teal {
    background: #0d9488;
}

/* ── Info Row ── */
.pc-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f1f4;
    gap: 12px;
}

.pc-row:last-child {
    border-bottom: none;
}

.pc-row:hover {
    background: #fdfcfa;
}

.pc-row .r-lbl {
    font-size: 15px;
    color: #666;
    font-weight: 700;
    min-width: 130px;
    flex-shrink: 0;
}

.pc-row .r-val {
    font-weight: 800;
    color: #1a1a1a;
    font-size: 16px;
    text-align: right;
}

.pc-row .r-val small {
    display: block;
    font-weight: 600;
    color: #888;
    font-size: 13px;
    margin-top: 3px;
}

/* ── Sun Moon Grid ── */
.sm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #eff0f3;
}

.sm-cell {
    background: #fff;
    padding: 20px 8px;
    text-align: center;
}

.sm-cell .s-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.sm-cell .s-time {
    font-size: 20px;
    font-weight: 900;
    color: #1a1a1a;
}

.sm-cell .s-lbl {
    font-size: 13px;
    color: #777;
    font-weight: 700;
    margin-top: 3px;
}

/* ── Day Length bar ── */
.dl-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(241, 143, 6, .10);
    border-radius: 9px;
    padding: 11px 18px;
    margin: 0 20px 16px;
}

.dl-bar .dl-lbl {
    font-size: 15px;
    color: #777;
    font-weight: 700;
}

.dl-bar .dl-val {
    font-weight: 800;
    color: #d97706;
    font-size: 17px;
}

/* ── Pada Grid ── */
.pada-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 18px;
}

.pada-cell {
    background: rgba(241, 143, 6, .10);
    border: 1.5px solid rgba(241, 143, 6, .30);
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
}

.pada-cell .p-letter {
    font-size: 2.2rem;
    font-weight: 900;
    color: #d97706;
}

.pada-cell .p-name {
    font-size: 13px;
    color: #555;
    margin-top: 6px;
    font-weight: 700;
}

.pada-cell .p-pada {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 800;
    margin-top: 4px;
}

.pada-cell .p-time {
    font-size: 13px;
    color: #888;
    font-weight: 600;
    margin-top: 3px;
}

/* ── Month/Year rows ── */
.my-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 1px solid #f0f1f4;
}

.my-row:last-child {
    border-bottom: none;
}

.my-row:hover {
    background: #fdfcfa;
}

.my-row .my-k {
    font-size: 15px;
    color: #666;
    font-weight: 700;
}

.my-row .my-v {
    font-weight: 800;
    font-size: 16px;
    color: #1a1a1a;
}

.my-row .my-v-gold {
    font-weight: 800;
    font-size: 16px;
    color: #d97706;
}

/* ── Maah box ── */
.maah-box {
    background: rgba(241, 143, 6, .12);
    border: 1.5px solid rgba(241, 143, 6, .30);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.maah-box .mb-lbl {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 700;
}

.maah-box .mb-val {
    font-size: 18px;
    font-weight: 900;
    color: #1a1a1a;
    margin-top: 5px;
}

/* ── Highlight boxes ── */
.hl-box {
    border-radius: 11px;
    padding: 5px 5px;
}

.hl-box .hb-lbl {
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 6px;
    font-weight: 700;
}

.hl-box .hb-val {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.hl-box .hb-sub {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    margin-top: 5px;
}

.hl-gold {
    background: rgba(241, 143, 6, .12);
    border: 1.5px solid rgba(241, 143, 6, .30);
}

.hl-gold .hb-val {
    color: #1a1a1a;
}

.hl-green {
    background: rgba(22, 163, 74, .10);
    border: 1.5px solid rgba(22, 163, 74, .25);
}

.hl-green .hb-val {
    color: #15803d;
}

.hl-red {
    background: rgba(220, 38, 38, .09);
    border: 1.5px solid rgba(220, 38, 38, .20);
}

.hl-red .hb-val {
    color: #b91c1c;
}

.hl-ora {
    background: rgba(234, 88, 12, .09);
    border: 1.5px solid rgba(234, 88, 12, .24);
}

.hl-ora .hb-val {
    font-size: 17px;
    color: #c2410c;
}

.hl-blue {
    background: rgba(59, 74, 158, .08);
    border: 1.5px solid rgba(59, 74, 158, .20);
}

.hl-blue .hb-val {
    font-size: 17px;
    color: #3b4a9e;
}

/* ── Timing rows ── */
.tr-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f1f4;
    gap: 12px;
    transition: background .15s;
}

.tr-row:last-child {
    border-bottom: none;
}

.tr-row:hover {
    background: #fdfcfa;
}

.tr-row.tr-now {
    background: rgba(241, 143, 6, .12);
    border-left: 4px solid #f18f06;
}

.tr-row.tr-now .tr-name {
    color: #d97706;
}

.tr-name {
    font-weight: 800;
    color: #1a1a1a;
    font-size: 16px;
}

.tr-time {
    font-weight: 800;
    font-size: 15px;
    color: #d97706;
    white-space: nowrap;
}

.tr-desc {
    font-size: 13px;
    color: #777;
    font-weight: 600;
    margin-top: 2px;
}

/* ── Badges ── */
.b-ok {
    background: rgba(22, 163, 74, .10);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, .25);
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.b-no {
    background: rgba(220, 38, 38, .09);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, .20);
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.b-neu {
    background: rgba(100, 116, 139, .10);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, .22);
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.now-pill {
    background: #f18f06;
    color: #fff;
    padding: 4px 11px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

/* ── Lagna rows ── */
.lg-row {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    gap: 12px;
    border-bottom: 1px solid #f0f1f4;
    transition: background .15s;
}

.lg-row:last-child {
    border-bottom: none;
}

.lg-row:hover {
    background: #fdfcfa;
}

.lg-row.lg-now {
    background: rgba(241, 143, 6, .12);
    border-left: 4px solid #f18f06;
}

.lg-row.lg-now .lg-name {
    color: #d97706;
}

.lg-name {
    font-weight: 800;
    font-size: 16px;
    color: #1a1a1a;
    min-width: 100px;
}

.lg-lord {
    font-size: 14px;
    color: #777;
    font-weight: 700;
    min-width: 65px;
}

.lg-time {
    margin-left: auto;
    font-size: 15px;
    color: #444;
    font-weight: 800;
}

.lg-big-name {
    font-size: 2.6rem;
    font-weight: 900;
    color: #d97706;
}

.lg-lord-badge {
    display: inline-block;
    background: rgba(241, 143, 6, .12);
    border: 1.5px solid rgba(241, 143, 6, .30);
    color: #2d2d2d;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 800;
}

/* ── Sunrise big ── */
.sr-big {
    font-size: 3.6rem;
    font-weight: 900;
    color: #d97706;
    line-height: 1;
}

.sr-sub {
    font-size: 14px;
    color: #777;
    font-weight: 600;
    margin-top: 6px;
}

.rising-lbl {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #777;
    margin-bottom: 7px;
    font-weight: 700;
}

/* ── Info tile ── */
.info-tile {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    background: rgba(241, 143, 6, .10);
    border: 1.5px solid rgba(241, 143, 6, .22);
    border-radius: 11px;
    padding: 15px;
}

.info-tile .it-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-tile .it-title {
    font-weight: 800;
    color: #d97706;
    font-size: 16px;
}

.info-tile .it-val {
    font-size: 14px;
    color: #555;
    margin-top: 3px;
    font-weight: 600;
}

/* ── Planet grid ── */
.graha-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    padding: 16px;
}

@media (max-width: 1400px) {
    .graha-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .graha-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .graha-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .graha-grid {
        grid-template-columns: 1fr;
    }
}


/* ─── Card ─────────────────────────────────────────────── */
.graha-cell {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.graha-cell:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

/* Hover glow per planet */
.graha-cell.g-sun:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10), 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.graha-cell.g-moon:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10), 0 0 0 3px rgba(100, 116, 139, 0.25);
}

.graha-cell.g-mars:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10), 0 0 0 3px rgba(239, 68, 68, 0.25);
}

.graha-cell.g-mercury:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10), 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.graha-cell.g-jupiter:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10), 0 0 0 3px rgba(234, 179, 8, 0.25);
}

.graha-cell.g-venus:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10), 0 0 0 3px rgba(236, 72, 153, 0.25);
}

.graha-cell.g-saturn:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10), 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.graha-cell.g-rahu:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10), 0 0 0 3px rgba(55, 65, 81, 0.25);
}

.graha-cell.g-ketu:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10), 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.graha-cell.g-ascendant:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10), 0 0 0 3px rgba(14, 165, 233, 0.25);
}


/* ─── Coloured Header Band ──────────────────────────────── */
.g-head {
    position: relative;
    background: linear-gradient(135deg, #6366f1, #4338ca); /* default fallback */
    padding: 18px 12px 14px;
    text-align: center;
    overflow: hidden;
}

/* Per-planet gradients */
.g-sun .g-head {
    background: linear-gradient(135deg, #e4dac8, #f3b89a);
}

.g-moon .g-head {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

.g-mars .g-head {
    background: linear-gradient(135deg, #f6bdbd, #ed8585);
}

.g-mercury .g-head {
    background: linear-gradient(135deg, #b5dccf, #7cafa1);
}

.g-jupiter .g-head {
    background: linear-gradient(135deg, #e6d9b5, #cab283);
}

.g-venus .g-head {
    background: linear-gradient(135deg, #ecbdd4, #cd8aa6);
}

.g-saturn .g-head {
    background: linear-gradient(135deg, #bebfef, #7773ae);
}

.g-rahu .g-head {
    background: linear-gradient(135deg, #d7e2f4, #adbfe6);
}

.g-ketu .g-head {
    background: linear-gradient(135deg, #d0c8e4, #b8a9cf);
}

.g-ascendant .g-head {
    background: linear-gradient(135deg, #e2edf3, #758d9a);
}

/* Decorative concentric rings */
.g-rings::before,
.g-rings::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.g-rings::before {
    width: 110px;
    height: 110px;
}

.g-rings::after {
    width: 160px;
    height: 160px;
}


/* ─── Symbol Badge ─────────────────────────────────────── */
.g-sym-wrap {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}


/* ─── Planet Name ──────────────────────────────────────── */
.g-name {
    position: relative;
    z-index: 1;
    font-size: 16px;
    font-weight: 800;
    color: #000;
    line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.g-name-en {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    margin-top: 1px;
}


/* ─── Rashi · Degree ───────────────────────────────────── */
.g-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.g-rashi {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 20px;
}

.g-sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.g-deg {
    font-size: 14px;
    color: #000;
}

.g-retro {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 9px;
    font-style: normal;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 3px;
    font-weight: 700;
    vertical-align: middle;
}


/* ─── Detail Rows ──────────────────────────────────────── */
.g-details {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.g-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f1f3f7;
    gap: 6px;
}

.g-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.g-label {
    font-size: 14px;
    color: #8a95a3;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.g-val {
    font-size: 14px;
    color: #1e293b;
    font-weight: 700;
    text-align: right;
    line-height: 1.3;
}

/* ── Vrat / Festival ── */
.vrat-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 20px;
    border-bottom: 1px solid #f0f1f4;
}

.vrat-item:last-child {
    border-bottom: none;
}

.vrat-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #f18f06;
    flex-shrink: 0;
    margin-top: 5px;
}

.vrat-dot.vrat-dot-green {
    background: #16a34a;
}

.vrat-dot.vrat-dot-red {
    background: #dc2626;
}

.vrat-name {
    font-weight: 800;
    font-size: 16px;
    color: #1a1a1a;
}

.vrat-desc {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    margin-top: 3px;
}

.vrat-badge {
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Special Yoga ── */
.yoga-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 13px 20px;
    border-bottom: 1px solid #f0f1f4;
    gap: 10px;
}

.yoga-row:last-child {
    border-bottom: none;
}

.yoga-row:hover {
    background: #fdfcfa;
}

.yoga-name {
    font-weight: 800;
    font-size: 16px;
    color: #1a1a1a;
}

.yoga-time {
    font-size: 14px;
    color: #555;
    font-weight: 800;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    flex: 1;
    min-width: 0;
    text-align: right;
}

.yoga-type {
    font-size: 13px;
    color: #d97706;
    font-weight: 700;
    margin-top: 3px;
}

/* ── Disha Shool ── */
.disha-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 24px;
    flex-wrap: wrap;
}

.disha-ring {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 2.5px solid rgba(241, 143, 6, .30);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    overflow: hidden;
    flex-shrink: 0;
}

.disha-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #666;
    border: .5px solid #f0f1f4;
}

.disha-seg.shool {
    background: rgba(220, 38, 38, .15);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, .25);
    font-size: 14px;
}

.disha-info {
    flex: 1;
    min-width: 150px;
}

.disha-info .di-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #777;
    font-weight: 700;
    margin-bottom: 7px;
}

.disha-info .di-dir {
    font-size: 1.8rem;
    font-weight: 900;
    color: #b91c1c;
}

.disha-info .di-note {
    font-size: 14px;
    color: #555;
    font-weight: 600;
    margin-top: 6px;
    line-height: 1.6;
}

/* ── Section divider ── */
.pc-sep {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 14px;
}

.pc-sep span {
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    color: #1a1a1a;
}

.pc-sep hr {
    flex: 1;
    border: none;
    border-top: 2px solid rgba(241, 143, 6, .18);
}

/* ── Summary strip ── */
.sum-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.sum-cell {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid #eef0f4;
}

.sum-cell .sc-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.sum-cell .sc-lbl {
    font-size: 12px;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.sum-cell .sc-val {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a1a;
    margin-top: 2px;
}

.sum-cell .sc-val-gold {
    color: #d97706;
}

.sum-cell .sc-val-green {
    color: #15803d;
}

/* ══ MOBILE RESPONSIVE ══ */
@media (max-width: 1199px) {
    .graha-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .graha-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sm-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .pc-wrap {
        padding: 5px 0 5px;
    }

    .sm-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sm-cell .s-time {
        font-size: 18px;
    }

    .pada-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sum-strip {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }

    .pc-tabs-nav {
        gap: 6px;
    }

    .pc-tab-btn {
        padding: 9px 9px;
        font-size: 14px;
    }

    .tr-row {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .tr-name {
        font-size: 15px;
    }

    .tr-time {
        font-size: 14px;
    }

    .tr-desc {
        font-size: 12px;
    }

    .pc-row {
        padding: 12px 14px;
        flex-wrap: wrap;
    }

    .pc-row .r-lbl {
        min-width: 100%;
        font-size: 13px;
    }

    .pc-row .r-val {
        font-size: 15px;
        text-align: left;
    }

    .lg-row {
        padding: 11px 14px;
        flex-wrap: wrap;
    }

    .lg-name {
        font-size: 15px;
        min-width: 80px;
    }

    .lg-lord {
        font-size: 13px;
    }

    .lg-time {
        font-size: 13px;
    }

    .yoga-row {
        padding: 12px 14px;
        flex-wrap: wrap;
    }

    .yoga-name {
        font-size: 15px;
    }

    .yoga-time {
        font-size: 13px;
    }

    .vrat-item {
        padding: 12px 14px;
    }

    .vrat-name {
        font-size: 15px;
    }

    .vrat-desc {
        font-size: 12px;
    }

    .hl-box .hb-val {
        font-size: 19px;
    }

    .hl-box .hb-lbl {
        font-size: 12px;
    }

    .my-row {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 4px;
    }

    .my-row .my-k {
        font-size: 14px;
    }

    .my-row .my-v, .my-row .my-v-gold {
        font-size: 15px;
    }

    .pc-card-head {
        padding: 5px 5px;
    }

    .pc-card-head h6 {
        font-size: 18px;
    }

    .disha-wrap {
        gap: 16px;
        padding: 14px;
    }

    .disha-info .di-note {
        font-size: 13px;
    }

    .disha-info .di-dir {
        font-size: 1.5rem;
    }

    .maah-box .mb-val {
        font-size: 16px;
    }

    .info-tile .it-title {
        font-size: 15px;
    }

    .info-tile .it-val {
        font-size: 13px;
    }

    .dl-bar {
        margin: 0 14px 14px;
    }

    .dl-bar .dl-lbl {
        font-size: 14px;
    }

    .dl-bar .dl-val {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pc-tabs-nav {
        gap: 5px;
    }

    .pc-tab-btn {
        padding: 8px 8px;
        font-size: 13px;
    }

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

    .sm-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sr-big {
        font-size: 2.8rem;
    }

    .lg-big-name {
        font-size: 2rem;
    }

    .maah-box .mb-val {
        font-size: 15px;
    }

    .hl-box .hb-val {
        font-size: 17px;
    }

    .tr-time {
        order: -1;
    }

    .b-ok, .b-no, .b-neu {
        font-size: 12px;
        padding: 4px 10px;
    }

    .now-pill {
        font-size: 12px;
        padding: 3px 9px;
    }
}


/*pc dial section*/
.pc-dial-wrap {
    background: #f4f5f9;
    padding: 32px 0 56px;
    font-style: normal !important;
}

/* ── tabs ── */
.pc-dial-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.pc-dial-tab-btn {
    border: 1.5px solid rgba(241, 143, 6, .40);
    border-radius: 50px;
    padding: 10px 26px;
    background: #fff;
    color: #444;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}

.pc-dial-tab-btn.active {
    background: #f18f06;
    color: #fff;
    border-color: #f18f06;
    box-shadow: 0 4px 16px rgba(241, 143, 6, .35);
}

/* ── canvas ── */
.pc-dial-canvas-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

canvas.pc-dial-canvas {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* ── legend ── */
.pc-dial-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.pc-dl-item {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.pc-dl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── titles ── */
.pc-dial-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    text-align: center;
    margin-bottom: 6px;
}

.pc-dial-section-sub {
    font-size: 14px;
    color: #888;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
}

/*pc ghati dial section*/
.ghati-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 5px 5px 5px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
    border: 1px solid #f0e8d8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ghati-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1px;
    padding-bottom: 1px;
    border-bottom: 1px solid #f0e0c0;
}

.ghati-header-icon {
    font-size: 22px;
}

.ghati-header-title {
    font-weight: 700;
    color: #7c4a00;
    font-size: 18px;
}

.ghati-header-sub {
    font-size: 11px;
    color: #b08040;
}

/* Canvas — 800px native, scales down on small screens */
.ghati-canvas {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
}
.ghati-readout {
    margin-top: 12px;
    text-align: center;
}

.ghati-dual-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    background: #fff7f3;
    border: 1px solid rgba(200, 140, 20, 0.35);
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 4px 14px rgba(160, 105, 10, 0.08);
    box-sizing: border-box;
}

.ghati-time-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ghati-divider {
    width: 1px;
    height: 42px;
    background: rgba(185, 125, 15, 0.28);
    flex-shrink: 0;
}

.ghati-digital {
    font-size: 32px;
    font-weight: 800;
    color: #c47a00;
    letter-spacing: 3px;
    line-height: 1.1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ghati-normal-time {
    font-size: 30px;
    font-weight: 800;
    color: #c47a00;
    letter-spacing: 1px;
    line-height: 1.1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ghati-unit-label {
    font-size: 13px;
    color: #a08050;
    margin-top: 5px;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.ghati-time-row {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: #a08050;
}

.ghati-now-label {
    font-weight: 700;
    color: #c47a00;
}

.ghati-legend {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 18px;
    font-size: 11px;
    color: #a08050;
}

.ghati-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ghati-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ghati-legend-dot-gold {
    background: #c48500;
}

.ghati-legend-dot-blue {
    background: rgba(75, 75, 120, .90);
    border: 1px solid #aaa;
}

.ghati-legend-dot-red {
    background: #cc2200;
}

/* Tablet & Mobile — পাশাপাশি (left-right) রাখা হয়েছে */
@media (max-width: 576px) {
    .ghati-dual-row {
        max-width: 100%;
        gap: 10px;
        padding: 12px 10px;
        border-radius: 12px;
    }

    .ghati-divider {
        height: 34px;
    }

    .ghati-digital {
        font-size: 19px;
        letter-spacing: 1.5px;
    }

    .ghati-normal-time {
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    .ghati-unit-label {
        font-size: 11px;
        letter-spacing: 0.3px;
    }
}

/* খুব ছোট মোবাইল স্ক্রিনের জন্য */
@media (max-width: 375px) {
    .ghati-dual-row {
        gap: 8px;
        padding: 10px 8px;
    }

    .ghati-digital {
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    .ghati-normal-time {
        font-size: 15px;
        letter-spacing: 0px;
    }

    .ghati-unit-label {
        font-size: 10px;
    }
}
/* ── Current Lagna Card ───────────────────────────────── */
/* ── Current Lagna Card ──────────────────────────────── */
.lagna-current-card {
    border-radius: 14px;
    background: rgba(241, 143, 6, 0.25);
    border: 1px solid rgba(241, 143, 6, 0.40);
    box-shadow: 0 4px 20px rgba(241, 143, 6, 0.12);
    overflow: hidden;
    position: relative;
}

.lagna-current-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(241, 143, 6, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.lagna-current-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.4rem;
}

.lagna-current-left {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(241, 143, 6, 0.20);
    border: 2px solid rgba(180, 90, 0, 0.40);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lagna-rashi-symbol {
    font-size: 2rem;
    line-height: 1;
}

.lagna-current-right {
    flex: 1;
}

.lagna-current-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: rgba(120, 70, 0, 0.85);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.lagna-current-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #7a3d00;
    line-height: 1.2;
}

.lagna-current-en {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(100, 55, 0, 0.75);
}

.lagna-current-meta {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.35rem;
    font-size: 14px;
    color: rgba(80, 40, 0, 0.9);
}

.lagna-current-meta strong {
    color: #6b2f00;
}

.lagna-current-time {
    margin-top: 0.4rem;
    font-size: 14px;
    color: rgba(100, 55, 0, 0.8);
}

/* ── Lagna Table ─────────────────────────────────────── */
.lagna-table-wrap {
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid rgba(241, 143, 6, 0.28);
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.lagna-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lagna-table thead tr {
    background: rgba(241, 143, 6, 0.25) !important;
}

.lagna-table thead th {
    padding: 0.72rem 0.9rem;
    color: #000000 !important;
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
    border-bottom: 1px solid rgba(241, 143, 6, 0.35);
    white-space: nowrap;
    background: rgba(241, 143, 6, 0.25) !important;
}

.lagna-table thead th:first-child {
    text-align: center;
    width: 48px;

}

.lagna-row td {
    padding: 0.68rem 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: #1a1a1a;
    vertical-align: middle;
    font-size: 14px;
    transition: background-color 0.15s ease;
}

.lagna-row:nth-child(even) td {
    background: rgba(241, 143, 6, 0.03);
}

.lagna-row:last-child td {
    border-bottom: none;
}

.lagna-row:hover td {
    background: rgba(241, 143, 6, 0.11);
}

.lagna-row-active td {
    padding: 0.68rem 0.9rem;
    border-bottom: 1px solid rgba(241, 143, 6, 0.25);
    background: rgba(241, 143, 6, 0.16);
    vertical-align: middle;
    font-size: 14px;
    transition: background-color 0.15s ease;
}

.lagna-row-active:last-child td {
    border-bottom: none;
}

.lagna-row-active:hover td {
    background: rgba(241, 143, 6, 0.22);
}

.lagna-symbol {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(241, 143, 6, 0.12);
    color: #6b2f00;
}

.lagna-name {
    color: #141414;
    font-weight: 600;
    font-size: 14px;
}

.lagna-name-active {
    color: #7a3d00;
    font-weight: 700;
    font-size: 14px;
}

.lagna-name-en {
    color: #555555;
    font-size: 14px;
    margin-left: 4px;
}

.lagna-now-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background: rgba(241, 143, 6, 0.28);
    color: #6b2f00;
    border: 1px solid rgba(180, 90, 0, 0.45);
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    vertical-align: middle;
}

.lagna-lord {
    color: #222222;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.lagna-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}

.lagna-time {
    color: #1f1f1f;
    font-weight: 500;
    white-space: nowrap;
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
}

/*next previous button*/
.pc-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    border: 2px solid #e0e0e0;
    background: rgba(241, 143, 6, 0.07);
    color: #555;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .18s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    padding: 0;
    line-height: 1;
}

.pc-nav-btn:hover {
    background: #f1b42e;
    border-color: #785403;
    color: #fff;
    box-shadow: 0 3px 10px rgba(240, 165, 0, .35);
    transform: scale(1.08);
}

.pc-nav-btn:active {
    transform: scale(.95);
    box-shadow: none;
}

/* ══ Tithi Calendar with db ══ */
.tc-card-wrap {
    overflow: hidden;
}

.tc-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 20px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.tc-month-title {
    font-size: 22px;
    font-weight: 800;
    color: #222;
}

.tc-year-badge {
    background: #fff3cd;
    color: #b87800;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

/* Legend */
.tc-legend {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.tc-leg {
    font-size: 14px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1.5px solid transparent;
}

.tc-leg-ek {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #66bb6a;
}

.tc-leg-pu {
    background: #fce4ec;
    color: #c2185b;
    border-color: #f06292;
}

.tc-leg-ch {
    background: #f3e5f5;
    color: #6a1b9a;
    border-color: #ba68c8;
}

.tc-leg-am {
    background: #eceff1;
    color: #37474f;
    border-color: #90a4ae;
}

.tc-leg-sel {
    background: #fff3cd;
    color: #b87800;
    border-color: #f0a500;
}

/* Paksha bar legend */
.tc-paksha-legend {
    display: flex;
    gap: 20px;
    padding: 4px 20px 12px;
    font-size: 14px;
    font-weight: 600;
}

.tc-pl-s {
    color: #c68b00;
}

.tc-pl-k {
    color: #7c5cbf;
}

/* Grid */
.tc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.tc-head {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #bbb;
    padding: 2px 0 8px;
    letter-spacing: .5px;
}

.tc-cell {
    border-radius: 12px;
    padding: 7px 4px 5px;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .07);
    border-bottom: 3px solid #eee;
    transition: transform .12s, box-shadow .12s;
    cursor: pointer;
    position: relative;
}

.tc-cell:not(.tc-empty):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.tc-active-click {
    transform: translateY(-2px) !important;
    box-shadow: 0 0 0 2.5px #333, 0 4px 12px rgba(0, 0, 0, .18) !important;
}

.tc-empty {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    cursor: default;
}

.tc-num {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    align-self: flex-start;
    padding: 0 2px;
    line-height: 1;
}

.tc-moon {
    font-size: 50px;
    margin: 2px 0 1px;
    line-height: 1;
}

.tc-tithi-name {
    font-size: 16px;
    color: #9c5e07;
    text-align: center;
    line-height: 1.2;
    margin-top: auto;
}

/* Paksha bars */
.tc-bar-s {
    border-bottom-color: #f0a500;
}

.tc-bar-k {
    border-bottom-color: #7c5cbf;
}

/* Special days */
.tc-selected {
    background: #fff9e6;
    border-bottom-color: #f0a500 !important;
    box-shadow: 0 0 0 2px #f0a500, 0 2px 10px rgba(240, 165, 0, .2);
}

.tc-selected .tc-num {
    color: #b87800;
    font-weight: 900;
}

.tc-ekadashi {
    background: #e8f5e9;
    border-bottom-color: #43a047 !important;
}

.tc-ekadashi .tc-tithi-name {
    color: #2e7d32;
    font-weight: 700;
}

.tc-purnima {
    background: #fce4ec;
    border-bottom-color: #e91e63 !important;
}

.tc-purnima .tc-tithi-name {
    color: #c2185b;
    font-weight: 700;
}

.tc-amavasya {
    background: #eceff1;
    border-bottom-color: #607d8b !important;
}

.tc-chaturthi {
    background: #f3e5f5;
    border-bottom-color: #9c27b0 !important;
}

.tc-chaturthi .tc-tithi-name {
    color: #7b1fa2;
    font-weight: 700;
}

/* ══ Modal ══ */
@keyframes tcModalIn {
    from {
        opacity: 0;
        transform: scale(.85) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#tc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tc-modal-box {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

/* Modal Header */
.tc-modal-header {
    padding: 24px 20px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.tc-mh-moon {
    font-size: 52px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3));
    line-height: 1;
}

.tc-mh-info {
    flex: 1;
}

.tc-mh-day {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.tc-mh-date {
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
    margin-top: 4px;
}

.tc-mh-paksha {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 20px;
    padding: 2px 10px;
    letter-spacing: .4px;
}

.tc-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.tc-modal-close:hover {
    background: rgba(255, 255, 255, .35);
}

/* Modal Body */
.tc-modal-body {
    padding: 16px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tc-mrow {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid #f0f0f0;
}

.tc-mrow-ek {
    border-color: #ffe082;
    background: #fffde7;
}

.tc-mrow-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tc-mrow-content {
    flex: 1;
}

.tc-mrow-label {
    font-size: 14px;
    font-weight: 700;
    color: #bbb;
    letter-spacing: .8px;
}

.tc-mrow-val {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-top: 1px;
}

.tc-mrow-badge {
    font-size: 14px;
    font-weight: 700;
    color: #888;
    background: #eee;
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}

.tc-gold {
    color: #c68b00 !important;
}

/* Time row */
.tc-mtime-row {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 14px;
    gap: 10px;
}

.tc-mtime-block {
    flex: 1;
    text-align: center;
}

.tc-mtime-icon {
    font-size: 20px;
    margin-bottom: 3px;
}

.tc-mtime-val {
    font-size: 17px;
    font-weight: 800;
    color: #222;
    margin-top: 2px;
}

.tc-mtime-sep {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.tc-mtime-line {
    width: 1px;
    height: 12px;
    background: #ddd;
}

.tc-mtime-arrow {
    font-size: 16px;
    color: #ccc;
}

/*tithi calender without db --------------------------------*/
/* ══ Panchang Calendar Tab ══════════════════════════════════════════ */
/*#pc-calendar {*/
/*    padding: 0 2px 24px;*/
/*}*/

/*!* ── Header ── *!*/
/*.clt-header {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*    background: rgba(241, 143, 6, 0.25);*/
/*    border-radius: 12px;*/
/*    border: 1px solid rgba(240, 165, 0, .5);*/
/*    box-shadow: 0 4px 14px rgba(107, 63, 160, .35);*/
/*    padding: 6px 10px;*/
/*    margin-bottom: 10px;*/
/*}*/

/*.clt-nav-btn {*/
/*    width: 40px;*/
/*    height: 40px;*/
/*    background: rgba(255, 255, 255, .18);*/
/*    color: #fff;*/
/*    border-radius: 10px;*/
/*    font-size: 28px;*/
/*    line-height: 1;*/
/*    cursor: pointer;*/
/*    transition: background .15s;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    user-select: none;*/
/*}*/

/*.clt-nav-btn:hover {*/
/*    background: rgba(255, 255, 255, .32);*/
/*}*/

/*.clt-month-title {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 8px;*/
/*}*/

/*.clt-mname {*/
/*    font-size: 19px;*/
/*    font-weight: 800;*/
/*    color: #070707;*/
/*}*/

/*.clt-ybadge {*/
/*    font-size: 14px;*/
/*    font-weight: 700;*/
/*    color: #9c5e07;*/
/*    background: rgb(255, 255, 255);*/
/*    padding: 3px 12px;*/
/*    border-radius: 20px;*/
/*}*/

/*!* ── Week row ── *!*/
/*.clt-week-row {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(7, 1fr);*/
/*    gap: 3px;*/
/*    margin-bottom: 6px;*/
/*    background: #f3eaff;*/
/*    border-radius: 10px;*/
/*    border: 1px solid rgba(107, 63, 160, .22);*/
/*    padding: 8px 2px;*/
/*}*/

/*.clt-whead {*/
/*    text-align: center;*/
/*    font-size: 14px;*/
/*    font-weight: 800;*/
/*    color: #5b2d8e;*/
/*}*/

/*.clt-sun {*/
/*    color: #c62828 !important;*/
/*}*/

/*!* ── Grid ── *!*/
/*.clt-grid {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(7, 1fr);*/
/*    gap: 4px;*/
/*    margin-bottom: 10px;*/
/*}*/

/*!* ── Cell base ── *!*/
/*.clt-cell {*/
/*    border-radius: 10px;*/
/*    min-height: 90px;*/
/*    border: 1px solid #e0e0e0;*/
/*    background: #fff;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    padding: 6px 2px 0;*/
/*    cursor: pointer;*/
/*    position: relative;*/
/*    transition: box-shadow .15s, border-color .15s;*/
/*    overflow: hidden;*/
/*}*/

/*.clt-cell:hover {*/
/*    box-shadow: 0 2px 10px rgba(0, 0, 0, .14);*/
/*    border-color: #ccc;*/
/*}*/

/*.clt-empty {*/
/*    background: transparent !important;*/
/*    border: none !important;*/
/*    cursor: default;*/
/*}*/

/*!* ── Cell content ── *!*/
/*.clt-num {*/
/*    font-size: 16px;*/
/*    font-weight: 900;*/
/*    color: #212121;*/
/*    line-height: 1.1;*/
/*}*/

/*.clt-num-sun {*/
/*    color: #c62828;*/
/*}*/

/*.clt-moon {*/
/*    font-size: 40px;*/
/*    line-height: 1.2;*/
/*}*/

/*.clt-tname {*/
/*    font-size: 14px;*/
/*    font-weight: 700;*/
/*    color: #555;*/
/*    text-align: center;*/
/*    line-height: 1.2;*/
/*    white-space: nowrap;*/
/*    overflow: hidden;*/
/*    text-overflow: ellipsis;*/
/*    max-width: 100%;*/
/*    padding: 0 3px;*/
/*}*/

/*!* ── Paksha bar ── *!*/
/*.clt-bar {*/
/*    height: 5px;*/
/*    width: 65%;*/
/*    border-radius: 3px;*/
/*    margin-top: auto;*/
/*    margin-bottom: 5px;*/
/*}*/

/*.clt-bar-s {*/
/*    background: #f0a500;*/
/*}*/

/*.clt-bar-k {*/
/*    background: #6b3fa0;*/
/*}*/

/*!* ── Special day backgrounds ── *!*/
/*.clt-sp-ekadashi {*/
/*    background: #e8f5e9 !important;*/
/*    border-color: rgba(46, 125, 50, .4) !important;*/
/*}*/

/*.clt-sp-purnima {*/
/*    background: #fce4ec !important;*/
/*    border-color: rgba(194, 24, 91, .4) !important;*/
/*}*/

/*.clt-sp-amavasya {*/
/*    background: #eceff1 !important;*/
/*    border-color: rgba(96, 125, 139, .4) !important;*/
/*}*/

/*.clt-sp-chaturthi {*/
/*    background: #ffebee !important;*/
/*    border-color: rgba(198, 40, 40, .4) !important;*/
/*}*/

/*.clt-sp-pradosh {*/
/*    background: #ede7f6 !important;*/
/*    border-color: rgba(91, 45, 142, .4) !important;*/
/*}*/

/*!* ── Today ── *!*/
/*.clt-today {*/
/*    background: linear-gradient(135deg, #ffd54f, #f0a500) !important;*/
/*    border: 2px solid #c8942a !important;*/
/*    box-shadow: 0 3px 12px rgba(240, 165, 0, .5) !important;*/
/*}*/

/*.clt-today .clt-num {*/
/*    color: #fff !important;*/
/*    font-size: 18px;*/
/*}*/

/*.clt-today .clt-tname {*/
/*    color: rgba(255, 255, 255, .95) !important;*/
/*}*/

/*.clt-today .clt-bar {*/
/*    background: rgba(255, 255, 255, .8) !important;*/
/*}*/

/*!* ── Selected ── *!*/
/*.clt-selected {*/
/*    background: #fff9e6 !important;*/
/*    border: 2px solid #f0a500 !important;*/
/*    box-shadow: 0 2px 8px rgba(240, 165, 0, .3) !important;*/
/*}*/

/*!* ── Legend ── *!*/
/*.clt-legend-row {*/
/*    display: flex;*/
/*    flex-wrap: wrap;*/
/*    gap: 7px 14px;*/
/*    padding: 10px 12px;*/
/*    background: #f9f9f9;*/
/*    border-radius: 10px;*/
/*    border: 1px solid #eee;*/
/*    margin-top: 2px;*/
/*}*/

/*.clt-leg-item {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 5px;*/
/*    font-size: 12px;*/
/*    font-weight: 600;*/
/*    color: #555;*/
/*}*/

/*.clt-leg-dot {*/
/*    width: 11px;*/
/*    height: 11px;*/
/*    border-radius: 3px;*/
/*    border: 1.5px solid;*/
/*    display: inline-block;*/
/*    opacity: .85;*/
/*}*/

/*.clt-leg-bar {*/
/*    width: 20px;*/
/*    height: 5px;*/
/*    border-radius: 2px;*/
/*    display: inline-block;*/
/*}*/
/* ══ Panchang Calendar Tab (Dark Theme + Min 14px Font + Horizontal Scroll) ══ */
#pc-calendar {
    padding: 8px;
    background: #121212;
    border-radius: 14px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 14px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

#pc-calendar *,
#pc-calendar *::before,
#pc-calendar *::after {
    box-sizing: border-box;
}

/* ── Header ── */
.clt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e1e1e;
    border-radius: 10px;
    border: 1px solid #333;
    padding: 8px 12px;
    margin-bottom: 8px;
    gap: 8px;
}

.clt-nav-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: #2c2c2c;
    color: #fff;
    border-radius: 8px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.clt-nav-btn:hover {
    background: #3d3d3d;
}

.clt-month-title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.clt-mname {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.clt-ybadge {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    background: #ffd600;
    padding: 3px 12px;
    border-radius: 20px;
}

/* ── Scroll Hint (Hidden on desktop, shown on small screens) ── */
.clt-scroll-hint {
    display: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #ffd600;
    background: #1c1a10;
    border: 1px solid rgba(255, 214, 0, 0.25);
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 8px;
}

/* ── Scrollable Wrapper for Small Displays ── */
.clt-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #555 #1b1b1b;
    margin-bottom: 10px;
    border-radius: 8px;
}

.clt-scroll-wrapper::-webkit-scrollbar {
    height: 7px;
}

.clt-scroll-wrapper::-webkit-scrollbar-track {
    background: #1b1b1b;
    border-radius: 8px;
}

.clt-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 8px;
}

.clt-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.clt-board-inner {
    width: 100%;
    min-width: 820px; /* Keeps 14px+ text comfortable and lets small displays scroll left/right */
}

/* ── Week row ── */
.clt-week-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: #333333;
    border: 1px solid #0a0a0a;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.clt-whead {
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    padding: 9px 4px;
    text-transform: uppercase;
    border-right: 1px solid #1a1a1a;
}

.clt-whead:last-child {
    border-right: none;
}

.clt-sun {
    color: #ff6b6b !important;
}

/* ── Grid ── */
.clt-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: #050505;
    border: 1px solid #050505;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* ── Cell base ── */
.clt-cell {
    min-height: 128px;
    background: #242424;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 6px 5px 8px;
    cursor: pointer;
    position: relative;
    transition: background .15s;
    min-width: 0;
}

.clt-cell:hover {
    background: #2f2f2f;
}

.clt-empty {
    background: #1a1a1a !important;
    cursor: default;
}

/* ── Cell Top Row (Date Left + Tithi Badge Right) ── */
.clt-cell-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.clt-num {
    font-size: 15px;
    font-weight: 800;
    color: #d4d4d4;
    line-height: 1.1;
}

.clt-num-sun {
    color: #ff6b6b;
}

.clt-tbadge {
    min-width: 24px;
    height: 24px;
    padding: 0 5px;
    flex-shrink: 0;
    border-radius: 999px;
    background: #ffd600;
    color: #111111;
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ── Realistic Moon Graphic ── */
.clt-moon-wrap {
    width: 60px;
    height: 60px;
    margin: 3px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.clt-moon-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.12));
}

/* ── Cell Texts (Tithi & Nakshatra) ── */
.clt-info-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

.clt-tname {
    font-size: 14px;
    font-weight: 600;
    color: #d8d8d8;
    text-align: center;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.clt-nak-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 14px;
    font-weight: 600;
    color: #b0b0b0;
    line-height: 1.25;
    max-width: 100%;
}

.clt-nak-row span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Paksha bottom indicator ── */
.clt-bar {
    height: 3px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0.75;
}

.clt-bar-s {
    background: #f0a500;
}

.clt-bar-k {
    background: #9c6ade;
}

/* ── Special day subtle dark tints ── */
.clt-sp-ekadashi {
    background: #1b2e20 !important;
}

.clt-sp-purnima {
    background: #301b24 !important;
}

.clt-sp-amavasya {
    background: #192024 !important;
}

.clt-sp-chaturthi {
    background: #2e1b1b !important;
}

.clt-sp-pradosh {
    background: #231b30 !important;
}

/* ── Today ── */
.clt-today {
    background: #000000 !important;
    box-shadow: inset 0 0 0 1.5px #ffd600 !important;
}

.clt-today .clt-num {
    color: #ffffff !important;
}

.clt-today .clt-tname {
    color: #ffffff !important;
    font-weight: 700;
}

/* ── Selected ── */
.clt-selected {
    background: #2c2614 !important;
    box-shadow: inset 0 0 0 1.5px #f0a500 !important;
}

/* ── Dark Legend ── */
.clt-legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 10px 12px;
    background: #1c1c1c;
    border-radius: 8px;
    border: 1px solid #2e2e2e;
}

.clt-leg-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #bdbdbd;
}

.clt-leg-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid;
    display: inline-block;
    flex-shrink: 0;
}

.clt-leg-bar {
    width: 20px;
    height: 5px;
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}

/* ══ Responsive Breakpoints (Keeping Min Font Size 14px) ══════════════ */
@media (max-width: 768px) {
    #pc-calendar {
        padding: 6px;
        border-radius: 10px;
        font-size: 14px;
    }

    .clt-scroll-hint {
        display: block;
        font-size: 14px;
    }

    .clt-board-inner {
        min-width: 780px;
    }

    .clt-mname {
        font-size: 17px;
    }

    .clt-nav-btn {
        width: 34px;
        height: 34px;
        font-size: 22px;
    }

    .clt-cell {
        min-height: 120px;
        padding: 5px 4px 7px;
    }

    .clt-moon-wrap {
        width: 36px;
        height: 36px;
    }

    .clt-num,
    .clt-tbadge,
    .clt-tname,
    .clt-nak-row,
    .clt-whead,
    .clt-leg-item {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .clt-board-inner {
        min-width: 740px;
    }

    .clt-whead {
        font-size: 14px;
        padding: 7px 3px;
    }

    .clt-num,
    .clt-tbadge,
    .clt-tname,
    .clt-nak-row,
    .clt-leg-item,
    .clt-scroll-hint {
        font-size: 14px;
    }

    .clt-legend-row {
        gap: 8px 12px;
        padding: 8px 10px;
    }
}
/* ══ Modal ══════════════════════════════════════════════════════════ */
@keyframes cltIn {
    from {
        opacity: 0;
        transform: scale(.92) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes cltSpin {
    to {
        transform: rotate(360deg);
    }
}

#clt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .52);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.clt-modal,
.clt-modal-sheet {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    max-width: 430px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: cltIn .25s cubic-bezier(.22, 1, .36, 1) both;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
}

/* Drag handle */
.clt-drag-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px;
    background: #ffffff;
    flex-shrink: 0;
}

.clt-drag-bar {
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: #d1d5db;
}

/* Modal header */
.clt-mhdr,
.clt-mhdr-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 18px 14px;
    background: #ffffff;
    border-bottom: 1px solid #eef0f4;
    flex-shrink: 0;
}

.clt-mh-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.clt-mh-moon,
.clt-mh-moon-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2c353d;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.clt-mh-info {
    flex: 1;
    min-width: 0;
}

.clt-mh-day,
.clt-mh-day-clean {
    font-size: 19px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.clt-mh-date,
.clt-mh-date-clean {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.clt-mh-right,
.clt-mh-right-clean {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.clt-pkbadge,
.clt-pkbadge-clean {
    font-size: 13px;
    font-weight: 700;
    color: #d98a1c;
    background: transparent;
    border: none;
    padding: 0;
    white-space: nowrap;
}

.clt-mclose,
.clt-mclose-clean {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.clt-mclose:hover,
.clt-mclose-clean:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Special badge strip */
.clt-sp-wrap {
    padding: 10px 18px 0;
    flex-shrink: 0;
}

.clt-sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff8eb;
    border: 1px solid #f5c77e;
    color: #9a5b00;
}

/* Scrollable body */
.clt-mbody,
.clt-mbody-clean {
    padding: 6px 18px 20px;
    overflow-y: auto;
    flex: 1;
}

/* Section headings (Sunrise / Sunset, Panchang — Five Limbs, Rashi) */
.clt-sec-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #e09119;
    margin: 14px 0 8px;
}

.clt-sec-bar {
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: #e09119;
    flex-shrink: 0;
}

/* Key-value rows (Sunrise / Sunset / Rashi / Dosha) */
.clt-kv-list {
    border-bottom: 1px solid #eef0f4;
    padding-bottom: 4px;
}

.clt-kv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f3f4f6;
}

.clt-kv-row:last-child {
    border-bottom: none;
}

.clt-kv-row-top {
    align-items: flex-start;
}

.clt-kv-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.pctm-icon-img-size {
    width: 15px;
    height: 15px;
    padding: 5px;
    box-sizing: content-box;
    border-radius: 50%;
    background: #f3f4f6;
    object-fit: contain;
    flex-shrink: 0;
}

.clt-panchak-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clt-panchak-badge .pctm-icon-img-size {
    background: #fee2e2;
}
.clt-kv-val {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.clt-kv-val-sm {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    text-align: right;
}

/* Panchang limb blocks (Tithi, Nakshatra, Yoga, Karana, Vara) */
.clt-limb-block {
    padding: 13px 0;
    border-bottom: 1px solid #eef0f4;
}

.clt-limb-block:last-of-type {
    border-bottom: 1px solid #eef0f4;
}

.clt-limb-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.clt-limb-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.clt-limb-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.clt-limb-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #6b7280;
    text-transform: uppercase;
}

.clt-kicker-tag {
    color: #9ca3af;
    font-weight: 600;
    margin-left: 4px;
}

.clt-limb-name {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    margin-top: 2px;
}

.clt-limb-next {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.clt-limb-right {
    text-align: right;
    flex-shrink: 0;
}

.clt-until-lbl {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2;
}

.clt-until-time {
    font-size: 15px;
    font-weight: 700;
    color: #e09119;
    line-height: 1.25;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

/* Timeline bar under each limb */
.clt-range-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.clt-range-bar:empty {
    display: none;
}

.clt-tr-time {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.clt-tr-line {
    flex: 1;
    height: 1.5px;
    background: #f5c77e;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clt-tr-line::before,
.clt-tr-line::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
}

.clt-tr-line::before {
    border-width: 3.5px 5px 3.5px 0;
    border-color: transparent #e09119 transparent transparent;
}

.clt-tr-line::after {
    border-width: 3.5px 0 3.5px 5px;
    border-color: transparent transparent transparent #e09119;
}

.clt-tr-dot {
    display: none;
}

/* Panchak badge */
.clt-panchak-wrap {
    margin-top: 10px;
}

.clt-panchak-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 9px 14px;
    border-radius: 12px;
}

/* Loading spinner */
.clt-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 8px 4px;
    font-size: 13.5px;
    color: #6b7280;
}

.clt-spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    border-top-color: #e09119;
    animation: cltSpin .7s linear infinite;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    #clt-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .clt-modal,
    .clt-modal-sheet {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 22px 22px 0 0;
    }
}
/* ═══════════════════════════════════════════
   SUN ARC — Full CSS (Left + Right)
═══════════════════════════════════════════ */

/* ── Main arc card (left) ──────────────────── */
.sa-card {
    background: rgba(241, 143, 6, 0.06);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(241, 143, 6, 0.12),
    0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(241, 143, 6, 0.22);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Top bar ──────────────────────────────── */
.sa-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 7px;
    background: linear-gradient(135deg, rgba(241, 143, 6, 0.10) 0%, rgba(241, 143, 6, 0.00) 100%);
}

.sa-live-time {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.sa-live-date {
    font-size: 13px;
    color: #1a1a1a;
    margin-top: 3px;
    font-weight: 600;
}

.sa-vara-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 11px;
    background: rgba(241, 143, 6, 0.18);
    border: 1px solid rgba(241, 143, 6, 0.35);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #111;
}

/* Tithi pill — right */
.sa-tithi-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(241, 143, 6, 0.30);
    border-radius: 14px;
    padding: 10px 16px 10px 12px;
    backdrop-filter: blur(6px);
}

.sa-tithi-icon {
    font-size: 22px;
    line-height: 1;
}

.sa-tithi-name {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
}

.sa-paksha {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-top: 2px;
}
.sa-ghati-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(241, 143, 6, 0.30);
    border-radius: 14px;
    padding: 10px 16px 10px 12px;
    backdrop-filter: blur(6px);
}

.sa-ghati-time {
    font-weight: bold;
}
/* ── Bottom status bar ───────────────────── */
.sa-bot-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 2px 2px;
    background: linear-gradient(0deg, rgba(241, 143, 6, 0.08) 0%, transparent 100%);
}

.sa-endpoint {
    display: flex;
    align-items: center;
    gap: 2px;
}

.sa-endpoint-right {
    justify-content: flex-end;
}

.sa-ep-icon {
    font-size: 26px;
    line-height: 1;
}

.sa-ep-label {
    font-size: 11px;
    color: #444;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 700;
}

.sa-ep-time {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    margin-top: 1px;
}

.sa-status-center {
    text-align: center;
}

.sa-status-badge {
    display: inline-block;
    padding: 5px 5px;
    border-radius: 20px;
    background: rgba(241, 143, 6, 0.15);
    border: 1.5px solid rgba(241, 143, 6, 0.35);
    font-size: 14px;
    font-weight: 800;
    color: #111;
}

.sa-remain {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════
   DETAIL CARD — Right column (redesigned)
═══════════════════════════════════════════ */
.sa-detail-card {
    background: rgba(241, 143, 6, 0.13);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(241, 143, 6, 0.15),
    0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(241, 143, 6, 0.28);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sa-detail-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(241, 143, 6, 0.22);
    border-bottom: 1px solid rgba(241, 143, 6, 0.25);
    font-size: 15px;
    font-weight: 800;
    color: #111;
}

.sa-detail-head-icon {
    font-size: 20px;
}

.sa-detail-body {
    padding: 2px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 2-column grid row */
.sa-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

/* Individual item */
.sa-di {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 10px 5px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(241, 143, 6, 0.18);
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.sa-di:hover {
    background: rgba(255, 255, 255, 0.88);
}

/* Full-width item */
.sa-di-full {
    width: 100%;
}

/* Icon rounded square */
.sa-di-ic {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* Icon background variants */
.sa-ic-gold {
    background: rgba(234, 179, 8, 0.20);
}

.sa-ic-orange {
    background: rgba(249, 115, 22, 0.20);
}

.sa-ic-blue {
    background: rgba(59, 130, 246, 0.16);
}

.sa-ic-indigo {
    background: rgba(99, 102, 241, 0.16);
}

/* Text block: label above, value below */
.sa-di-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sa-di-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #555;
    white-space: nowrap;
    margin-bottom: 2px;
}

.sa-di-val {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Mobile responsive ───────────────────── */
@media (max-width: 768px) {
    .sa-detail-body {
        padding: 2px;
        gap: 3px;
    }

    .sa-grid-2 {
        gap: 3px;
    }

    .sa-di {
        padding: 10px 11px;
        gap: 9px;
    }

    .sa-di-ic {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 18px;
        border-radius: 10px;
    }

    .sa-di-val {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .sa-top-bar {
        padding: 5px 5px 5px;
        flex-wrap: wrap;
        gap: 2px;
    }

    .sa-bot-bar {
        padding: 2px 2px 2px;
    }

    .sa-live-time {
        font-size: 16px;
    }

    .sa-ep-icon {
        font-size: 16px;
    }

    .sa-ep-time {
        font-size: 12px;
    }

    .sa-tithi-pill {
        padding: 2px;
        gap: 2px;
    }
    .sa-ghati-pill{
        padding: 2px;
    }
    .sa-tithi-name {
        font-size: 12px;
    }

    .sa-detail-head {
        padding: 12px 14px;
        font-size: 20px;
    }

    .sa-di-val {
        font-size: 14px;
    }
    .sa-ghati-time{
        font-size: 13px;
    }
    .sa-ghati-name{
        font-size: 10px;
    }
    .sa-live-date {
        font-size: 10px;
    }
    }

@media (max-width: 400px) {
    .sa-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}
/* ══════════════════════════════════════════════════
   PANCHANG DATA — Unified single-tone CSS
   ══════════════════════════════════════════════════ */

/* Single color token — change just this one value to retheme everything */
:root {
    --pc-accent:       rgba(241, 143, 6, 1);
    --pc-accent-mid:   rgba(241, 143, 6, 0.22);
    --pc-accent-soft: rgb(239, 204, 157);
    --pc-accent-ghost: rgba(241, 143, 6, 0.07);
}

/* ══════════════════════════════════════════════════
   PCTM TIMELINE CARDS
   ══════════════════════════════════════════════════ */

.pctm-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.pctm-card {
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8eaed;
    padding: 15px 15px 12px;
    position: relative;
    overflow: visible; /* visible so popover is not clipped */
    transition: box-shadow .2s, transform .2s;
}

.pctm-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
    transform: translateY(-1px);
}

/* Left color accent strip — single amber tone */
.pctm-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--pc-accent);
    border-radius: 4px 0 0 4px;
}

/* Top row */
.pctm-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 13px;
}

.pctm-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--pc-accent-ghost);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1.5px solid var(--pc-accent-soft);
}
.pctm-icon-img-size{
    width: 20px;
    height: auto;
}
.pctm-info {
    flex: 1;
    min-width: 0;
}

/* ── LABEL BADGE (TITHI / NAKSHATRA etc.) ── */
.pctm-label {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #111;
    font-weight: 800;
    margin-bottom: 4px;
    display: inline-block;
    background: var(--pc-accent-soft);
    border: 1px solid var(--pc-accent-mid);
    padding: 2px 10px;
    border-radius: 20px;
    line-height: 1.7;
}

.pctm-name {
    font-size: 18px;
    font-weight: 900;
    color: #111;
    line-height: 1.25;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pctm-paksha {
    font-size: 15px;
    color: #111;
    font-weight: 700;
    margin-top: 3px;
}

/* ── "Next:" pill ── */
.pctm-next {
    cursor: pointer;
    user-select: none;
    position: relative;      /* popover anchor */
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    background: var(--pc-accent-ghost);
    border: 1px solid var(--pc-accent-soft);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 15px;
    color: #111;
    font-weight: 600;
    margin-top: 6px;
}

.pctm-next-lbl {
    color: #111;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.pctm-next-val {
    color: #111;
    font-weight: 800;
    font-size: 15px;
    white-space: nowrap;
}

/* ── Chevron circle button ── */
.pctm-next-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: var(--pc-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    transition: transform .25s ease;
}

/* ── Popover — 4-row list, floats outside card ── */
.pctm-next-detail {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 999;
    background: #fff;
    border: 1.5px solid var(--pc-accent-mid);
    border-radius: 14px;
    padding: 8px 4px;
    min-width: 230px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px) scale(.97);
    transform-origin: top left;
    transition: opacity .22s ease, transform .22s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pctm-nd-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid #f0f1f4;
}

.pctm-nd-row:last-child { border-bottom: none; }

.pctm-nd-end {
    border-top: 2px solid var(--pc-accent-soft);
    margin-top: 2px;
}

.pctm-nd-ic {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.pctm-nd-lbl {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    flex: 1;
    white-space: nowrap;
}

.pctm-nd-val {
    font-size: 15px;
    font-weight: 900;
    color: #111;
    white-space: nowrap;
}

/* Open state */
.pctm-next.is-open .pctm-next-chevron {
    transform: rotate(90deg);
}

.pctm-next.is-open .pctm-next-detail {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ── STATUS BLOCK (top-right) ── */
.pctm-status {
    text-align: right;
    flex-shrink: 0;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.pctm-status-lbl {
    font-size: 15px;
    color: #111;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: var(--pc-accent-soft);
    border: 1px solid var(--pc-accent-mid);
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.7;
}

.pctm-status-time {
    font-size: 16px;
    font-weight: 900;
    color: #111;
    white-space: nowrap;
}

.pctm-status-date {
    font-size: 15px;
    color: #111;
    font-weight: 700;
    margin-top: 1px;
}

/* ── Progress bar ── */
.pctm-bar-wrap { margin-top: 2px; }

.pctm-bar-track {
    height: 7px;
    background: #e8eaed;
    border-radius: 4px;
    position: relative;
    overflow: visible;
}

.pctm-bar-fill {
    height: 100%;
    border-radius: 4px;
    /* Single soft amber fill — no heavy gradient */
    background: var(--pc-accent-soft);
    position: relative;
    transition: width .6s ease;
    min-width: 0;
    max-width: 100%;
}

/* Dot at end of fill */
.pctm-bar-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--pc-accent);
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 2px var(--pc-accent-soft);
    display: var(--pctm-dot-display, block);
}

.pctm-bar-times {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
}

.pctm-bar-time {
    font-size: 15px;
    color: #111;
    font-weight: 700;
}

/* ── Ended badge (shown by JS) ── */
.pctm-ended-badge {
    display: none;
    padding: 2px 10px;
    background: rgba(107, 114, 128, .10);
    color: #111;
    border: 1px solid rgba(107, 114, 128, .22);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
}

/* ── Active pulse dot ── */
.pctm-active-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pc-accent);
    margin-right: 1px;
    vertical-align: middle;
    animation: pctm-pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pctm-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: .45; transform: scale(.75); }
}

/* ── Ended state ── */
.pctm-card.is-ended { opacity: .72; }

.pctm-card.is-ended .pctm-bar-fill {
    background: rgba(180, 184, 192, .35);
}

.pctm-card.is-ended .pctm-bar-fill::after {
    background: #9ca3af;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, .30);
}

.pctm-card.is-ended .pctm-active-dot { display: none; }

.pctm-card.is-ended .pctm-ended-badge { display: inline-block; }

.pctm-card.is-ended .pctm-status-lbl {
    background: rgba(107, 114, 128, .10);
    border-color: rgba(107, 114, 128, .22);
    color: #444;
}

/* ── Upcoming state ── */
.pctm-card.is-upcoming .pctm-bar-fill::after { display: none; }

.pctm-card.is-upcoming .pctm-status-lbl {
    background: rgba(59, 130, 246, .10) !important;
    border-color: rgba(59, 130, 246, .22) !important;
    color: #111 !important;
}

/* ══════════════════════════════════════════════════
   RASHI CARD
   ══════════════════════════════════════════════════ */

.rashi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
}

.rashi-item {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8eaed;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 13px;
    transition: box-shadow .2s;
}

.rashi-item:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, .09);
}

.rashi-symbol-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--pc-accent-soft);
    border: 1.5px solid var(--pc-accent-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.rashi-sign-label {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #111;
    font-weight: 700;
    margin-bottom: 3px;
}

.rashi-sign-name {
    font-size: 18px;
    font-weight: 900;
    color: #111;
    line-height: 1.2;
}

.rashi-sign-lord {
    font-size: 15px;
    color: #111;
    font-weight: 700;
    margin-top: 3px;
}

/* ══════════════════════════════════════════════════
   CALENDAR INFO — icon grid + lunar section
   ══════════════════════════════════════════════════ */

.calinfo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px 14px 0;
}

.calinfo-item {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #fafbfc;
    border: 1px solid #e8eaed;
    border-radius: 13px;
    padding: 11px 12px;
    transition: box-shadow .18s;
}

.calinfo-item:hover {
    box-shadow: 0 3px 14px rgba(0, 0, 0, .08);
}

.calinfo-ic {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: var(--pc-accent-soft);
}

.calinfo-body { min-width: 0; }

.calinfo-lbl {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #111;
    font-weight: 700;
    margin-bottom: 3px;
    white-space: nowrap;
}

.calinfo-val {
    font-size: 15px;
    font-weight: 900;
    color: #111;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calinfo-sub {
    font-size: 15px;
    color: #111;
    font-weight: 700;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Divider between samvat and lunar */
.calinfo-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 14px 0;
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--pc-accent-soft);
}

.calinfo-divider::before,
.calinfo-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--pc-accent-soft);
}

.calinfo-divider span {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    white-space: nowrap;
    letter-spacing: .3px;
}

/* Lunar month items */
.calinfo-lunar {
    padding: 6px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.calinfo-lunar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 4px;
    border-bottom: 1px solid #f0f1f4;
}

.calinfo-lunar-item:last-child { border-bottom: none; }

.calinfo-lunar-ic {
    font-size: 18px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.calinfo-lunar-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.calinfo-lunar-body .calinfo-lbl {
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
    color: #111;
    font-weight: 700;
    white-space: nowrap;
    margin: 0;
}

.calinfo-lunar-body .calinfo-val {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    text-align: right;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   MOBILE RESPONSIVE — min font stays 15px
   ══════════════════════════════════════════════════ */

@media (max-width: 576px) {
    .pctm-wrap { padding: 10px; gap: 8px; }

    .pctm-card { padding: 12px 12px 10px; }

    .pctm-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
        border-radius: 10px;
    }

    .pctm-name { font-size: 16px; }

    .pctm-status { min-width: 68px; }

    .pctm-status-time { font-size: 15px; }

    .rashi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px;
    }

    .rashi-symbol-wrap {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .rashi-sign-name { font-size: 16px; }

    .calinfo-grid {
        grid-template-columns: 1fr 1fr;
        padding: 10px 10px 0;
        gap: 6px;
    }

    .calinfo-item { padding: 9px 10px; gap: 8px; }

    .calinfo-ic {
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 8px;
    }

    .calinfo-divider { margin: 10px 10px 0; }

    .calinfo-lunar { padding: 4px 10px 10px; }
}

@media (max-width: 400px) {
    .pctm-top { gap: 9px; }

    .pctm-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

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

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

    .calinfo-lunar-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .calinfo-lunar-body .calinfo-val { text-align: left; }
}
/*==============lagna row amimation ======================*/
@property --lagna-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* Running row */
#currentPlanetPositionsTable tr.lagna-row-active {
    position: relative;
    isolation: isolate;
}

/* Orange background */
#currentPlanetPositionsTable tr.lagna-row-active td {
    background-color: rgba(241, 143, 6, 0.25) !important;
}

/* Animated border around full row */
#currentPlanetPositionsTable tr.lagna-row-active::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    padding: 2px;
    border-radius: 5px;

    background: conic-gradient(
        from var(--lagna-angle),
        red 0deg,
        #8b0000 30deg,
        red 65deg,
        red 120deg,
        transparent 150deg,
        transparent 360deg
    );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    animation: lagnaBorderRun 2s linear infinite;
}

/* Runner animation */
@keyframes lagnaBorderRun {
    from {
        --lagna-angle: 0deg;
    }
    to {
        --lagna-angle: 360deg;
    }
}
/* Rashi icon and name alignment */
.lagna-rashi-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    white-space: nowrap;
}

/* Fixed icon position */
.lagna-rashi-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 24px;
    display: block;
}

/* Rashi name */
.lagna-name,
.lagna-name-active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
