:root {
    --primary: #ffb800;
    --primary-dark: #f59e00;
    --dark: #141414;
    --soft-dark: #202020;
    --light: #fffaf0;
    --border: #eeeeee;
    --danger: #ff3b30;
    --success: #22c55e;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(255, 184, 0, 0.25), transparent 35%),
        linear-gradient(180deg, #fff7d8 0%, #ffffff 38%, #f7f7f7 100%);
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
}

.top-header {
    background: #f3f3f3;
    color: #fff;
    padding: 18px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.brand-wrap { display: flex; align-items: center; gap: 14px; }
.brand-logo, .brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #ffdd55);
    color: #111;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(255,184,0,0.35);
}
.brand-wrap h1 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: 0.4px; color:#000000; }
.brand-wrap p { margin: 2px 0 0; color: #000000;; font-size: 13px; }
.admin-link {
    color: #111;
    background: var(--primary);
    text-decoration: none;
    font-weight: 900;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
}
.admin-link:hover { color: #111; background: #ffd84d; }

.page-wrap { width: min(980px, calc(100% - 20px)); margin: 18px auto 30px; }

.hero-card {
    background: #fff;
    border: 1px solid rgba(255,184,0,0.45);
    border-radius: 24px;
    padding: 24px 16px;
    margin-bottom: 14px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}
.live-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: #111; color: #fff; border-radius: 999px; padding: 7px 14px;
    font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.live-pill span { width: 9px; height: 9px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 5px rgba(34,197,94,0.18); }
.hero-card h2 { margin: 0; font-size: clamp(26px, 5vw, 42px); font-weight: 900; color: #111; }
.hero-subtitle { max-width: 660px; margin: 8px auto 12px; color: #444; font-size: 16px; line-height: 1.8; }
.updated-line { display: inline-block; background: #fff7d8; border: 1px dashed var(--primary-dark); color: #111; border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 700; }

.timing-card {
    background: linear-gradient(135deg, #111, #292929);
    color: #fff;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.timing-title { color: var(--primary); font-weight: 900; text-align: center; font-size: 20px; margin-bottom: 12px; }
.timing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.timing-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 10px;
    text-align: center;
}
.timing-item strong { display: block; color: #fff; font-size: 14px; text-transform: uppercase; }
.timing-item span { display: block; color: var(--primary); font-weight: 900; margin-top: 3px; }
.timing-loading { grid-column: 1/-1; text-align: center; color: #ddd; }

.notice { background: #111; color: #fff; border-radius: 16px; padding: 12px 14px; font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.notice strong { color: var(--primary); }

.result-card, .monthly-wrap, .promo-strip {
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--border); margin-bottom: 16px;
}
.card-title-bar { background: linear-gradient(135deg, var(--primary), #ffd84d); color: #151515; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title-bar strong { display: block; font-size: 20px; font-weight: 900; text-transform: uppercase; }
.card-title-bar small { display: block; font-weight: 700; opacity: 0.75; }
.mini-refresh { border: none; background: #111; color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.table-head { background: #222; color: #fff; font-weight: 900; padding: 10px 14px; font-size: 14px; }
.loading-box { padding: 24px; text-align: center; color: #555; font-weight: 700; }
.error-box { padding: 18px; color: #b91c1c; background: #fff1f1; font-weight: 800; }
.section-label { background: #fff7d8; color: #111; font-weight: 900; padding: 8px 14px; border-bottom: 1px solid #efefef; }
.result-row { display: flex; align-items: center; border-bottom: 1px solid #efefef; padding: 10px 14px; background: #fff; }
.result-row.highlight, .result-row.is-highlight, .highlight { background: linear-gradient(90deg, #ffc400, #ffb300) !important; }
.result-name { font-weight: 900; color: #111; text-transform: uppercase; font-size: 14px; }
.result-time { color: #0066cc; font-size: 12px; font-weight: 700; margin-top: 2px; }
.result-value { font-size: 17px; font-weight: 900; color: #111; }
.value-muted { color: #555; font-weight: 900; }
.record-link { color: #111; margin-left: 7px; text-decoration: underline; font-weight: 900; }

.promo-strip { padding: 16px; background: linear-gradient(135deg, #111, #292929); color: #fff; }
.promo-title { color: var(--primary); font-size: 18px; font-weight: 900; margin-bottom: 4px; }
.promo-copy { color: #eee; font-weight: 700; }

.monthly-wrap { padding: 16px; }
.section-heading span { display: inline-block; background: #fff2b8; color: #111; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 900; margin-bottom: 8px; }
.section-heading h3 { font-weight: 900; margin: 0; }
.section-heading p { color: #666; margin: 6px 0 14px; font-size: 14px; }
.chart-box { border-radius: 16px; overflow: auto; border: 1px solid var(--border); }
.monthly-table { font-size: 13px; text-align: center; min-width: 720px; }
.monthly-table thead th { background: #111; color: #fff; border-color: #333; font-weight: 900; }
.monthly-table tbody td { vertical-align: middle; font-weight: 700; }
.nav-btn, .go-btn { background: linear-gradient(135deg, var(--primary), #ffd84d); border: none; color: #111; font-weight: 900; border-radius: 12px; padding: 10px 14px; }
.nav-btn:hover, .go-btn:hover { background: #111; color: #fff; }
.month-form { margin-top: 16px; background: #fafafa; border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.form-select, .form-control { border-radius: 12px; padding: 10px 12px; font-weight: 700; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.calendar-cell { border: 1px solid #eee; border-radius: 14px; min-height: 74px; padding: 9px; text-align: center; background: #fffdf5; }
.calendar-cell small { display: block; color: #666; font-weight: 900; }
.calendar-cell strong { display: block; font-size: 22px; margin-top: 6px; color: #111; }

.refresh-float { position: fixed; right: 16px; bottom: 18px; z-index: 999; border: none; background: linear-gradient(135deg, #111, #333); color: #fff; border-radius: 18px; padding: 10px 12px; box-shadow: 0 10px 26px rgba(0,0,0,0.25); display: flex; align-items: center; gap: 8px; }
.refresh-float span { width: 30px; height: 30px; display: grid; place-items: center; background: var(--primary); color: #111; border-radius: 50%; font-weight: 900; font-size: 18px; }
.refresh-float small { font-weight: 900; }
.whatsapp-float { position: fixed; left: 16px; bottom: 18px; z-index: 1000; background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; text-decoration: none; border-radius: 18px; padding: 10px 12px; box-shadow: 0 10px 26px rgba(0,0,0,0.25); display: flex; align-items: center; gap: 8px; font-weight: 900; }
.whatsapp-float span { width: 30px; height: 30px; display: grid; place-items: center; background: #fff; color: #128c7e; border-radius: 50%; font-weight: 900; font-size: 18px; }
.whatsapp-float small { font-weight: 900; }
.whatsapp-float:hover { color: #fff; transform: translateY(-2px); }
.site-footer { background: #111; color: #aaa; padding: 18px 0; font-size: 13px; }

/* Admin */
.admin-page { background: #f7f7f7; }
.admin-shell { width: min(1100px, calc(100% - 20px)); margin: 18px auto 36px; }
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-nav a { background: #111; color: #fff; text-decoration: none; padding: 10px 14px; border-radius: 12px; font-weight: 900; }
.admin-nav a.active, .admin-nav a:hover { background: var(--primary); color: #111; }
.admin-card { background: #fff; border: 1px solid #eee; border-radius: 20px; padding: 18px; box-shadow: 0 12px 30px rgba(0,0,0,0.07); margin-bottom: 16px; }
.admin-card h2, .admin-card h3 { font-weight: 900; margin-bottom: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-box { background: #111; color: #fff; border-radius: 18px; padding: 18px; }
.stat-box span { display: block; color: var(--primary); font-size: 28px; font-weight: 900; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: #111; color: #fff; padding: 10px; }
.admin-table td { border-bottom: 1px solid #eee; padding: 10px; vertical-align: middle; }
.badge-active { background: #dcfce7; color: #166534; padding: 5px 10px; border-radius: 999px; font-weight: 900; }
.badge-inactive { background: #fee2e2; color: #991b1b; padding: 5px 10px; border-radius: 999px; font-weight: 900; }
.btn-yellow { background: linear-gradient(135deg, var(--primary), #ffd84d); color: #111; font-weight: 900; border: none; border-radius: 12px; padding: 10px 14px; }
.btn-dark-soft { background: #111; color: #fff; font-weight: 900; border: none; border-radius: 12px; padding: 10px 14px; }
.btn-danger-soft { background: #fee2e2; color: #991b1b; font-weight: 900; border: none; border-radius: 12px; padding: 10px 14px; }
.flash { border-radius: 14px; padding: 12px 14px; font-weight: 800; margin-bottom: 14px; }
.flash.success { background: #dcfce7; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }
.login-box { width: min(420px, calc(100% - 24px)); margin: 56px auto; }

@media (max-width: 768px) {
    .timing-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: 1fr; }
    .admin-table { font-size: 13px; }
}

@media (max-width: 576px) {
    .page-wrap { width: calc(100% - 12px); margin-top: 10px; }
    .top-header { padding: 12px 0; }
    .brand-logo, .brand-icon { width: 42px; height: 42px; }
    .brand-wrap h1 { font-size: 18px; }
    .brand-wrap p { font-size: 12px; }
    .admin-link { padding: 7px 10px; font-size: 12px; }
    .hero-card { border-radius: 18px; padding: 18px 12px; }
    .timing-grid { grid-template-columns: 1fr; }
    .card-title-bar { padding: 12px; }
    .card-title-bar strong { font-size: 16px; }
    .table-head { font-size: 12px; padding: 9px 10px; }
    .result-card, .monthly-wrap, .promo-strip, .timing-card { border-radius: 16px; }
    .calendar-grid { grid-template-columns: repeat(3, 1fr); }
    .refresh-float { right: 10px; bottom: 12px; }
    .whatsapp-float { left: 10px; bottom: 12px; padding: 9px 10px; }
}



.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-whatsapp {
    background: linear-gradient(135deg, #21e85c, #079b37);
    color: #071407;
    text-decoration: none;
    font-weight: 900;
    padding: 9px 18px;
    border-radius: 999px;
    border: 2px solid #056b27;
    box-shadow: 0 4px 0 #04531e, 0 8px 18px rgba(0,0,0,0.25);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.header-whatsapp:hover {
    color: #071407;
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .header-actions {
        gap: 6px;
    }

    .header-whatsapp {
        padding: 7px 10px;
        font-size: 11px;
    }
}



.footer-promo-contact {
    margin: 22px auto 18px;
    padding: 0 12px;
}

.footer-promo-inner {
    max-width: 1180px;
    margin: 0 auto;
    background: #000;
    border: 3px solid #00b900;
    border-radius: 24px;
    text-align: center;
    padding: 18px 16px 22px;
    box-shadow: 0 6px 0 rgba(0,0,0,0.35);
}

.footer-promo-inner h2 {
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    margin: 0 0 8px;
    line-height: 1.3;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.8);
}

.footer-promo-inner p {
    color: #ffd21a;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 14px;
}

.footer-promo-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #24ff5a, #05b638);
    color: #031403;
    border: 3px solid #ffe600;
    border-radius: 999px;
    padding: 10px 28px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 5px 0 #d96b00, 0 10px 18px rgba(0,0,0,0.35);
}

.footer-promo-whatsapp:hover {
    color: #031403;
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .footer-promo-inner {
        border-radius: 18px;
        padding: 14px 10px 18px;
    }

    .footer-promo-inner h2 {
        font-size: 20px;
    }

    .footer-promo-inner p {
        font-size: 15px;
    }

    .footer-promo-whatsapp {
        font-size: 14px;
        padding: 9px 18px;
    }
}



/* Mobile monthly chart fit all columns without horizontal scroll */
@media (max-width: 576px) {
    .monthly-wrap {
        padding: 10px 6px;
    }

    .chart-box,
    .table-responsive.chart-box {
        overflow-x: hidden !important;
        width: 100%;
    }

    .monthly-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed;
        font-size: 11px;
    }

    .monthly-table th,
    .monthly-table td {
        padding: 8px 2px !important;
        text-align: center;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
        line-height: 1.15;
    }

    .monthly-table thead th {
        font-size: 9px;
        font-weight: 900;
    }

    .monthly-table tbody td {
        font-size: 11px;
        font-weight: 900;
    }

    .monthly-table th:first-child,
    .monthly-table td:first-child {
        width: 32px;
        font-size: 10px;
    }

    .section-heading h3 {
        font-size: 20px;
    }

    .section-heading p {
        font-size: 12px;
    }

    .month-nav .nav-btn {
        font-size: 13px;
        padding: 10px 4px;
    }
}


/* Top SATTAKING Logo */
.top-brand-logo {
    width: 100%;
    background: #f3f3f3;
    padding: 28px 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.king-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 3px 0 rgba(0,0,0,0.18);
}

.brand-name {
    font-size: 42px;
    font-weight: 950;
    color: #050505;
    letter-spacing: -1px;
    font-family: Georgia, 'Times New Roman', serif;
    text-transform: uppercase;
    line-height: 1;
}

.brand-name span {
    font-size: 34px;
    text-transform: lowercase;
}

/* Yellow contact box */
.khaiwal-info-box {
    padding: 12px 10px;
    background: #f2f2f2;
}

.khaiwal-inner {
    max-width: 1180px;
    margin: 0 auto;
    background: #fff200;
    border: 3px solid #029b24;
    border-radius: 20px;
    padding: 18px 12px 20px;
    text-align: center;
    color: #111;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.18), 0 4px 0 rgba(0,0,0,0.25);
}

.khaiwal-inner h2 {
    margin: 0 0 4px;
    color: #0037a8;
    font-size: 26px;
    font-weight: 950;
}

.khaiwal-inner h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 950;
    color: #111;
}

.whatsapp-line {
    font-size: 22px;
    font-weight: 900;
    margin: 8px 0 12px;
    color: #071407;
}

.game-time-title {
    color: #0037a8;
    font-size: 24px;
    font-weight: 950;
    margin: 10px 0;
}

.game-time-list {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
}

.game-time-list p {
    margin: 2px 0;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 950;
    color: #111;
}

.safe-line {
    margin: 12px 0 14px;
    font-size: 22px;
    font-weight: 950;
    color: #000;
}

.khaiwal-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2cff54, #08b636);
    color: #071407;
    border: 3px solid #d86c00;
    border-radius: 999px;
    padding: 9px 26px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 950;
    box-shadow: 0 4px 0 #8d4300, 0 8px 16px rgba(0,0,0,0.25);
}

.khaiwal-whatsapp:hover {
    color: #071407;
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 576px) {
    .top-brand-logo {
        padding: 22px 8px 18px;
        gap: 6px;
    }

    .king-icon {
        width: 42px;
        height: 42px;
        font-size: 26px;
    }

    .brand-name {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .brand-name span {
        font-size: 23px;
    }

    .khaiwal-info-box {
        padding: 8px 6px;
    }

    .khaiwal-inner {
        border-radius: 16px;
        padding: 14px 8px 16px;
    }

    .khaiwal-inner h2 {
        font-size: 20px;
    }

    .khaiwal-inner h3 {
        font-size: 19px;
    }

    .whatsapp-line {
        font-size: 17px;
    }

    .game-time-title {
        font-size: 19px;
    }

    .game-time-list p {
        font-size: 17px;
    }

    .safe-line {
        font-size: 17px;
    }

    .khaiwal-whatsapp {
        font-size: 13px;
        padding: 8px 18px;
    }
}