@media (max-width: 1024px) {
    .casino-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {
    /* Switch to mobile nav */
    .menu-toggle {
        display: flex;
    }

    .header-cta-group {
        display: none;
    }

    .header-inner {
        height: 60px;
    }

    /* Slide-in panel from right */
    .nav-main {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: #0f1629;
        z-index: 999;
        padding: 0;
        gap: 0;
        overflow-y: auto;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(59, 130, 246, 0.15);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
        justify-content: flex-start;
    }

    .nav-main.open {
        right: 0;
    }

    /* Mobile header inside slide panel */
    .nav-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(59, 130, 246, 0.1);
        flex-shrink: 0;
    }

    .nav-mobile-header .logo {
        font-size: 0.95rem;
    }

    .nav-mobile-header .logo img {
        height: 28px;
    }

    .nav-close-btn {
        background: transparent;
        border: none;
        color: var(--text-secondary);
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.2s;
    }

    .nav-close-btn:hover {
        color: #fff;
        background: rgba(59, 130, 246, 0.1);
    }

    /* Nav links in mobile */
    .nav-main > .nav-link {
        padding: 16px 20px;
        font-size: 0.95rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nav-main > .nav-link::after {
        display: none;
    }

    .nav-main > .nav-link:hover {
        background: rgba(59, 130, 246, 0.08);
    }

    /* Dropdown in mobile */
    .nav-dropdown {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nav-dropdown .nav-dropdown-toggle {
        flex: 1;
        padding: 16px 20px;
        font-size: 0.95rem;
        border-radius: 0;
    }

    .nav-dropdown .nav-dropdown-toggle::after {
        display: none;
    }

    .nav-dropdown .nav-dropdown-toggle .nav-chevron {
        display: none;
    }

    .dropdown-toggle-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: transparent;
        border: none;
        color: var(--text-muted);
        cursor: pointer;
        flex-shrink: 0;
        transition: color 0.2s, background 0.2s;
        border-radius: 8px;
        margin-right: 8px;
    }

    .dropdown-toggle-mobile:hover {
        color: #60a5fa;
        background: rgba(59, 130, 246, 0.08);
    }

    .nav-dropdown.open > .dropdown-toggle-mobile {
        color: #60a5fa;
    }

    .nav-dropdown.open > .dropdown-toggle-mobile svg {
        transform: rotate(180deg);
    }

    .dropdown-toggle-mobile svg {
        transition: transform 0.2s ease;
    }

    /* Dropdown menu in mobile = accordion */
    .nav-dropdown-menu {
        display: none;
        position: static;
        transform: none;
        opacity: 1;
        background: rgba(0, 0, 0, 0.15);
        border: none;
        border-radius: 0;
        box-shadow: none;
        min-width: 0;
        width: 100%;
        flex-basis: 100%;
        padding: 4px 0;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
        opacity: 1;
        transform: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        padding: 12px 20px 12px 36px;
        font-size: 0.9rem;
        border-radius: 0;
    }

    /* Mobile CTA at bottom */
    .nav-mobile-cta {
        display: block;
        padding: 20px;
        margin-top: auto;
        border-top: 1px solid rgba(59, 130, 246, 0.1);
    }

    .nav-mobile-cta .header-btn-signup {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Casino cards */
    .casino-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Article grid */
    .article-grid {
        grid-template-columns: 1fr;
    }

    /* Typography */
    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Carousel */
    .kw-carousel-row {
        gap: var(--space-sm);
    }

    .kw-modal {
        padding: var(--space-md);
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .casino-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .casino-card {
        padding: var(--space-sm);
    }

    .casino-card .casino-name {
        font-size: 0.85rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 0 var(--space-md);
    }
}

/* ===== MOBILE OVERFLOW FIX ===== */
@media (max-width: 1000px) {
    .site-header,
    .main,
    .site-footer,
    .hush-footer,
    .hush-hero,
    .promo-banner,
    .providers-section,
    .features-section,
    .steps-section,
    .trust-section,
    .bonus-section,
    .articles-section,
    .faq-section,
    .final-cta,
    .section {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* ===== MOBILE-FIRST HOMEPAGE FIXES ===== */
@media (max-width: 768px) {
    /* Hero */
    .hush-hero {
        padding: 40px 0 30px;
        min-height: auto;
    }
    .hush-hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    .hush-hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    .hush-hero-trust {
        font-size: 0.78rem;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .hush-hero-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    /* Providers */
    .providers-section {
        padding: 24px 0;
    }
    .providers-section h3 {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }
    .providers-track {
        gap: 20px;
    }
    .providers-track img {
        height: 22px;
    }

    /* Feature cards */
    .features-section {
        padding: 40px 0;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .feature-card {
        padding: 24px 20px;
        display: flex;
        flex-direction: row;
        text-align: left;
        gap: 16px;
        align-items: center;
    }
    .feature-card-icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
        margin: 0;
        border-radius: 12px;
    }
    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Steps */
    .steps-section {
        padding: 48px 0;
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 32px;
    }
    .step-card {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 20px 16px;
        gap: 16px;
        background: linear-gradient(135deg, rgba(30,41,59,0.4), rgba(15,23,42,0.6));
        border: 1px solid rgba(59,130,246,0.1);
        border-radius: 14px;
    }
    .step-number-badge {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.1rem;
        margin-bottom: 0;
        border-radius: 10px;
    }
    .step-card-img {
        display: none;
    }
    .step-card h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    .step-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .steps-buttons {
        margin-top: 28px;
        gap: 12px;
    }
    .steps-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Section titles */
    .section-title {
        font-size: 1.4rem;
    }
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    .section-eyebrow {
        font-size: 0.8rem;
    }

    /* Casino filters */
    .casino-filters-section {
        padding: 16px;
        border-radius: 14px;
    }
    .filters-title {
        font-size: 16px;
    }

    /* Trust section */
    .trust-section {
        padding: 48px 0;
    }
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .trust-card {
        padding: 24px 20px;
        display: flex;
        flex-direction: row;
        text-align: left;
        gap: 16px;
        align-items: center;
    }
    .trust-card-icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
        margin: 0;
        border-radius: 12px;
    }
    .trust-card h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    .trust-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Bonus section */
    .bonus-section {
        padding: 48px 0;
    }
    .bonus-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
    }
    .bonus-card {
        padding: 24px 20px;
    }
    .bonus-card-amount {
        font-size: 1.8rem;
    }

    /* Articles */
    .articles-section {
        padding: 48px 0;
    }
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* FAQ */
    .faq-section {
        padding: 48px 0;
    }
    .faq-question {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    .faq-answer-inner {
        padding: 0 16px 16px;
        font-size: 0.85rem;
    }

    /* Final CTA */
    .final-cta {
        padding: 48px 0;
    }
    .final-cta h2 {
        font-size: 1.5rem;
    }
    .final-cta p {
        font-size: 0.95rem;
    }
    .final-cta .btn {
        padding: 14px 32px;
        font-size: 0.95rem;
    }

    /* Rich article responsive */
    .art-wrapper {
        padding: 2rem 0.5rem 1rem;
    }
    .art-toc {
        padding: 1.2rem 1.5rem;
    }
    .art-h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 380px) {
    .hush-hero h1 {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.2rem;
    }
    .fc-card {
        padding: 16px;
    }
    .fc-card-name {
        font-size: 16px;
    }
    .fc-bonus-value {
        font-size: 15px;
    }
}
