/* ========================================
   X555 GAME - MOBILE-FIRST CSS
   Optimized for 95% mobile users
   Language: en-PK
======================================== */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

:root {
    --primary: #FF6B00;
    --secondary: #00C9FF;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --text: #222222;  /* Darker for better contrast */
    --text-light: #4a4a4a;  /* Better contrast than #666 */
    --border: #e0e0e0;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
    padding-bottom: 70px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== MOBILE HEADER ========== */
.mobile-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo span {
    font-size: 1.125rem;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    background: none;
    border: none;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 3px 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, box-shadow 0.4s ease;
    box-shadow: none;
}

.mobile-nav.active {
    max-height: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mobile-nav a {
    display: block;
    padding: 16px 20px;
    min-height: 48px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid var(--light);
    transition: background 0.2s;
    display: flex;
    align-items: center;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    background: var(--light);
    color: var(--primary);
}

.mobile-nav a.nav-cta {
    background: var(--primary);
    color: #fff;
    margin: 12px 16px;
    border-radius: 8px;
    text-align: center;
    border: none;
}

.mobile-nav a.nav-cta:hover {
    background: #ff5200;
}

/* ========== QUICK ACTION BAR ========== */
.quick-action-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.quick-btn {
    flex-shrink: 0;
    padding: 12px 20px;
    min-height: 48px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.quick-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========== CONTAINER ========== */
.main-content {
    padding-bottom: 20px;
}

.container-mobile {
    padding: 0 16px;
    max-width: 100%;
}

/* ========== HERO SECTION ========== */
.hero-mobile {
    padding: 24px 0;
    text-align: center;
    min-height: 200px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8C00 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 700;
    min-height: 90px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.stat-item {
    padding: 16px 8px;
    background: var(--light);
    border-radius: 12px;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 1.25rem;
    color: #222222;
    margin-bottom: 4px;
    font-weight: 700;
}

.stat-item span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.hero-cta {
    margin-top: 24px;
}

/* ========== BUTTONS ========== */
.btn-primary-mobile,
.btn-download-mobile,
.btn-huge-mobile {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255,107,0,0.3);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-huge-mobile {
    padding: 18px 24px;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-primary-mobile:hover,
.btn-download-mobile:hover,
.btn-huge-mobile:hover {
    background: #ff5200;
    box-shadow: 0 6px 16px rgba(255,107,0,0.4);
}

.btn-primary-mobile:active {
    transform: scale(0.98);
}

.cta-note,
.security-note-mobile,
.final-note {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

/* ========== ARTICLE META ========== */
.article-meta-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-light);
}

.meta-item {
    display: inline-block;
}

/* ========== TABLE OF CONTENTS ========== */
.table-of-contents-mobile {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8d9 100%);
    padding: 24px;
    border-radius: 16px;
    margin: 24px 0;
    border-left: 5px solid var(--primary);
    box-shadow: 0 4px 16px rgba(255,107,0,0.1);
}

.toc-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

.toc-title {
    font-size: 1.35rem;
    margin: 0;
    color: var(--dark);
    font-weight: 700;
    flex: 1;
}

.toc-toggle {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8C42 100%);
    border: none;
    min-width: 100px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255,107,0,0.25);
    position: relative;
    overflow: hidden;
}

.toc-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    transition: opacity 0.3s;
    opacity: 0;
}

.toc-toggle:hover::before {
    opacity: 1;
}

.toc-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,107,0,0.35);
}

.toc-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255,107,0,0.3);
}

.toggle-text {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toggle-icon {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.toc-toggle[aria-expanded="false"] .toggle-icon {
    transform: rotate(-90deg);
}

.toc-list {
    list-style: none;
    counter-reset: toc-counter;
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 1;
}

.toc-list.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 14px;
}

.toc-list li:last-child {
    margin-bottom: 0;
}

.toc-list li a {
    display: block;
    padding: 14px 16px;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.toc-list li a:before {
    content: counter(toc-counter) ". ";
    color: var(--primary);
    font-weight: 700;
    margin-right: 6px;
}

.toc-list li a:hover {
    background: #fffbf8;
    transform: translateX(6px);
    border-left-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255,107,0,0.15);
}

.toc-list li a:active {
    transform: translateX(4px);
}

/* ========== INFO BOXES ========== */
.info-box-mobile {
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid var(--primary);
}

.info-box-mobile.highlight {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8d9 100%);
}

.info-box-mobile h3,
.info-box-mobile h4 {
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.quick-facts-mobile {
    list-style: none;
}

.quick-facts-mobile li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
}

.quick-facts-mobile li:last-child {
    border-bottom: none;
}

/* ========== CONTENT SECTIONS ========== */
.content-section-mobile {
    margin: 32px 0;
}

.content-section-mobile h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    font-weight: 700;
}

.content-section-mobile h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin: 24px 0 12px;
    font-weight: 600;
}

.content-section-mobile h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin: 16px 0 8px;
    font-weight: 600;
}

.content-section-mobile p {
    margin-bottom: 16px;
    line-height: 1.7;
    font-size: 1rem;
}

.content-section-mobile ul,
.content-section-mobile ol {
    margin: 16px 0 16px 20px;
    line-height: 1.7;
}

.content-section-mobile li {
    margin-bottom: 8px;
}

/* ========== CARDS & BOXES ========== */
.highlight-box-mobile,
.tip-box-mobile,
.bonus-box-mobile,
.warning-box-mobile {
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid;
}

.highlight-box-mobile {
    background: #fff3cd;
    border-color: #ffc107;
}

.tip-box-mobile {
    background: #d1ecf1;
    border-color: #17a2b8;
}

.bonus-box-mobile {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    border-color: #20c997;
}

.bonus-box-mobile h4 {
    color: #fff;
    margin-top: 0;
}

.warning-box-mobile {
    background: #fff3cd;
    border-color: #ffc107;
}

/* ========== REASON CARDS ========== */
.reason-cards-mobile {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}

.reason-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}

.reason-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.reason-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.reason-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* ========== FEATURES LIST ========== */
.features-list-mobile {
    margin: 20px 0;
}

.feature-mobile {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--light);
    border-radius: 12px;
}

.feature-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.feature-content h4 {
    margin-top: 0;
    margin-bottom: 8px;
}

.feature-content p {
    margin: 0;
    font-size: 0.95rem;
}

/* ========== DOWNLOAD/INSTALL STEPS ========== */
.download-steps-mobile,
.install-guide-mobile {
    margin: 20px 0;
}

.step-mobile,
.install-step-mobile {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary);
}

.step-number-mobile {
    display: inline-block;
    background: #222222;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-mobile h4,
.install-step-mobile h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* ========== CTA BOX ========== */
.cta-box-mobile {
    text-align: center;
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
}

/* ========== REGISTER STEPS ========== */
.register-steps-mobile {
    margin: 20px 0;
}

.reg-step {
    padding: 14px;
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.reg-step strong {
    color: #222222;
    font-weight: 700;
}

/* ========== EARNING METHODS ========== */
.earning-methods-mobile {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}

.method-card-mobile {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary);
}

.method-card-mobile h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #222222;
    font-weight: 700;
}

/* ========== TABLES ========== */
.earning-table-mobile,
table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.earning-table-mobile th,
.earning-table-mobile td,
table th,
table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.earning-table-mobile th,
table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.earning-table-mobile tr:last-child td,
table tr:last-child td {
    border-bottom: none;
}

.note-mobile {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 8px;
}

/* ========== WITHDRAWAL GUIDE ========== */
.deposit-guide-mobile,
.withdrawal-guide-mobile {
    margin: 20px 0;
}

.withdraw-steps {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.w-step {
    padding: 12px;
    background: var(--light);
    border-radius: 8px;
    font-size: 0.95rem;
}

.withdrawal-limits-mobile {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.withdrawal-limits-mobile ul {
    margin-left: 0;
    list-style: none;
}

.withdrawal-limits-mobile li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.withdrawal-limits-mobile li:last-child {
    border-bottom: none;
}

/* ========== GAME CATEGORIES ========== */
.games-categories-mobile {
    margin: 20px 0;
}

.game-category-mobile {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.game-category-mobile h4 {
    margin-top: 0;
    color: #222222;
    font-size: 1.2rem;
    font-weight: 700;
}

.game-tips-mobile {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

/* ========== PAYMENT METHODS ========== */
.payment-methods-mobile {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}

.payment-method-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.payment-logo {
    font-size: 3rem;
    margin-bottom: 12px;
}

.payment-method-card h4 {
    margin-bottom: 12px;
    color: #222222;
    font-weight: 700;
}

.payment-method-card p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* ========== TESTIMONIALS ========== */
.testimonials-mobile {
    margin: 20px 0;
}

.testimonial-mobile {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid var(--success);
}

.user-header {
    margin-bottom: 12px;
}

.user-header strong {
    display: block;
    font-size: 1.05rem;
    color: var(--dark);
}

.location {
    font-size: 0.85rem;
    color: var(--text-light);
}

.withdrawal-amount {
    display: inline-block;
    background: var(--success);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.withdrawal-time {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.verified {
    display: inline-block;
    background: var(--success);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ========== BONUSES ========== */
.bonuses-list-mobile {
    margin: 20px 0;
}

.bonus-item-mobile {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #ffc107;
}

.bonus-item-mobile h4 {
    margin-top: 0;
    color: #222222;
    font-weight: 700;
}

/* ========== TIPS GRID ========== */
.tips-grid-mobile {
    margin: 20px 0;
}

.tip-card-mobile {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tip-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.tip-card-mobile h4 {
    margin-top: 0;
    margin-bottom: 12px;
}

.tip-card-mobile p {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* ========== SAFETY POINTS ========== */
.safety-points-mobile {
    margin: 20px 0;
}

.safety-point {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.safety-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.safety-content h4 {
    margin-top: 0;
    margin-bottom: 8px;
}

.safety-content p {
    font-size: 0.95rem;
    margin: 0;
}

/* ========== FAQ ========== */
.faq-mobile {
    margin: 20px 0;
}

.faq-item-mobile {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-q {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 1rem;
}

.faq-a {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ========== CONCLUSION ========== */
.conclusion-mobile {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 24px;
    border-radius: 12px;
    margin: 32px 0;
}

.verdict-mobile {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.rating-mobile {
    text-align: center;
    margin-bottom: 20px;
}

.rating-mobile h3 {
    color: #222222;
    font-size: 1.3rem;
    font-weight: 700;
}

.pros-cons-mobile {
    margin: 20px 0;
}

.pros-mobile,
.cons-mobile {
    margin-bottom: 24px;
}

.pros-mobile h4 {
    color: var(--success);
    margin-bottom: 12px;
}

.cons-mobile h4 {
    color: var(--danger);
    margin-bottom: 12px;
}

.final-verdict-mobile {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.final-cta-mobile {
    text-align: center;
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.final-cta-mobile h3 {
    color: #fff;
    margin-bottom: 12px;
}

.final-cta-mobile p {
    margin-bottom: 20px;
}

/* ========== ARTICLE FOOTER ========== */
.article-footer-mobile {
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
    margin: 32px 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.article-footer-mobile p {
    margin-bottom: 8px;
}

/* ========== BOTTOM NAVIGATION ========== */
.bottom-nav-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    transition: transform 0.3s;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    padding: 12px;
    min-width: 64px;
    min-height: 56px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.bottom-nav-item span {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.bottom-nav-item small {
    font-size: 0.7rem;
}

.bottom-nav-item.cta-item {
    background: var(--primary);
    color: #fff;
}

.bottom-nav-item:hover {
    background: var(--light);
}

.bottom-nav-item.cta-item:hover {
    opacity: 0.9;
}

/* ========== FOOTER ========== */
.footer-mobile {
    background: var(--dark);
    color: #fff;
    padding: 32px 16px 80px;
    margin-top: 40px;
}

.footer-content-mobile {
    margin-bottom: 24px;
}

.footer-logo-mobile {
    text-align: center;
    margin-bottom: 24px;
}

.footer-logo-mobile img {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
}

.footer-links-mobile,
.footer-contact-mobile,
.footer-social-mobile {
    margin-bottom: 24px;
}

.footer-links-mobile h4,
.footer-contact-mobile h4,
.footer-social-mobile h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer-links-mobile a {
    display: block;
    color: #ccc;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
}

.footer-links-mobile a:hover {
    color: var(--primary);
}

.footer-contact-mobile p {
    color: #ccc;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.social-icons-mobile {
    display: flex;
    gap: 16px;
}

.social-icons-mobile a {
    font-size: 1.75rem;
    text-decoration: none;
}

.footer-bottom-mobile {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #999;
}

.footer-bottom-mobile p {
    margin-bottom: 8px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (min-width: 768px) {
    .container-mobile {
        max-width: 720px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .reason-cards-mobile {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-methods-mobile {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tips-grid-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .mobile-nav {
        position: static;
        max-height: none;
        display: flex;
        flex-direction: row;
        background: transparent;
        box-shadow: none;
    }
    
    .mobile-nav a {
        padding: 8px 16px;
        border: none;
    }
    
    .mobile-nav a.nav-cta {
        margin: 0;
    }
}

@media (min-width: 1024px) {
    .container-mobile {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .reason-cards-mobile {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .payment-methods-mobile {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .bottom-nav-mobile {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
}

    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}



@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 24px;
    }
    
    .desktop-nav a {
        color: var(--text);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        padding: 8px 12px;
        border-radius: 6px;
        transition: all 0.2s;
    }
    
    .desktop-nav a:hover {
        background: var(--light);
        color: var(--primary);
    }
    
    .desktop-nav a.nav-cta-desktop {
        background: var(--primary);
        color: #fff;
        padding: 10px 20px;
        border-radius: 8px;
        font-weight: 600;
    }
    
    .desktop-nav a.nav-cta-desktop:hover {
        background: #ff5200;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .mobile-nav {
        display: none;
    }
}

/* Cache-Control Headers Helper */
.logo img,
.footer-logo-mobile img {
    /* Images should have cache headers set server-side */
    /* For .htaccess: ExpiresByType image/avif "access plus 1 year" */
}

/* ========== HEADING FIXES FOR ACCESSIBILITY ========== */
/* Reason cards H3 (was H4) */
.reason-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
}

/* Feature content H3 (was H4) */
.feature-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Step content H3 (was H4) */
.step-content h3,
.step-mobile h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Install step H3 (was H4) */
.install-step-mobile h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Ensure proper contrast for all headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
}

/* ========== TOUCH TARGET SPACING FIXES ========== */
/* Ensure proper spacing between touch targets */
.mobile-nav a {
    margin: 2px 0;
}

.quick-action-bar {
    gap: 12px;
    padding: 12px 16px;
}

.bottom-nav-mobile {
    padding: 10px 4px;
    gap: 4px;
}

/* Table header contrast fix */
.earning-table-mobile th,
table th {
    background: #222222;
    color: #fff;
    font-weight: 700;
}

/* Logo span contrast */
.logo span {
    color: #222222;
    font-weight: 700;
}

/* Small text in bottom nav */
.bottom-nav-item small {
    font-size: 0.7rem;
    color: var(--text);
    font-weight: 600;
}

.bottom-nav-item.cta-item small {
    color: #fff;
    font-weight: 700;
}

/* Ensure all headings have proper contrast */
h1, h2, h3, h4, h5, h6 {
    color: #1a1a2e;
}

/* Make withdrawal amount more visible */
.withdrawal-amount {
    background: #1e7e34;
    color: #fff;
    font-weight: 800;
}

/* Verified badge better contrast */
.verified {
    background: #1e7e34;
    color: #fff;
    font-weight: 700;
}

/* ========== CRITICAL CLS FIXES ========== */
/* Prevent layout shift by reserving space */

/* Main content container - prevent expansion */
.main-content {
    contain: layout;
}

/* Container mobile - fixed width prevents shift */
.container-mobile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    contain: layout;
}

/* Stats grid - fixed height */
.hero-stats {
    min-height: 100px;
}

.stat-item {
    min-height: 70px;
}

/* Quick action bar - fixed height */
.quick-action-bar {
    min-height: 60px;
}

/* Bottom nav - always visible, no transform */
.bottom-nav-mobile {
    transform: translateY(0) !important;
    transition: none !important;
}

/* Prevent font swap causing layout shift */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* All headings - reserve minimum space */
h1 {
    min-height: 60px;
}

h2 {
    min-height: 40px;
}

/* Sections - minimum heights to prevent shift */
.section-mobile {
    min-height: 200px;
}

/* TOC - fixed height */
.table-of-contents-mobile {
    contain: layout;
}

/* Card elements - minimum heights */
.reason-card-mobile,
.feature-card-mobile,
.step-card-mobile {
    min-height: 180px;
}

/* Method cards */
.method-card-mobile {
    min-height: 220px;
}

/* Game categories */
.game-category-mobile {
    min-height: 200px;
}

/* Payment methods */
.payment-method-card {
    min-height: 250px;
}

/* Prevent image load causing shift */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Logo specific */
.logo img {
    width: 40px;
    height: 40px;
}

/* Footer logo */
.footer-logo img {
    width: 50px;
    height: 50px;
}
