*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f6c58a;
    color: #111;
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: 64px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.main-wrapper {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 8px 20px;
}

.site-header,
.welcome-banner,
.seo-intro,
.lucky-section,
.notice-box,
.live-section,
.contact-strip,
.support-box,
.star-bazar,
.content-section,
.disclaimer,
.faq-card,
.link-grid,
.chart-section,
.trick-zone {
    background: #ffe7c2;
    border: 3px solid #d01212;
    border-radius: 14px;
    margin: 0 0 10px;
    overflow: hidden;
}

.site-header {
    text-align: center;
    padding: 6px 4px 4px;
    background: #ffe7c2;
}

.header-logo {
    width: 100%;
    max-width: 640px;
    height: auto;
    max-height: 168px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.top-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 10px;
    scrollbar-width: none;
}

.top-nav::-webkit-scrollbar { display: none; }

.top-nav a {
    flex: 0 0 auto;
    padding: 7px 12px;
    background: #ff3d9a;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    white-space: nowrap;
}

.welcome-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
}

.welcome-banner p {
    flex: 1;
    font-size: 14px;
    font-weight: 800;
    font-style: italic;
    line-height: 1.35;
}

.seo-intro {
    padding: 12px 12px 14px;
    text-align: center;
}

.seo-intro h1 {
    font-size: clamp(16px, 4.6vw, 22px);
    color: #111;
    margin-bottom: 8px;
}

.seo-intro h2 {
    font-size: 13px;
    font-weight: 400;
    color: #111;
}

.lucky-section h3,
.live-section > h4,
.star-bazar h4,
.notice-box__header,
.section-banner,
.powered-by,
.link-grid h4,
.chart-section h6,
.content-section .section-title {
    text-align: center;
    padding: 9px 10px;
    background: #ff3d9a;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    text-shadow: 0 1px 0 #9b004e;
    letter-spacing: 0.02em;
}

.lucky-grid {
    display: flex;
    min-height: 120px;
}

.lucky-card {
    padding: 10px 8px;
    text-align: center;
    width: 50%;
}

.lucky-card.golden {
    border-right: 2px solid #d01212;
}

.lucky-card h4 {
    color: #1238b3;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 800;
}

.lucky-card p,
.final-ank-marquee .marquee-block p {
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.final-ank-marquee {
    height: 100px;
    overflow: hidden;
}

.final-ank-marquee .marquee-track {
    display: flex;
    flex-direction: column;
    animation: finalAnkScroll var(--final-ank-duration, 16s) linear infinite;
}

.final-ank-marquee .marquee-block p {
    padding: 2px 0;
    font-size: 13px;
    color: #1238b3;
    font-weight: 800;
}

@keyframes finalAnkScroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

.notice-box__body,
.live-content,
.contact-strip,
.support-box,
.disclaimer,
.content-section,
.faq-card .card-body {
    padding: 12px 12px;
}

.notice-box__body,
.contact-strip,
.support-box {
    text-align: center;
    font-size: 14px;
}

.notice-box__body a,
.contact-strip a,
.support-box a,
.site-footer a {
    color: #1238b3;
    font-weight: 800;
    word-break: break-word;
}

.notice-box__footer {
    text-align: center;
    padding: 0 10px 12px;
    color: #555;
    font-size: 12px;
}

.live-promo {
    margin: 10px;
    padding: 12px;
    text-align: center;
    background: #ff3d9a;
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
}

.live-promo a {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    background: #fff;
    color: #d01212;
    font-weight: 800;
    border-radius: 8px;
}

.live-item {
    padding: 10px 0;
    border-bottom: 1px dashed #d01212;
}

.live-item .gn {
    display: block;
    color: #1238b3;
    font-weight: 800;
}

.live-item .gr {
    display: block;
    margin: 6px 0;
    color: #d01212;
    font-size: clamp(20px, 6vw, 28px);
    font-weight: 800;
}

.btn-refresh,
.btn-chart,
.btn-panel-chart,
.btn-play,
.bottom-refresh {
    border: 0;
    cursor: pointer;
    font-weight: 800;
    font-family: inherit;
}

.btn-refresh {
    background: #1238b3;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
}

.btn-play {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 12px;
    text-align: center;
    background: #ff3d9a;
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    border-radius: 12px;
    border: 3px solid #d01212;
}

.keywords-strip,
.section-banner {
    margin: 0 0 10px;
    padding: 10px 8px;
    text-align: center;
    font-weight: 800;
    border-radius: 12px;
}

.keywords-strip {
    background: #ffe7c2;
    color: #111;
    border: 3px solid #d01212;
    font-size: 11px;
    line-height: 1.7;
}

.section-banner {
    background: #ff3d9a;
    color: #fff;
    font-size: 14px;
    border: 3px solid #c2185b;
    border-radius: 999px;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 0 #9b004e;
}

.results-board {
    border: 3px solid #c2185b;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #f7c58a;
}

.result-row {
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    background: #f7c58a;
    border-bottom: 1px solid #e38aa8;
    text-align: center;
}

.result-row:last-child {
    border-bottom: 0;
}

.result-row.featured {
    background: #ffe600;
}

.result-row.highlighted:not(.featured) {
    background: #f7c58a;
}

.side-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 4px;
    background: #5b2d9e;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.result-mid h4 {
    font-size: 16px;
    color: #1238b3;
    font-weight: 800;
    line-height: 1.2;
}

.result-number {
    display: block;
    margin: 3px 0 2px;
    font-size: clamp(18px, 5.8vw, 24px);
    font-weight: 800;
    color: #8b1464;
}

.result-time {
    color: #111;
    font-size: 12px;
    font-weight: 700;
}

.btn-chart {
    flex: 1;
    max-width: 140px;
    padding: 8px 10px;
    font-size: 12px;
    min-height: 40px;
    border-radius: 8px;
}

.star-bazar { overflow-x: auto; }
.star-bazar table { width: 100%; min-width: 280px; border-collapse: collapse; }
.star-bazar th, .star-bazar td {
    padding: 8px 6px;
    text-align: center;
    border-top: 1px solid #d01212;
    font-size: 13px;
}
.star-bazar thead tr { background: #ff3d9a; color: #fff; }

.btn-panel-chart {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 12px;
    text-align: center;
    background: #1238b3;
    color: #fff;
    border-radius: 12px;
}

.auth-section {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 10px;
}

.auth-section a {
    flex: 1 1 30%;
    min-width: 96px;
    padding: 10px 8px;
    text-align: center;
    font-weight: 800;
    background: #ff3d9a;
    color: #fff;
    border-radius: 10px;
    border: 2px solid #d01212;
}

.trick-zone { text-align: center; }
.trick-zone h4 { padding: 12px; }
.trick-zone a { color: #1238b3; font-weight: 800; }

.link-grid a,
.chart-section a {
    display: block;
    padding: 11px 12px;
    border-top: 1px solid #d01212;
    color: #1238b3;
    font-size: 14px;
    font-weight: 700;
}

.faq-section { margin: 0; }
.faq-card { margin-bottom: 10px; }
.faq-card label {
    display: block;
    padding: 12px 10px;
    color: #d01212;
    font-weight: 800;
    font-size: 14px;
}
.faq-card .card-body { color: #222; font-size: 14px; padding-top: 0; }

.content-section .section-title { margin: 0 0 10px; border-radius: 0; }
.content-section p {
    color: #222;
    font-size: 14px;
    margin-bottom: 12px;
}

.about-scroll {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    border: 2px solid #d01212;
    border-radius: 10px;
    background: #fff6e6;
}

.disclaimer p { font-size: 12px; color: #333; }
.disclaimer h6 { text-align: center; color: #d01212; margin-bottom: 8px; font-size: 16px; }

.powered-by {
    padding: 10px;
    text-align: center;
    background: #ff3d9a;
    color: #fff;
    font-weight: 800;
    border-radius: 12px;
    border: 3px solid #d01212;
    margin-bottom: 10px;
}

.site-footer {
    text-align: center;
    padding: 8px 8px 18px;
    color: #333;
    font-size: 13px;
}

.site-footer .brand {
    color: #d01212;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.page-shell {
    max-width: 720px;
    margin: 12px auto;
    padding: 12px 12px 40px;
    color: #222;
}

.page-shell h1 { color: #d01212; margin-bottom: 10px; }
.page-shell p, .page-shell li { margin-bottom: 10px; }

.chart-toolbar {
    display: flex;
    gap: 8px;
    margin: 0 0 10px;
}
.chart-toolbar .btn-play { flex: 1; margin: 0; }
.chart-toolbar .btn-refresh { flex: 0 0 auto; border-radius: 12px; }

.chart-wrap {
    background: #ffe7c2;
    border: 3px solid #d01212;
    border-radius: 14px;
    overflow-x: auto;
    margin: 0 0 10px;
    padding: 8px 4px 12px;
}

.inner-page .logo,
.inner-page .pby-us,
.inner-page .ftr-sm,
.inner-page .nav-buttons,
.inner-page .para3,
.inner-page .scroll-buttons,
.inner-page .chart-h1,
.inner-page footer:not(.site-footer),
.inner-page .button2 {
    display: none !important;
}

.inner-page .announcement {
    display: block !important;
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0;
}
.inner-page .datefont { color: #1238b3; font-weight: 800; }
.inner-page .jodi-number { font-size: 16px; color: #8b1464; font-weight: 800; }
.inner-page .pana-number { font-size: 12px; }
.inner-page .sewa { display: none !important; }
.inner-page .chart-wrap h1 { display: none; }
.inner-page .dateFirst,
.inner-page .dateFirst font {
    color: #1238b3 !important;
    background: transparent !important;
}
.inner-page tr[style*="grey"] td {
    background: #ffe7c2 !important;
    color: #111 !important;
}

.inner-page .chart-wrap table,
.inner-page .panel-chart,
.inner-page .chart-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    background: #fff6e6;
}

.inner-page th {
    background: #ff3d9a;
    color: #fff;
    font-size: 12px;
    padding: 7px 3px;
    text-shadow: 0 1px 0 #9b004e;
    border: 1px solid #c2185b;
}

.inner-page td {
    border: 1px solid #e38aa8;
    padding: 5px 2px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #111;
    background: #fff8e8;
}

.inner-page tbody tr:nth-child(even) td {
    background: #ffe7c2;
}

.inner-page td.r,
.inner-page .r,
.inner-page .css-11, .inner-page .css-16, .inner-page .css-22, .inner-page .css-27,
.inner-page .css-33, .inner-page .css-38, .inner-page .css-44, .inner-page .css-49,
.inner-page .css-50, .inner-page .css-55, .inner-page .css-61, .inner-page .css-66,
.inner-page .css-72, .inner-page .css-83, .inner-page .css-88, .inner-page .css-94,
.inner-page .css-99, .inner-page .css-05, .inner-page .css-00, .inner-page .css-77,
.inner-page .chart-11, .inner-page .chart-22, .inner-page .chart-33, .inner-page .chart-44,
.inner-page .chart-55, .inner-page .chart-66, .inner-page .chart-77, .inner-page .chart-88,
.inner-page .chart-99, .inner-page .chart-00 {
    color: #d01212;
    font-weight: 800;
}

.inner-page tr td:nth-child(1) { font-size: 11px; color: #1238b3; font-weight: 800; }
.inner-page tbody tr td:nth-child(3),
.inner-page tbody tr td:nth-child(6),
.inner-page tbody tr td:nth-child(9),
.inner-page tbody tr td:nth-child(12),
.inner-page tbody tr td:nth-child(15),
.inner-page tbody tr td:nth-child(18),
.inner-page tbody tr td:nth-child(21),
.inner-page tbody tr td:nth-child(24) {
    font-size: 16px;
    color: #8b1464;
    font-weight: 800;
}

.chart-fallback {
    padding: 18px 10px;
    text-align: center;
    color: #d01212;
    font-weight: 800;
}

.info-page {
    padding: 14px 14px 18px;
}
.info-page p,
.info-page li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #222;
}
.info-page a {
    color: #1238b3;
    font-weight: 800;
}

.inner-page .counter,
.inner-page .counter1,
.inner-page .jodic {
    background: #ffe600;
    color: #111;
    border: 2px solid #d01212;
    font-weight: 800;
}
.inner-page .base,
.inner-page .redborder,
.inner-page .topc {
    background: #ff3d9a;
    color: #fff;
    border-color: #c2185b;
}
.inner-page .mefix,
.inner-page .free1 {
    background: #ffe7c2;
    color: #1238b3;
    border: 2px solid #d01212;
}
.inner-page .LINK {
    background: #1238b3;
    color: #fff;
    border: 2px solid #d01212;
}

.whatsapp-float {
    position: fixed;
    right: 12px;
    bottom: 70px;
    z-index: 80;
}

.whatsapp-float img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.bottom-refresh {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: 12px;
    background: #ff3d9a;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mobile-refresh { display: none; }

@media (min-width: 700px) {
    .main-wrapper { padding: 14px 12px 24px; }
    .header-logo { max-height: 210px; }
    .link-grid-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }
    .link-grid-row .link-grid,
    .link-grid-row .chart-section { margin: 0; }
}

@media (min-width: 1100px) {
    .main-wrapper { max-width: 980px; }
}
