.vjss-chart-widget {
    max-width: 480px;
    /* Mobile first */
    margin: 0 auto;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    padding: 20px 16px;
    box-sizing: border-box;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    width: 100%;
}

.vjss-chart-widget * {
    box-sizing: border-box;
}

.vjss-widget-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vjss-widget-left,
.vjss-widget-right {
    display: flex;
    flex-direction: column;
}

/* ── Header ── */
.vjss-header-location {
    background: linear-gradient(135deg, #1a0f3c 0%, #2a1b5c 100%);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(26, 15, 60, 0.2);
}

.vjss-header-location:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 15, 60, 0.3);
}

/* ── Chart Section ── */
.vjss-chart-section {
    position: relative;
    padding: 0 14px;
    margin-bottom: 24px;
}

/* Pill buttons */
.vjss-btn-pill {
    position: absolute;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    border-radius: 20px;
    color: #1a0f3c;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 10;
}

.vjss-btn-pill i {
    font-size: 14px;
    color: #1a0f3c;
}

.vjss-btn-tithi {
    top: 40px;
    left: 0;
}

.vjss-btn-pachh {
    top: 40px;
    right: 0;
}

/* SVG Chart container */
.vjss-chart-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#vjss-chart-svg {
    width: 100%;
}

.vjss-svg-chart {
    width: 100%;
    height: auto;
    display: block;
}

/* Middle info box */
.vjss-middle-info {
    position: relative;
    margin: -40px auto 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 14px 20px;
    border-radius: 16px;
    text-align: center;
    z-index: 5;
    width: clamp(200px, 70%, 280px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.vjss-tithi-date {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
    color: #000;
}

.vjss-shubh-time {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.vjss-shubh-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* ── Sunrise / Sunset ── */
.vjss-sun-moon-times {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 24px;
    padding: 0;
}

.vjss-time-block {
    text-align: center;
    background: #f8f9fa;
    padding: 14px 12px;
    border-radius: 16px;
    flex: 1;
    min-width: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s;
}

.vjss-time-block:hover {
    transform: translateY(-2px);
}

.vjss-time-block i {
    font-size: 24px;
    margin-bottom: 6px;
    display: block;
    color: #1a0f3c;
}

.vjss-time-block .label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 2px;
}

.vjss-time-block .time {
    display: block;
    font-weight: 700;
    font-size: clamp(16px, 4vw, 20px);
    color: #000;
}

/* ── Tabs ── */
.vjss-tabs-container {
    background: #f0f2f5;
    border-radius: 30px;
    display: flex;
    margin-top: 10px;
    padding: 6px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.vjss-tab {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    color: #666;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border-radius: 24px;
    border: none;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.vjss-tab.active {
    background: #1a0f3c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 15, 60, 0.2);
}

/* ── List ── */
.vjss-list-container {
    background: linear-gradient(180deg, #1a0f3c 0%, #11092a 100%);
    border-radius: 20px;
    margin-top: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    color: #fff;
    min-height: 250px;
    box-shadow: 0 10px 30px rgba(26, 15, 60, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    gap: 10px;
}

.vjss-list-col {
    width: 100%;
}

.vjss-list-col:last-child {
    margin-top: 0px;
}

.vjss-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}

.vjss-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.vjss-list-item:last-child {
    margin-bottom: 0;
}

.vjss-list-item .vjss-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.vjss-list-item .vjss-label {
    color: #ccc;
    flex-grow: 1;
    white-space: nowrap;
}

.vjss-list-item .vjss-time {
    font-weight: 700;
    color: #fff;
    margin-left: 8px;
    white-space: nowrap;
}

/* Current item inner dot */
.vjss-list-item .vjss-dot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vjss-inner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

/* Choghadiya list (single column centered) */
.vjss-chog-list-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 10px;
}

.vjss-chog-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.vjss-chog-item .vjss-label {
    flex: 1;
    min-width: 60px;
}

.vjss-chog-item .vjss-time {
    text-align: right;
    flex-shrink: 0;
}

/* Choghadiya Day/Night Sub-tabs */
.vjss-chog-subtabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
    justify-content: center;
}

.vjss-chog-subtab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.vjss-chog-subtab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.vjss-chog-subtab.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.vjss-chog-subtab i.fa-sun {
    color: #FFB300;
    font-size: 15px;
}

.vjss-chog-subtab i.fa-moon {
    color: #90CAF9;
    font-size: 15px;
}

/* ── Responsive ── */

/* ── Mobile (up to 799px) ── */
@media (max-width: 799px) {
    .vjss-chart-widget {
        max-width: 100%;
        padding: 16px 14px;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    }

    .vjss-header-location {
        font-size: 14px;
        padding: 12px 18px;
        margin-bottom: 20px;
    }

    .vjss-chart-section {
        padding: 0 8px;
        margin-bottom: 16px;
    }

    .vjss-btn-pill {
        font-size: 11px;
        padding: 5px 10px;
    }

    .vjss-middle-info {
        width: clamp(180px, 65%, 260px);
        padding: 10px 14px;
        margin-top: -36px;
    }

    .vjss-tithi-date {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .vjss-shubh-time {
        font-size: 12px;
    }

    .vjss-sun-moon-times {
        margin-top: 18px;
        gap: 10px;
    }

    .vjss-time-block {
        padding: 12px 8px;
        border-radius: 12px;
    }

    .vjss-time-block i {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .vjss-time-block .label {
        font-size: 12px;
    }

    .vjss-tabs-container {
        margin-top: 16px;
    }

    .vjss-tab {
        font-size: 14px;
        padding: 12px 0;
    }

    .vjss-list-container {
        flex-direction: column;
        padding: 18px 16px;
        min-height: 200px;
    }

    .vjss-list-item {
        font-size: 14px;
        padding: 9px 12px;
    }

    .vjss-list-col:last-child {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ── Very small phones (360px and below) ── */
@media (max-width: 360px) {
    .vjss-chart-widget {
        padding: 12px 10px;
        border-radius: 12px;
    }

    .vjss-header-location {
        font-size: 13px;
        padding: 10px 14px;
        gap: 6px;
    }

    .vjss-btn-pill {
        font-size: 10px;
        padding: 4px 8px;
    }

    .vjss-middle-info {
        width: clamp(160px, 62%, 220px);
        padding: 8px 10px;
    }

    .vjss-tithi-date {
        font-size: 12px;
    }

    .vjss-shubh-time {
        font-size: 11px;
    }

    .vjss-time-block i {
        font-size: 18px;
    }

    .vjss-time-block .label {
        font-size: 11px;
    }

    .vjss-chog-subtab {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ── Desktop (800px and above) ── */
@media (min-width: 800px) {
    .vjss-chart-widget {
        max-width: 1200px;
        padding: 40px;
    }

    .vjss-widget-body {
        flex-direction: row;
        gap: 60px;
        align-items: center;
    }

    .vjss-widget-left {
        flex: 1.1;
        max-width: 55%;
    }

    .vjss-widget-right {
        flex: 0.9;
        max-width: 45%;
        display: flex;
        flex-direction: column;
    }

    .vjss-tabs-container {
        margin-top: 0;
    }

    .vjss-list-container {
        flex-grow: 1;
        /* Stretch to fill height */
    }

    .vjss-header-location {
        font-size: 18px;
        padding: 16px 24px;
        margin-bottom: 40px;
    }

    .vjss-btn-tithi {
        left: -10px;
    }

    .vjss-btn-pachh {
        right: -10px;
    }
}

/* ── Location Popup ── */
.vjss-location-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vjss-location-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.vjss-location-popup {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.vjss-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.vjss-popup-header h3 {
    margin: 0;
    font-size: 18px;
    color: #231656;
}

.vjss-popup-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    padding: 0;
}

.vjss-location-search {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.vjss-location-search:focus {
    border-color: #231656;
}

.vjss-location-list {
    flex-grow: 1;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
}

.vjss-location-item {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vjss-location-item:hover {
    background: #f9f9f9;
}

.vjss-location-item i {
    color: #aaa;
}

.vjss-popup-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* ── Calendar Popup ── */
.vjss-calendar-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vjss-calendar-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.vjss-calendar-popup {
    background: #FDF8F5;
    width: 95%;
    max-width: 450px;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.vjss-calendar-popup .vjss-popup-header {
    background: #A3221E;
    color: #fff;
    padding: 15px 20px;
    margin: 0;
    border-bottom: none;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.vjss-calendar-popup .vjss-popup-header h3 {
    color: #fff;
}

.vjss-calendar-popup .vjss-popup-close {
    color: #fff;
    opacity: 0.8;
}

.vjss-calendar-popup .vjss-popup-close:hover {
    opacity: 1;
}

.vjss-calendar-month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
}

.vjss-cal-prev-month,
.vjss-cal-next-month {
    background: none;
    border: none;
    color: #A3221E;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
}

.vjss-cal-month-title {
    text-align: center;
}

.vjss-cal-guj-month {
    color: #A3221E;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.vjss-cal-eng-month {
    color: #2D2D2D;
    font-size: 18px;
    font-weight: 800;
}

.vjss-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 10px 5px;
    background: #F9F9F9;
    border-bottom: 1px solid #EEE;
    border-top: 1px solid #EEE;
}

.vjss-calendar-weekdays div {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
}

.vjss-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 10px 5px;
    background: #fff;
    overflow-y: auto;
}

.vjss-cal-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 2px;
    border-radius: 8px;
    margin: 2px;
    cursor: pointer;
    min-height: 50px;
}

.vjss-cal-cell.today {
    background: #F5F5F5;
}

.vjss-cal-date-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #F0F0F0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.vjss-cal-cell.highlight-tithi .vjss-cal-date-circle {
    background: #4CAF50;
    color: #fff;
}

.vjss-cal-cell.today:not(.highlight-tithi) .vjss-cal-date-circle {
    background: #A3221E;
    color: #fff;
}

.vjss-cal-sym {
    color: #F47B20;
    font-size: 14px;
    line-height: 14px;
    font-weight: 700;
    margin-top: -2px;
}

.vjss-cal-jain-month {
    font-size: 9px;
    color: #777;
    font-weight: 500;
    text-align: center;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.vjss-calendar-footer {
    padding: 15px 20px;
    background: #FDF8F5;
}

.vjss-cal-today-btn {
    width: 100%;
    background: #A3221E;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.vjss-cal-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.vjss-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2D2D2D;
    font-weight: 500;
}

.vjss-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
}

.vjss-legend-sym {
    color: #F47B20;
    font-weight: 700;
    font-size: 16px;
}

.vjss-copyright {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-weight: 500;
}