/* ============================================
   DUEL CASINO REVIEW - MAIN STYLESHEET
   Version: 2.0 | Mobile-First | SEO Optimized
   ============================================ */

/* ========== CSS VARIABLES ========== */
:root {
    /* Color Palette */
    --primary: #0f0f23;
    --secondary: #00ff41;
    --accent: #6c63ff;
    --gradient: linear-gradient(135deg, #00ff41 0%, #00ccff 100%);
    --card-bg: #1a1a2e;
    --text: #e0e0e0;
    --text-secondary: #888;
    --border-color: rgba(0, 255, 65, 0.1);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-md: 18px;
    --font-size-lg: 24px;
    --font-size-xl: 32px;
    --font-size-xxl: 42px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index layers */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal-backdrop: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-tooltip: 600;
}

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--primary);
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text);
}

h1 {
    font-size: clamp(28px, 5vw, 42px);
}

h2 {
    font-size: clamp(24px, 4vw, 32px);
    margin-top: var(--space-xxl);
}

h3 {
    font-size: clamp(20px, 3vw, 24px);
    margin-top: var(--space-xl);
}

p {
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary);
}

/* ========== HEADER & NAVIGATION ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: var(--z-sticky);
    padding: var(--space-sm) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.logo {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    white-space: nowrap;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
    position: relative;
    z-index: var(--z-modal);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn .menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: background-color var(--transition-fast);
}

.mobile-menu-btn .menu-icon::before,
.mobile-menu-btn .menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text);
    left: 0;
    transition: transform var(--transition-base);
}

.mobile-menu-btn .menu-icon::before {
    top: -8px;
}

.mobile-menu-btn .menu-icon::after {
    bottom: -8px;
}

.mobile-menu-btn.active .menu-icon {
    background: transparent;
}

.mobile-menu-btn.active .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-btn.active .menu-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--secondary);
    background: rgba(0, 255, 65, 0.1);
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: var(--z-modal-backdrop);
}

.menu-overlay.active {
    display: block;
}

/* ========== HERO SECTION ========== */
.hero {
    padding: 120px 0 60px;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, var(--primary) 70%);
    position: relative;
}

.hero h1 {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(var(--font-size-base), 3vw, 20px);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    margin: var(--space-xl) 0;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    min-width: 160px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: rgba(0, 255, 65, 0.1);
    transform: translateY(-2px);
}

/* ========== FEATURES GRID ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.feature-item:hover {
    border-color: var(--secondary);
    background: rgba(0, 255, 65, 0.05);
}

.feature-item .icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    padding: var(--space-md) 0;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-sm);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb span {
    margin: 0 var(--space-sm);
    color: var(--text-secondary);
}

/* ========== QUICK STATS ========== */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.stat-item {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
    margin-bottom: var(--space-xxl);
}

.content-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-base);
}

.content-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary);
}

.section-title {
    position: relative;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-xl);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

/* ========== INFO BOXES ========== */
.info-box, .warning-box, .kw-highlight {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.info-box {
    background: rgba(0, 204, 255, 0.1);
    border-left: 4px solid var(--accent);
}

.warning-box {
    background: rgba(255, 204, 0, 0.1);
    border-left: 4px solid #ffcc00;
}

.kw-highlight {
    background: rgba(0, 255, 65, 0.1);
    border-left: 4px solid var(--secondary);
}

/* ========== GAMES GRID ========== */
.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.game-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    border-color: var(--secondary);
    background: rgba(0, 255, 65, 0.05);
    transform: translateY(-4px);
}

.rtp-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
    align-self: flex-start;
}

.game-card h3 {
    margin-top: 0;
    margin-bottom: var(--space-md);
}

.game-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ========== TABLES ========== */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: var(--space-xl) 0;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

th {
    background: var(--gradient);
    color: white;
    font-weight: 600;
    padding: var(--space-lg);
    text-align: left;
}

td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ========== RAKEBACK STEPS ========== */
.rakeback-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.step {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

/* VIP List */
.vip-list {
    list-style: none;
    margin: var(--space-lg) 0;
}

.vip-list li {
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border-left: 4px solid;
}

.vip-level {
    font-weight: 700;
    margin-right: var(--space-sm);
}

.bronze { border-left-color: #cd7f32; }
.silver { border-left-color: #c0c0c0; }
.gold { border-left-color: #ffd700; }
.platinum { border-left-color: #e5e4e2; }
.diamond { border-left-color: #b9f2ff; }

/* ========== FAQ ========== */
.faq-item {
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-md);
    position: relative;
    user-select: none;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: var(--space-lg);
    font-size: 24px;
    font-weight: 300;
    transition: transform var(--transition-base);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--space-lg);
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item.active .faq-answer {
    padding: var(--space-lg);
    max-height: 500px;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--gradient);
    color: white;
    padding: var(--space-xxl) 0;
    text-align: center;
    margin: var(--space-xxl) 0;
    border-radius: var(--radius-lg);
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-section p {
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.cta-buttons .btn {
    background: white;
    color: var(--accent);
    min-width: 180px;
}

.cta-buttons .btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ========== FOOTER ========== */
footer {
    background: #0a0a18;
    padding: var(--space-xxl) 0 var(--space-xl);
    margin-top: var(--space-xxl);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-column h4 {
    color: var(--secondary);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-md);
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-md);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--space-sm);
}

.footer-column a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--secondary);
    padding-left: var(--space-xs);
}

.copyright {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablets and larger phones (≥640px) */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .quick-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets landscape (≥768px) */
@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .nav-links {
        display: flex !important;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero {
        padding: 140px 0 80px;
    }
}

/* Mobile devices (<768px) */
@media (max-width: 767px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        padding: 80px var(--space-lg) var(--space-xl);
        gap: var(--space-xs);
        z-index: var(--z-modal);
        transition: right var(--transition-base);
        overflow-y: auto;
        border-left: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: var(--space-md);
        margin: var(--space-xs) 0;
        font-size: var(--font-size-base);
    }
    
    .nav-links .btn-primary {
        margin-top: var(--space-md);
        width: 100%;
    }
    
    .content-card {
        padding: var(--space-lg);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Small phones (<480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
    }
    
    .content-card {
        padding: var(--space-md);
        border-radius: var(--radius-md);
    }
    
    .section {
        margin-bottom: var(--space-xl);
    }
    
    .games-grid {
        gap: var(--space-md);
    }
    
    .game-card {
        padding: var(--space-md);
    }
}

/* Landscape orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 30px;
    }
    
    .nav-links {
        max-height: 80vh;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .btn-primary {
        -webkit-backface-visibility: hidden;
        -webkit-transform: translateZ(0);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .btn, .mobile-menu-btn, nav, .hero-buttons, footer {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .content-card {
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }
}
/* ========== PAGE HERO ========== */
.page-hero {
    padding: 140px 0 60px;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f23 70%);
    text-align: center;
}

.game-hero {
    padding: 120px 0 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.game-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="2" fill="%2300ff41" opacity="0.1"/></svg>');
    background-size: 50px 50px;
}

.game-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.game-badge {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.game-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .game-hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.game-hero-stats .stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

@media (min-width: 640px) {
    .game-hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ========== QUICK NAVIGATION ========== */
.quick-nav {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 15px 0;
    margin-bottom: 30px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.quick-nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--secondary);
}

/* ========== DETAILED GAME CARDS ========== */
.games-grid.detailed {
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .games-grid.detailed {
        grid-template-columns: repeat(2, 1fr);
    }
}

.game-card.detailed {
    padding: 25px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    font-size: 14px;
}

.game-stats .stat strong {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.feature-tag {
    padding: 5px 12px;
    background: rgba(0, 255, 65, 0.1);
    color: var(--secondary);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.game-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.game-actions .btn {
    flex: 1;
    min-width: 0;
}

/* ========== FEATURE GRID ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin: 30px 0;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.feature:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

/* ========== STEPS ========== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-content {
    flex: 1;
}

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

/* ========== STRATEGY CARDS ========== */
.strategy-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 30px 0;
}

@media (min-width: 992px) {
    .strategy-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.strategy-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all var(--transition-base);
}

.strategy-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.strategy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.risk-tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.risk-tag.low {
    background: rgba(0, 255, 65, 0.2);
    color: var(--secondary);
}

.risk-tag.medium {
    background: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
}

.risk-tag.high {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.strategy-example {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
}

.strategy-example ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.strategy-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
    font-size: 14px;
}

.strategy-pros-cons ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

/* ========== VERIFICATION STEPS ========== */
.verification-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
}

@media (min-width: 768px) {
    .verification-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

.verification-step {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
}

.verification-step h4 {
    margin-top: 0;
    color: var(--accent);
}

/* ========== CODE BLOCKS ========== */
pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--secondary);
}

/* ========== TIPS GRID ========== */
.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
}

@media (min-width: 768px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .tips-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tip-card {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.tip-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.tip-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

/* ========== SMALL BADGES ========== */
.rtp-badge-sm {
    display: inline-block;
    padding: 3px 10px;
    background: var(--gradient);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.btn-sm {
    display: inline-block;
    padding: 6px 15px;
    background: var(--gradient);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
}

/* ========== ACTIVE NAV LINK ========== */
.nav-links a.active {
    background: rgba(0, 255, 65, 0.1);
    color: var(--secondary);
    border-color: var(--secondary);
}
/* ========== CATEGORY PAGES ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.category-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    text-align: center;
}

.category-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.category-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.category-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========== RELATED CONTENT ========== */
.related-content {
    margin: 50px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.related-item:hover {
    border-color: var(--secondary);
    background: rgba(0, 255, 65, 0.05);
}

.related-item h4 {
    margin-top: 0;
    font-size: 16px;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--secondary);
}

.pagination .current {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

/* ========== TABLE OF CONTENTS ========== */
.table-of-contents {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid var(--accent);
}

.table-of-contents h4 {
    margin-top: 0;
    color: var(--accent);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.table-of-contents li {
    margin-bottom: 8px;
    padding-left: 0;
}

.table-of-contents li.toc-h3 {
    padding-left: 15px;
    font-size: 14px;
}

.table-of-contents a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.table-of-contents a:hover {
    color: var(--secondary);
}

/* ========== LAST UPDATED ========== */
.last-updated {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ========== AUTHOR BOX ========== */
.author-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin: 40px 0;
    display: flex;
    gap: 20px;
    align-items: center;
    border-top: 4px solid var(--accent);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.author-info h4 {
    margin-top: 0;
    color: var(--secondary);
}

.author-info p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .game-actions {
        flex-direction: column;
    }
    
    .strategy-pros-cons {
        grid-template-columns: 1fr;
    }
    
    .calculator-results {
        grid-template-columns: 1fr;
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========== LOADING STATES ========== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to {
        left: 100%;
    }
}