/* ========================================
   AlfCasino Italy - Pixel Perfect CSS
   Version 10/10
   ======================================== */

@import url('../css2');

:root {
    --bg-dark: #0a0814;
    --bg-main: #0d0b1e;
    --bg-card: #161432;
    --bg-sidebar: #100e24;
    --purple-dark: #2d2650;
    --purple-mid: #5b4b9e;
    --purple-light: #7c5bbd;
    --purple-bright: #9d4edd;
    --green-main: #00d4aa;
    --green-dark: #00a88a;
    --green-glow: rgba(0, 212, 170, 0.4);
    --gold: #ffd700;
    --gold-dark: #cc9900;
    --orange: #ff6b35;
    --pink: #d946ef;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --text-muted: #6b7280;
    --border-purple: #3d3270;
    --header-h: 72px;
    --sidebar-w: 210px;
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-white);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
svg { display: block; }

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--header-h);
    background: linear-gradient(180deg, #1a1640 0%, var(--bg-main) 100%);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 20px;
    z-index: 1000;
    overflow: hidden;
}

.header__border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: url('../images/ui/header-border-bottom-bg.78571673a551f4f8.png') repeat-x center / auto 100%;
}

.header__logo img {
    height: 44px;
    width: auto;
}

.header__login-link {
    color: var(--green-main);
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid var(--green-main);
    border-radius: 6px;
    transition: all 0.2s;
    margin-left: 16px;
}

.header__login-link:hover {
    background: var(--green-main);
    color: var(--bg-dark);
}

.header__search {
    max-width: 300px;
    position: relative;
    margin-left: auto;
    flex: 1;
    min-width: 0;
}

.header__search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.header__search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-purple);
    border-radius: 24px;
    color: var(--text-white);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.header__search input:focus {
    border-color: var(--purple-mid);
    background: rgba(255,255,255,0.08);
}

.header__search input::placeholder { color: var(--text-muted); }

.header__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 1;
    min-width: 0;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    height: 44px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    transition: all 0.15s ease;
    white-space: nowrap;
    background: transparent;
    border: none;
}

/* Primary Button (Green - REGISTRATI) */
.btn--primary {
    color: #0a0814;
    background: url('../images/ui/buttons/primary-button-center-default@2x.713c89eca26daf53.png') repeat-x center / 15px 100%;
    text-shadow: 0 1px 0 rgba(255,255,255,0.2);
    margin: 0 15px;
}

.btn--primary::before,
.btn--primary::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15px;
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.btn--primary::before {
    left: -15px;
    background-image: url('../images/ui/buttons/primary-button-left-default@2x.f2d861fa1601694d.png');
}

.btn--primary::after {
    right: -15px;
    background-image: url('../images/ui/buttons/primary-button-right-default@2x.502d06e6a0697b95.png');
}

.btn--primary:hover {
    background-image: url('../images/ui/buttons/primary-button-center-hover@2x.89d11f4f30d65055.png');
}

.btn--primary:hover::before {
    background-image: url('../images/ui/buttons/primary-button-left-hover@2x.84a5358bd4244fa9.png');
}

.btn--primary:hover::after {
    background-image: url('../images/ui/buttons/primary-button-right-hover@2x.a6eb95e364b98404.png');
}

.btn--primary:active {
    background-image: url('../images/ui/buttons/primary-button-center-pressed@2x.50fc5b033dc7514b.png');
}

.btn--primary:active::before {
    background-image: url('../images/ui/buttons/primary-button-left-pressed@2x.98b406eda412af46.png');
}

.btn--primary:active::after {
    background-image: url('../images/ui/buttons/primary-button-right-pressed@2x.cd64b850efd131c9.png');
}

/* Secondary Button (Purple - ACCEDI) */
.btn--outline {
    color: var(--text-white);
    background: url('../images/ui/buttons/secondary-button-center-default@2x.c14a7dd75d3a6794.png') repeat-x center / 15px 100%;
    border: none;
    margin: 0 15px;
}

.btn--outline::before,
.btn--outline::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15px;
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.btn--outline::before {
    left: -15px;
    background-image: url('../images/ui/buttons/secondary-button-left-default@2x.a031927d4c9d26bf.png');
}

.btn--outline::after {
    right: -15px;
    background-image: url('../images/ui/buttons/secondary-button-right-default@2x.5908ef8ccf67b3d7.png');
}

.btn--outline:hover {
    background-image: url('../images/ui/buttons/secondary-button-center-hover@2x.800aaa5db4473dc6.png');
}

.btn--outline:hover::before {
    background-image: url('../images/ui/buttons/secondary-button-left-hover@2x.f42dd5e7c37f4dcb.png');
}

.btn--outline:hover::after {
    background-image: url('../images/ui/buttons/secondary-button-right-hover@2x.bb9fc3932480897c.png');
}

.btn--outline:active {
    background-image: url('../images/ui/buttons/secondary-button-center-pressed@2x.2468dad5112b3e92.png');
}

.btn--outline:active::before {
    background-image: url('../images/ui/buttons/secondary-button-left-pressed@2x.0282428c9b606f74.png');
}

.btn--outline:active::after {
    background-image: url('../images/ui/buttons/secondary-button-right-pressed@2x.2f8f6b5f7c93e2c3.png');
}

/* CTA Button (Large Green) */
.btn--cta {
    color: #0a0814;
    padding: 0 45px;
    height: 58px;
    font-size: 17px;
    font-weight: 800;
    background: url('../images/ui/buttons/primary-button-center-default@2x.713c89eca26daf53.png') repeat-x center / 15px 100%;
    text-shadow: 0 1px 0 rgba(255,255,255,0.2);
    margin: 0 15px;
    letter-spacing: 1px;
}

.btn--cta::before,
.btn--cta::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15px;
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.btn--cta::before {
    left: -15px;
    background-image: url('../images/ui/buttons/primary-button-left-default@2x.f2d861fa1601694d.png');
}

.btn--cta::after {
    right: -15px;
    background-image: url('../images/ui/buttons/primary-button-right-default@2x.502d06e6a0697b95.png');
}

.btn--cta:hover {
    background-image: url('../images/ui/buttons/primary-button-center-hover@2x.89d11f4f30d65055.png');
}

.btn--cta:hover::before {
    background-image: url('../images/ui/buttons/primary-button-left-hover@2x.84a5358bd4244fa9.png');
}

.btn--cta:hover::after {
    background-image: url('../images/ui/buttons/primary-button-right-hover@2x.a6eb95e364b98404.png');
}

/* Small Button (Purple - ISCRIVITI) */
.btn--sm {
    padding: 0 20px;
    height: 36px;
    font-size: 11px;
    color: var(--text-white);
    background: url('../images/ui/buttons/tertiary-button-center-default@2x.8c8c870a6363e2d8.png') repeat-x center / 15px 100%;
    margin: 0 12px;
}

.btn--sm::before,
.btn--sm::after {
    content: '';
    position: absolute;
    top: 0;
    width: 12px;
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.btn--sm::before {
    left: -12px;
    background-image: url('../images/ui/buttons/tertiary-button-left-default@2x.462740332c0b415f.png');
}

.btn--sm::after {
    right: -12px;
    background-image: url('../images/ui/buttons/tertiary-button-right-default@2x.7d4c931b70ce3730.png');
}

.btn--sm:hover {
    background-image: url('../images/ui/buttons/tertiary-button-center-hover@2x.4db936ac440c0912.png');
}

.btn--sm:hover::before {
    background-image: url('../images/ui/buttons/tertiary-button-left-hover@2x.bc34bf5d7c4bb238.png');
}

.btn--sm:hover::after {
    background-image: url('../images/ui/buttons/tertiary-button-right-hover@2x.9e7404b2da969d64.png');
}

.btn--link {
    color: var(--text-gray);
    padding: 8px 0;
    font-weight: 500;
    height: auto;
}

.btn--lang, .btn--chat {
    padding: 0 24px;
    height: 44px;
    font-size: 13px;
}

.btn--lang {
    color: var(--text-white);
    background: url('../images/ui/buttons/secondary-button-center-default@2x.c14a7dd75d3a6794.png') repeat-x center / 15px 100%;
    margin: 0 15px;
}

.btn--lang::before,
.btn--lang::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15px;
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.btn--lang::before {
    left: -15px;
    background-image: url('../images/ui/buttons/secondary-button-left-default@2x.a031927d4c9d26bf.png');
}

.btn--lang::after {
    right: -15px;
    background-image: url('../images/ui/buttons/secondary-button-right-default@2x.5908ef8ccf67b3d7.png');
}

.btn--chat {
    color: #0a0814;
    font-weight: 800;
    background: url('../images/ui/buttons/primary-button-center-default@2x.713c89eca26daf53.png') repeat-x center / 15px 100%;
    margin: 0 15px;
}

.btn--chat::before,
.btn--chat::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15px;
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.btn--chat::before {
    left: -15px;
    background-image: url('../images/ui/buttons/primary-button-left-default@2x.f2d861fa1601694d.png');
}

.btn--chat::after {
    right: -15px;
    background-image: url('../images/ui/buttons/primary-button-right-default@2x.502d06e6a0697b95.png');
}

/* ========================================
   LAYOUT
   ======================================== */
.layout {
    display: flex;
    padding-top: var(--header-h);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--border-purple);
    z-index: 100;
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--purple-mid);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--purple-light);
}

/* Spin Rally Banner */
.spin-rally-banner {
    position: relative;
    padding: 12px;
    background: #1a1a2e;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid #2a2a45;
    flex-shrink: 0;
}

.spin-rally-banner__close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #6b6b8a;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.spin-rally-banner__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-right: 20px;
}

.spin-rally-banner__flag {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.spin-rally-banner__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.spin-rally-banner__title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spin-rally-banner__subtitle {
    font-size: 11px;
    color: #8b8ba7;
}

.spin-rally-banner__footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spin-rally-banner__time {
    font-size: 13px;
    font-weight: 700;
    color: #00d4aa;
    flex-shrink: 0;
}

.spin-rally-banner__btn {
    flex: 1;
    padding: 8px 12px;
    background: linear-gradient(180deg, #00e5bb 0%, #00a88a 100%);
    border: none;
    border-radius: 6px;
    color: #0a0814;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

/* Promo Buttons */
.sidebar__promo {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.promo-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 6px 8px;
    border-radius: 10px;
    text-align: center;
    min-height: 90px;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.promo-btn--crab {
    background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%);
}

.promo-btn--wheel {
    background: linear-gradient(180deg, #9333ea 0%, #6b21a8 100%);
}

.promo-btn img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 6px;
}

.promo-btn span {
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    text-transform: uppercase;
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-gray);
    transition: all 0.15s ease;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-white);
}

.nav-link--active {
    background: rgba(124, 58, 237, 0.15);
    color: var(--text-white);
}

.nav-link--support {
    line-height: 1.3;
}

.sidebar__divider {
    height: 1px;
    background: var(--border-purple);
    margin: 12px 0;
}

.sidebar__bottom {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-purple);
}

.lang-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-gray);
}

.lang-select img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 16px 20px;
    width: calc(100% - var(--sidebar-w));
    min-width: 0;
    overflow-x: hidden;
}

/* ========================================
   CATEGORY BAR
   ======================================== */
.category-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: 2px solid var(--border-purple);
    border-radius: 20px;
    color: var(--text-white);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cat-btn:hover {
    border-color: var(--purple-mid);
    background: rgba(91, 75, 158, 0.15);
}

.cat-btn--gold .cat-icon { color: #ffd700; }
.cat-btn--green .cat-icon { color: #00d4aa; }
.cat-btn--orange .cat-icon { color: #ff9500; }
.cat-btn--purple .cat-icon { color: #d946ef; }
.cat-btn--cyan .cat-icon { color: #00d4ff; }
.cat-btn--red .cat-icon { color: #ff4444; }
.cat-btn--pink .cat-icon { color: #ff69b4; }
.cat-btn--blue .cat-icon { color: #4a9eff; }

.cat-icon {
    font-size: 14px;
}

/* ========================================
   HERO BANNER
   ======================================== */
.hero {
    position: relative;
    margin-bottom: 28px;
    border-radius: 16px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid rgba(100, 150, 255, 0.5);
    border-radius: 16px;
    pointer-events: none;
    z-index: 3;
    box-shadow: inset 0 0 30px rgba(100, 150, 255, 0.2);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 16px;
    pointer-events: none;
    z-index: 1;
}

.hero__content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: 700px;
    width: 80%;
    text-align: center;
}

.hero__badge {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(90deg, var(--pink), var(--purple-mid));
    border-radius: 24px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero__title {
    display: block;
    font-size: 56px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 32px;
    color: #fff;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.7), 0 4px 40px rgba(0,0,0,0.5);
}

.hero__visual {
    width: 100%;
}

.hero__visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    min-height: 500px;
}

.hero__frame {
    display: none;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    margin-bottom: 32px;
}

.section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section__head h2,
.section__head .section__title {
    font-size: 18px;
    font-weight: 800;
    display: block;
}

.section__more {
    font-size: 13px;
    color: var(--green-main);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.section__more:hover {
    color: var(--green-dark);
}

.section__more span {
    font-size: 16px;
}

.section__sub {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: -8px;
    margin-bottom: 16px;
}

.text-green { color: var(--green-main); font-weight: 700; }
.text-gold { color: var(--gold); }

/* ========================================
   GRIDS
   ======================================== */
.grid {
    display: grid;
    gap: 12px;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--7 { grid-template-columns: repeat(7, 1fr); }
.grid--8 { grid-template-columns: repeat(8, 1fr); }

/* ========================================
   GAME CARDS
   ======================================== */
.card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    aspect-ratio: 2/3;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--border-purple);
    border-radius: 12px;
    pointer-events: none;
    transition: border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.25);
}

.card:hover::after {
    border-color: var(--purple-mid);
}

.card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Wide cards */
.card--wide {
    aspect-ratio: 16/10;
}

/* ========================================
   TOP 5 SECTION - I Migliori Giochi
   ======================================== */
.section--top5 {
    margin-bottom: 60px;
}

.section--top5 .section__head {
    margin-bottom: 20px;
}

.section__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-arrow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.nav-arrow:hover {
    border-color: var(--green-main);
    color: var(--green-main);
}

/* Top 5 Grid */
.top5-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Top 5 Card */
.top5-card {
    position: relative;
}

.top5-card__inner {
    position: relative;
    width: 100%;
    aspect-ratio: 0.67;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card);
}

/* Encadrement avec image */
.top5-card__inner::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: url('../images/ui/basic-frame.d66e07fe4448c6cb.png') center / 100% 100% no-repeat;
    pointer-events: none;
    z-index: 10;
}

.top5-card:hover .top5-card__inner::before {
    background-image: url('../images/ui/hover-frame.352da8d0240afea8.png');
}

.top5-card__inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Badge NUOVO */
.top5-card__badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    background: linear-gradient(180deg, #00d4aa 0%, #00a88a 100%);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #0a0814;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Rank numbers */
.top5-card__rank {
    position: absolute;
    bottom: -8px;
    left: 4px;
    font-size: 72px;
    font-weight: 900;
    font-family: 'Arial Black', Impact, sans-serif;
    font-style: italic;
    line-height: 0.75;
    z-index: 20;
    color: transparent;
    -webkit-text-stroke: 3px #d946ef;
    text-shadow: 0 0 12px rgba(217, 70, 239, 0.4);
}

/* DROPS & WINS badge */
.top5-card__badge--drops {
    background: linear-gradient(180deg, #f5a623 0%, #e8860c 100%) !important;
    color: #fff !important;
}

/* Casino Live Cards */
.card--live {
    aspect-ratio: 0.52;
}

/* Sport Cards */
.card--sport {
    aspect-ratio: 0.85;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px 20px;
}

.card--sport::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: url('../images/ui/basic-frame.d66e07fe4448c6cb.png') center / 100% 100% no-repeat;
    pointer-events: none;
    z-index: 5;
}

.card--sport::after {
    display: none;
}

.card--sport img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 85%;
    height: auto;
    max-height: 70%;
    object-fit: contain;
}

.card__sport-label {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    padding: 8px 14px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
}

/* Badges */
.card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 9px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 15;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.card__badge--new {
    background: linear-gradient(135deg, var(--green-main) 0%, var(--green-dark) 100%);
    color: #0a0814;
}

.card__badge--excl {
    background: linear-gradient(135deg, var(--pink) 0%, var(--purple-mid) 100%);
    color: #fff;
}

/* Jackpot/Price Labels */
.card__jackpot {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: var(--gold);
}

.card__live {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 8px 12px;
    background: linear-gradient(90deg, var(--green-main), var(--green-dark));
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: #0a0814;
}

/* ========================================
   RALLY CARDS
   ======================================== */
.rally-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.rally {
    display: flex;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-purple);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rally:hover {
    border-color: var(--purple-mid);
    transform: translateY(-4px);
}

.rally__img {
    position: relative;
    width: 100px;
    flex-shrink: 0;
}

.rally__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rally__premium {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    background: var(--purple-mid);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
}

.rally__body {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.rally__body h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rally__info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 8px;
    font-size: 11px;
    margin-bottom: auto;
}

.rally__info dt {
    color: var(--text-gray);
}

.rally__info dd {
    color: var(--text-white);
    font-weight: 600;
    text-align: right;
}

.rally .btn--sm {
    margin-top: 12px;
    width: 100%;
}

/* ========================================
   PROMO BANNERS
   ======================================== */
.promo {
    position: relative;
    margin: 32px 0;
    border-radius: 16px;
    overflow: hidden;
}

.promo::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid rgba(100, 150, 255, 0.5);
    border-radius: 16px;
    pointer-events: none;
    z-index: 3;
    box-shadow: inset 0 0 30px rgba(100, 150, 255, 0.2);
}

.promo__content {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 400px;
}

.promo__content h2,
.promo__content .promo__title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    display: block;
}

.promo__bg {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   INFO SECTION
   ======================================== */
.info {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 28px;
    margin: 32px 0;
    text-align: center;
    border: 1px solid var(--border-purple);
}

.info h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.info p {
    color: var(--text-gray);
    font-size: 13px;
    max-width: 600px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

/* ========================================
   BOTTOM ACTIONS
   ======================================== */
.bottom-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 32px 0;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #161432;
    border-radius: 20px 20px 0 0;
    padding: 40px 24px 24px;
    margin-top: 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.footer__col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-white);
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.footer__col li a {
    font-size: 15px;
    color: var(--text-gray);
    transition: color 0.2s;
}

.footer__col li a:hover {
    color: var(--green-main);
}

.footer__pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--border-purple);
    border-bottom: 1px solid var(--border-purple);
}

.pay-icon {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-gray);
}

.footer__more-link {
    color: var(--green-main);
    font-size: 15px;
}

.footer__age {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.footer__age span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid #dc2626;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    color: #dc2626;
}

.footer__disc {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================
   SEO CONTENT
   ======================================== */
.seo-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 24px;
    line-height: 1.8;
    font-size: 18px;
}

.seo-content h1 {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 28px;
    color: var(--text-white);
}

.seo-content h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-white);
}

.seo-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--green-main);
}

.seo-content h4 {
    font-size: 22px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--purple-light);
}

.seo-content p {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-gray);
    font-weight: 500;
}

.seo-content ul,
.seo-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-gray);
}

.seo-content ul {
    list-style: disc;
}

.seo-content ol {
    list-style: decimal;
}

.seo-content li {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 500;
}

.seo-content strong {
    color: var(--text-white);
    font-weight: 700;
}

.seo-content a {
    color: var(--green-main);
    text-decoration: underline;
    transition: color 0.2s;
}

.seo-content a:hover {
    color: var(--green-dark);
}

/* SEO Tables */
.seo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--bg-sidebar);
    border-radius: 12px;
    overflow: hidden;
}

.seo-table th,
.seo-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-purple);
}

.seo-table th {
    background: var(--purple-dark);
    font-weight: 700;
    color: var(--text-white);
    font-size: 17px;
}

.seo-table td {
    font-size: 16px;
}

.seo-table td {
    color: var(--text-gray);
    font-weight: 500;
}

.seo-table tr:last-child td {
    border-bottom: none;
}

.seo-table tr:hover td {
    background: rgba(93, 75, 158, 0.1);
}

/* Pros & Cons Lists */
.seo-content .list-pros li::marker {
    content: "✅ ";
}

.seo-content .list-cons li::marker {
    content: "⚠️ ";
}

/* Testimonials */
.testimonials {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.testimonials blockquote {
    background: var(--bg-sidebar);
    border-left: 4px solid var(--green-main);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
}

.testimonials blockquote p {
    font-style: italic;
    margin-bottom: 12px;
    color: var(--text-white);
}

.testimonials cite {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
}

/* FAQ Accordion */
.faq {
    margin: 24px 0;
}

.faq details {
    background: var(--bg-sidebar);
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
}

.faq summary {
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.faq summary:hover {
    background: var(--purple-dark);
}

.faq summary::marker {
    display: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    font-size: 20px;
    color: var(--green-main);
    font-weight: 700;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    padding: 0 24px 18px;
    margin: 0;
}

/* Disclaimer */
.disclaimer {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--orange);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 32px;
}

.disclaimer p {
    margin: 0;
    color: var(--orange);
    font-size: 12px;
    line-height: 1.6;
}

/* CTA Boxes */
.cta-box {
    text-align: center;
    margin: 32px 0;
}

.cta-box--final {
    background: var(--bg-sidebar);
    border-radius: 16px;
    padding: 32px;
    margin-top: 40px;
}

.cta-box--final p {
    color: var(--text-white);
    margin-bottom: 16px;
}

.cta-box--final .btn {
    margin-top: 16px;
}

/* Info Boxes */
.info-box {
    background: var(--bg-sidebar);
    border-left: 4px solid var(--green-main);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 24px 0;
}

.info-box p {
    margin: 0;
    color: var(--text-white);
}

.info-box--highlight {
    border-left-color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
}

.info-box--highlight p {
    color: var(--gold);
}
/* ========================================
   RESPONSIVE CSS - AlfCasino Italy
   Mobile First Approach
   ======================================== */

/* ========================================
   MOBILE MENU BURGER
   ======================================== */
.menu-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-burger__line {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-burger__line:nth-child(1) { margin-bottom: 5px; }
.menu-burger__line:nth-child(3) { margin-top: 5px; }

.menu-burger.active .menu-burger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-burger.active .menu-burger__line:nth-child(2) {
    opacity: 0;
}

.menu-burger.active .menu-burger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

