

:root {
    
    --color-primary: #2c3e50;
    --color-secondary: #34495e;
    --color-accent: #e67e22;
    --color-accent-hover: #d35400;
    --color-text: #333333;
    --color-text-light: #7f8c8d;
    --color-bg: #f8f9fa;
    --color-surface: #ffffff;
    --color-border: #e0e0e0;
    --color-success: #2ecc71;
    --color-danger: #e74c3c;

    
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-family-heading: 'Outfit', sans-serif;
    --line-height-base: 1.6;

    
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;

    
    --container-width: 1200px;
    --header-height: 70px;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.1);
}


*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family-base);
    font-size: 16px;
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    line-height: 1.2;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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


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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.4);
}



.pagination,
.search-pagination {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination ul,
.search-pagination ul,
.search-pagination .page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination li,
.search-pagination li {
    list-style: none;
    margin: 0;
}


.pagination a,
.pagination span,
.search-pagination a,
.search-pagination span,
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}


.pagination a:hover,
.search-pagination a:hover,
a.page-numbers:hover {
    background: #f9fafb;
    border-color: #fb923c;
    color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.15);
}


.pagination .current,
.search-pagination .current,
span.page-numbers.current {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    border-color: #fb923c;
    color: #fff;
    font-weight: 600;
    cursor: default;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.25);
}


.pagination .dots,
.search-pagination .dots,
span.page-numbers.dots {
    border-color: transparent;
    background: transparent;
    cursor: default;
    pointer-events: none;
}

.pagination .dots:hover,
.search-pagination .dots:hover,
span.page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
}


.pagination .prev,
.pagination .next,
.search-pagination .prev,
.search-pagination .next,
a.prev.page-numbers,
a.next.page-numbers {
    font-weight: 600;
    padding: 0 16px;
    background: #fff;
    border-color: #d1d5db;
}

.pagination .prev:hover,
.pagination .next:hover,
.search-pagination .prev:hover,
.search-pagination .next:hover,
a.prev.page-numbers:hover,
a.next.page-numbers:hover {
    background: #fb923c;
    border-color: #fb923c;
    color: #fff;
}


.pagination a:focus,
.search-pagination a:focus,
a.page-numbers:focus {
    outline: 2px solid #fb923c;
    outline-offset: 2px;
}


@media (max-width: 640px) {

    .pagination,
    .search-pagination {
        margin: 2rem 0;
    }

    .pagination a,
    .pagination span,
    .search-pagination a,
    .search-pagination span,
    .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
        padding: 0 10px;
    }

    
    .pagination li:not(:first-child):not(:last-child):not(.current),
    .search-pagination li:not(:first-child):not(:last-child):not(.current) {
        display: none;
    }

    .pagination .current,
    .pagination .prev,
    .pagination .next,
    .pagination .dots,
    .search-pagination .current,
    .search-pagination .prev,
    .search-pagination .next,
    .search-pagination .dots {
        display: inline-flex !important;
    }
}




.header-search-wrapper {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 2rem;
    position: relative;
    z-index: 101;
}


.search-input-wrapper {
    position: relative;
}

.search-field {
    width: 100%;
    height: 54px;
    padding: 0 24px;
    border-radius: 27px;
    border: 2px solid transparent;
    background: #f1f3f5;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    -webkit-appearance: none;
    appearance: none;
}


.search-field::-webkit-search-decoration,
.search-field::-webkit-search-cancel-button,
.search-field::-webkit-search-results-button,
.search-field::-webkit-search-results-decoration {
    display: none;
}

.search-field:focus {
    background: #fff;
    border-color: #fb923c;
    
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    outline: none;
}


.live-search-results {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: #fff;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: none;
    overflow: hidden;
    z-index: 102;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.live-search-results.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.live-search-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.1s;
    color: #334155;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

.live-search-item:last-child {
    border-bottom: none;
}

.live-search-item:hover {
    background: #f8f9fa;
    color: #fb923c;
}

.live-search-icon {
    margin-right: 12px;
    color: #cbd5e1;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.live-search-item:hover .live-search-icon {
    color: #fb923c;
}

.live-search-highlight {
    font-weight: 700;
    color: #fb923c;
}

.live-search-meta {
    display: flex;
    flex-direction: column;
}

.live-search-type {
    font-size: 0.75rem;
    color: #999;
    margin-left: auto;
    background: #f1f3f5;
    padding: 2px 8px;
    border-radius: 4px;
}


.search-dim-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

body.search-focused .search-dim-overlay {
    opacity: 1;
    visibility: visible;
}

body.search-focused .header-search-wrapper {
    z-index: 101;
}




.site-header {
    top: 0;
    margin-top: 0 !important;
    transform: none !important;
    position: sticky;
    width: 100%;
}


body.admin-bar .site-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px !important;
    }
}


body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


.menu-toggle {
    display: none;
    
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    margin-left: 15px;
}

.hamburger {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #334155;
    
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle:hover .hamburger span {
    background-color: #fb923c;
    
}


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

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

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


@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    
    .header-actions {
        display: flex;
        align-items: center;
    }
}




.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.flex-column {
    flex-direction: column;
}

.text-white {
    color: #fff !important;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-4,
.col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}


.bg-dark-header {
    background-color: #0f172a;
    color: white;
}

.bg-darker {
    background-color: #020617;
}

.text-gray-400 {
    color: #94a3b8;
}

.text-warning {
    color: #f59e0b;
}

.text-primary {
    color: #3b82f6;
}


.hero-grid-compact {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 25px;
}

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

@media (max-width: 992px) {
    .hero-grid-compact {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}


.game-card-modern {
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.game-card-modern.card-light-bg {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.66%;
    
    overflow: hidden;
    background: #000;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card-modern:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.game-card-modern:hover .card-overlay {
    opacity: 1;
}

.btn-play-round {
    font-size: 24px;
    color: white;
    background: #f59e0b;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.badge-hot,
.badge-new {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    z-index: 2;
}

.badge-hot {
    background: #ef4444;
}

.badge-new {
    background: #10b981;
}

.card-details {
    padding: 10px;
}

.card-title {
    font-size: 14px;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f8fafc;
}

.game-card-modern.card-light-bg .card-title {
    color: #1e293b;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}


.provider-strip-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    

    .home-unified-dark {
        background-color: #020617;
        
        color: #e2e8f0;
    }

    
    .game-card-simple {
        background: #1e293b;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: transform 0.2s;
        position: relative;
    }

    .game-card-simple:hover {
        transform: translateY(-5px);
        border-color: #f59e0b;
    }

    .card-details-simple {
        padding: 12px;
    }

    .card-details-simple .card-title {
        margin: 0;
        font-size: 14px;
        color: #e2e8f0;
        font-weight: 500;
        text-align: center;
    }

    .game-card-simple:hover .card-title {
        color: #f59e0b;
    }

    
    .tile-monochrome .tile-bg {
        background: #1e293b;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .tile-monochrome:hover .tile-bg {
        background: #334155;
        border-color: #f59e0b;
    }

    
    .section-feature-megaways,
    .section-feature-buy {
        background: transparent !important;
        box-shadow: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .border-top-dark {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .border-bottom-dark {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .bg-dark-header {
        background-color: #0f172a !important;
    }

    
    .admin-bar .site-header {
        top: 32px;
    }

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.provider-strip-scroll::-webkit-scrollbar {
    display: none;
}

.provider-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.provider-chip:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}


.collection-tile {
    display: block;
    position: relative;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
}

.tile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.tile-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    
}

.collection-tile:hover .tile-bg {
    transform: scale(1.05);
}


.tile-bonus-buy .tile-bg {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.tile-megaways .tile-bg {
    background: linear-gradient(135deg, #059669, #10b981);
}

.tile-high-vol .tile-bg {
    background: linear-gradient(135deg, #dc2626, #ea580c);
}

.tile-icon {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}


.section-feature-megaways {
    background: linear-gradient(to right, #1e40af, #2563eb);
}

.section-feature-buy {
    background: linear-gradient(to right, #991b1b, #b91c1c);
}

.standard-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .standard-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .standard-game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.btn-link-gold {
    color: #f59e0b;
    font-weight: 600;
    text-decoration: none;
}

.btn-link-gold:hover {
    color: #fbbf24;
    text-decoration: underline;
}

.btn-outline-dark {
    border: 1px solid #1e293b;
    color: #1e293b;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.btn-outline-dark:hover {
    background: #1e293b;
    color: white;
}