:root {
    --bg-main: #f4f5f7;
    --bg-surface: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --accent: #FF007A;
    --accent-hover: #E6006E;
    --sidebar-width: 280px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --font-family: 'Outfit', sans-serif;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* App Layout */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.side-nav {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0,0,0,0.05);
    z-index: 100;
}

.brand {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -1px;
    margin-bottom: 60px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.nav-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s;
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.nav-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-sidebar {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-sidebar.outline {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: var(--text-primary);
}

.btn-sidebar.outline:hover {
    border-color: var(--text-primary);
}

.btn-sidebar.solid {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 0, 122, 0.3);
}

.btn-sidebar.solid:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Main Content */
.main-view {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
    max-width: 1400px;
}

/* Bento Layout */
.bento-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
    margin-bottom: 60px;
}

.bento-box {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

/* Hero Box spanning 2 columns and 2 rows conceptually, but let's make it span full top */
.hero-box {
    grid-column: span 3;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #fff0f6 100%);
    min-height: 400px;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 0, 122, 0.1);
    color: var(--accent);
    font-weight: 700;
    border-radius: 30px;
    margin-bottom: 24px;
    font-size: 14px;
}

.hero-headline {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -2px;
}

.hero-lead {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-action {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 25px rgba(255, 0, 122, 0.4);
}

.primary-action:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 0, 122, 0.5);
}

.text-action {
    color: var(--accent);
    padding: 0;
    font-size: 16px;
    margin-top: auto;
    display: inline-block;
}

.text-action:hover {
    transform: translateX(5px);
}

/* Promos */
.promo-box-1, .promo-box-2, .promo-box-3 {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: transform 0.3s;
}

.promo-box-1:hover, .promo-box-2:hover, .promo-box-3:hover {
    transform: translateY(-5px);
}

.promo-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.promo-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Games Slider */
.games-slider-section {
    margin-bottom: 60px;
}

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

.section-header h2 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -1px;
}

.view-all {
    font-weight: 700;
    color: var(--accent);
    font-size: 16px;
}

.games-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none; /* Firefox */
}

.games-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.game-item {
    flex: 0 0 200px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game-hover {
    position: absolute;
    inset: 0;
    background: rgba(255, 0, 122, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-item:hover img {
    transform: scale(1.1);
}

.game-item:hover .game-hover {
    opacity: 1;
}

.play-btn {
    background: #fff;
    color: var(--accent);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 16px;
    transform: translateY(10px);
    transition: transform 0.3s;
}

.game-item:hover .play-btn {
    transform: translateY(0);
}

/* Content Canvas */
.content-canvas {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 60px;
}

.content-canvas h1 {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.content-canvas h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 800;
}

.content-canvas h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 16px;
    font-weight: 700;
}

.content-canvas p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 17px;
}

.content-canvas ul, .content-canvas ol {
    margin-bottom: 30px;
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 17px;
}

.content-canvas li {
    margin-bottom: 10px;
}

.content-canvas table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 40px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.content-canvas th, .content-canvas td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.content-canvas th {
    background: #f9fafb;
    font-weight: 700;
}

.content-canvas tr:last-child td {
    border-bottom: none;
}

.canvas-cta {
    margin-top: 60px;
    text-align: center;
}

/* Footer */
.bottom-footer {
    padding: 40px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-info p {
    color: var(--text-secondary);
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-weight: 600;
    color: var(--text-secondary);
}

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

.footer-badges {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-badges img {
    height: 36px;
}

.footer-copy {
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
    font-size: 14px;
}

/* Live Winners Ticker */
.live-winners-ticker {
    background: var(--bg-surface);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border: 1px solid #e5e7eb;
}

.ticker-content {
    display: inline-block;
    animation: ticker 30s linear infinite;
    padding-left: 100%;
}

.winner-item {
    display: inline-block;
    margin-right: 50px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.winner-item .player {
    font-weight: 700;
    color: var(--text-primary);
}

.winner-item .amount {
    color: var(--accent);
    font-weight: 800;
}

.winner-item .game {
    color: var(--text-primary);
    font-weight: 600;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Providers */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.provider-item {
    background: var(--bg-main);
    padding: 20px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.3s;
    cursor: pointer;
    font-size: 15px;
}

.provider-item:hover {
    background: var(--bg-surface);
    color: var(--accent);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transform: translateY(-3px);
}

/* Payments */
.payments-section {
    margin-bottom: 60px;
}

.payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.payment-item {
    background: var(--bg-main);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 700;
    color: var(--text-primary);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s, border-color 0.3s, color 0.3s;
    font-size: 16px;
}

.payment-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-surface);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-box {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .app-wrapper {
        flex-direction: column;
    }
    .side-nav {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .nav-menu {
        display: none; /* Hide on mobile for simplicity, or make hamburger */
    }
    .nav-footer {
        flex-direction: row;
    }
    .brand {
        margin-bottom: 0;
    }
    .main-view {
        margin-left: 0;
        padding: 20px;
    }
    .bento-layout {
        grid-template-columns: 1fr;
    }
    .hero-box {
        grid-column: 1;
        padding: 30px 20px;
    }
    .hero-headline {
        font-size: 40px;
    }
    .content-canvas {
        padding: 30px 20px;
    }
}
