:root {
    --bg-body: #0b0717;
    --bg-sidebar: #151026;
    --bg-header: #151026;
    --bg-card: #1f1936;
    --accent-orange: #ff6600;
    --accent-orange-hover: #ff8533;
    --accent-gold: #ffcc00;
    --accent-green: #00ff44;
    --accent-red: #ff3333;
    --accent-blue: #3388ff;
    --text-main: #ffffff;
    --text-muted: #8b85a3;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --header-height: 80px;
    --sidebar-width: 260px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- SIDEBAR --- */
aside {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 100;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

aside::-webkit-scrollbar { width: 4px; }
aside::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 30px;
    padding: 0 10px;
    letter-spacing: -0.5px;
    color: #fff;
}

.nav-group {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: 8px;
    margin-bottom: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
    background: linear-gradient(90deg, rgba(255, 102, 0, 0.1), transparent);
    color: var(--text-main);
    border-left: 3px solid var(--accent-orange);
    padding-left: 13px; /* Compensate border */
}

.nav-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: var(--transition);
}

.nav-item:hover svg {
    fill: var(--accent-orange);
    transform: scale(1.1);
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 12px 0;
}

/* Install App Widget */
.install-app-widget {
    margin-top: auto;
    background: linear-gradient(145deg, #1f1936, #151026);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 20px;
}

.install-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.install-desc { font-size: 11px; color: var(--text-muted); margin-bottom: 15px; }
.btn-install {
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-install:hover { background: var(--accent-orange); }

/* --- MAIN CONTENT --- */
main {
    flex: 1;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

/* --- HEADER --- */
header {
    height: var(--header-height);
    background: rgba(21, 16, 38, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    background: #0b0717;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    width: 240px;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px rgba(255,102,0,0.2);
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    font-family: inherit;
    width: 100%;
    font-size: 14px;
}

.header-tabs {
    display: flex;
    background: #0b0717;
    padding: 4px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.tab {
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    transition: var(--transition);
}

.tab.active {
    background: #2d2452;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
}

.notification-dot {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    border: 2px solid var(--bg-header);
}

.btn-icon:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.btn-login {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-login:hover { color: var(--accent-orange); }

a.btn-login,
a.btn-signup,
a.btn-promo,
a.btn-install {
    text-decoration: none;
}

.btn-signup {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.25);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 102, 0, 0.4);
}

.content-wrap {
    padding: 30px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

/* --- PROMO BANNERS --- */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.promo-card {
    border-radius: var(--radius-lg);
    padding: 30px;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-size: cover;
    background-position: center;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(11,7,23,0.9) 100%);
    z-index: 1;
}

/* Shine effect */
.promo-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.5s;
    z-index: 1;
}

.promo-card:hover::after { left: 150%; transition: 0.7s; }

.promo-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-orange);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Updated Banner Images */
.promo-card.welcome { 
    background-image: url('img/welcome.png'); 
}
.promo-card.cashback { 
    background-image: url('img/cashback.png'); 
}
.promo-card.highroller { 
    background-image: url('img/hightroller.png'); 
}

.promo-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    width: fit-content;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.15);
}

.promo-text-wrap { z-index: 2; margin-bottom: auto; }

.promo-title {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.promo-title span {
    color: var(--accent-gold);
    display: block;
    margin-top: 8px;
    font-size: 28px;
}

.promo-sub {
    font-size: 16px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    opacity: 0.9;
    text-transform: uppercase;
}

.btn-promo {
    background: var(--accent-orange);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    width: fit-content;
    cursor: pointer;
    z-index: 2;
    margin-top: 30px;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-promo:hover {
    background: #fff;
    color: var(--accent-orange);
    transform: scale(1.05);
}

/* --- BIG WINS --- */
.big-wins-section { margin-bottom: 50px; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--accent-green);
    background: rgba(0, 255, 68, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 68, 0.2);
}

.pulsate {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(0, 255, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 68, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(0, 255, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 68, 0); }
}

.section-navs { display: flex; gap: 12px; }

.nav-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-circle:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.wins-scroll-wrapper {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.wins-track {
    display: flex;
    gap: 16px;
    animation: scrollWins 40s linear infinite;
}

@keyframes scrollWins {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-260px * 5 - 16px * 5)); }
}

.win-card {
    min-width: 260px;
    background: #1a142e;
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.win-card:hover {
    background: #251b4a;
    border-color: var(--accent-green);
    transform: translateY(-2px);
}

.win-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #333;
    flex-shrink: 0;
    overflow: hidden;
}
.win-img svg { width: 100%; height: 100%; }
/* Add style for images in Big Wins */
.win-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.win-info { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.win-game { font-weight: 700; color: var(--text-main); white-space: nowrap; }
.win-user { font-size: 12px; color: var(--text-muted); }
.win-amount { color: var(--accent-green); font-weight: 800; font-size: 16px; }

/* --- GAMES GRID --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: var(--accent-orange);
    z-index: 5;
}

.game-thumb {
    aspect-ratio: 1/1; /* Square thumbnails for images */
    background: #231b3e;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Updated CSS for Images */
.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-thumb img {
    transform: scale(1.1);
}

.game-card-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.2s;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.game-card:hover .game-card-fav { opacity: 1; }
.game-card-fav:hover { background: var(--accent-orange); color: white; }

/* Stickers */
.badge-sticker {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2;
}
.badge-hot { background: var(--accent-red); }
.badge-new { background: var(--accent-blue); }

.game-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient(to top, rgba(11,7,23,1) 0%, rgba(11,7,23,0.8) 60%, rgba(11,7,23,0) 100%);
}

.game-title {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.game-provider {
    font-size: 11px;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 600;
}

/* --- SEO SECTION & FOOTER --- */
.seo-container {
    margin-top: 80px;
    background: #100c1d;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.seo-inner { padding: 80px 40px; max-width: 1200px; margin: 0 auto; }

.seo-content h2 { color: var(--accent-gold); margin-bottom: 30px; font-size: 32px; font-weight: 800; }
.seo-content h3 { color: var(--text-main); margin: 40px 0 20px; font-size: 22px; font-weight: 700; }
.seo-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 16px; line-height: 1.8; }
.seo-content ul { color: var(--text-muted); margin: 20px 0 30px 20px; line-height: 1.8; }
.seo-content table { 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0; 
    margin: 40px 0; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.1);
    background: #18122b;
}
.seo-content th { background: #1f1936; padding: 20px; color: var(--accent-orange); text-align: left; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,0.05); }
.seo-content td { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); }

/* Table responsive wrapper (horizontal scroll on tablet) */
.seo-content .table-responsive {
    margin: 40px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: #18122b;
}

.seo-content .table-responsive table {
    margin: 0;
    min-width: 480px;
}

/* Footer Payments */
.footer-payments {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.payment-icons {
    display: flex;
    gap: 12px;
    opacity: 0.9;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 600px;
}

.payment-icon {
    width: 56px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    padding: 6px;
}

.payment-icon:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.3);
}

.payment-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(20%) brightness(1.2); /* Slight adjustment for dark theme */
}

.copyright { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 10px; }

/* --- MOBILE BOTTOM NAV --- */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(21, 16, 38, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 12px 0 24px; /* Extra padding for iOS home bar */
    z-index: 1000;
    justify-content: space-around;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-item svg { width: 24px; height: 24px; fill: currentColor; transition: var(--transition); }
.mobile-item.active { color: var(--accent-orange); }
.mobile-item.active svg { transform: translateY(-3px); filter: drop-shadow(0 0 8px rgba(255, 102, 0, 0.6)); }

/* --- MEDIA QUERIES --- */
@media (max-width: 1024px) {
    aside { display: none; }
    main { margin-left: 0; width: 100%; padding-bottom: 100px; }
    header { padding: 0 20px; height: 70px; }
    .header-tabs, .header-left .search-bar { display: none; }
    .promo-grid { grid-template-columns: 1fr; gap: 16px; }
    .mobile-nav { display: flex; }
    .seo-inner { padding: 40px 20px; }
    .win-card { min-width: 220px; }
    .promo-card { min-height: 240px; }
    .promo-title { font-size: 28px; }
    .content-wrap { padding: 20px; }
    .btn-signup { padding: 10px 20px; font-size: 13px; }
}

/* Mobile: table as cards */
@media (max-width: 640px) {
    .seo-content .table-responsive {
        overflow-x: visible;
        padding: 0;
        border: none;
        background: transparent;
    }

    .seo-content .table-responsive table {
        min-width: 0;
        display: block;
        border: none;
        background: transparent;
    }

    .seo-content .table-responsive thead {
        display: none;
    }

    .seo-content .table-responsive tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: var(--radius-sm);
        overflow: hidden;
        background: #18122b;
    }

    .seo-content .table-responsive td {
        display: block;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .seo-content .table-responsive tr td:last-child {
        border-bottom: none;
    }

    .seo-content .table-responsive td:first-child {
        background: rgba(255, 102, 0, 0.12);
        color: var(--accent-orange);
        font-weight: 800;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .seo-content .table-responsive td:nth-child(2)::before,
    .seo-content .table-responsive td:nth-child(3)::before {
        display: inline;
        font-weight: 700;
        color: var(--text-main);
        margin-right: 6px;
    }

    .seo-content .table-responsive table.compare-slot-live td:nth-child(2)::before {
        content: "Slot Machine Online: ";
    }
    .seo-content .table-responsive table.compare-slot-live td:nth-child(3)::before {
        content: "Live Casino: ";
    }
    .seo-content .table-responsive table.compare-app-browser td:nth-child(2)::before {
        content: "Liraspin App: ";
    }
    .seo-content .table-responsive table.compare-app-browser td:nth-child(3)::before {
        content: "Browser Mobile: ";
    }
}

@media (max-width: 480px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .game-thumb { aspect-ratio: 1/1.2; }
    .btn-login { padding: 0 10px; font-size: 13px; }
    .logo-area { font-size: 20px; }
    .payment-icons { gap: 10px; }
    .payment-icon { width: 40px; height: 26px; }
}