/* Theme 3: Luxury APPA KING Reference Layout */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Cinzel:wght@700;800;900&family=Plus+Jakarta+Sans:wght@700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background-color: #F8FAFC;
    color: #1E293B;
    font-family: 'Poppins', Geneva, Tahoma, sans-serif;
    line-height: 1.5;
    padding-bottom: 25px;
    /* space for fixed bottom nav */
}

a {
    color: #0284C7;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #0369A1;
    text-decoration: underline;
}

/* Header Layout */
.custom-header.theme3-header {
    border-bottom: 3px solid #F59E0B;
    position: relative;
    /* box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5); */
}

.top-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: none;
    margin: 5px 0px 0px 0px;
    width: 100%;
    position: relative;
    z-index: 5;
}

.top-nav-bar.centered-nav {
    justify-content: center;
}

/* Quick Action Grid */
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.hdr-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid #F59E0B;
    color: #FFFFFF;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.hdr-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #FDE047;
    transform: translateY(-1px);
}

.brand-center-group {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-brand-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
}

.brand-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.crown-top {
    font-size: 16px;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
}

.logo-text.english {
    font-family: 'Cinzel', serif;
    font-size: clamp(20px, 4.5vw, 34px);
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FDE047 30%, #F59E0B 70%, #B45309 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
    line-height: 1;
}

.sub-slogan {
    font-family: 'Poppins', sans-serif;
    font-size: 8px;
    font-weight: 800;
    color: #F59E0B;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.logoimg {
    width: clamp(90px, 15vw, 125px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.7));
}

.header-slogan-overlay {
    position: absolute;
    top: 10px;
    right: 65px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 6;
    text-align: right;
}

.slogan-script {
    font-family: 'Brush Script MT', cursive, 'Cinzel', sans-serif;
    font-size: 12px;
    color: #FFFFFF;
    font-style: italic;
    line-height: 1.1;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.9);
}

.slogan-crown {
    font-size: 14px;
}

/* Curved Gold Ribbon Banner */
.ribbon-banner {
    margin-top: 10px;
    width: 100%;
    background: linear-gradient(90deg, #e1d0bb 0%, #f5b80b 15%, #FDE047 50%, #e1d0bb 85%, #f5b80b 100%);
    /* border-top: 2px solid #FEF08A;
    border-bottom: 1px solid #B45309; */
    padding: 7px 10px;
    /* border-radius: 20px 20px 0 0; */
    text-align: center;
    box-shadow: 0 -3px 14px rgba(245, 158, 11, 0.45);
    overflow: hidden;
}

.ribbon-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 7px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: 0.8px;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
}

.ribbon-item {
    color: #0F172A;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.35);
    padding: 3px 5px;
    border-radius: 12px;
    border: 1px solid rgba(120, 53, 15, 0.2);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

.ribbon-sep {
    color: #78350F;
    font-weight: 900;
    font-size: 12px;
    opacity: 0.6;
}

/* Home Section Container */
div#section.theme3-home-container {
    width: 100%;
}

div#container {
    width: 98%;
    max-width: 980px;
    margin: auto;
    display: block;
}

/* Notice / Disclaimer Bar (2 Lines as per reference) */
.disclaimer-bar {
    background: #FFF1F2;
    border: 1.5px solid #FECDD3;
    color: #374151;
    padding: 10px 16px;
    border-radius: 10px;
    margin: 10px 0px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.06);
}

.disc-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.disc-text-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
}

.disc-line-1,
.disc-line-2 {
    font-size: 13px;
    font-weight: 500;
    color: #1F2937;
}

.disc-line-1 strong {
    color: #991B1B;
    font-weight: 800;
    margin-right: 4px;
}

.disc-link {
    color: #BE123C !important;
    font-weight: 700;
    text-decoration: underline !important;
    margin-left: 2px;
}

/* Live Timer Bar (1 Line as per reference) */
.live-timer-bar {
    background: #ECFDF5;
    border: 1.5px solid #A7F3D0;
    color: #047857;
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.live-status-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.live-dot-pulse {
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}

.live-txt {
    font-size: 13px;
    font-weight: 700;
    color: #047857;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-txt strong {
    color: #065F46;
    font-weight: 800;
    margin-right: 4px;
}

.live-refresh-btn {
    background: #10B981;
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    flex-shrink: 0;
}

.live-refresh-btn:hover {
    background: #059669;
    transform: rotate(180deg);
}

.rf-icon {
    font-size: 16px;
}

/* Top Responsive Single Image Banner Container */
.top-banner-container {
    width: 100%;
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    margin-bottom: 20px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border: 2px solid #F59E0B;
    background: #0A192F;
    line-height: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.top-banner-container:hover {
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.3);
}

.banner-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.top-responsive-banner-img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 16px !important;
}

@media (max-width: 991.98px) {
    .top-banner-container {
        height: 145px !important;
        min-height: 145px !important;
        max-height: 145px !important;
    }
}

@media (max-width: 767.98px) {
    .top-banner-container {
        height: 115px !important;
        min-height: 115px !important;
        max-height: 115px !important;
    }
}

@media (max-width: 480px) {
    .top-banner-container {
        height: 95px !important;
        min-height: 95px !important;
        max-height: 95px !important;
    }
}

/* Quick Action Grid */
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: #FFFFFF;
}

.blue-bg {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.green-bg {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
}

.pink-bg {
    background: linear-gradient(135deg, #EC4899 0%, #BE185D 100%);
}

.purple-bg {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
}

.card-text-group {
    display: flex;
    flex-direction: column;
}

.card-main-title {
    font-size: 11px;
    font-weight: 800;
    color: #1E293B;
    line-height: 1.2;
}

.card-sub-info {
    font-size: 8.5px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Market Draw Cards */
.main-content {
    width: 100%;
    margin: 0px;
}

.draw-section-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.section-hdr-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #1E293B 0%, #0F172A 100%);
    border-radius: 12px;
    color: #FFFFFF;
}

.hdr-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trophy-icon {
    font-size: 18px;
}

.section-heading {
    font-size: 18px;
    font-weight: 800;
    color: #F59E0B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.hdr-dates-group {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-right: 15px;
}

.live-mkt-hdr-dates-group {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-right: 45%;
}

.hdr-date-col {
    width: 50px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #93C5FD;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.hdr-date-col .day-name,
.hdr-date-col .date-num {
    display: inline-block;
}

.market-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    height: 76px;
    min-height: 76px;
    max-height: 76px;
    box-sizing: border-box;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    border-left: 5px solid transparent;
    flex-wrap: nowrap;
}

.market-card-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mkt-info-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 10px;
    flex: 1;
}

.mkt-name {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mkt-time-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mkt-time {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
}

.mkt-results-right {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-shrink: 0;
}

.num-badge-box {
    width: 60px;
    height: 45px;
    background: #FFFFFF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.mkt-btn {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.chart-btn {
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Distinct Section Header Gradients */
.live-hdr-row {
    background: linear-gradient(90deg, #7F1D1D 0%, #DC2626 50%, #991B1B 100%) !important;
    border-bottom: 2.5px solid #F59E0B !important;
}

.upcoming-hdr-row {
    background: linear-gradient(90deg, #1E3A8A 0%, #2563EB 50%, #172554 100%) !important;
    border-bottom: 2.5px solid #60A5FA !important;
}

.rest-hdr-row {
    background: linear-gradient(90deg, #065F46 0%, #059669 50%, #022C22 100%) !important;
    border-bottom: 2.5px solid #34D399 !important;
}

/* LIVE Heading Blinking Animation */
@keyframes liveHeadingBlink {
    0%, 100% {
        opacity: 1;
        color: #FDE047;
        text-shadow: 0 0 12px rgba(253, 224, 71, 0.9);
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        color: #FFFFFF;
        text-shadow: 0 0 2px rgba(255, 255, 255, 0.4);
        transform: scale(1.05);
    }
}

.live-blinking-heading {
    display: inline-block !important;
    animation: liveHeadingBlink 1s infinite ease-in-out !important;
}

/* Color themes for market rows */
.theme-red {
    background: #FFF0F3;
    border: 2px solid #E02424 !important;
}

.theme-red .mkt-name {
    color: #9B1C1C;
}

.status-declared-row.theme-red .mkt-name {
    color: #FF8080 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.theme-red .num-badge-box,
.theme-red .box .num {
    color: #E02424 !important;
}

.theme-red .chart-btn {
    color: #E02424;
    border: 1px solid #FECDD3;
}

.theme-red .chart-btn:hover {
    background: #FFE4E6;
}

.theme-blue {
    background: #EFF6FF;
    border: 2px solid #2563EB !important;
}

.theme-blue .mkt-name {
    color: #1E40AF;
}

.status-declared-row.theme-blue .mkt-name {
    color: #93C5FD !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.theme-blue .num-badge-box,
.theme-blue .box .num {
    color: #2563EB !important;
}

.theme-blue .chart-btn {
    color: #2563EB;
    border: 1px solid #BFDBFE;
}

.theme-blue .chart-btn:hover {
    background: #DBEAFE;
}

.theme-green {
    background: #F0FDF4;
    border: 2px solid #16A34A !important;
}

.theme-green .mkt-name {
    color: #166534;
}

.status-declared-row.theme-green .mkt-name {
    color: #86EFAC !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.theme-green .num-badge-box,
.theme-green .box .num {
    color: #16A34A !important;
}

.theme-green .chart-btn {
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

.theme-green .chart-btn:hover {
    background: #DCFCE7;
}

.theme-purple {
    background: #F5F3FF;
    border: 2px solid #7C3AED !important;
}

.theme-purple .mkt-name {
    color: #5B21B6;
}

.status-declared-row.theme-purple .mkt-name {
    color: #C4B5FD !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.theme-purple .num-badge-box,
.theme-purple .box .num {
    color: #7C3AED !important;
}

.theme-purple .chart-btn {
    color: #7C3AED;
    border: 1px solid #DDD6FE;
}

.theme-purple .chart-btn:hover {
    background: #EDE9FE;
}

.theme-orange {
    background: #FFFBEB;
    border: 2px solid #D97706 !important;
}

.theme-orange .mkt-name {
    color: #92400E;
}

.status-declared-row.theme-orange .mkt-name {
    color: #FDE047 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.theme-orange .num-badge-box,
.theme-orange .box .num {
    color: #D97706 !important;
}

.theme-orange .chart-btn {
    color: #D97706;
    border: 1px solid #FDE68A;
}

.theme-orange .chart-btn:hover {
    background: #FEF3C7;
}

/* Today Result Box Background in Upcoming & Rest (Declared or Pending) */
.num-badge-box.today-badge {
    background: #FEF3C7 !important;
    color: #D97706 !important;
    border: 1.5px solid #F59E0B !important;
    font-weight: 800 !important;
}

/* Declared Live Result Larger Font Size & Blinking Animation */
.status-declared-row .box {
    padding: 4px 12px !important;
    min-width: 68px !important;
    background: #FFFFFF !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.status-declared-row .box .num,
.declared-num-blink {
    font-size: 40px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    animation: declaredNumBlink 1s infinite ease-in-out !important;
}

@keyframes declaredNumBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(1.08);
    }
}

.refresh-btn {
    background: #FFFFFF;
    border: 1px solid #FCD34D;
    color: #B45309;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Sabka King Feature Banner */
.feature-banner-card {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border: 2px solid #F59E0B;
    border-radius: 18px;
    padding: 16px 20px;
    margin: 24px 0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.feat-left-lottery {
    display: flex;
    align-items: center;
    gap: 14px;
}

.balls-stack {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 8px;
}

.l-ball {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #000000;
    font-weight: 900;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    margin-left: -8px;
    border: 2px solid #0F172A;
}

.b7 {
    background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #E2E8F0 100%);
    z-index: 1;
    margin-left: 0;
}

.b9 {
    background: radial-gradient(circle at 30% 30%, #FDE047 0%, #F59E0B 100%);
    z-index: 2;
}

.b8 {
    background: radial-gradient(circle at 30% 30%, #38BDF8 0%, #0284C7 100%);
    z-index: 3;
    color: white;
}

.ball-crown {
    position: absolute;
    top: -12px;
    left: 8px;
    font-size: 15px;
    z-index: 4;
}

.sabka-txt {
    font-family: 'Brush Script MT', cursive, sans-serif;
    font-size: 12px;
    color: #FDE047;
    font-style: italic;
    display: block;
}

.appa-king-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 1px;
}

.feat-right-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feat-badge-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 10px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
}

.f-icon {
    font-size: 14px;
}

.f-lbl {
    font-size: 8.5px;
    font-weight: 700;
    color: #FFFFFF;
    margin-top: 2px;
}

/* Combined Matrix Chart */
div#mix-chart,
div#secondary-chart {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 5px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

table.chart-table {
    width: 100%;
    border-collapse: collapse;
}

tr.chart-head td {
    background: linear-gradient(90deg, #1E293B 0%, #0F172A 100%);
    color: #F59E0B;
    padding: 14px;
    font-size: 1.1em;
    font-weight: 700;
    border-bottom: 2px solid #F59E0B;
}

tr.date-name {
    background: #F1F5F9;
    color: #B45309;
    font-weight: 600;
    height: 38px;
}

tr.date-name td,
tr.date-name th {
    border: 1px solid #CBD5E1;
    padding: 8px;
    text-align: center;
}

tr.day-number {
    height: 36px;
    transition: background 0.15s;
}

tr.day-number:nth-child(even) {
    background: #F9FAFB;
}

tr.day-number:hover {
    background: #FEF3C7;
}

tr.day-number td {
    border: 1px solid #E2E8F0;
    padding: 6px;
    text-align: center;
    font-weight: 500;
}

tr.day-number td.day {
    color: #DC2626;
    font-weight: 600;
    width: 20%;
}

tr.day-number td.number {
    color: #0284C7;
    font-weight: 600;
}

.nav-link {
    padding: 12px;
    transition: transform 0.2s;
}

.nav-link:hover {
    transform: scale(1.01);
}

h1.nav-text {
    color: #000000;
    font-size: 1em;
    font-weight: 600;
}

/* Footer & Responsive Calendar Chart Filter Card */
div#footer {
    width: 100%;
    background: #F8FAFC;
    border-top: 1.5px solid #E2E8F0;
}

div#chart-form.chart-filter-card {
    background: #FFFFFF;
    border: 2px solid #F59E0B;
    border-radius: 16px;
    padding: 20px 24px;
    max-width: 980px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
    text-align: center;
}

h2#chart-text.chart-filter-title {
    color: #0F172A !important;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.filter-icon {
    font-size: 20px;
}

.chart-filter-form {
    width: 100%;
}

.filter-controls-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.select-wrapper {
    position: relative;
    flex: 1;
    min-width: 140px;
    max-width: 220px;
}

select#month,
select#year,
.filter-select {
    width: 100%;
    background: #F8FAFC;
    color: #0F172A;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

select#month:focus,
select#year:focus,
.filter-select:focus {
    border-color: #F59E0B;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

button#direct-chart,
input#direct-chart,
.filter-submit-btn {
    background: linear-gradient(180deg, #FDE047 0%, #F59E0B 100%);
    color: #000000;
    border: none;
    padding: 11px 24px;
    font-weight: 800;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

button#direct-chart:hover,
input#direct-chart:hover,
.filter-submit-btn:hover {
    background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}

/* Fixed Bottom Navigation Bar (Matching Reference Image) */
.bottom-mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 980px;
    height: 60px;
    background: #FFFFFF;
    border-top: 1.5px solid #E2E8F0;
    border-radius: 16px 16px 0 0;
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 0 4px;
}

.nav-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    flex: 1;
    height: 100%;
    padding: 6px 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-tab-item .tab-icon {
    font-size: 18px;
    margin-bottom: 2px;
    line-height: 1;
    color: #1E293B;
}

.nav-tab-item .tab-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.2px;
}

.nav-tab-item.active {
    color: #D97706;
}

.nav-tab-item.active .tab-icon {
    color: #D97706;
}

.nav-tab-item.active .tab-label {
    color: #D97706;
    font-weight: 800;
}

.active-indicator-bar {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3.5px;
    background: #D97706;
    border-radius: 3px 3px 0 0;
}

.nav-tab-divider {
    width: 1px;
    height: 32px;
    background: #E2E8F0;
    flex-shrink: 0;
}

/* Mobile Media Queries */
@media (max-width: 768px) {
    .bottom-mobile-nav {
        display: flex;
        border-radius: 14px 14px 0 0;
        height: 56px;
    }

    .nav-tab-item .tab-icon {
        font-size: 16px;
    }

    .nav-tab-item .tab-label {
        font-size: 10px;
    }

    .active-indicator-bar {
        width: 34px;
        height: 3px;
    }

    .nav-tab-divider {
        height: 26px;
    }

    .section-hdr-row {
        padding: 8px 10px;
    }

    .section-heading {
        font-size: 18px;
    }

    .live-mkt-hdr-dates-group {
        gap: 20px;
        margin-right: 60px;
    }

    .hdr-dates-group {
        gap: 40px;
        margin-right: 10px;
    }

    .hdr-date-col {
        width: 40px;
        font-size: 10.5px;
        flex-direction: column !important;
        gap: 1px;
        line-height: 1.15;
        text-align: center;
    }

    .hdr-date-col .day-name,
    .hdr-date-col .date-num {
        display: block;
        width: 100%;
        text-align: center;
    }

    .market-card-row {
        flex-wrap: nowrap !important;
        padding: 12px 6px;
        min-height: 64px;
        gap: 8px;
    }

    .mkt-name {
        font-size: 13.5px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.15 !important;
    }

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

    .mkt-time-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
    }

    .mkt-results-right {
        gap: 20px;
    }

    .num-badge-box {
        width: 60px;
        height: 45px;
        font-size: 30px;
    }

    .chart-btn {
        padding: 2px 6px;
        font-size: 12px;
        white-space: nowrap;
    }

    .top-banner-container {
        border-radius: 10px !important;
        margin-bottom: 10px;
        border-width: 1.5px;
    }

    .top-responsive-banner-img {
        border-radius: 8px !important;
    }

    .header-slogan-overlay {
        display: none;
    }

    .quick-action-grid {
        gap: 8px;
    }

    .action-card {
        padding: 8px;
        gap: 6px;
    }

    .card-icon-box {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .card-main-title {
        font-size: 9.5px;
    }

    .card-sub-info {
        font-size: 7.5px;
    }

    .feature-banner-card {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .disclaimer-bar {
        padding: 5px;
        gap: 10px;
    }

    .disc-icon {
        font-size: 18px;
    }

    .disc-line-1,
    .disc-line-2 {
        font-size: 11px;
    }

    .live-timer-bar {
        padding: 0px 5px;
    }

    .live-txt {
        font-size: 11px;
    }

    .live-refresh-btn {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    div#chart-form.chart-filter-card {
        padding: 14px 14px;
        border-radius: 14px;
        margin-bottom: 16px;
    }

    h2#chart-text.chart-filter-title {
        font-size: 12.5px;
        margin-bottom: 12px;
        text-align: center;
        line-height: 1.3;
    }

    .filter-controls-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .select-wrapper {
        width: 100%;
        max-width: 100%;
    }

    select#month,
    select#year,
    .filter-select {
        width: 100%;
        font-size: 13px;
        padding: 10px 12px;
    }

    button#direct-chart,
    input#direct-chart,
    .filter-submit-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 13px;
    }

    .feat-right-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
}