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

:root {
    /* satta-king-fast.com palette */
    --page-bg: #F1F1F1;
    --coral: #FF5252;
    --teal: #33CC99;
    --teal-dark: #339966;
    --teal-title: #3c9;
    --gray-head: #424242;
    --gray-head-border: #212121;
    --gold: #FBC503;
    --gold-border: #e7aa26;
    --gold-dark: #bf8302;
    --red-text: #b80000;
    --link-blue: #2962FF;
    --card-bg: #ffffff;
    --text-dark: #212121;
    --border: #CCCCCC;
    --live-coral: #FF5252;
    --next-gold: #FBC503;
    --rest-gray: #6F6C6C;
    --nav-blue: #176cee;
    --nav-blue-border: #003399;
}

body {
    font-family: 'Hind', Geneva, Tahoma, Verdana, Arial, sans-serif;
    background-color: var(--page-bg);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.4;
    text-align: center;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0px;
}

.main-content {
    width: 98%;
    margin: 8px 1% 0;
    display: inline-block;
}

/* Site Header */
.site-header {
    background: #fff;
    text-align: center;
    padding: 12px 0 8px;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    text-align: center;
}

.site-brand {
    font-weight: 700;
    color: black!important;
    font-size: xx-large;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
}

.page-intro {
    background: #fff;
    padding: 8px 0;
    text-align: center;
}

.seo-h1 {
    font-size: clamp(12px, 2.5vw, 14px);
    color: #333;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    padding: 4px 0;
}

.disclaimer-bar {
    background: var(--coral);
    color: #fff;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.disclaimer-bar p {
    margin: 0;
}

.updated-bar {
    padding: 8px 0 4px;
    text-align: left;
}

.updated-time {
    color: var(--teal-dark);
    font-size: 14px;
    font-weight: 600;
}

/* Legacy top-bar (admin unused) */
.top-bar {
    background: #fff;
    color: var(--text-dark);
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Header board title strip */
.main-header {
    background: var(--teal);
    padding: 14px 0;
    text-align: center;
    border: 1px solid var(--teal-dark);
}

.main-header h1 {
    font-size: clamp(16px, 3vw, 22px);
    color: #fff;
    text-transform: none;
    line-height: 1.3;
    margin-bottom: 0;
    font-weight: 600;
}

.disclaimer {
    font-size: 13px;
    color: #fff;
    max-width: 900px;
    margin: 8px auto 0;
    line-height: 1.5;
}

/* Quick Result Board (satta-king-fast.com layout) */
.quick-result-board {
    width: 100%;
    margin-bottom: 36px;
    border-collapse: collapse;
}

.quick-result-board h2,
.quick-result-board h3 {
    margin: 0;
    font-weight: 600;
    font-size:16px;
}

tr.board-title {
    width: 100%;
    height: 60px;
    border: 1px solid #396;
    background-color: #3c9;
    line-height: 1.4;
}

tr.board-title > th {
    vertical-align: middle;
    font-size: 1.2em;
    color: #fff;
    padding: 8px;
}

tr.board-head {
    width: 100%;
    height: 40px;
    border: 1px solid #212121;
    background-color: #424242;
}

tr.board-head > th {
    vertical-align: middle;
    font-size: 1.1em;
    color: #fff;
    line-height: 24px;
    padding: 4px 8px;
    font-weight: 600;
}

.games-name {
    width: 64%;
    text-align: left;
    padding: 4px 8px;
}

.today-date,
.yesterday-date {
    width: 18%;
    text-align: center;
    padding: 4px 12px;
}

tr.board-section {
    border-left: 8px solid #FF5252;
}

tr.board-section td {
    vertical-align: middle;
    font: normal 600 1em Arial, sans-serif;
    height: 40px;
    padding-left: 16px;
    background-color: #F1F1F1;
    color: #FF5252;
}

tr.game-result {
    width: 100%;
    height: 60px;
    background-color: #fff;
    border: 1px solid #CCCCCC;
}

tr.game-result:hover {
    background-color: #F1F1F1;
}

tr.game-result.highlight {
    background-color: #fbc503;
    border: 1px solid #bf8302;
}

tr.game-result.highlight:hover {
    background-color: #fbc503;
}

tr.promo-row .game-details {
    text-align: center;
    color: #b80000;
}

tr.promo-row .game-name {
    color: #b80000;
    font-weight: 700;
}

.game-details {
    vertical-align: middle;
    text-align: left;
}

.game-details > .game-name {
    font-size: 1.1em;
    font-weight: 500;
    margin: 4px 8px;
    text-transform: uppercase;
}

.game-details > .game-time {
    font-size: 0.8em;
    padding: 2px 8px;
    display: inline;
    font-weight: 400;
    color: #555;
}

.game-details > .game-link {
    font-size: 0.8em;
    padding: 2px 8px;
    display: inline;
    font-weight: 400;
}

.today-number,
.yesterday-number {
    vertical-align: middle;
    text-align: right;
    padding-right: 8px;
}

.today-number > h3,
.yesterday-number > h3 {
    font-size: 1.6em;
    font-weight: 500;
    margin: 4px 8px;
}

.today-number > h3.pending,
.yesterday-number > h3.pending {
    color: #999;
}

.today-number > h3.xx,
.yesterday-number > h3.xx {
    color: #e65100;
}

a:link,
a:visited {
    color: #2962FF;
    text-decoration: none;
}

a:hover,
a:active {
    text-decoration: underline;
}

/* Monthly Chart (satta-king-fast.com layout) */
.chart {
    width: 98%;
    margin: 8px 1% 0;
    display: inline-block;
}

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

tr.chart-head {
    width: 100%;
    height: 40px;
    border: 1px solid #339966;
    background-color: #33CC99;
}

td.month {
    vertical-align: middle;
    font-size: 1em;
    color: #fff;
    padding: 8px;
    text-align: center;
}

td.month h2 {
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

tr.date-name {
    width: 100%;
    height: 36px;
    background-color: #FBC503;
    border: 1px solid #e7aa26;
}

tr.date-name td.date,
tr.date-name th.name {
    border-right: 1px solid #e7aa26;
    vertical-align: middle;
    text-align: center;
    font-weight: 600;
    padding: 6px 8px;
}

tr.day-number {
    width: 100%;
    height: 32px;
    border: 1px solid #CCCCCC;
}

tr.day-number td.day,
tr.day-number td.number {
    border-right: 1px solid #CCCCCC;
    vertical-align: middle;
    text-align: center;
    padding: 6px 8px;
}

tr.date-name td.date,
tr.day-number td.day {
    color: red;
    font-weight: 700;
}

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

table tr.day-number:nth-child(odd) {
    background-color: #fff;
}

table tr.day-number:hover {
    background-color: #F0F0F0;
    color: red;
}

tr.space {
    height: 12px;
}

tr.space td {
    border: none;
    background: transparent;
}

tr.option {
    font-size: 1em;
    color: #fff;
    border: 2px solid #F1F1F1;
    height: 40px;
}

td.e-link {
    vertical-align: middle;
    color: #fff;
    background-color: #176cee;
    border: 1px solid #003399;
    text-align: center;
}

td.e-link a {
    color: #fff;
    display: block;
    padding: 10px 4px;
    text-decoration: none;
    font-weight: 600;
}

td.e-link:hover {
    background-color: #003399;
}

td.s-link {
    vertical-align: middle;
    text-align: center;
    background: #F1F1F1;
    color: #333;
}

span.aero,
span.nav-text {
    font-weight: 600;
}

div.nav-link {
    width: 98%;
    max-width: 960px;
    margin: 8px auto;
    border: 1px solid #003399;
    background-color: #176cee;
    text-align: center;
}

div.nav-link a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px 4px;
    line-height: 20px;
    font-weight: 600;
}

div.nav-link:hover {
    background-color: #003399;
}

div#chart-form {
    width: 96%;
    max-width: 960px;
    margin: 16px auto 30px;
    color: #fff;
    border: 1px solid #e7aa26;
    background-color: #FBC503;
    display: block;
    padding: 8px 4px;
    text-align: center;
}

h2#chart-text {
    padding: 2px 8px;
    color: #000;
    line-height: 20px;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 8px;
}

#chart-form select,
#chart-form #direct-chart {
    width: 30%;
    min-width: 140px;
    max-width: 320px;
    margin: 8px 1%;
    height: 40px;
    font-size: 1em;
    font-weight: bold;
    padding: 8px;
    border: 1px solid #003399;
}

#chart-form #direct-chart {
    background-color: #176cee;
    color: #fff;
    cursor: pointer;
}

#chart-form #direct-chart:hover {
    background-color: #003399;
}

/* Legacy card grid - removed in favor of table layout */

/* Game Chart Page */
.breadcrumb {
    color: #333;
    margin-bottom: 12px;
    font-size: 14px;
    text-align: left;
}

.breadcrumb a {
    color: var(--link-blue);
}

/* Footer */
.site-footer {
    background: var(--gray-head);
    color: #ddd;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 3px solid var(--teal);
}

.footer-note {
    font-size: 12px;
    margin-top: 5px;
    color: #999;
}

/* Admin Styles */
.admin-body {
    background: #f0f2f5;
    min-height: 100vh;
}

.admin-nav {
    background: var(--gray-head);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.admin-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.admin-nav .brand {
    color: var(--teal);
    font-weight: 900;
    font-size: 20px;
    padding: 15px 0;
    text-decoration: none;
}

.admin-nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.admin-nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 15px 12px;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.admin-nav ul li a:hover,
.admin-nav ul li a.active {
    background: rgba(255,255,255,0.15);
    color: var(--teal);
}

.admin-content {
    padding: 25px 0;
}

.admin-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.admin-card h2 {
    color: var(--red-text);
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid var(--teal);
    padding-bottom: 10px;
}

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

.admin-table th,
.admin-table td {
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
}

.admin-table th {
    background: #f5f5f5;
    font-weight: 700;
    color: var(--red-text);
}

.admin-table tr:hover {
    background: #fafafa;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.btn-primary { background: var(--nav-blue); color: #fff; border: 1px solid var(--nav-blue-border); }
.btn-success { background: #2e7d32; color: #fff; }
.btn-warning { background: #f57c00; color: #fff; }
.btn-danger { background: #c62828; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.form-check input {
    width: auto;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.alert-info { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--page-bg);
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.login-box h1 {
    text-align: center;
    color: var(--red-text);
    margin-bottom: 25px;
    font-size: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-card .number {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.stat-card .label {
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.9;
}

.bulk-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.bulk-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.bulk-result-item label {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
}

.bulk-result-item input {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

/* SEO Content Sections */
.seo-content {
    background: #fff;
    border-radius: 0;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid var(--border);
    line-height: 1.7;
    color: #333;
    text-align: left;
}

.seo-content h2 {
    color: var(--red-text);
    font-size: 22px;
    margin-bottom: 12px;
}

.seo-content h3 {
    color: var(--teal-dark);
    font-size: 17px;
    margin: 18px 0 8px;
}

.seo-content a {
    color: var(--link-blue);
    font-weight: 600;
}

.seo-game-links ul {
    list-style: none;
    columns: 2;
    column-gap: 20px;
    margin-top: 10px;
}

.seo-game-links li {
    margin-bottom: 6px;
    font-size: 14px;
    break-inside: avoid;
}

.chart-intro {
    text-align: center;
    margin-bottom: 15px;
}

.chart-intro a {
    color: var(--rest-blue);
    font-weight: 700;
    font-size: 15px;
}

/* FAQ Section */
.faq-section {
    background: #fff;
    border-radius: 0;
    padding: 25px;
    margin: 20px 0 30px;
    border: 1px solid var(--border);
    text-align: left;
}

.faq-section > h2 {
    color: var(--red-text);
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.faq-item {
    border: 1px solid #e0d5a8;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fffdf5;
}

.faq-item summary {
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary h3 {
    display: inline;
    font-size: 15px;
    color: var(--red-text);
    font-weight: 600;
}

.faq-item p {
    padding: 0 16px 14px;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

/* Footer SEO Links */
.footer-seo-links {
    background: #e8e8e8;
    padding: 25px 0;
    border-top: 2px solid var(--teal);
}

.footer-seo-title {
    color: var(--red-text);
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-link-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-link-grid a {
    color: var(--link-blue);
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 4px 0;
}

.footer-link-grid a:hover {
    color: var(--nav-blue-border);
    text-decoration: underline;
}

.footer-keywords {
    text-align: center;
    color: #666;
    font-size: 11px;
    margin-top: 15px;
    padding: 0 15px;
    line-height: 1.6;
}

.site-footer nav {
    margin-bottom: 10px;
}

.site-footer nav a {
    color: var(--teal);
    text-decoration: none;
    font-size: 14px;
    margin: 0 5px;
}

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

.top-bar .site-brand {
    text-decoration: none;
}

.breadcrumb {
    color: #fff;
    margin-bottom: 12px;
    font-size: 14px;
    text-align: center;
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.game-card .game-name {
    margin: 0;
}

/* Game chart page legacy wrapper */
.chart-section {
    background: var(--gold);
    border: 1px solid var(--gold-border);
    padding: 16px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .games-name {
        width: 50%;
    }
    .today-date,
    .yesterday-date {
        width: 25%;
        font-size: 0.85em;
        padding: 4px 6px;
    }
    .today-number > h3,
    .yesterday-number > h3 {
        font-size: 1.3em;
    }
    .game-details > .game-name {
        font-size: 0.95em;
    }
    #chart-form select,
    #chart-form #direct-chart {
        width: 44%;
        min-width: 120px;
    }
    .admin-nav ul {
        width: 100%;
        justify-content: center;
    }
    .seo-game-links ul {
        columns: 1;
    }
}
