:root {
    --bg: #09070f;
    --panel: rgba(20, 15, 29, .94);
    --panel-light: rgba(34, 23, 48, .9);
    --purple: #8528ff;
    --purple-light: #bd72ff;
    --gold: #ffbd19;
    --text: #f7f3fb;
    --muted: #aaa2b5;
    --border: rgba(174, 100, 255, .25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(91, 23, 160, .18), transparent 50%),
        var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

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

.navbar {
    height: 78px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: rgba(8, 7, 12, .97);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--purple-light);
}

.brand img { width: 55px; height: 55px; object-fit: contain; }

.navbar nav { display: flex; align-items: center; gap: 27px; }

.navbar nav a {
    color: #c4bdce;
    font-size: 14px;
    font-weight: 650;
    transition: color .2s;
}

.navbar nav a:hover, .navbar nav a.active { color: white; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 21px;
    border: 0;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.button-primary {
    color: white;
    background: linear-gradient(110deg, #7620f6, #a52dff);
    box-shadow: 0 5px 22px rgba(130, 36, 255, .22);
}

.button-gold {
    color: #17100a;
    background: linear-gradient(110deg, #e9a900, #ffd34e);
}

.button-disabled {
    color: #c8b4e0;
    background: rgba(133, 40, 255, .16);
    border: 1px solid rgba(174, 100, 255, .3);
    cursor: default;
}

.hero {
    min-height: 340px;
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(90deg, rgba(8, 5, 15, .62), rgba(8, 5, 15, .28), rgba(8, 5, 15, .62)),
        linear-gradient(0deg, rgba(9, 7, 15, .78), transparent 55%),
        url('/assets/images/casino-bg.png') center 48% / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 10%, rgba(8, 5, 15, .3) 85%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; padding: 48px 20px; max-width: 760px; }

.eyebrow, .section-kicker {
    color: var(--purple-light);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.hero h1 {
    margin: 12px 0 8px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: .98;
    font-weight: 950;
    letter-spacing: -3px;
    text-shadow: 0 5px 35px rgba(0, 0, 0, .65);
}

.hero h1 span {
    display: block;
    color: #bd67ff;
    text-shadow: 0 0 28px rgba(174, 74, 255, .8);
}

.hero-content > p {
    color: #e1d9e9;
    font-size: 15px;
    line-height: 1.6;
    margin: 17px auto 23px;
}

.hero-note { font-size: 11px !important; color: #b9a9c9 !important; margin: 13px 0 0 !important; }

.content { width: min(1450px, 92%); margin: 0 auto; }

.daily-card {
    margin-top: 25px;
    padding: 22px 25px;
    display: flex;
    align-items: center;
    gap: 22px;
    background: linear-gradient(110deg, rgba(55, 22, 83, .95), rgba(21, 15, 31, .98));
    border: 1px solid rgba(170, 85, 255, .55);
    border-radius: 15px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, .2);
}

.daily-icon { font-size: 38px; }

.daily-text { flex: 1; }

.daily-text h2, .section-heading h2, .shop-copy h2, .panel h2 {
    margin: 6px 0;
    font-size: 22px;
}

.daily-text p, .section-heading p, .shop-copy p, .panel > p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.section { padding-top: 46px; }

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-count {
    font-size: 10px;
    color: var(--purple-light);
    font-weight: 900;
    letter-spacing: 1px;
    border: 1px solid var(--border);
    padding: 9px 12px;
    border-radius: 8px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.game-card {
    min-width: 0;
    background: linear-gradient(145deg, rgba(28, 21, 38, .98), rgba(14, 12, 19, .98));
    border: 1px solid var(--border);
    border-radius: 13px;
    overflow: hidden;
    transition: transform .2s, border-color .2s;
}

.game-card:hover { transform: translateY(-3px); border-color: rgba(190, 112, 255, .7); }

.game-art {
    height: 105px;
    display: grid;
    place-items: center;
    font-size: 49px;
    background:
        radial-gradient(circle at 50% 50%, rgba(162, 51, 255, .35), transparent 62%),
        linear-gradient(135deg, #261039, #100d19 65%, #21102f);
    border-bottom: 1px solid rgba(174, 100, 255, .2);
}

.game-card:nth-child(4n+2) .game-art { background: linear-gradient(135deg, #422013, #160d16 70%); }
.game-card:nth-child(4n+3) .game-art { background: linear-gradient(135deg, #14213b, #160d22 70%); }
.game-card:nth-child(4n) .game-art { background: linear-gradient(135deg, #301044, #11101c 70%); }

.game-info { padding: 14px; }

.game-info h3 { margin: 0 0 7px; font-size: 15px; }

.game-info p {
    min-height: 38px;
    margin: 0 0 13px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.game-status {
    display: inline-block;
    color: #c7a1ed;
    font-size: 10px;
    font-weight: 750;
    padding: 6px 9px;
    border-radius: 6px;
    background: rgba(151, 73, 230, .12);
    border: 1px solid rgba(151, 73, 230, .2);
}

.shop-banner {
    margin-top: 42px;
    padding: 23px 25px;
    display: flex;
    align-items: center;
    gap: 23px;
    border-radius: 15px;
    border: 1px solid rgba(174, 100, 255, .5);
    background:
        radial-gradient(ellipse at 10% 50%, rgba(137, 41, 255, .27), transparent 52%),
        linear-gradient(110deg, #241132, #140e20);
}

.shop-visual {
    min-width: 95px;
    font-size: 58px;
    text-align: center;
    filter: drop-shadow(0 0 15px rgba(182, 98, 255, .65));
}

.shop-copy { flex: 1; }

.shop-copy h2 { font-size: 21px; }

.shop-note {
    display: block;
    margin-top: 9px;
    color: #c5a9e4;
    font-size: 11px;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 35px 0 55px;
}

.panel {
    padding: 23px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.panel h2 { margin-bottom: 18px; }

.login-message {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.profile-placeholder {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 12px;
    color: white;
    font-size: 27px;
    font-weight: 900;
    background: linear-gradient(140deg, #9c35ff, #3e1477);
}

.login-message h3 { margin: 0 0 5px; font-size: 14px; }

.login-message p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.empty-icon { display: block; margin-top: 22px; font-size: 30px; }

footer {
    min-height: 65px;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #857d90;
    font-size: 11px;
    border-top: 1px solid rgba(174, 100, 255, .15);
}

@media (max-width: 1050px) {
    .navbar { padding: 0 3%; }
    .navbar nav { gap: 13px; }
    .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .navbar { height: auto; min-height: 70px; flex-wrap: wrap; padding: 10px 4%; }
    .brand img { width: 43px; height: 43px; }
    .navbar nav { order: 3; width: 100%; justify-content: space-between; overflow-x: auto; padding: 8px 0; }
    .navbar nav a { font-size: 12px; white-space: nowrap; }
    .navbar > .button { padding: 11px 13px; font-size: 11px; }
    .hero { min-height: 300px; }
    .daily-card { flex-wrap: wrap; padding: 18px; gap: 13px; }
    .daily-text { flex-basis: calc(100% - 65px); }
    .daily-card > .button { width: 100%; }
    .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .game-art { height: 85px; }
    .game-info { padding: 11px; }
    .game-info h3 { font-size: 13px; }
    .game-info p { font-size: 11px; }
    .shop-banner { flex-wrap: wrap; padding: 18px; gap: 13px; }
    .shop-visual { min-width: 55px; font-size: 42px; }
    .shop-banner > .button { width: 100%; white-space: normal; }
    .bottom-grid { grid-template-columns: 1fr; }
    footer { flex-direction: column; }
}

@media (max-width: 390px) {
    .games-grid { grid-template-columns: 1fr; }
}

/* Profil joueur */
.profile-user-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.profile-avatar, .profile-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 13px;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-user-row h3 {
    margin: 0 0 5px;
}

.profile-user-row p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.profile-balance {
    background: rgba(133, 40, 255, .12);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 15px;
    margin-bottom: 15px;
}

.profile-balance span,
.profile-stats span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.profile-balance strong {
    display: block;
    color: var(--gold);
    font-size: 22px;
    margin-top: 7px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.profile-stats div {
    background: rgba(255,255,255,.035);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 12px 5px;
    text-align: center;
}

.profile-stats strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.logout-link {
    display: inline-block;
    color: #c58aff;
    font-size: 12px;
    margin-top: 18px;
}


.daily-action {
    margin: 0;
}

.daily-action button {
    cursor: pointer;
}

.daily-feedback {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
}

.daily-feedback.success {
    color: #75e6a2;
}

.daily-feedback.error {
    color: #ff8989;
}

