/* _________________________________________________
<<<<<<<<<<<< 1. FONTS, VARS & RESET >>>>>>>>>>>>>>>>
_________________________________________________ */
:root {
    --primary: #0f172a;       /* Dark Blue */
    --primary-light: #1e293b;
    --accent: #ff0055;        /* Pink/Red */
    --blue: #3b82f6;
    --gold: #fbbf24;
    --text-main: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
}

/* Base Spacing for Header */
.v26-hero-section {
    margin-top: var(--header-height, 70px);
}

@media (max-width: 1024px) {
    .v26-hero-section {
        margin-top: var(--mobile-header-height, 60px);
    }
}

/* Note: .v26-archive-root styling is overridden in Section 9 (New Code) below */

*, *:before, *:after { box-sizing: inherit; }

html, body {
    overflow-x: clip;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* _________________________________________________
<<<<<<<<<<<< 2. STICKY HEADER & BALANCE >>>>>>>>>>>>
_________________________________________________ */

.v26-sticky-wrap {
    position: -webkit-sticky; /* Safari */
    position: sticky;         /* Standard */
    top: 0;
    z-index: 9999;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* FIX 1: Sticky Inner Container with Padding */
.v26-sticky-inner {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.admin-bar .v26-sticky-wrap {
    top: 32px; /* WordPress Admin Bar compatibility */
}

.v26-balance-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

#v26-balance-display {
    font-size: 26px;
    font-weight: 800;
    color: var(--success);
    line-height: 1;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}

.v26-percentage {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 14px;
}

.v26-bar-track {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    margin-top: 8px;
    overflow: hidden;
}

#v26-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--success);
    transition: width 0.3s ease;
}

/* _________________________________________________
<<<<<<<<<<<< 3. HERO SECTION & BREADCRUMBS >>>>>>>>>
_________________________________________________ */

.v26-breadcrumbs {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 15px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 20;
}

.v26-breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.2s;
}

.v26-breadcrumbs a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.v26-breadcrumbs .current {
    color: var(--white);
    font-weight: 700;
}

.v26-breadcrumbs span {
    margin: 0 6px;
    opacity: 0.5;
}

/* Hero Styles */
.v26-hero-section {
    padding: 20px 15px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.v26-hero-card {
    padding: 30px 25px 40px 25px;
    background: var(--primary);
    width: 100%;
    max-width: 850px;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: hidden;
}

.v26-avatar-box { margin-bottom: 15px; }
.v26-avatar-box img {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    border: 4px solid var(--accent);
    object-fit: cover;
}

.v26-hero-title {
    font-size: 28px;
    font-weight: 800;
    margin: 15px 0;
    line-height: 1.2;
    color: white;
}

.v26-seo-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

/* Mission Box */
.v26-mission-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 10px;
}
.v26-mission-tag {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

/* _________________________________________________
<<<<<<<<<<<< 4. GRID SYSTEM (SINGLE GAME) >>>>>>>>>>
_________________________________________________ */

.v26-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px 120px 15px;
}

.v26-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columns on Mobile */
    gap: 10px;
}

/* Card Styles */
.v26-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.2s;
}

.v26-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.v26-req-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--gold);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 5;
}

.v26-img-box {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.v26-img-box img { width: 100%; height: 100%; object-fit: contain; }

.v26-info h3 {
    font-size: 15px;
    margin: 0 0 5px 0;
    color: var(--primary);
    line-height: 1.3;
    font-weight: 700;
}
.v26-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 10px;
}

/* Buttons & Inputs */
.v26-controls {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 5px;
}

.v26-btn {
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.v26-buy { background: var(--primary); color: white; }
.v26-buy:disabled { background: #cbd5e1; cursor: not-allowed; opacity: 0.7; }

.v26-sell { background: #f1f5f9; color: #333; }
.v26-sell:disabled { color: #cbd5e1; cursor: default; }

.v26-qty {
    text-align: center;
    border: none;
    font-weight: 800;
    font-size: 15px;
    width: 100%;
    background: transparent;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
}

/* _________________________________________________
<<<<<<<<<<<< 5. CONTENT & FAQ SECTION >>>>>>>>>>>>>>
_________________________________________________ */

.v26-content-section {
    background: #fff;
    padding: 50px 20px;
    border-top: 1px solid #f1f5f9;
}
.v26-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}
.v26-content-wrapper h2 { font-size: 26px; font-weight: 800; color: var(--primary); margin-bottom: 15px; }
.v26-content-wrapper h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin: 30px 0 10px 0; }

/* Stats Table */
.v26-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}
.v26-stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}
.v26-stat-icon { font-size: 28px; display: block; margin-bottom: 8px; }

/* FAQ Accordion */
.v26-faq-container { margin-top: 20px; }
.v26-faq-item { border-bottom: 1px solid #e2e8f0; }
.v26-faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}
.v26-faq-answer { max-height: 0; overflow: hidden; transition: 0.3s; color: #475569; }
.v26-faq-item.active .v26-faq-answer { max-height: 300px; padding-bottom: 15px; }

/* Disclaimer */
.v26-disclaimer-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 15px;
    border-radius: 10px;
    margin-top: 30px;
    font-size: 13px;
    position: relative;
}
.v26-disc-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-weight: 700;
    cursor: pointer;
    color: #ef4444;
}

/* _________________________________________________
<<<<<<<<<<<< 6. RELATED GAMES >>>>>>>>>>>>>>>>>>>>>>
_________________________________________________ */

.v26-related-section {
    background: #f1f5f9;
    padding: 50px 20px 100px 20px;
    text-align: center;
}
.v26-related-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.v26-related-card {
    background: white;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    width: 280px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.v26-rel-img img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.v26-rel-info h4 { margin: 0; font-size: 14px; font-weight: 700; color: var(--primary); }
.v26-rel-info span { font-size: 12px; color: var(--success); font-weight: 700; }

/* _________________________________________________
<<<<<<<<<<<< 7. MODAL & DOCK >>>>>>>>>>>>>>>>>>>>>>>
_________________________________________________ */

/* FIX 2: Compact Bottom Dock */
.v26-dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%; /* 95% on Mobile */
    max-width: 500px; /* Limit on Desktop */
    background: var(--primary); 
    color: white;
    padding: 10px 20px; 
    border-radius: 50px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    z-index: 2000;
    box-sizing: border-box; /* Include padding in width */
}

.v26-dock-info small { display: block; font-size: 10px; opacity: 0.7; font-weight: 600; }
#v26-spent-display { font-weight: 700; font-size: 16px; color: white; }

.v26-finish-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

/* Modal Styling */
.v26-hidden { display: none !important; }
#v26-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.v26-modal-content {
    background: white;
    padding: 25px;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    text-align: center;
    font-family: 'Inter', sans-serif;
}
.v26-close-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

/* Quiz Elements */
.v26-quiz-bar { width: 100%; height: 6px; background: #e2e8f0; border-radius: 3px; margin: 10px 0; }
#v26-quiz-fill { width: 30%; height: 100%; background: var(--blue); }
.v26-opt-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    text-align: left;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.v26-opt-btn:hover { background: #eff6ff; border-color: var(--blue); color: var(--blue); }

/* --- RECEIPT STYLING (UPDATED) --- */
#v26-receipt-capture-area {
    background: #fff;
    /* Receipt Shadow/Look */
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    border-radius: 5px;
}

#v26-receipt-items {
    font-family: 'Courier Prime', 'Courier New', monospace; /* Receipt Font */
    background: #fff;
    padding: 15px;
    border: 1px solid #eee;
    text-align: left;
    /* Scroll Logic */
    max-height: 150px;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Header jo sirf download main ayega */
#v26-receipt-header {
    text-align: center;
    margin-bottom: 10px;
    font-family: 'Courier Prime', monospace;
}
#v26-receipt-header h3 { margin: 0; font-size: 20px; color: #000; letter-spacing: 2px; }
#v26-receipt-header p { margin: 0; font-size: 12px; color: #666; }

#v26-step-result h2 {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social Buttons */
.v26-share-section { margin-top: 20px; border-top: 1px solid #f1f5f9; padding-top: 15px; }
.v26-share-label { font-size: 11px; font-weight: 800; color: #64748b; margin-bottom: 10px; display: block; }

.v26-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.v26-social-btn {
    height: 40px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

.btn-whatsapp { background: #25D366; }
.btn-facebook { background: #1877F2; }
.btn-twitter  { background: #000000; }
.btn-telegram { background: #0088cc; }
.btn-copy     { background: #64748b; grid-column: span 2; }

.btn-keep-spending {
    background: #f1f5f9;
    color: #475569;
    width: 100%;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 10px;
    cursor: pointer;
}

/* _________________________________________________
<<<<<<<<<<<< 8. MEDIA QUERIES (GLOBAL) >>>>>>>>>>>>>
_________________________________________________ */

/* Tablet & Desktop */
@media (min-width: 768px) {
    .v26-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
    .v26-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile Tweaks */
@media (max-width: 480px) {
    .v26-modal-content { padding: 20px; width: 95%; }
    .v26-hero-title { font-size: 24px; }

    /* --- BREADCRUMBS FIX --- */
    .v26-breadcrumbs { 
        font-size: 10px; 
        /* top/left hata diya taake overlap na ho */
        top: auto; 
        left: auto;
        margin-bottom: 25px; /* Image aur text ke beech gap */
        text-align: center;  /* Mobile pe center acha lagega */
    }

    .v26-hero-card { 
        padding-top: 30px; /* Padding adjust ki */
    }
}

/* FIX 3: Extra Small Screens (iPhone SE etc) */
@media (max-width: 400px) {
    .v26-dock {
        bottom: 10px;
        padding: 8px 15px;
    }
    #v26-spent-display { font-size: 14px; }
    .v26-finish-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}