/* ==========================================================================
   MATKAFUN PRODUCTION DESIGN SYSTEM & THEME
   Brand Palette: Crimson Red (#A50B0B), Dark Navy (#111827), Warm Glow (#D97706)
   Light Background (#F6F7FB), Card Surface (#FFFFFF)
   Engineered for: Performance, Zero-CLS, Accessibility (WCAG 2.1 AA), Microinteractions
   ========================================================================== */

:root {
    /* --------------------------------------------------------------------------
       Brand Colors (MatkaFun Authentic Design System)
       Derived from Official Logo & Production Reference Screenshot
       -------------------------------------------------------------------------- */
    --brand-purple: #411C82;
    --brand-purple-dark: #321469;
    --brand-purple-light: #532889;
    --brand-purple-subtle: #F4EFFB;
    --brand-purple-border: rgba(65, 28, 130, 0.16);

    --brand-magenta: #C71585;
    --brand-magenta-dark: #A01068;
    --brand-magenta-light: #E0289E;
    --brand-magenta-subtle: #FDF2F8;
    --brand-magenta-border: rgba(199, 21, 133, 0.2);

    --brand-cta-gradient: linear-gradient(90deg, #FF3B7A 0%, #FF7F40 50%, #FFB649 100%);
    --brand-cta-hover: linear-gradient(90deg, #FF2269 0%, #FF6F28 50%, #FFA830 100%);

    --brand-green: #059669;
    --brand-green-hover: #047857;

    --brand-red-btn: #DC3545;
    --brand-red-btn-hover: #BD2130;

    /* Theme Harmonization Aliases */
    --brand-red: #411C82;
    --brand-red-hover: #321469;
    --brand-red-active: #230B4E;
    --brand-red-light: #C71585;
    --brand-red-subtle: #F4EFFB;
    --brand-red-border: rgba(65, 28, 130, 0.16);
    --brand-gold: #FF7F40;
    --brand-gold-subtle: #FEF3C7;
    
    /* --------------------------------------------------------------------------
       Neutrals (WCAG 2.1 AA Compliant Contrast)
       -------------------------------------------------------------------------- */
    --brand-dark: #242F3E;
    --brand-dark-soft: #1E293B;
    --brand-gray-dark: #334155;
    --brand-gray: #475569;
    --brand-gray-light: #64748B;
    --brand-muted: #94A3B8;
    --brand-border: #E2E8F0;
    --brand-border-light: #F8FAFC;
    
    /* --------------------------------------------------------------------------
       Surfaces
       -------------------------------------------------------------------------- */
    --brand-bg: #FFFFFF;
    --brand-card-bg: #FFFFFF;
    --brand-footer-bg: #1A0B36;
    --brand-footer-card: #27124F;
    
    /* --------------------------------------------------------------------------
       Status Colors
       -------------------------------------------------------------------------- */
    --status-open-text: #15803D;
    --status-open-bg: #DCFCE7;
    --status-open-border: #BBF7D0;
    --status-closed-text: #991B1B;
    --status-closed-bg: #FEE2E2;
    --status-closed-border: #FECACA;
    
    /* --------------------------------------------------------------------------
       Typography & Geometry
       -------------------------------------------------------------------------- */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    
    /* --------------------------------------------------------------------------
       Elevations / Shadows
       -------------------------------------------------------------------------- */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-purple: 0 8px 24px rgba(65, 28, 130, 0.25);
    --shadow-red: 0 8px 24px rgba(220, 53, 69, 0.25);
    
    /* --------------------------------------------------------------------------
       Motion Tokens (Centralized Animation Architecture)
       -------------------------------------------------------------------------- */
    --motion-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --motion-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --motion-duration-fast: 150ms;
    --motion-duration-normal: 250ms;
    --motion-duration-smooth: 400ms;
}

/* Base Reset & Core Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--brand-bg);
    color: var(--brand-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Accessibility: Focus Visible Outline */
:focus-visible {
    outline: 2px solid var(--brand-red) !important;
    outline-offset: 3px !important;
}

a {
    color: var(--brand-red);
    text-decoration: none;
    transition: color var(--motion-duration-fast) ease, opacity var(--motion-duration-fast) ease;
}

a:hover {
    color: var(--brand-red-hover);
}

/* Tap Target Enforcer for Touch Devices */
button, input, select, textarea, a.btn, a.nav-item-link {
    touch-action: manipulation;
}

/* ==========================================================================
   MICROINTERACTIONS & BUTTON TRANSITIONS
   ========================================================================== */
.btn-interactive,
.btn-pill-download,
.btn-nav-download,
.btn-play-now,
.btn-footer-download,
.tab-brand-btn,
.rate-card-item,
.rate-row-item,
.market-game-card {
    transition: transform var(--motion-duration-fast) var(--motion-ease-out),
                box-shadow var(--motion-duration-normal) var(--motion-ease-out),
                border-color var(--motion-duration-fast) ease,
                background-color var(--motion-duration-fast) ease;
    will-change: transform;
}

.btn-pill-download:active,
.btn-nav-download:active,
.btn-play-now:active,
.btn-footer-download:active,
.btn:active {
    transform: translateY(1px) scale(0.97) !important;
}

/* ==========================================================================
   NAVBAR COMPONENT
   ========================================================================== */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--brand-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1040;
}

.site-navbar {
    padding: 8px 0;
    min-height: 64px;
}

.site-logo {
    height: 44px;
    max-height: 48px;
    width: auto;
    aspect-ratio: 1196 / 236;
    object-fit: contain;
    transition: transform var(--motion-duration-fast) ease;
}

.site-logo:hover {
    transform: scale(1.02);
}

.nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item-link {
    font-weight: 700;
    color: var(--brand-dark-soft);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--motion-duration-fast) ease;
}

.nav-item-link:hover,
.nav-item-link.active {
    color: var(--brand-red);
    background-color: var(--brand-red-subtle);
}

.btn-navbar-telegram {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C71585 0%, #FF3B7A 100%);
    color: #FFFFFF !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 3px 10px rgba(199, 21, 133, 0.35);
    transition: transform var(--motion-duration-fast) ease, box-shadow var(--motion-duration-fast) ease;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-navbar-telegram:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(199, 21, 133, 0.5);
    color: #FFFFFF !important;
}

.btn-nav-download {
    background: var(--brand-cta-gradient);
    color: #FFFFFF !important;
    font-weight: 800;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 14px rgba(255, 59, 122, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-nav-download:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 59, 122, 0.5);
    color: #FFFFFF !important;
}

.btn-hamburger-toggle {
    background: transparent;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--brand-dark);
    font-size: 1.25rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-hamburger-toggle:hover,
.btn-hamburger-toggle:focus {
    background-color: var(--brand-border-light);
    border-color: var(--brand-gray-light);
}

/* Offcanvas Drawer */
.site-offcanvas {
    max-width: 320px;
    border-left: 1px solid var(--brand-border);
    background: #FFFFFF;
    z-index: 1060 !important;
}

.offcanvas-backdrop {
    z-index: 1050 !important;
}

.site-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--brand-border);
    padding: 16px 20px;
}

.site-offcanvas .offcanvas-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.drawer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 1rem;
    min-height: 44px;
    transition: all var(--motion-duration-fast) ease;
}

.drawer-nav-item a i {
    width: 24px;
    color: var(--brand-red);
    font-size: 1.1rem;
    text-align: center;
}

.drawer-nav-item a:hover,
.drawer-nav-item a.active {
    background-color: var(--brand-red-subtle);
    color: var(--brand-red);
}

/* ==========================================================================
   MATKAFUN HERO SECTION (EXACT REFERENCE DESIGN)
   ========================================================================== */
.hero-matkafun-section {
    position: relative;
    width: 100%;
    background-color: #FFFFFF;
    overflow: hidden;
}

.hero-white-container {
    padding: 38px 16px 24px;
    max-width: 720px;
    margin: 0 auto;
}

.hero-main-title {
    font-size: clamp(2.1rem, 5.8vw, 3rem);
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1.2;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    text-align: center;
}

.hero-brand-highlight {
    color: var(--brand-magenta);
    font-weight: 800;
}

.hero-main-subtitle {
    font-size: clamp(1rem, 2.6vw, 1.25rem);
    color: var(--brand-gray-light);
    font-weight: 500;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto 28px;
    letter-spacing: -0.2px;
    text-align: center;
}

/* 3D Floating Circle Logo Badge & Ground Shadow */
.hero-circle-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 auto 12px;
    text-align: center;
}

.hero-circle-logo {
    width: min(300px, 68vw);
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 12px 28px rgba(65, 28, 130, 0.3));
    animation: heroCircleFloat 4s ease-in-out infinite alternate;
    transition: transform 0.3s ease;
}

@keyframes heroCircleFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-8px);
    }
}

.hero-ground-shadow {
    width: min(220px, 52vw);
    height: 16px;
    background: radial-gradient(ellipse at center, rgba(30, 20, 50, 0.42) 0%, rgba(30, 20, 50, 0.16) 42%, transparent 72%);
    border-radius: 50%;
    margin: 8px auto 0;
    filter: blur(2px);
    animation: heroShadowScale 4s ease-in-out infinite alternate;
}

@keyframes heroShadowScale {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.55;
    }
}

/* Connected Deep Purple Action Section */
.hero-purple-section {
    background-color: var(--brand-purple);
    background: linear-gradient(180deg, #411C82 0%, #35146D 100%);
    padding: 38px 16px 46px;
    width: 100%;
    position: relative;
}

/* Download Now Pill Button with Gradient */
.btn-hero-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-cta-gradient);
    color: #FFFFFF !important;
    font-size: clamp(1.05rem, 2.6vw, 1.25rem);
    font-weight: 800;
    padding: 13px 42px;
    min-height: 52px;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 24px rgba(255, 59, 122, 0.45);
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    transition: transform var(--motion-duration-fast) var(--motion-ease-out),
                box-shadow var(--motion-duration-normal) var(--motion-ease-out),
                filter var(--motion-duration-fast) ease;
}

.btn-hero-download:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 59, 122, 0.58);
    filter: brightness(1.06);
    color: #FFFFFF !important;
}

.btn-hero-download:active {
    transform: translateY(1px) scale(0.98);
}

/* Queries Heading */
.hero-queries-title {
    color: #FFFFFF;
    font-size: clamp(1.35rem, 3.8vw, 1.85rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 28px auto 20px;
    max-width: 520px;
    letter-spacing: -0.3px;
    text-align: center;
}

/* Ask Me Button */
.hero-ask-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-hero-ask-me {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-green);
    color: #FFFFFF !important;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 11px 36px;
    min-height: 46px;
    border-radius: var(--radius-pill);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.38);
    text-decoration: none;
    transition: transform var(--motion-duration-fast) ease,
                background-color var(--motion-duration-fast) ease,
                box-shadow var(--motion-duration-fast) ease;
}

.btn-hero-ask-me:hover {
    background-color: var(--brand-green-hover);
    border-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(5, 150, 105, 0.5);
    color: #FFFFFF !important;
}

.btn-hero-ask-me:active {
    transform: translateY(1px);
}

/* Floating Quick Contacts (Whatsapp & Call) - Bottom Right Corner */
.floating-quick-contacts {
    position: fixed;
    right: 16px;
    bottom: 22px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.floating-contact-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-red-btn);
    color: #FFFFFF !important;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    text-decoration: none;
    min-width: 126px;
    transition: transform var(--motion-duration-fast) ease,
                box-shadow var(--motion-duration-fast) ease,
                background var(--motion-duration-fast) ease;
}

.floating-contact-pill:hover {
    background: var(--brand-red-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.45);
    color: #FFFFFF !important;
}

.floating-contact-pill:active {
    transform: translateY(1px);
}

/* ==========================================================================
   WHY PLAY GAME ON MATKAFUN SECTION (EXACT REFERENCE DESIGN)
   ========================================================================== */
.why-play-section {
    padding: 44px 16px 36px;
    background-color: #FFFFFF;
    width: 100%;
}

.why-play-inner {
    max-width: 520px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .why-play-inner {
        max-width: 860px;
    }
}

.why-play-title {
    color: var(--brand-dark);
    font-size: clamp(1.65rem, 5vw, 2.3rem);
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    margin: 0 0 32px;
    letter-spacing: -0.4px;
}

.why-play-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (min-width: 768px) {
    .why-play-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

.why-play-card {
    background: #FFFFFF;
    border: 1.5px solid #EDF1F7;
    border-radius: 20px;
    padding: 30px 12px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    min-height: 184px;
    transition: transform var(--motion-duration-fast) ease,
                box-shadow var(--motion-duration-fast) ease,
                border-color var(--motion-duration-fast) ease;
}

.why-play-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-purple-border);
    box-shadow: 0 8px 24px rgba(65, 28, 130, 0.1);
}

/* Diamond Icon Badge (Rotated Rounded Square) */
.why-card-diamond {
    width: 56px;
    height: 56px;
    background: #F1ECFA;
    border-radius: 14px;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px auto 26px;
    transition: transform 0.25s ease, background-color 0.25s ease;
    flex-shrink: 0;
}

.why-play-card:hover .why-card-diamond {
    background: #E8E0F7;
    transform: rotate(45deg) scale(1.06);
}

.why-card-icon {
    transform: rotate(-45deg);
    color: var(--brand-purple);
    font-size: 1.5rem;
    line-height: 1;
}

.why-card-title {
    font-size: clamp(0.92rem, 2.4vw, 1.05rem);
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

/* Bottom Edge Gradient Line */
.why-card-accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #411C82 0%, #D81B8A 100%);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* ==========================================================================
   PAGE PRIMARY HEADING (SEO OPTIMIZED)
   ========================================================================== */
.page-main-heading {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 900;
    color: var(--brand-dark);
    text-align: center;
    margin: 20px auto 10px;
    max-width: 860px;
    letter-spacing: -0.5px;
    line-height: 1.25;
    padding: 0 15px;
}

.page-main-heading span.brand-accent {
    color: var(--brand-red);
}

/* ==========================================================================
   IMPORTANT NOTICE CARD
   ========================================================================== */
.notice-card-container {
    max-width: 860px;
    margin: 0 auto 30px;
    padding: 0 15px;
}

.notice-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--brand-border);
    box-shadow: var(--shadow-sm);
    padding: 30px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.notice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-gold) 100%);
}

.btn-pill-download {
    background: var(--brand-red);
    color: #FFFFFF !important;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 12px 36px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 16px rgba(165, 11, 11, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    margin-bottom: 24px;
    min-height: 48px;
}

.btn-pill-download:hover {
    background: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.notice-title-red {
    color: var(--brand-red);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 900;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-sub-banner {
    display: inline-block;
    background: var(--brand-red-subtle);
    color: var(--brand-red);
    border: 1px solid var(--brand-red-border);
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.notice-muted-text {
    color: var(--brand-gray);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.notice-alert-danger {
    color: var(--brand-red);
    font-weight: 900;
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.notice-bullets-box {
    background: #FAFAFC;
    border: 1px dashed var(--brand-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.notice-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--brand-dark);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.notice-bullet-item:last-child {
    margin-bottom: 0;
}

.notice-bullet-icon-cross {
    color: var(--brand-red);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-bullet-icon-shield {
    color: #10B981;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   FEATURE PILLS
   ========================================================================== */
.features-container {
    max-width: 860px;
    margin: 0 auto 35px;
    padding: 0 15px;
}

.feature-pill {
    background: #FFFFFF;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-dark);
    box-shadow: var(--shadow-xs);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--motion-duration-fast) ease;
}

.feature-pill i {
    color: var(--brand-red);
    font-size: 0.95rem;
}

.feature-pill:hover {
    border-color: var(--brand-red);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header-brand {
    text-align: center;
    margin-bottom: 22px;
}

.section-title-brand {
    color: var(--brand-red);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.section-subtitle-brand {
    color: var(--brand-gray-light);
    font-size: 0.98rem;
    font-weight: 500;
    margin: 0;
}

/* ==========================================================================
   GAME WIN RATES SECTION (EXACT SCREENSHOT REPLICA)
   ========================================================================== */
.rates-wrapper {
    max-width: 480px;
    margin: 0 auto 50px;
    padding: 0 16px;
}

.rates-header-block {
    text-align: center;
    margin-bottom: 24px;
}

.rates-title-main {
    color: #1E293B !important;
    font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.5px;
    margin: 0 auto 8px;
    text-align: center;
}

.rates-subtitle-main {
    color: #64748B !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    margin: 0 0 24px;
    text-align: center;
    letter-spacing: -0.1px;
}

.rates-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 6px 4px;
    margin-bottom: 44px;
}

.rate-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    transition: transform var(--motion-duration-fast) ease;
}

.rate-row-item:hover {
    transform: translateX(2px);
}

.rate-pill-gradient {
    background: linear-gradient(90deg, #FF1E83 0%, #FF5278 45%, #FFA83B 100%);
    color: #FFFFFF !important;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 10px 24px;
    min-width: 140px;
    border-radius: 50px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 14px rgba(255, 30, 131, 0.35);
    transition: transform var(--motion-duration-fast) ease, box-shadow var(--motion-duration-fast) ease;
    user-select: none;
    flex-shrink: 0;
}

.rate-row-item:hover .rate-pill-gradient {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(255, 30, 131, 0.45);
}

.rate-game-title {
    color: #64748B;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: right;
    letter-spacing: -0.2px;
}

/* ==========================================================================
   AVAILABLE GAMES SECTION, SEARCH & TABS
   ========================================================================== */
/* ==========================================================================
   AVAILABLE GAMES SECTION (EXACT SCREENSHOT REPLICA)
   ========================================================================== */
.games-wrapper {
    max-width: 480px;
    margin: 0 auto 50px;
    padding: 0 16px 20px;
}

.games-list-container {
    padding-bottom: 24px;
}

.market-game-card:last-child {
    margin-bottom: 30px;
}

.market-status-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.market-status-badge.status-open {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.market-status-badge.status-running {
    background-color: #FFF8E1;
    color: #BF360C;
    border: 1px solid #FFE082;
}

.market-status-badge.status-closed {
    background-color: #FEECEB;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.games-header-block {
    text-align: center;
    margin-bottom: 24px;
}

.games-title-main {
    color: #1E293B !important;
    font-size: clamp(1.75rem, 6vw, 2.3rem) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.5px;
    margin: 0 auto 8px;
    text-align: center;
}

.games-subtitle-main {
    color: #64748B !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    margin: 0 0 24px;
    text-align: center;
    letter-spacing: -0.1px;
}

/* Instant Search Box */
.market-search-wrapper {
    margin-bottom: 18px;
}

.market-search-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.market-search-input {
    width: 100%;
    padding: 12px 18px 12px 42px;
    border-radius: 14px;
    border: 1.5px solid #D9DEE5;
    background-color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 600;
    color: #000000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all var(--motion-duration-fast) ease;
    outline: none;
}

.market-search-input:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(65, 28, 130, 0.14);
}

.market-search-icon {
    position: absolute;
    left: 15px;
    color: #9CA3AF;
    font-size: 0.95rem;
    pointer-events: none;
}

/* Tab Pills (Single Line Row, No Wrapping across multiple lines) */
.tabs-brand-pills {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 2px 6px;
}

.tabs-brand-pills::-webkit-scrollbar {
    display: none;
}

.tab-brand-btn {
    background: #FFFFFF;
    border: 1.5px solid #D9DEE5;
    color: #000000;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: all var(--motion-duration-fast) ease;
}

.tab-brand-btn:hover {
    border-color: var(--brand-purple);
    color: var(--brand-purple);
    transform: translateY(-1px);
}

.tab-brand-btn.active {
    background: var(--brand-purple);
    color: #FFFFFF;
    border-color: var(--brand-purple);
    box-shadow: 0 3px 12px rgba(65, 28, 130, 0.3);
}

.tab-panel-container {
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--motion-duration-normal) var(--motion-ease-out),
                transform var(--motion-duration-normal) var(--motion-ease-out);
}

.tab-panel-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   EXACT MARKET GAME CARD (SCREENSHOT REPLICA)
   ========================================================================== */
.market-game-card {
    background: #FFFFFF;
    border: 1px solid #EEF2F6;
    border-right: 4.5px solid #EF4444; /* Coral-red vertical accent line on right edge */
    border-radius: 14px;
    padding: 16px 18px 16px 22px;
    margin-bottom: 14px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    transition: transform var(--motion-duration-fast) ease, box-shadow var(--motion-duration-fast) ease, border-color var(--motion-duration-fast) ease;
}

.market-game-card:hover {
    border-color: #E2E8F0;
    border-right-color: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.market-card-main-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.market-name-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 2px;
    width: 100%;
}

.market-game-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-info-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #E11D48; /* Magenta-pink info badge */
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
    transition: transform var(--motion-duration-fast) ease, color var(--motion-duration-fast) ease;
}

.market-info-btn:hover {
    transform: scale(1.18);
    color: #BE123C;
}

.market-result-display {
    font-size: 1.45rem;
    font-weight: 800;
    color: #000000;
    letter-spacing: 0.5px;
    margin: 4px 0 6px 0;
    line-height: 1.2;
    text-align: center;
}

.market-chart-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
}

.market-chart-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #C2185B;
    text-decoration: none;
    transition: opacity 0.15s ease, text-decoration 0.15s ease;
}

.market-chart-link:hover {
    color: #AD1457;
    text-decoration: underline;
}

.market-chart-sep {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0F172A;
    margin: 0 4px;
}

/* Circular Play Button on the Right with Soft Halo */
.market-play-btn-wrap {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #F1F4FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: background-color var(--motion-duration-fast) ease, transform var(--motion-duration-fast) ease;
}

.market-play-btn-wrap:hover {
    background: #E0E7FF;
    transform: scale(1.05);
}

.market-play-btn-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #4F46E5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
    transition: transform var(--motion-duration-fast) ease, box-shadow var(--motion-duration-fast) ease;
}

.market-play-btn-circle i {
    margin-left: 2px;
}

.market-play-btn-wrap:hover .market-play-btn-circle {
    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.45);
}

/* ==========================================================================
   FOOTER COMPONENT (EXACT SCREENSHOT REPLICA)
   ========================================================================== */
.site-footer {
    background: linear-gradient(180deg, #411C82 0%, #250E52 100%) !important;
    color: #FFFFFF !important;
    border-top: none;
    padding: 50px 16px 95px;
    margin-top: 50px;
    text-align: center;
}

.footer-container {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo-badge {
    display: inline-block;
    background: #FFFFFF;
    padding: 8px 20px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    margin: 0 auto 24px auto;
}

.footer-logo-img {
    height: 42px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-age-notice {
    color: #FFFFFF !important;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 auto 24px auto;
    text-align: center;
}

.footer-address-title {
    color: #FFFFFF !important;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.35;
    margin: 0 auto 22px auto;
    letter-spacing: -0.2px;
    text-align: center;
}

.footer-licensing-text {
    color: #FFFFFF !important;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.65;
    margin: 0 auto 28px auto;
    text-align: center;
    opacity: 0.98;
}

.footer-dotted-divider {
    width: 100%;
    border-top: 1.5px dotted rgba(255, 255, 255, 0.85);
    margin: 0 auto 24px auto;
}

.footer-copyright-text {
    color: #FFFFFF !important;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 auto 22px auto;
    text-align: center;
}

.footer-social-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}

.footer-telegram-btn {
    width: 38px;
    height: 38px;
    background: #FFFFFF;
    border-radius: 50%;
    color: #B30B00 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: transform var(--motion-duration-fast) ease, box-shadow var(--motion-duration-fast) ease;
}

.footer-telegram-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    color: #8F0900 !important;
}

.footer-telegram-btn i {
    margin-right: 2px;
    margin-top: 1px;
}

/* Floating Scroll to Top */
.btn-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--brand-red);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    border: none;
    cursor: pointer;
    z-index: 999;
    opacity: 0.9;
    transition: all var(--motion-duration-normal) var(--motion-ease-out);
}

.btn-scroll-top:hover {
    background: var(--brand-red-hover);
    transform: translateY(-3px);
    opacity: 1;
    color: #FFFFFF;
    box-shadow: var(--shadow-red);
}

@media (max-width: 767.98px) {
    /* Mobile layout rules */
}

@media (max-width: 575.98px) {
    .site-logo {
        height: 38px;
        max-height: 42px;
    }
    
    .notice-card {
        padding: 22px 14px;
    }
    
    .btn-pill-download {
        font-size: 0.95rem;
        padding: 10px 22px;
        width: 100%;
    }
    
    .rate-card-item {
        padding: 12px 14px;
    }

    .rate-pill-gradient {
        min-width: 124px;
        padding: 8px 18px;
        font-size: 0.88rem;
    }

    .rate-game-title {
        font-size: 0.96rem;
    }
    
    .market-game-card {
        padding: 14px 12px 14px 16px;
        gap: 8px;
    }

    .market-game-name {
        font-size: 0.95rem;
    }

    .market-result-display {
        font-size: 1.3rem;
    }

    .market-chart-link {
        font-size: 0.82rem;
    }

    .market-play-btn-wrap {
        width: 58px;
        height: 58px;
    }

    .market-play-btn-circle {
        width: 34px;
        height: 34px;
        font-size: 11px;
    }
    
    .btn-play-now {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .rates-title-main,
    .games-title-main {
        font-size: clamp(1.5rem, 5.5vw, 1.85rem) !important;
    }

    .tabs-brand-pills {
        gap: 6px;
        justify-content: space-between;
        padding: 2px 0 6px;
    }

    .tab-brand-btn {
        flex: 1 1 0;
        padding: 8px 6px;
        font-size: 0.78rem;
        min-height: 38px;
        gap: 4px;
        justify-content: center;
    }

    .tab-brand-btn i {
        font-size: 0.76rem;
    }
}

@media (max-width: 375px) {
    .rates-title-main,
    .games-title-main {
        font-size: 1.35rem !important;
    }

    .tabs-brand-pills {
        gap: 4px;
    }

    .tab-brand-btn {
        padding: 6px 4px;
        font-size: 0.72rem;
        min-height: 34px;
        gap: 3px;
    }

    .tab-brand-btn i {
        font-size: 0.68rem;
    }
}

/* ==========================================================================
   INSTANT SEARCH & FILTER STYLES
   ========================================================================== */
.market-search-wrapper {
    max-width: 680px;
    margin: 0 auto 20px auto;
    position: relative;
}

.market-search-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.market-search-icon {
    position: absolute;
    left: 18px;
    color: var(--brand-gray);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.market-search-input {
    width: 100%;
    padding: 12px 44px 12px 48px;
    border: 2px solid var(--brand-border);
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-dark);
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
    transition: all var(--motion-duration-fast) ease;
}

.market-search-input:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 4px var(--brand-red-subtle);
}

.market-search-input::placeholder {
    color: var(--brand-gray-light);
    font-weight: 500;
}

.market-search-clear {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--brand-gray);
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--motion-duration-fast) ease;
    z-index: 2;
}

.market-search-clear:hover {
    color: var(--brand-red);
    background: var(--brand-red-subtle);
}

.search-counter-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-gray);
    text-align: center;
    margin-top: 8px;
}

.market-game-card.search-hidden,
.rate-card-item.search-hidden,
.rate-row-item.search-hidden,
.matka-row-card.search-hidden {
    display: none !important;
}

/* ==========================================================================
   CHARTS & HISTORICAL TABLES (DRY SYSTEM)
   ========================================================================== */
.banner-pink-strip {
    background: linear-gradient(135deg, var(--brand-red) 0%, #7F0000 100%);
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 900;
    font-style: italic;
    text-align: center;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    letter-spacing: 1px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-red);
    text-transform: uppercase;
}

.matka-row-card {
    border: 1.5px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #FFFFFF;
    transition: transform var(--motion-duration-fast) ease, box-shadow var(--motion-duration-fast) ease;
    box-shadow: var(--shadow-xs);
}

.matka-row-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-red);
}

.matka-center-info {
    text-align: center;
    flex: 1;
}

.matka-title-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.matka-result-text {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--brand-red);
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}

.matka-time-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-gray);
}

.pill-btn-action {
    background-color: var(--brand-dark);
    color: #FFFFFF !important;
    font-weight: 800;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    text-decoration: none;
    box-shadow: var(--shadow-xs);
    transition: all var(--motion-duration-fast) ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill-btn-action:hover {
    background-color: var(--brand-red);
    color: #FFFFFF !important;
    transform: scale(1.05);
    box-shadow: var(--shadow-red);
}

/* Chart Container & Header */
.chart-container {
    background: #FFFFFF;
    border: 1.5px solid var(--brand-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.chart-header {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #1F2937 100%);
    color: #FFFFFF;
    padding: 24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    text-align: center;
    border-bottom: 3px solid var(--brand-red);
}

.chart-header h2 {
    margin: 0;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-header-card {
    background: #FFFFFF;
    border: 1.5px solid var(--brand-border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.chart-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.game-selector-btn {
    background: #FFFFFF;
    border: 1.5px solid var(--brand-border);
    color: var(--brand-dark);
    font-weight: 700;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--motion-duration-fast) ease;
    display: inline-block;
    margin: 4px;
}

.game-selector-btn.active, .game-selector-btn:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #FFFFFF !important;
    box-shadow: var(--shadow-red);
}

/* Jodi & Panel Tables */
.jodi-chart-table, .panel-chart-table {
    width: 100%;
    border-collapse: collapse;
}

.jodi-chart-table th, .panel-chart-table th {
    background: var(--brand-dark);
    color: #FFFFFF;
    padding: 13px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
}

.jodi-chart-table td, .panel-chart-table td {
    padding: 12px 10px;
    border: 1px solid var(--brand-border);
    text-align: center;
    vertical-align: middle;
    color: var(--brand-dark);
}

.date-cell {
    background: #F9FAFB;
    font-weight: 700;
    white-space: nowrap;
    color: var(--brand-dark);
}

.day-cell {
    background: #F9FAFB;
    font-size: 0.82em;
    color: var(--brand-gray);
    font-weight: 700;
}

.jodi-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--brand-red);
}

.jodi-value.red-jodi {
    color: #DC2626 !important;
    font-weight: 900;
}

.jodi-value.pending {
    color: var(--brand-gray-light);
}

.open-digit, .close-digit {
    font-size: 1.15rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.open-digit {
    background: rgba(22, 163, 74, 0.08);
    color: #15803D;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.close-digit {
    background: rgba(37, 99, 235, 0.08);
    color: #1D4ED8;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.result-row:hover {
    background: var(--brand-red-subtle);
}

.chart-legend {
    padding: 16px;
    background: #F9FAFB;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--brand-border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--brand-dark-soft);
}

.legend-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.legend-box.open { background: rgba(22, 163, 74, 0.15); border: 1px solid #16A34A; }
.legend-box.close { background: rgba(37, 99, 235, 0.15); border: 1px solid #2563EB; }
.legend-box.jodi { background: var(--brand-red); }

/* Starline Table */
.starline-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
    margin-bottom: 0;
}

.starline-table th {
    background: var(--brand-dark);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 13px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.starline-table td {
    padding: 10px 8px;
    vertical-align: middle;
    border-bottom: 1px solid var(--brand-border);
    border-right: 1px solid var(--brand-border);
    font-size: 0.9rem;
}

.chart-card {
    background: #FFFFFF;
    border: 1.5px solid var(--brand-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    transition: all var(--motion-duration-fast) ease;
    box-shadow: var(--shadow-sm);
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-red);
}

.chart-card h4 {
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--brand-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.chart-btn {
    border-radius: var(--radius-pill);
    font-weight: 800;
    padding: 9px 22px;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    transition: all var(--motion-duration-fast) ease;
    margin: 4px;
}

.btn-outline-primary-custom {
    color: var(--brand-red) !important;
    border: 1.5px solid var(--brand-red);
    background: transparent;
    transition: all var(--motion-duration-fast) ease;
}

.btn-outline-primary-custom:hover {
    color: #FFFFFF !important;
    background: var(--brand-red);
    box-shadow: var(--shadow-red);
}

/* Authentic Satta Matka Weekly Jodi & Panel Grids */
.jodi-grid-val {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--brand-dark);
}
.jodi-grid-val.text-red-jodi {
    color: #DC2626 !important;
}
.date-range-cell {
    font-size: 0.78rem;
    font-weight: 800;
    white-space: pre-line;
    line-height: 1.2;
    background-color: #FEF08A !important;
    color: #000000;
    vertical-align: middle;
    text-align: center;
}
.panel-cell-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
}
.panna-stack {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    font-family: monospace;
}
.panna-stack.open-panna { color: var(--brand-dark); }
.panna-stack.close-panna { color: var(--brand-dark); }
.jodi-center-val {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--brand-red);
}
.jodi-center-val.text-red-jodi {
    color: #DC2626 !important;
}
.scroll-nav-container {
    position: fixed;
    right: 16px;
    bottom: 75px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.scroll-nav-btn {
    background: var(--brand-dark);
    color: var(--brand-gold);
    border: 2px solid var(--brand-gold);
    border-radius: var(--radius-pill);
    padding: 8px 14px;
    font-weight: 800;
    font-size: 0.8rem;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all var(--motion-duration-fast) ease;
}
.scroll-nav-btn:hover {
    background: var(--brand-red);
    color: #FFFFFF;
    border-color: var(--brand-red);
}

/* ==========================================================================
   ACCESSIBILITY: PREFERS-REDUCED-MOTION
   ========================================================================== */

/* Starline & Jackpot Elements */
.panna-num {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: 1px;
    margin-bottom: 2px;
}
.single-badge {
    display: inline-block;
    background: #F1F5F9;
    color: var(--brand-dark);
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    border: 1px solid var(--brand-border);
}
.single-badge.active-single {
    background: var(--brand-red);
    color: #FFFFFF;
    border-color: var(--brand-red);
    box-shadow: var(--shadow-red);
}
.jackpot-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
    margin-bottom: 0;
}
.jackpot-table th {
    background: var(--brand-dark);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 13px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}
.jackpot-table td {
    padding: 10px 8px;
    vertical-align: middle;
    border-bottom: 1px solid var(--brand-border);
    border-right: 1px solid var(--brand-border);
    font-size: 0.9rem;
}
.digit-badge {
    display: inline-block;
    background: #F1F5F9;
    color: var(--brand-dark);
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    border: 1px solid var(--brand-border);
}
.jodi-badge {
    display: inline-block;
    background: #F1F5F9;
    color: var(--brand-dark);
    font-weight: 900;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    font-size: 1.15rem;
    letter-spacing: 1px;
    border: 1px solid var(--brand-border);
}
.jodi-badge.active-jodi {
    background: var(--brand-red);
    color: #FFFFFF;
    border-color: var(--brand-red);
    box-shadow: var(--shadow-red);
}

/* ==========================================================================
   CHARTS DIRECTORY PAGE (EXACT REFERENCE REPLICA)
   ========================================================================== */
.charts-directory-section {
    background-color: var(--brand-bg, #FAFAFA);
    min-height: 80vh;
    padding-top: 24px;
    padding-bottom: 60px;
}

.charts-header-wrap {
    text-align: center;
    margin-bottom: 22px;
}

.charts-main-title {
    color: var(--brand-red, #B70000);
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.charts-dotted-line {
    width: 140px;
    height: 0;
    margin: 0 auto;
    border-bottom: 2px dotted var(--brand-red, #B70000);
}

.charts-card-box {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 16px 14px 24px;
    max-width: 460px;
    margin: 0 auto;
}

.chart-section-banner {
    background: var(--brand-red, #B70000);
    color: #FFFFFF !important;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-align: center;
    text-transform: uppercase;
    padding: 13px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(183, 0, 0, 0.22);
    margin-bottom: 12px;
}

.chart-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.btn-market-chart {
    display: block;
    width: 100%;
    background: #FFFFFF;
    color: #111111 !important;
    border: 1.5px solid #D32F2F;
    border-radius: 8px;
    padding: 12px 14px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(211, 47, 47, 0.14);
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-market-chart:hover {
    background: #FFF5F5;
    border-color: #B70000;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.24);
    transform: translateY(-1px);
    color: #000000 !important;
}

.btn-market-chart:active {
    transform: scale(0.98);
    box-shadow: 0 1px 3px rgba(211, 47, 47, 0.2);
}

/* ==========================================================================
   PANNA & JODI CHART RECORD (EXACT REFERENCE REPLICA)
   ========================================================================== */
.panna-chart-section {
    background-color: var(--brand-bg, #FAFAFA);
    min-height: 80vh;
    padding-top: 24px;
    padding-bottom: 60px;
}

.panna-chart-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 24px 14px 20px 14px;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.panna-market-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #111111;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.panna-market-subtitle {
    color: #4B5563;
    font-size: 0.85rem;
    line-height: 1.55;
    text-align: center;
    max-width: 480px;
    margin: 0 auto 18px;
    font-weight: 400;
}

.btn-go-to-bottom {
    background: var(--brand-red, #B70000);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    padding: 9px 22px;
    border: none;
    box-shadow: 0 2px 8px rgba(183, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
    text-decoration: none;
}

.btn-go-to-bottom:hover {
    background: #920000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(183, 0, 0, 0.35);
}

.btn-go-to-bottom:active {
    transform: scale(0.97);
}

.panna-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid #DDE2E5;
    margin-bottom: 18px;
    background: #FFFFFF;
}

.panna-grid-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin: 0;
    font-family: inherit;
}

.panna-grid-table th {
    border: 1px solid #DDE2E5;
    padding: 8px 3px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #111111;
    text-align: center;
}

.panna-th-date {
    background-color: #ECEFF1;
    width: 16%;
}

.panna-th-day {
    background-color: #FFFFFF;
    width: 12%;
}

.panna-grid-table td {
    border: 1px solid #DDE2E5;
    padding: 5px 2px;
    text-align: center;
    vertical-align: middle;
}

.panna-td-date {
    background-color: #ECEFF1;
    color: #333333;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.panna-td-cell {
    background-color: #FFFFFF;
    transition: background 0.15s ease;
}

/* Red Jodi Cell has light pink background matching reference */
.panna-td-cell.panna-cell-red {
    background-color: #FFF0F0 !important;
}

.panna-patti-digit {
    font-size: 0.76rem;
    font-weight: 500;
    color: #222222;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.panna-jodi-num {
    font-size: 0.95rem;
    font-weight: 800;
    color: #111111;
    line-height: 1.2;
    margin: 1px 0;
}

.panna-jodi-num.text-red-jodi {
    color: #D32F2F !important;
    font-weight: 900;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
