:root {
    --primary-color: #ffe166;
    --secondary-color: #4CAF50;
    --background-light: #f6f8fa;
    --card-background: #ffffff;
    --text-dark: #333;
    --button-hover: #e5c854;
    --active-red: #DC2626;
    --header-bg: #111;
    --font-main: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-light);
    color: var(--text-dark);
    margin: 0;
    padding-top: 120px;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

a {
    color: #0645d8;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-top {
    background-color: var(--primary-color);
    padding: 4px 0;
    text-align: center;
}

.header-top a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.header-top img {
    display: block;
    height: 60px;
    width: auto;
    margin: 0 auto;
    vertical-align: middle;
}

.navbar {
    background-color: var(--primary-color);
    padding: 5px 8px;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    border-bottom: 1px solid #ddd;
    gap: 5px;
}

.nav-btn {
    background-color: transparent;
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 0.8em;
    font-weight: bold;
    cursor: pointer;
    margin: 0;
    transition: background-color 0.3s;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.nav-btn.active {
    background-color: var(--active-red);
    color: #fff;
}

.ticker-container {
    background-color: var(--active-red) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    border: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    white-space: nowrap;
    height: 25px;
}

.live-label {
    background-color: var(--active-red) !important;
    color: #fff;
    padding: 0 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    z-index: 2;
    flex-shrink: 0;
    font-size: 0.9em;
}

.blink-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.ticker-content-wrapper {
    flex-grow: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ticker-text-inner {
    color: #fff;
    font-weight: bold;
    font-size: 0.9em;
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-scroll 15s linear infinite;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

main {
    width: 100%;
}

.home-action-panel {
    display: grid;
    gap: 14px;
}

.result-table-wrapper {
    padding: 0 10px;
    margin-bottom: 10px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin: 5px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}

.result-table th,
.result-table td {
    border: 1px solid #ddd;
    padding: 5px 2px;
    font-size: 0.88em;
    font-weight: bold;
    width: 12.5%;
    box-sizing: border-box;
    position: relative;
}

.result-table th {
    background-color: var(--primary-color) !important;
    color: #333;
    padding: 6px 0;
    font-size: 1em;
}

.result-table th h3 {
    color: #333 !important;
    margin: 0;
    font-weight: bold;
    font-size: 1em;
}

.result-table td h4 {
    margin: 0;
    font-weight: bold;
    line-height: 1.2;
}

.result-table td h4,
.result-table td h4 strong {
    font-size: 1em !important;
    color: #333 !important;
    font-weight: bold !important;
    white-space: nowrap;
}

#table-date-display {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blink-dot-red {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #DC2626;
    border-radius: 50%;
    margin-right: 8px;
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.dynamic-btn-container {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.btn-dynamic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-tips {
    background-color: #FBBF24;
    color: #000;
}

.refresh-row {
    text-align: center;
    margin-top: 10px;
}

.refresh-button {
    background-color: var(--primary-color);
    padding: 10px;
    width: 50%;
    max-width: 250px;
    display: inline-block;
    text-decoration: none;
    color: #000;
    border-radius: 50px;
    font-weight: bold;
}

.app-download-row {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.app-download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #DC2626;
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
}

.app-download-btn img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.app-download-text {
    text-align: left;
    z-index: 1;
}

.app-download-text span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
    color: #fee2e2;
    letter-spacing: 0.05em;
}

.app-download-text strong {
    display: block;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    color: white;
}

.download-icon {
    margin-left: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px;
    border-radius: 6px;
    display: flex;
    z-index: 1;
}

.group-hover-animate-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-200%);
    width: 100%;
    height: 100%;
}

.group:hover .group-hover-animate-shine {
    animation: shine 0.75s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-200%);
    }

    100% {
        transform: translateX(200%);
    }
}

.section-title {
    margin-top: 5px;
    text-align: center;
    letter-spacing: 2px;
}

.load-more-row {
    text-align: center;
    margin: 20px 0;
}

#load-more-btn {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.time-table-wrapper {
    margin-bottom: 20px;
}

.time-table th {
    padding: 8px 0 !important;
}

.time-table td {
    padding: 5px 2px !important;
    font-size: 0.8em !important;
}

.article-box {
    margin: 0 10px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.article-section {
    text-align: left;
    padding: 12px 17px;
    font-size: 18px;
    line-height: 1.15;
}

.article-section h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.article-section p {
    margin: 0;
}

.site-footer {
    background-color: #333;
    /* गहरा ग्रे बैकग्राउंड */
    color: #fff;
    /* सफेद टेक्स्ट */
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
}

.footer-links li {
    display: inline-flex;
    margin: 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-info p {
    margin: 5px 0 0;
    font-size: 0.9em;
}

.simple-page {
    background-color: var(--background-light);
}

.static-content {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.static-content h1,
.static-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 20px;
}

.static-content p,
.static-content li {
    line-height: 1.6;
    margin-bottom: 10px;
    color: #444;
}

.static-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.contact-box {
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
    background: #f7f7f7;
    padding: 14px 18px;
}

.contact-box p {
    margin-bottom: 14px;
}

.patti-page {
    max-width: 980px;
}

.patti-chart-wrap {
    overflow-x: auto;
    margin-top: 18px;
    border: 2px solid var(--active-red);
    background: #fff;
}

.patti-chart {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;
}

.patti-chart th {
    background: #000;
    color: #fff;
    border: 2px solid var(--active-red);
    padding: 7px 4px;
    font-size: 15px;
    font-weight: 900;
}

.patti-chart td {
    border: 2px solid var(--active-red);
    padding: 7px 4px;
    color: #111;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
}

.admin-page {
    min-height: 100vh;
    padding-top: 0;
    background: #eef2f7;
    overflow-x: hidden;
}

.admin-shell {
    width: 100%;
    max-width: 980px;
    min-height: 100vh;
    display: grid;
    place-items: center;
    margin: 0 auto;
    padding: 32px 16px;
}

.admin-card {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(20, 30, 48, 0.14);
    padding: 24px;
    overflow-x: hidden;
}

.login-card {
    max-width: 520px;
}

.dashboard-card {
    width: 100%;
}

.admin-logo {
    display: block;
    width: 220px;
    height: auto;
    margin: 0 auto 18px;
}

.admin-card h1 {
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 28px;
    text-align: center;
}

.dashboard-card h1 {
    text-align: left;
}

.admin-muted,
.admin-help {
    color: #667085;
    font-size: 14px;
}

.admin-help {
    margin-top: 16px;
    text-align: center;
}

.admin-login-page {
    background: #f4f7fb;
}

.admin-login-page .admin-shell {
    width: 100%;
    max-width: none;
    padding: 24px;
}

.admin-login-panel {
    width: min(100%, 596px);
    padding: 16px 16px 64px;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(90deg, #392a97 0%, #4d63f3 50%, #4a3bb7 100%);
    box-shadow: 0 22px 55px rgba(44, 62, 80, 0.18);
}

.admin-login-form {
    gap: 0;
    margin-top: 0;
}

.admin-login-form label {
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.admin-login-form label + label {
    margin-top: 2px;
}

.admin-login-form input {
    min-height: 36px;
    border: 0;
    border-radius: 4px;
    padding: 0 12px;
    color: #334155;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(204, 214, 228, 0.85);
}

.admin-login-form input::placeholder {
    color: #64748b;
    opacity: 1;
}

.admin-login-form button {
    min-height: 37px;
    margin-top: 18px;
    border-radius: 4px;
    background: linear-gradient(180deg, #ffc61a 0%, #ffba08 100%);
    color: #fff;
    box-shadow: none;
    font-size: 14px;
    font-weight: 500;
}

.admin-login-page .admin-alert {
    margin-bottom: 12px;
    margin-top: 0;
    border-radius: 10px;
}

.admin-form,
.admin-action-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.admin-ticker-form {
    border-top: 1px solid #d8e0eb;
    padding-top: 18px;
}

.admin-ticker-form h2 {
    color: #1f2937;
    font-size: 20px;
}

.admin-form label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-weight: 700;
    font-size: 14px;
}

.admin-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 12px;
    font: inherit;
}

.admin-form-grid,
.admin-date-jump {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.admin-form-grid > *,
.admin-date-jump > *,
.admin-stat-grid > *,
.admin-topbar > *,
.admin-actions > * {
    min-width: 0;
}

.admin-date-jump {
    grid-template-columns: minmax(0, 1fr) 120px;
    align-items: end;
}

.admin-form-grid label,
.admin-date-jump label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-weight: 700;
    font-size: 14px;
}

.admin-form-grid input,
.admin-date-jump input {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font: inherit;
}

.admin-textarea-label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-weight: 700;
    font-size: 14px;
}

.admin-textarea-label textarea {
    width: 100%;
    max-width: 100%;
    min-height: 112px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
    resize: vertical;
}

.admin-textarea-label input {
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font: inherit;
}

.admin-form button,
.admin-action-form button,
.admin-date-jump button,
.admin-secondary-button,
.admin-save-button {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: var(--active-red);
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    font-size: 15px;
}

.admin-secondary-button {
    padding: 0 18px;
    white-space: nowrap;
}

.admin-secondary-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.result-editor-form {
    margin-top: 22px;
}

.admin-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 16px;
}

.admin-checkbox-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-weight: 800;
}

.admin-table-wrap {
    overflow-x: auto;
    margin-top: 18px;
    border: 1px solid #d8e0eb;
    border-radius: 8px;
}

.admin-result-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.admin-result-table th,
.admin-result-table td {
    border-bottom: 1px solid #d8e0eb;
    padding: 10px;
    text-align: left;
}

.admin-result-table th {
    background: var(--primary-color);
    color: #111827;
    font-size: 13px;
    text-transform: uppercase;
}

.admin-result-table td:first-child {
    width: 70px;
    font-weight: 900;
}

.admin-result-table input[type="text"] {
    width: 100%;
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 9px;
    font: inherit;
}

.admin-table-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}

.admin-save-button {
    width: 100%;
    margin-top: 16px;
}

.admin-alert {
    margin-top: 18px;
    border-radius: 6px;
    padding: 10px 12px;
    font-weight: 700;
}

.admin-alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.admin-alert.success {
    background: #dcfce7;
    color: #166534;
}

.admin-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.admin-topbar > div {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.admin-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #d8e0eb;
    color: #111827;
    padding: 0 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.admin-menu-link.is-active {
    background: var(--active-red);
    border-color: var(--active-red);
    color: #fff;
}

.admin-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    max-width: 100%;
    border-radius: 6px;
    background: #111827;
    color: #fff;
    padding: 0 14px;
    text-decoration: none;
    font-weight: 800;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.admin-stat {
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    padding: 14px;
    background: #f8fafc;
}

.admin-stat span {
    display: block;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.admin-stat strong {
    display: block;
    margin-top: 4px;
    color: #111827;
    word-break: break-word;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.admin-actions a {
    color: #0645d8;
    font-weight: 800;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.admin-section-anchor {
    position: relative;
    top: -12px;
}

.admin-section-header {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-section-header h2 {
    margin-bottom: 6px;
    color: #1f2937;
    font-size: 22px;
}

.admin-day-list {
    margin-top: 24px;
    border-top: 1px solid #d8e0eb;
    padding-top: 18px;
}

.admin-day-list h2,
.admin-day-list h3,
.admin-ticker-form h3 {
    margin-bottom: 12px;
    color: #1f2937;
    font-size: 20px;
}

.admin-date-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-date-links a {
    border: 1px solid #d8e0eb;
    border-radius: 999px;
    background: #f8fafc;
    color: #111827;
    padding: 7px 11px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.admin-date-links a.active {
    background: var(--active-red);
    border-color: var(--active-red);
    color: #fff;
}

.admin-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d8e0eb;
    border-radius: 999px;
    background: #f8fafc;
    color: #111827;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
}

.admin-user-pill small {
    color: #667085;
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    body:not(.admin-page) {
        background:
            radial-gradient(circle at top, rgba(102, 119, 255, 0.22), transparent 34%),
            linear-gradient(180deg, #eef2ff 0%, #f8f7ff 32%, #fffdf7 100%);
    }

    .app-header {
        box-shadow: 0 14px 34px rgba(38, 46, 120, 0.18);
    }

    .header-top {
        background: linear-gradient(135deg, #2d1f86 0%, #4d65ff 100%);
        padding: 12px 12px 10px;
    }

    .header-top img {
        width: min(68vw, 260px);
        height: auto;
        background: rgba(255, 255, 255, 0.94);
        border-radius: 999px;
        padding: 10px 16px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
    }

    .navbar {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: linear-gradient(135deg, #2d1f86 0%, #4d65ff 100%);
        border-bottom: 0;
        gap: 8px;
        padding: 10px 12px 14px;
    }

    .navbar::-webkit-scrollbar {
        display: none;
    }

    .nav-btn {
        color: #f8faff;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.18);
        padding: 8px 14px;
        font-size: 0.74rem;
        letter-spacing: 0.04em;
        box-shadow: 0 6px 18px rgba(9, 16, 48, 0.18);
    }

    .nav-btn.active {
        background: #fff;
        color: #2d1f86;
    }

    .ticker-container {
        width: calc(100% - 20px);
        margin: 10px auto 0;
        border-radius: 999px;
        height: 34px;
        background: linear-gradient(135deg, #2d1f86 0%, #4d65ff 100%) !important;
        box-shadow: 0 12px 28px rgba(38, 46, 120, 0.2);
    }

    .live-label {
        padding: 0 14px;
        font-size: 0.8rem;
        letter-spacing: 0.06em;
    }

    .ticker-text-inner {
        font-size: 0.79rem;
        letter-spacing: 0.01em;
    }

    .result-table-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        width: 100% !important;
    }

    .result-table {
        width: 100%;
    }

    .article-section {
        font-size: 16px;
    }

    .static-content {
        width: calc(100% - 20px);
        margin: 12px auto;
        padding: 16px;
    }

    .static-content h1,
    .static-content h2 {
        font-size: 22px;
        line-height: 1.2;
    }

    .static-content {
        border-radius: 28px;
        border: 1px solid rgba(77, 101, 255, 0.12);
        box-shadow: 0 18px 36px rgba(42, 57, 140, 0.12);
    }

    .site-footer {
        background: linear-gradient(135deg, #2d1f86 0%, #4d65ff 100%);
    }

    .admin-login-page .admin-shell {
        padding: 16px;
    }

    .admin-login-panel {
        padding: 14px 14px 36px;
        border-radius: 18px;
    }

    .admin-shell {
        place-items: start center;
        padding: 20px 0 28px;
    }

    .admin-card {
        padding: 18px;
        border-radius: 18px;
    }

    .dashboard-card h1 {
        font-size: clamp(1.45rem, 5vw, 1.9rem);
    }

    .admin-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .admin-link-button {
        width: 100%;
        min-height: 42px;
    }

    .admin-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .admin-menu-link {
        width: 100%;
        min-height: 42px;
        padding: 10px 12px;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-grid,
    .admin-date-jump {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .admin-checkbox-row label {
        width: 100%;
    }

    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-actions a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }

    .admin-date-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .admin-date-links a,
    .admin-user-pill {
        width: 100%;
        border-radius: 14px;
        padding: 10px 12px;
    }

    .admin-user-pill {
        justify-content: space-between;
        gap: 12px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding-top: 128px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 0.68rem;
    }

    .ticker-container {
        height: 32px;
    }

    .live-label,
    .ticker-text-inner {
        font-size: 0.74rem;
    }

    .result-table th h3 {
        font-size: 0.86em;
    }

    .result-table td {
        font-size: 0.78em;
    }

    .btn-dynamic {
        padding: 0 4px !important;
        font-size: 9px !important;
        border-radius: 2px;
        line-height: 14px;
        height: 16px;
    }

    .refresh-button {
        width: 76%;
    }

    .app-download-btn {
        padding: 8px 14px;
    }

    .app-download-btn img {
        width: 25px;
        height: 25px;
    }

    .app-download-text span {
        font-size: 8px;
    }

    .app-download-text strong {
        font-size: 11px;
    }

    .section-title {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .article-section {
        padding: 12px;
    }

    .article-section h2 {
        font-size: 22px;
    }

    .patti-chart {
        min-width: 560px;
    }

    .home-page {
        padding-top: 132px;
    }

    .home-page main {
        padding: 8px 10px 24px;
    }

    .home-page .result-table-wrapper {
        margin-bottom: 14px;
        padding: 4px !important;
        border-radius: 28px !important;
        background: linear-gradient(135deg, #2d1f86 0%, #4d65ff 100%);
        box-shadow: 0 16px 34px rgba(45, 31, 134, 0.22);
    }

    .home-page .result-table {
        margin: 0;
        border-collapse: separate;
        border-spacing: 0;
        border-radius: 24px;
        overflow: hidden;
        background: #fff;
        box-shadow: none;
    }

    .home-page .result-table th,
    .home-page .result-table td {
        border: 1px solid #d9defe;
        padding: 8px 3px;
    }

    .home-page .result-table thead tr:first-child th {
        background: linear-gradient(135deg, var(--home-accent-start) 0%, var(--home-accent-mid) 100%) !important;
        color: var(--home-accent-text);
        border-color: transparent;
        padding: 10px 8px;
    }

    .home-page .result-table th h3,
    .home-page #table-date-display {
        color: var(--home-accent-text) !important;
        font-size: 0.8rem;
        letter-spacing: 0.05em;
    }

    .home-page .blink-dot-red {
        background-color: #ffd447;
    }

    .home-page .result-table td {
        background: linear-gradient(180deg, #ffffff 0%, #f3f5ff 100%);
    }

    .home-page .result-table td h4,
    .home-page .result-table td h4 strong {
        font-size: 0.92rem !important;
        color: #172153 !important;
    }

    .home-page .dynamic-btn-container {
        background: rgba(255, 255, 255, 0.96);
        border-radius: 14px;
        inset: 4px;
    }

    .home-page .btn-dynamic {
        padding: 3px 8px !important;
        font-size: 0.56rem !important;
        border-radius: 999px;
        line-height: 1;
        height: auto;
        background: linear-gradient(135deg, #ffd447 0%, #ffb800 100%);
        box-shadow: 0 6px 16px rgba(255, 184, 0, 0.28);
    }

    .home-page .home-action-panel {
        margin: 6px 0 18px;
        padding: 16px 14px;
        border-radius: 28px;
        background: linear-gradient(135deg, #2d1f86 0%, #4d65ff 100%);
        box-shadow: 0 16px 34px rgba(45, 31, 134, 0.2);
    }

    .home-page .refresh-row,
    .home-page .app-download-row {
        margin: 0;
    }

    .home-page .refresh-button,
    .home-page .app-download-btn,
    .home-page #load-more-btn {
        width: 100%;
        max-width: none;
        border-radius: 999px;
        background: linear-gradient(135deg, #2d1f86 0%, #4d65ff 100%);
        color: #fff;
        box-shadow: 0 12px 26px rgba(26, 34, 98, 0.22);
    }

    .home-page .refresh-button {
        padding: 13px 18px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        font-size: 0.92rem;
    }

    .home-page .app-download-btn {
        padding: 10px 16px;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%),
            linear-gradient(135deg, #2d1f86 0%, #4d65ff 100%);
        border: 1px solid rgba(255, 255, 255, 0.16);
    }

    .home-page .app-download-btn img {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.95);
        padding: 4px;
    }

    .home-page .app-download-text span {
        font-size: 0.58rem;
        color: rgba(255, 255, 255, 0.76);
        letter-spacing: 0.08em;
    }

    .home-page .app-download-text strong {
        font-size: 0.86rem;
        color: #fff;
    }

    .home-page .download-icon {
        background: rgba(255, 255, 255, 0.14);
    }

    .home-page .section-title {
        width: fit-content;
        max-width: calc(100% - 20px);
        margin: 10px auto 12px;
        padding: 9px 18px;
        border-radius: 999px;
        background: linear-gradient(135deg, #2d1f86 0%, #4d65ff 100%);
        color: #fff;
        font-size: 0.86rem;
        font-weight: 900;
        letter-spacing: 0.16em;
        box-shadow: 0 12px 26px rgba(45, 31, 134, 0.18);
    }

    .home-page .time-table-wrapper {
        margin-bottom: 18px;
    }

    .home-page .time-table thead tr:nth-child(2) th {
        background: #eef1ff !important;
        color: #26327c;
        border-color: #d9defe;
        font-size: 0.72rem;
        padding: 6px 0 !important;
    }

    .home-page .time-table tbody td {
        font-size: 0.72rem !important;
        letter-spacing: 0.03em;
    }

    .home-page .load-more-row {
        margin: 12px 0 18px;
    }

    .home-page #load-more-btn {
        border: 0;
        padding: 13px 18px;
        font-size: 0.88rem;
    }

    .home-page .article-box {
        margin: 0 0 18px;
        padding: 4px;
        border: 0;
        border-radius: 30px;
        background: linear-gradient(135deg, #2d1f86 0%, #4d65ff 100%);
        box-shadow: 0 16px 34px rgba(45, 31, 134, 0.18);
    }

    .home-page .article-section {
        padding: 18px 16px;
        border-radius: 26px;
        background: linear-gradient(180deg, #ffffff 0%, #f6f7ff 100%);
        color: #24304f;
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .home-page .article-section h2 {
        margin-bottom: 10px;
        font-size: 1.02rem;
        color: #2d1f86;
        line-height: 1.3;
    }

    .home-page .article-section p,
    .home-page .article-section li {
        color: #334155;
    }

    .home-page .article-section ul {
        padding-left: 18px;
        margin: 8px 0 14px;
    }

    .home-page .site-footer {
        padding: 18px 0 24px;
    }

    .home-page .footer-links ul {
        gap: 10px;
    }

    .home-page .footer-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        font-size: 0.75rem;
    }
}

@media (max-width: 560px) {
    .admin-shell {
        padding: 14px 8px 24px;
    }

    .admin-card {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .admin-menu {
        grid-template-columns: 1fr;
    }

    .admin-result-table,
    .admin-result-table tbody,
    .admin-result-table tr,
    .admin-result-table td {
        display: block;
        width: 100%;
    }

    .admin-result-table {
        min-width: 0;
    }

    .admin-result-table thead {
        display: none;
    }

    .admin-result-table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .admin-result-table tr {
        border: 1px solid #d8e0eb;
        border-radius: 14px;
        background: #fff;
        padding: 4px 12px 10px;
        box-shadow: 0 10px 24px rgba(20, 30, 48, 0.06);
    }

    .admin-result-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        border-bottom: 1px solid #eef2f7;
        padding: 10px 0;
        text-align: right;
    }

    .admin-result-table td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .admin-result-table td::before {
        content: attr(data-label);
        color: #667085;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        text-align: left;
    }

    .admin-result-table td:first-child {
        width: 100%;
    }

    .admin-result-table input[type="text"] {
        width: min(52vw, 180px);
        margin-left: auto;
    }

    .admin-table-check,
    .admin-table-actions {
        margin-left: auto;
    }

    .admin-table-actions {
        justify-content: flex-end;
    }

    .admin-table-actions a {
        min-height: 34px;
    }
}

body.home-page {
    --home-accent-base: #e3a900;
    --home-accent-start: #b8860b;
    --home-accent-mid: #facc15;
    --home-accent-end: #d4a017;
    --home-accent-text: #2a1f00;
    --home-accent-soft: rgba(255, 248, 196, 0.42);
    --home-accent-shadow: rgba(120, 82, 0, 0.28);
    padding-top: 0;
    background: linear-gradient(180deg, #fffdf2 0%, #fff7d6 100%);
    color: #111827;
    font-family: "Nunito", Arial, Helvetica, sans-serif;
}

.home-page .sample-home {
    min-height: 100vh;
}

.home-page .sample-main {
    width: 100%;
    padding-bottom: 32px;
}

.home-page .text-center {
    text-align: center;
}

.home-page .fw-bold {
    font-weight: 800;
}

.home-page .sample-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.home-page #logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: min(50vh, 92vw);
    height: auto;
}

.home-page .sample-header {
    padding: 10px 0 0;
}

.home-page .sample-top-actions {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    width: min(92vw, 720px);
    margin: 0 auto;
}

.home-page .top-buttons {
    background-color: var(--home-accent-base);
    background-image: linear-gradient(to right, var(--home-accent-start) 0%, var(--home-accent-mid) 51%, var(--home-accent-end) 100%);
    color: var(--home-accent-text);
    font-weight: 700;
    width: 40vw;
    border-radius: 25px;
    text-align: center;
    padding: 8px 10px;
    box-shadow: var(--home-accent-shadow) 0 5px 15px;
}

.home-page .sample-icon-link {
    color: var(--home-accent-text);
    gap: 8px;
}

.home-page .svg {
    width: 1.3rem;
    height: 1.3rem;
}

.home-page .notifications {
    margin: 8px auto;
    background-color: var(--home-accent-base);
    background-image: linear-gradient(to right, var(--home-accent-start) 0%, var(--home-accent-mid) 51%, var(--home-accent-end) 100%);
    width: min(90vw, 760px);
    border-radius: 25px;
    padding: 10px;
    text-align: center;
    box-shadow: var(--home-accent-shadow) 0 5px 15px;
}

.home-page .notification {
    border-radius: 25px;
    background-color: white;
    margin: 5px;
    font-weight: 700;
    padding: 10px 12px;
}

.home-page .notification p {
    margin: 0;
    white-space: pre-line;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.home-page .sample-whatsapp-strip,
.home-page .sample-promo-image,
.home-page .sample-play-now {
    text-align: center;
}

.home-page .sample-whatsapp-strip {
    padding: 10px 0 18px;
}

.home-page .follow-us-btn {
    background-color: var(--home-accent-base);
    background-image: linear-gradient(to right, var(--home-accent-start) 0%, var(--home-accent-mid) 51%, var(--home-accent-end) 100%);
    color: var(--home-accent-text);
    border-radius: 12px;
    padding: 8px 14px;
    gap: 8px;
    box-shadow: var(--home-accent-shadow) 0 5px 14px;
    font-weight: 800;
}

.home-page #notification-image {
    width: min(78vw, 640px);
    height: auto;
    margin: auto;
    border-radius: 25px;
    box-shadow: rgba(0, 0, 0, 0.18) 0 10px 30px;
}

.home-page .sample-play-now {
    padding-top: 12px;
}

.home-page .sample-section-heading,
.home-page .sample-subheading {
    text-align: center;
    font-weight: 800;
    margin: 18px 0 10px;
    color: #111827;
}

.home-page .live-result {
    margin: 8px auto;
    background-color: var(--home-accent-base);
    background-image: linear-gradient(to right, var(--home-accent-start) 0%, var(--home-accent-mid) 51%, var(--home-accent-end) 100%);
    width: min(90vw, 760px);
    border-radius: 25px;
    padding: 8px 10px 12px;
    text-align: center;
    box-shadow: var(--home-accent-shadow) 0 5px 15px;
    color: var(--home-accent-text);
}

.home-page .result-card-title,
.home-page .result-card-value {
    margin: 0;
    color: var(--home-accent-text);
    font-weight: 800;
    font-size: clamp(1.2825rem, calc(1.2825rem + 0.39vw), 1.575rem);
}

.home-page .result-card-value {
    line-height: 1.15;
    letter-spacing: 0.02em;
    padding-top: 4px;
}

.home-page .result-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.home-page .time-text {
    color: #5b4300;
    font-size: 0.88rem;
    font-weight: 700;
}

.home-page .panel-button,
.home-page #refresh,
.home-page .refresh-btn,
.home-page #privacy-policy {
    background-color: var(--home-accent-base);
    background-image: linear-gradient(to right, var(--home-accent-start) 0%, var(--home-accent-mid) 51%, var(--home-accent-end) 100%);
    color: var(--home-accent-text);
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--home-accent-shadow) 0 8px 20px;
    border: 0;
}

.home-page .panel-button,
.home-page #refresh {
    min-width: 76px;
    padding: 8px 14px;
    font-weight: 800;
}

.home-page .rounded-table {
    border-collapse: separate;
    border: solid black 1px;
    border-radius: 6px;
    margin: auto;
    width: min(80vw, 760px);
    text-align: center;
    background: #fff;
    overflow: hidden;
}

.home-page .rounded-table td,
.home-page .rounded-table th {
    border-left: solid black 1px;
    border-top: solid black 1px;
    padding: 8px 6px;
}

.home-page .rounded-table th {
    background-color: var(--home-accent-base);
    background-image: linear-gradient(to right, var(--home-accent-start) 0%, var(--home-accent-mid) 51%, var(--home-accent-end) 100%);
    border-top: none;
    color: var(--home-accent-text);
}

.home-page .rounded-table td:first-child,
.home-page .rounded-table th:first-child {
    border-left: none;
}

.home-page .fatafat-header {
    display: flex;
    justify-content: space-around;
    background-color: var(--home-accent-base);
    background-image: linear-gradient(to right, var(--home-accent-start) 0%, var(--home-accent-mid) 51%, var(--home-accent-end) 100%);
    color: var(--home-accent-text);
    border-radius: 6px;
    width: min(80vw, 760px);
    margin: auto auto 10px;
    align-items: center;
    padding: 10px;
    gap: 12px;
}

.home-page .fatafat-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.home-page #auto-guessing,
.home-page #daily-guessing {
    margin-top: 20px;
    margin-bottom: 20px;
}

.home-page .guessing-table {
    width: min(90vw, 760px);
    background-color: var(--home-accent-base);
    background-image: linear-gradient(to right, var(--home-accent-start) 0%, var(--home-accent-mid) 51%, var(--home-accent-end) 100%);
    border-radius: 25px;
    margin: 0 auto 10px;
    color: var(--home-accent-text);
    text-align: center;
    padding: 12px 10px;
}

.home-page .guessing-table h4 {
    margin: 0 0 10px;
}

.home-page .guessing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.home-page .guessing {
    background: var(--home-accent-soft);
    border-radius: 16px;
    padding: 8px 6px;
}

.home-page .guessing-row,
.home-page .guessing-middle {
    display: flex;
    justify-content: space-around;
    gap: 8px;
}

.home-page .guessing-middle {
    justify-content: center;
    padding: 6px 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.home-page .guessing > div > span {
    font-size: 0.8rem;
    font-weight: 700;
}

.home-page .refresh-btn-container {
    position: fixed;
    right: 0;
    top: 0;
    width: 1%;
    height: 100%;
    z-index: 999;
}

.home-page .refresh-btn {
    font-size: 13px;
    height: 35px;
    width: 68px;
    position: absolute;
    left: -65px;
    top: 90%;
    border-radius: 6px;
}

.home-page .sample-footer {
    padding: 18px 12px 24px;
}

.home-page .disclaimer {
    display: block;
    width: min(92vw, 900px);
    margin: 0 auto;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

.home-page #privacy-policy {
    margin: 14px auto 0;
    padding: 10px 18px;
    display: inline-flex;
    text-decoration: none;
}

.policy-page .policy-header {
    padding-bottom: 10px;
}

.policy-page .policy-notice {
    width: min(90vw, 760px);
}

.policy-page .policy-main {
    display: grid;
    gap: 12px;
    padding-bottom: 36px;
}

.policy-page .policy-hero {
    padding: 14px 18px;
}

.policy-page .policy-meta {
    margin: 8px 0 0;
    color: #fef08a;
    font-weight: 800;
    text-align: center;
}

.policy-page .policy-card {
    width: min(90vw, 760px);
    margin: 0 auto;
    background: #fff;
    border-radius: 25px;
    padding: 18px 20px;
    box-shadow: rgba(0, 0, 0, 0.18) 0 10px 24px;
}

.policy-page .policy-card .sample-section-heading {
    margin-top: 0;
    margin-bottom: 14px;
}

.policy-page .policy-card p,
.policy-page .policy-card li {
    color: #1f2937;
    line-height: 1.65;
}

.policy-page .policy-card p {
    margin: 0 0 12px;
}

.policy-page .policy-list {
    margin: 0;
    padding-left: 22px;
}

.policy-page .policy-list li {
    margin-bottom: 8px;
}

.contact-page .contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-page .contact-card {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border: 1px solid #fdba74;
    border-radius: 20px;
    padding: 18px;
    box-shadow: rgba(249, 115, 22, 0.1) 0 10px 22px;
}

.contact-page .contact-card h3 {
    margin: 0 0 10px;
    color: #9a3412;
    font-size: 1.05rem;
}

.contact-page .contact-card p {
    margin-bottom: 10px;
}

.contact-page .contact-card strong {
    color: #111827;
    font-size: 1rem;
}

.contact-page .contact-link {
    display: inline-flex;
    align-items: center;
    color: #b45309;
    font-weight: 800;
    text-decoration: none;
    word-break: break-word;
}

.contact-page .contact-link:hover {
    text-decoration: underline;
}

.contact-page .contact-list {
    margin: 0;
}

.contact-page .contact-cta {
    text-align: center;
}

@media only screen and (max-width: 768px) {
    body.home-page #logo {
        width: min(34vh, 78vw);
    }

    .home-page .sample-top-actions {
        width: 92vw;
    }

    .home-page .top-buttons {
        width: calc(46vw - 8px);
    }

    .home-page .guessing-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-page .result-card-meta {
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-page .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 480px) {
    body.home-page #logo {
        width: min(31vh, 72vw);
    }

    .home-page .top-buttons {
        width: calc(46vw - 8px);
        font-size: 0.85rem;
    }

    .home-page .sample-icon-link {
        gap: 5px;
    }

    .home-page .notification {
        font-size: 0.88rem;
    }

    .home-page .result-card-title,
    .home-page .result-card-value {
        font-size: clamp(1.2825rem, calc(1.2825rem + 0.39vw), 1.575rem);
    }

    .home-page .time-text {
        font-size: 0.76rem;
    }

    .home-page .rounded-table {
        width: 92vw;
        font-size: 0.8rem;
    }

    .home-page #notification-image {
        width: 84vw;
    }

    .home-page .fatafat-header {
        width: 92vw;
        flex-wrap: wrap;
    }

    .home-page .guessing-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
    }

    .home-page .guessing {
        padding: 7px 4px;
        border-radius: 12px;
    }

    .home-page .guessing-row,
    .home-page .guessing-middle {
        gap: 4px;
    }

    .home-page .guessing-middle {
        padding: 4px 0;
        font-size: 0.9rem;
    }

    .home-page .guessing > div > span {
        font-size: 0.72rem;
    }

    .policy-page .policy-card {
        padding: 16px 16px;
    }
}

.home-page .result-card-meta.result-card-meta-center {
    justify-content: center;
}

.panel-theme-page {
    background: linear-gradient(180deg, #f5f7fb 0%, #edf1f7 100%);
}

.panel-theme-page .panel-main {
    gap: 10px;
}

.panel-theme-page .policy-notice {
    display: none;
}

.panel-theme-page .panel-hero {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.panel-theme-page .panel-hero .result-card-title {
    color: #1f2937;
    font-size: clamp(2.1rem, 5vw, 3rem);
    line-height: 1.08;
}

.panel-theme-page .policy-meta {
    color: #4b5563;
}

.panel-theme-page .panel-summary-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: center;
}

.panel-theme-page .panel-summary-card p {
    display: none;
}

.panel-theme-page .panel-link-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
}

.panel-theme-page .panel-button {
    min-width: 150px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, #efc010 0%, #ffd31f 100%);
    color: #231a00;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(180, 138, 0, 0.18);
}

.panel-theme-page .panel-button-secondary {
    background: linear-gradient(90deg, #f2c400 0%, #ffcf19 100%);
    color: #231a00;
}

.panel-theme-page .panel-chart-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.panel-theme-page .chart-table-shell {
    overflow-x: auto;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.panel-theme-page .table_panel {
    width: 100%;
    min-width: 720px;
    margin: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #d7dde8;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.panel-theme-page .panel-week-column {
    width: 114px;
}

.panel-theme-page .panel-day-column {
    width: calc((100% - 114px) / var(--panel-day-count, 7));
}

.panel-theme-page .table_panel th,
.panel-theme-page .table_panel td {
    border-right: 1px solid #d7dde8;
    border-bottom: 1px solid #d7dde8;
    padding: 4px 3px;
    text-align: center;
    vertical-align: middle;
}

.panel-theme-page .table_panel tr > *:last-child {
    border-right: 0;
}

.panel-theme-page .table_panel tbody tr:last-child td {
    border-bottom: 0;
}

.panel-theme-page .table_header th {
    background: linear-gradient(90deg, #3140d8 0%, #4d61ff 48%, #4d3bd0 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
}

.panel-theme-page .panel-table-week-heading,
.panel-theme-page .panel-day-full,
.panel-theme-page .panel-day-short {
    display: block;
}

.panel-theme-page .panel-day-short {
    display: block;
}

.panel-theme-page .panel-day-full {
    display: none;
}

.panel-theme-page .table_panel tbody td {
    background: #f3f5f8;
}

.panel-theme-page .panel-week-cell {
    width: 114px;
}

.panel-theme-page .panel-week-range {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 8px;
    background: transparent;
    color: #111827;
    font-size: 0.78rem;
    line-height: 1.25;
}

.panel-theme-page .panel-week-separator {
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0;
    text-transform: none;
}

.panel-theme-page .panel-empty-cell {
    padding: 24px 16px;
    color: #334155;
    font-weight: 700;
}

.panel-theme-page .chart-jodi-cell,
.panel-theme-page .chart-panel-cell {
    min-height: 80px;
    border-radius: 0;
    background: transparent;
    color: #111827;
}

.panel-theme-page .chart-jodi-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.panel-theme-page .chart-panel-cell {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 0;
}

.panel-theme-page .panel-triplet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-weight: 800;
    font-size: 0.82rem;
    line-height: 1;
}

.panel-theme-page .panel-jodi-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
}

.panel-theme-page .chart-jodi-cell p,
.panel-theme-page .chart-panel-cell p {
    margin: 0;
}

.panel-theme-page .chart-jodi-cell .whiteword,
.panel-theme-page .chart-panel-cell .whiteword {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.panel-theme-page .chart-jodi-cell .redword,
.panel-theme-page .chart-panel-cell .redword {
    color: #ff2020;
    font-size: 18px;
    font-weight: 900;
}

.admin-textarea-label select,
.admin-form-grid select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    color: #111827;
    background: #fff;
}

.admin-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.admin-game-card {
    border-radius: 18px;
    border: 1px solid #dbe3ff;
    background: #f8faff;
    padding: 16px;
    box-shadow: 0 14px 32px rgba(59, 73, 187, 0.12);
}

.admin-game-card h3 {
    margin: 0 0 6px;
    color: #1f2a44;
}

.admin-game-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
}

.admin-game-flags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(66, 86, 241, 0.12);
    color: #2d3f97;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-game-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-game-result-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.admin-game-result-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-game-result-grid input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
}

.admin-game-result-grid input.admin-input-invalid,
.admin-week-value-field input.admin-input-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23dc2626'/%3E%3Cpath d='M10 5.5v5' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='14.5' r='1.2' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    padding-right: 40px;
}

.admin-games-table td,
.admin-games-table th {
    text-align: left;
}

.admin-range-separator {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-table-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    border: 0;
    border-radius: 999px;
    background: rgba(66, 86, 241, 0.12);
    color: #2d3f97;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.admin-inline-form {
    margin: 0;
}

.admin-game-weekday-fieldset {
    margin: 0;
    border: 1px solid #dbe3ff;
    border-radius: 16px;
    padding: 14px;
}

.admin-game-weekday-fieldset legend {
    padding: 0 8px;
    color: #344054;
    font-weight: 800;
}

.admin-game-weekday-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.admin-game-weekday-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid #dbe3ff;
    background: #f8faff;
    padding: 10px 12px;
    color: #344054;
    font-weight: 700;
}

.admin-game-weekday-option input {
    margin: 0;
}

.admin-table-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(66, 86, 241, 0.12);
    color: #2d3f97;
    padding: 6px 10px;
    font-weight: 700;
    text-decoration: none;
}

.admin-table-danger {
    min-height: auto !important;
    border: 0;
    border-radius: 999px !important;
    background: rgba(220, 38, 38, 0.12) !important;
    color: #b42318 !important;
    padding: 6px 10px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
}

@media (max-width: 560px) {
    .admin-games-table td {
        width: 100%;
        align-items: flex-start;
        text-align: left;
        word-break: break-word;
    }

    .admin-games-table td:first-child {
        width: 100%;
    }

    .admin-games-table td:not(.admin-table-actions) {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .admin-games-table .admin-table-actions {
        margin-left: 0;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-games-table .admin-inline-form {
        display: inline-flex;
    }
}

html.is-modal-open,
body.is-modal-open {
    overflow: hidden;
    overscroll-behavior: none;
    height: 100%;
}

.admin-week-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overscroll-behavior: contain;
}

.admin-week-modal[hidden] {
    display: none;
}

.admin-week-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.76);
}

.admin-week-modal-dialog {
    position: relative;
    width: min(100%, 760px);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    cursor: auto;
    outline: none;
}

.admin-week-modal-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 10px;
    background: #050505;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    cursor: default;
}

.admin-week-modal-header,
.admin-week-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-week-modal-header {
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.admin-week-modal-header h3 {
    margin: 0;
    color: #34d399;
    font-size: 20px;
}

.admin-week-modal .admin-muted {
    color: rgba(255, 255, 255, 0.72);
}

.admin-week-modal code {
    color: #fde68a;
}

.admin-week-range-grid,
.admin-week-value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-week-value-grid {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.admin-week-range-grid label,
.admin-week-value-field {
    display: grid;
    gap: 6px;
    color: #fff;
    font-weight: 700;
}

.admin-week-range-grid input,
.admin-game-modal-card select,
.admin-week-value-field input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(203, 213, 225, 0.6);
    border-radius: 4px;
    padding: 0 12px;
    background: #f8fafc;
    color: #111827;
    caret-color: #111827;
    font: inherit;
    cursor: text;
}

.admin-game-modal-card select {
    cursor: pointer;
}

.admin-week-value-label {
    color: #fff;
}

.admin-week-value-date {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 600;
}

.admin-week-modal-actions {
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.admin-week-submit,
.admin-week-dismiss,
.admin-week-close {
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
}

.admin-week-submit {
    background: #16a34a;
}

.admin-week-dismiss,
.admin-week-close {
    background: #ef4444;
}

.red-jodi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 10px;
}

.red-jodi-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid #d8e0eb;
    border-radius: 10px;
    background: #f8fafc;
    color: #1f2937;
    font-weight: 700;
    padding: 8px 10px;
}

.red-jodi-option input {
    margin: 0;
}

.chart-page {
    margin: 0;
    min-height: 100vh;
    background: #fff;
    color: #000;
    font-family: "Nunito", Arial, Helvetica, sans-serif;
}

.chart-shell {
    padding: 18px 10px 40px;
}

.chart-card {
    width: min(96vw, 980px);
    margin: 0 auto;
    text-align: center;
}

.panelChartTitle {
    margin: 0;
    color: #3b49bb;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
}

.panelChartText {
    margin: 8px 0 14px;
    color: #f95700;
    font-weight: 800;
}

.table_panel {
    width: min(94vw, 980px);
    margin: 10px auto;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(59, 73, 187, 0.2);
}

.table_header th {
    background: #1a0e85;
    color: #fff;
    padding: 10px 8px;
    font-weight: 800;
    font-size: 0.86rem;
}

.dailyPanel td {
    background: linear-gradient(to right, #ffffff 0%, #f6f8ff 100%);
    color: #000;
    font-size: 0.82rem;
    font-weight: 700;
    vertical-align: middle;
}

.dailyPanel td > div.border {
    min-width: 70px;
}

.chart-panel-cell,
.chart-jodi-cell {
    min-height: 58px;
    padding: 8px 6px;
}

.chart-panel-cell {
    display: flex;
    gap: 8px;
    font-weight: 700;
}

.chart-jodi-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.redword {
    color: #ff1f1f;
    font-size: 14px;
    font-weight: 800;
}

.whiteword {
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.chart-actions {
    margin-top: 16px;
}

.chart-page .panel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 800;
}

.chart-page .table_header th {
    background: linear-gradient(90deg, #3140d8 0%, #4d61ff 48%, #4d3bd0 100%);
    color: #fff;
}

.chart-page .table_panel {
    border-color: #d7dde8;
}

.chart-page .chart-panel-cell,
.chart-page .chart-jodi-cell {
    background: transparent;
    color: #111827;
}

@media only screen and (max-width: 768px) {
    .panel-theme-page .panel-link-row {
        gap: 8px;
    }

    .panel-theme-page .panel-button {
        min-width: 132px;
        width: auto;
    }

    .panel-theme-page .panel-chart-card {
        padding: 0;
    }

    .panel-theme-page .chart-table-shell {
        -webkit-overflow-scrolling: touch;
    }

    .panel-theme-page .table_panel {
        width: 100%;
        min-width: 0;
    }

    .panel-theme-page .panel-week-column {
        width: 19%;
    }

    .panel-theme-page .panel-day-column {
        width: calc(81% / var(--panel-day-count, 7));
    }

    .panel-theme-page .table_header th {
        font-size: 0.68rem;
        padding: 6px 2px;
    }

    .panel-theme-page .panel-week-cell {
        width: 19%;
    }

    .panel-theme-page .panel-week-range {
        padding: 6px 3px;
        font-size: 0.58rem;
    }

    .panel-theme-page .chart-panel-cell,
    .panel-theme-page .chart-jodi-cell {
        min-height: 58px;
    }

    .panel-theme-page .chart-panel-cell {
        gap: 2px;
    }

    .panel-theme-page .panel-triplet {
        font-size: 0.64rem;
    }

    .panel-theme-page .chart-jodi-cell .whiteword,
    .panel-theme-page .chart-jodi-cell .redword,
    .panel-theme-page .chart-panel-cell .whiteword,
    .panel-theme-page .chart-panel-cell .redword {
        font-size: 13px;
    }

    .admin-game-result-grid {
        grid-template-columns: 1fr;
    }

    .admin-section-header {
        align-items: stretch;
    }

    .admin-week-modal {
        align-items: flex-end;
        padding: 0;
    }

    .admin-week-modal-dialog {
        width: 100%;
        max-height: min(100vh, 820px);
    }

    .admin-week-modal-card {
        padding: 18px 16px 24px;
        border-radius: 18px 18px 0 0;
    }

    .admin-week-range-grid,
    .admin-week-value-grid {
        grid-template-columns: 1fr;
    }

    .admin-week-modal-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .admin-week-submit,
    .admin-week-dismiss,
    .admin-week-close,
    .admin-section-header .admin-link-button,
    .admin-table-button {
        width: 100%;
    }
}

@media only screen and (max-width: 480px) {
    .panel-theme-page .panel-chart-card {
        padding: 0;
    }

    .panel-theme-page .chart-table-shell {
        margin: 0;
    }

    .panel-theme-page .table_panel {
        width: 100%;
        min-width: 0;
    }

    .panel-theme-page .panel-week-column {
        width: 18%;
    }

    .panel-theme-page .panel-day-column {
        width: calc(82% / var(--panel-day-count, 7));
    }

    .panel-theme-page .table_panel th,
    .panel-theme-page .table_panel td {
        padding: 3px 2px;
    }

    .panel-theme-page .table_header th {
        font-size: 0.58rem;
        letter-spacing: 0;
    }

    .panel-theme-page .panel-week-cell {
        width: 18%;
    }

    .panel-theme-page .panel-week-range {
        gap: 2px;
        padding: 4px 2px;
        font-size: 0.5rem;
    }

    .panel-theme-page .panel-week-separator {
        font-size: 0.48rem;
    }

    .panel-theme-page .chart-panel-cell,
    .panel-theme-page .chart-jodi-cell {
        min-height: 50px;
    }

    .panel-theme-page .panel-triplet {
        font-size: 0.56rem;
    }

    .panel-theme-page .panel-jodi-wrap {
        min-width: 18px;
    }

    .panel-theme-page .chart-jodi-cell .whiteword,
    .panel-theme-page .chart-jodi-cell .redword,
    .panel-theme-page .chart-panel-cell .whiteword,
    .panel-theme-page .chart-panel-cell .redword {
        font-size: 11px;
    }
}
