/* ============================================
   PUBLIC SITE - CLASSIC MATKA RESULT PORTAL
   Shared by every public page (home, game, about,
   contact, privacy, terms). Admin panel unaffected.
   ============================================ */

:root {
    --mk-red:      #D6001C;
    --mk-red-dark: #8B0000;
    --mk-maroon:   #7A0010;
    --mk-yellow:   #FFEB00;
    --mk-magenta:  #E6007E;
    --mk-teal:     #00A9A5;
    --mk-green:    #007A00;
    --mk-blue:     #0000CC;
    --mk-orange:   #FF7A00;
    --mk-purple:   #6A0DAD;
    --mk-ink:      #1A1A1A;
    --mk-muted:    #666666;
    --mk-line:     #D9C48A;
    --surface:     #FFFFFF;

    /* legacy aliases so older markup keeps working */
    --ink: var(--mk-ink);
    --slate: #333333;
    --slate-light: var(--mk-muted);
    --brand: var(--mk-red);
    --brand-dark: var(--mk-maroon);
    --brand-light: #FFF3D6;
    --sky: var(--mk-yellow);
    --bg-ice: #FFFFFF;
    --line: var(--mk-line);
}

/* ---- Uniform typography across all public pages ---- */
body {
    font-family: Arial, Helvetica, 'Segoe UI', sans-serif;
    color: var(--mk-ink);
    background: #E9E9E9;
    font-size: 14px;
    line-height: 1.5;
}

h1, h2, h3, h4, h5,
.font-display,
.font-mono-brand {
    font-family: Arial, Helvetica, 'Segoe UI', sans-serif;
    color: var(--mk-ink);
    font-weight: 700;
}

a { text-decoration: none; }

/* Centered white column, like the reference portal */
.mk-wrap {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--surface);
    border-left: 1px solid #CCC;
    border-right: 1px solid #CCC;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #F1E7C4; }
::-webkit-scrollbar-thumb { background: var(--mk-red); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--mk-red-dark); }

/* ============================================
   TOP BAR / BRAND / NAV
   ============================================ */
.mk-topbar {
    background: linear-gradient(180deg, #8B0000 0%, #5A000C 100%);
    color: #FFEB00;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 0;
    overflow: hidden;
}

.mk-brand {
    text-align: center;
    padding: 12px 10px 10px;
    background: var(--surface);
}
.mk-brand__title {
    font-size: 30px;
    font-weight: 700;
    color: var(--mk-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.15;
    margin: 0;
}
.mk-brand__tag {
    font-size: 13px;
    color: var(--mk-blue);
    font-weight: 700;
    margin-top: 3px;
}

/* Scrolling announcement strip */
.mk-marquee {
    background: var(--mk-yellow);
    color: var(--mk-red);
    font-weight: 700;
    font-size: 13px;
    padding: 5px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--mk-line);
}
@keyframes marquee {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.animate-marquee { animation: marquee 22s linear infinite; white-space: nowrap; }

/* ============================================
   SECTION BARS
   ============================================ */
.mk-bar {
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    padding: 7px 8px;
    font-size: 15px;
    letter-spacing: 0.4px;
    border-top: 1px solid rgba(0,0,0,.12);
    border-bottom: 1px solid rgba(0,0,0,.12);
}
.mk-bar--yellow  { background: var(--mk-yellow); color: var(--mk-red); }
.mk-bar--magenta { background: linear-gradient(180deg, #E7132C 0%, #B00016 100%); color: var(--mk-yellow); }
.mk-bar--teal    { background: linear-gradient(180deg, #16C7C2 0%, #00A9A5 100%); color: #FFFFFF; }
.mk-bar--red     { background: linear-gradient(180deg, #E7132C 0%, #B00016 100%); color: var(--mk-yellow); }
.mk-bar--orange  { background: linear-gradient(180deg, #FFA800 0%, #FF5A00 100%); color: #FFFFFF; }
.mk-bar--purple  { background: linear-gradient(180deg, #8E2DE2 0%, #6A0DAD 100%); color: #FFFFFF; }
.mk-bar--green   { background: linear-gradient(180deg, #17A81A 0%, #007A00 100%); color: #FFFFFF; }

/* Blink for live labels */
@keyframes mkblink { 50% { opacity: .25; } }
.mk-blink { animation: mkblink 1s steps(1) infinite; }

/* ============================================
   GAME RESULT ROWS (core of the home page)
   ============================================ */
.mk-game {
    position: relative;
    text-align: center;
    padding: 10px 62px;
    border-bottom: 1px dashed #C9C9C9;
    background: var(--surface);
}
.mk-game:nth-child(even) { background: #FFFDF2; }

/* Red-game highlight — overrides even/odd backgrounds */
.mk-game--red,
.mk-game--red:nth-child(even) {
    background: linear-gradient(180deg, #FFE8E8 0%, #FFD5D5 100%);
    border-left:   3px solid #CC0000;
    border-right:  3px solid #CC0000;
    border-top:    1px solid #FF9999;
    border-bottom: 1px solid #FF9999;
}
.mk-game--red .mk-game__result {
    color: #CC0000;
    text-shadow: 0 0 8px rgba(204, 0, 0, .25);
}
.mk-game--red .mk-side--left,
.mk-game--red .mk-side--right {
    box-shadow: 0 0 0 1px rgba(204, 0, 0, .35);
}

.mk-game__name {
    font-size: 17px;
    font-weight: 700;
    color: var(--mk-red);
    text-transform: uppercase;
    letter-spacing: .3px;
}
.mk-game__name:hover { color: var(--mk-blue); }

.mk-game__result {
    font-size: 24px;
    font-weight: 700;
    color: var(--mk-ink);
    letter-spacing: 1px;
    line-height: 1.25;
}
.mk-game__time { font-size: 12px; color: var(--mk-muted); font-weight: 700; }
.mk-game__status { font-size: 12px; font-weight: 700; margin-top: 2px; }

/* Jodi / Panel side tabs */
.mk-side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    padding: 6px 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    border-radius: 4px;
    color: #FFFFFF;
    line-height: 1.1;
}
.mk-side--left  { left: 5px;  background: linear-gradient(180deg, #FF8A00 0%, #E35A00 100%); }
.mk-side--right { right: 5px; background: linear-gradient(180deg, #17A81A 0%, #007A00 100%); }
.mk-side:hover { filter: brightness(1.12); }

@media (max-width: 480px) {
    .mk-game { padding: 10px 46px; }
    .mk-side { width: 40px; font-size: 10px; }
    .mk-game__result { font-size: 20px; }
}

/* ============================================
   BOXES, TABLES, LINK LISTS
   ============================================ */
.mk-box {
    border: 2px solid var(--mk-red);
    margin: 10px;
    background: var(--surface);
}
.mk-box__body { padding: 10px; text-align: center; font-size: 13px; }

.mk-note {
    text-align: center;
    font-size: 12px;
    color: #444;
    padding: 10px 14px;
    line-height: 1.6;
}

.mk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mk-table th {
    background: linear-gradient(180deg, #16C7C2 0%, #00A9A5 100%);
    color: #fff; font-weight: 700; padding: 6px 4px; text-align: center;
    border: 1px solid #0C8F8B;
}
.mk-table td {
    border: 1px solid #CFCFCF; padding: 5px 4px; text-align: center; font-weight: 700;
}
.mk-table tr:nth-child(even) td { background: #FFFDF2; }

/* Chart link lists */
.mk-links { padding: 0; margin: 0; list-style: none; }
.mk-links li { border-bottom: 1px dotted #C9C9C9; }
.mk-links a {
    display: block;
    padding: 8px 12px;
    color: var(--mk-red);
    font-weight: 700;
    font-size: 14px;
}
.mk-links a:hover { background: var(--mk-yellow); color: var(--mk-red-dark); }

/* ============================================
   FOOTER
   ============================================ */
.mk-footer {
    background: linear-gradient(180deg, #8B0000 0%, #5A000C 100%);
    color: #FFE9A8;
    text-align: center;
    padding: 16px 12px;
    font-size: 13px;
    border-top: 3px solid var(--mk-yellow);
}
.mk-footer a { color: #FFFFFF; font-weight: 700; }
.mk-footer a:hover { color: var(--mk-yellow); }
.mk-footer__links {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px;
}

/* ============================================
   CONTENT PAGES (about / contact / legal)
   Legacy class names restyled to the portal look.
   ============================================ */
.section { padding: 14px 0; }

.service-card,
.legal-card {
    background: var(--surface);
    border: 2px solid var(--mk-line);
    border-radius: 4px;
}
.service-card:hover { border-color: var(--mk-red); }

.stat-card { border-left: 4px solid var(--mk-red); }

.status-console {
    background: linear-gradient(180deg, #8B0000 0%, #5A000C 100%);
    border-radius: 6px;
    border: 2px solid var(--mk-yellow);
    position: relative;
}
.status-dot {
    width: 8px; height: 8px; border-radius: 999px; background: #34D399;
    display: inline-block; animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.console-row { border-top: 1px solid rgba(255,255,255,0.15); }
.stepper-line { background: linear-gradient(90deg, var(--mk-red) 0%, var(--mk-yellow) 100%); }
.step-num {
    color: var(--mk-red); border: 1px solid var(--mk-line); background: #FFF3D6; font-weight: 700;
}

.footer-link { position: relative; }
.footer-link:hover { text-decoration: underline; }

.input-field {
    border: 1px solid #BBB;
    background: var(--surface);
}
.input-field:focus {
    outline: none;
    border-color: var(--mk-red);
    box-shadow: 0 0 0 3px rgba(214, 0, 28, 0.15);
}

.notification-toast { animation: slideInRight 0.3s ease-out; }
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ============================================
   MEMBER'S FORUM & FREE GAME ZONE
   ============================================ */
.mk-forum-zone {
    padding: 6px 10px 10px;
    background: #fff;
}

/* Each clickable row */
.mk-fz-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    gap: 6px;
    margin-bottom: 6px;
    padding: 9px 12px;
    background: #FFF5F5;
    border: 1px solid #C40033;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.mk-fz-row:last-child { margin-bottom: 0; }
.mk-fz-row:hover {
    background: #FFE8E8;
    border-color: #8B0000;
}

/* Alt row — slightly lighter shade */
.mk-fz-row--alt {
    background: #FFF0F5;
}
.mk-fz-row--alt:hover {
    background: #FFE0EC;
}

/* "FREE" label */
.mk-fz-free {
    font-size: 11px;
    font-weight: 700;
    color: #0000CC;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Bullet diamonds */
.mk-fz-bullet {
    font-size: 13px;
    color: #C40033;
    flex-shrink: 0;
    letter-spacing: 2px;
}

/* Main link text */
.mk-fz-title {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: #CC4400;
    font-style: italic;
    text-align: center;
    line-height: 1.3;
}
/* Variant without the orange — used for the jodi/panna bullet row */
.mk-fz-title--plain {
    color: #1A1A1A;
    font-size: 15px;
}

@media (max-width: 480px) {
    .mk-fz-title { font-size: 13px; }
    .mk-fz-free  { font-size: 10px; }
    .mk-fz-row   { padding: 8px 8px; }
}

/* Print */
@media print {
    .mk-topbar, .mk-nav, .mk-marquee, .mk-footer, .floating-actions { display: none !important; }
    body { background: #fff !important; }
}

/* ── Promotional Banner ─────────────────────────────────────────── */
.mk-promo-banner {
    background: linear-gradient(180deg, #CC0000 0%, #8B0000 100%);
    border: 3px solid #FF4444;
    border-radius: 12px;
    margin: 10px 8px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(204, 0, 0, .40);
}

.mk-promo__img {
    display: block;
    max-height: 72px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 12px;
    border-radius: 8px;
}

.mk-promo__headline {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 8px;
}

.mk-promo__subtext {
    color: #FFE0A0;
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 16px;
}

.mk-promo__btn {
    display: inline-block;
    background: linear-gradient(180deg, #1A6BD0 0%, #0A4A9E 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-style: italic;
    font-size: 15px;
    padding: 10px 28px;
    border-radius: 50px;
    border: 2px solid #3A8AFF;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .30);
    transition: opacity .15s ease;
}
.mk-promo__btn:hover {
    opacity: .88;
    color: #FFFFFF;
}

@media (max-width: 480px) {
    .mk-promo-banner    { padding: 16px 12px; border-radius: 8px; }
    .mk-promo__headline { font-size: 15px; }
    .mk-promo__subtext  { font-size: 12px; }
    .mk-promo__btn      { font-size: 13px; padding: 9px 22px; }
}

/* ── Google Translate language bar ─────────────────────────────── */
.mk-translate-bar {
    background: #5C0000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 5px 12px;
    min-height: 32px;
    border-bottom: 1px solid #8B0000;
}
.mk-translate-bar__label {
    color: #FFD700;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: .2px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Custom language selector (our own <select>, not Google's widget) */
.mk-translate-bar__select {
    background: #8B0000;
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, .45);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    cursor: pointer;
    outline: none;
    max-width: 160px;
    flex-shrink: 0;
}
.mk-translate-bar__select:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, .25);
}
.mk-translate-bar__select option {
    background: #1A0000;
    color: #FFD700;
    font-style: normal;
}

/* Suppress the floating Google banner that pushes the page down */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0 !important; }

/* ── Compact LIVE ticker (above REFRESH button) ────────────────── */
.mk-live-ticker {
    background: #FFFFF0;
    border-bottom: 2px solid #D6B000;
    padding: 0;
    margin: 0;
}

.mk-live-ticker--empty {
    padding: 7px 14px;
    text-align: center;
}

.mk-ln-no-live {
    font-size: 11px;
    color: #888;
    font-style: italic;
}

.mk-ln-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid #F0E8A0;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
}
.mk-ln-row:last-child {
    border-bottom: none;
}
.mk-ln-row:hover {
    background: #FFFDE0;
    text-decoration: none;
    color: inherit;
}

/* Blinking/solid dot */
.mk-ln-dot {
    font-size: 10px;
    flex-shrink: 0;
}
.mk-ln-dot--live {
    color: #CC0000;
    animation: mk-blink-dot 1s ease-in-out infinite;
}
.mk-ln-dot--done {
    color: #007A00;
}
@keyframes mk-blink-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: .25; }
}

/* Game name */
.mk-ln-name {
    flex: 1;
    font-weight: 700;
    font-style: italic;
    font-size: 13px;
    color: #1A1A1A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Result display */
.mk-ln-result {
    font-weight: 700;
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    white-space: nowrap;
    letter-spacing: .5px;
}
.mk-ln-result--pub     { color: #007A00; }
.mk-ln-result--draft   { color: #CC6600; }
.mk-ln-result--pending { color: #AAAAAA; }

/* LIVE / DONE badge */
.mk-ln-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .5px;
    flex-shrink: 0;
}
.mk-ln-badge--live {
    background: #CC0000;
    color: #FFEB00;
    animation: mk-blink-badge 1s ease-in-out infinite;
}
.mk-ln-badge--done {
    background: #007A00;
    color: #FFFFFF;
}
@keyframes mk-blink-badge {
    0%, 100% { opacity: 1; }
    50%       { opacity: .45; }
}

@media (max-width: 400px) {
    .mk-ln-row     { padding: 7px 10px; gap: 6px; }
    .mk-ln-name    { font-size: 12px; }
    .mk-ln-result  { font-size: 13px; }
}

/* ── Matka Charts Listing Page ──────────────────────────── */
.mk-chart-section {
    padding-bottom: 4px;
}

/* Individual chart item row (game name link) */
.mk-chart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px dotted #C9C9C9;
    background: var(--surface);
    text-decoration: none;
    color: var(--mk-red);
    font-weight: 700;
    font-size: 14px;
    transition: background .12s;
}
.mk-chart-item:nth-child(even) { background: #FFFDF2; }
.mk-chart-item:hover {
    background: var(--mk-yellow);
    color: var(--mk-red-dark);
}
.mk-chart-item__name {
    flex: 1;
    text-align: left;
}
.mk-chart-item__arrow {
    color: var(--mk-muted);
    font-size: 11px;
    flex-shrink: 0;
}

/* ── Jodi Chart Table (responsive, no overflow-x) ───────── */
.mk-jodi-wrap {
    padding: 8px;
    /* overflow visible — table must fit viewport */
}
.mk-jodi-tbl {
    width: 100%;
    table-layout: fixed;   /* CRITICAL: equal columns, no overflow */
    border-collapse: collapse;
    background: #ffd6a3;
    border: 2px solid #8B0000;
    font-size: clamp(10px, 2.8vw, 14px);
}
.mk-jodi-tbl thead tr {
    background: linear-gradient(180deg, #E7132C 0%, #B00016 100%);
    color: #fff;
}
.mk-jodi-tbl th {
    border: 1px solid #000;
    padding: clamp(3px, 1vw, 6px) 2px;
    font-weight: 700;
    text-align: center;
    font-size: clamp(9px, 2.2vw, 13px);
    overflow: hidden;
}
/* Date column is 22%, each of 7 day columns gets equal share of remaining 78% */
.mk-jodi-tbl th:first-child,
.mk-jodi-tbl td:first-child { width: 22%; }
.mk-jodi-tbl td {
    border: 1px solid #000;
    padding: clamp(3px, 1vw, 7px) 1px;
    text-align: center;
    font-weight: 700;
    background: #ffd6a3;
    overflow: hidden;
}
.mk-jodi-tbl td:first-child {
    background: #ffc27d;
    font-size: clamp(7px, 1.9vw, 11px);
    font-weight: 700;
    line-height: 1.3;
    padding: clamp(3px, 1vw, 6px) 2px;
}
.mk-jodi-tbl tr:hover td            { background: #ffe9b2; }
.mk-jodi-tbl tr:hover td:first-child{ background: #ffcf7a; }
.mk-jt-red { color: #CC0000; }

/* ── Panel Chart Table (responsive, no overflow-x) ──────── */
.mk-panel-wrap {
    padding: 8px;
}
.mk-panel-tbl {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: #ffd6a3;
    border: 2px solid #8B0000;
}
.mk-panel-tbl thead tr {
    background: linear-gradient(180deg, #E7132C 0%, #B00016 100%);
    color: #fff;
}
.mk-panel-tbl th {
    border: 1px solid #000;
    padding: clamp(3px, 1vw, 6px) 1px;
    font-weight: 700;
    text-align: center;
    font-size: clamp(8px, 2vw, 13px);
    overflow: hidden;
}
.mk-panel-tbl th:first-child,
.mk-panel-tbl td:first-child { width: 22%; }
.mk-panel-tbl td {
    border: 1px solid #000;
    padding: clamp(2px, 0.6vw, 5px) 0;
    text-align: center;
    background: #ffd6a3;
    overflow: hidden;
}
.mk-panel-tbl td:first-child {
    background: #ffc27d;
    font-weight: 700;
    font-size: clamp(7px, 1.8vw, 11px);
    line-height: 1.3;
    padding: clamp(2px, 0.6vw, 5px) 2px;
}
.mk-panel-tbl tr:hover td            { background: #ffe9b2; }
.mk-panel-tbl tr:hover td:first-child{ background: #ffcf7a; }

/* 3-column layout inside each panel cell: open-panna | jodi | close-panna */
.mk-pc {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
}
.mk-pc-panna {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 700;
    font-size: clamp(6px, 1.7vw, 11px);
    line-height: 1.25;
}
.mk-pc-jodi {
    font-weight: 900;
    font-size: clamp(9px, 2.6vw, 18px);
    line-height: 1;
    padding: 0 clamp(1px, 0.4vw, 3px);
}
.mk-pc-red { color: #CC0000; }

/* .mk-220-* removed — satta-220-patti.php now uses page-level <style> */
