@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap");

.dashboard-home {
    border: 1px solid #2e4f62;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, #183240 0%, #132a37 100%);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
    font-family: "Space Grotesk", sans-serif;
}

body:not(.chat-open) .dashboard-home {
    max-width: 1520px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 18px;
    padding: 24px;
    background:
        radial-gradient(120% 130% at 20% 20%, rgba(57, 97, 121, 0.28) 0%, rgba(18, 43, 58, 0) 55%),
        linear-gradient(180deg, #223b4a 0%, #1d3442 100%);
}

.hero-copy h2 {
    margin: 0 0 14px;
    color: #eef8ff;
    font-size: 48px;
    line-height: 1.2;
}

.hero-copy p {
    margin: 0;
    color: #c2d8e6;
    font-size: 16px;
}

.vip-progress-wrap h3 {
    margin: 0 0 12px;
    color: #f0f8ff;
    font-size: 32px;
    font-weight: 700;
}

.vip-progress-card {
    border: 1px solid #ba9d7b;
    border-radius: 10px;
    background: linear-gradient(180deg, #1a3341 0%, #122a37 100%);
    padding: 14px 16px;
    min-height: 120px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.vip-progress-main {
    flex: 1;
}

.vip-user {
    margin: 0;
    color: #eef8ff;
    font-size: 29px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vip-user i {
    font-size: 14px;
    color: #d4e6f3;
}

.vip-percent {
    margin: 10px 0 6px;
    color: #e7f4fc;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vip-percent i {
    color: #9db6c7;
    font-size: 13px;
}

.vip-bar-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #0b1f2b;
    overflow: hidden;
    border: 1px solid #294556;
}

.vip-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, #f2d2a6 0%, #dca867 100%);
}

.vip-next {
    margin: 8px 0 0;
    color: #d3e4f0;
    font-size: 24px;
}

.vip-badge {
    width: 84px;
    min-width: 84px;
    height: 84px;
    border-radius: 16px;
    display: grid;
    place-items: center;
}

.vip-badge i {
    font-size: 58px;
    color: #bb9166;
    text-shadow: 0 0 0 #f3dfc4, 0 0 10px rgba(0, 0, 0, 0.24);
}

.hero-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 10px;
    border: 1px solid #5aa7f0;
    background: linear-gradient(180deg, #2f90ec 0%, #2674c8 100%);
    color: #f3fbff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.hero-social {
    margin-top: 18px;
}

.hero-social > span {
    color: #c7dae6;
    font-size: 15px;
}

.social-row {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-row button {
    min-height: 40px;
    border: 1px solid #476779;
    border-radius: 8px;
    background: #304b5b;
    color: #e8f2f8;
    padding: 0 12px;
    font: 600 15px "Space Grotesk", sans-serif;
}

.hero-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hero-category-card {
    border: 1px solid #3c5f72;
    border-radius: 10px;
    background: #1d3442;
    overflow: hidden;
    text-decoration: none;
}

.hero-category-card.casino .category-image {
    background: linear-gradient(135deg, #0f73f0 0%, #1f92ff 100%);
}

.hero-category-card.poker .category-image {
    background: linear-gradient(135deg, #0aa357 0%, #10cb67 100%);
}

.category-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 82%;
    max-height: 142px;
    object-fit: contain;
}

.category-meta {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #eff8ff;
}

.category-meta strong {
    font-size: 16px;
}

.category-meta span {
    color: #d4e7f2;
    font-size: 14px;
}

.category-meta i {
    color: #29f35f;
    font-size: 9px;
}

.dashboard-discovery {
    padding: 18px 18px 20px;
}

.dash-search {
    min-height: 46px;
    border: 1px solid #3f6276;
    border-radius: 9px;
    background: #102838;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.dash-search i {
    color: #b4cddd;
}

.dash-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #edf8ff;
    font: 600 16px "Space Grotesk", sans-serif;
}

.dash-section {
    margin-top: 20px;
}

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

.section-header h3 {
    margin: 0;
    color: #eaf4fb;
    font-size: 31px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-header h3 i {
    color: #9fc6dd;
    font-size: 16px;
}

.rail-nav {
    display: flex;
    gap: 8px;
}

.rail-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #496c80;
    background: #2a4556;
    color: #d9e8f2;
    cursor: pointer;
}

.games-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 132px);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
}

.games-rail::-webkit-scrollbar {
    height: 8px;
}

.games-rail::-webkit-scrollbar-thumb {
    background: #355768;
    border-radius: 999px;
}

.dash-game-card {
    text-decoration: none;
    color: inherit;
}

.dash-game-card img {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    border: 1px solid rgba(220, 236, 248, 0.18);
    display: block;
}

.dash-game-card .name {
    display: block;
    margin-top: 8px;
    color: #eef8ff;
    font-size: 15px;
    font-weight: 700;
}

.dash-game-card .playing {
    display: block;
    color: #d0e3ef;
    font-size: 13px;
}

.dash-game-card .playing i {
    color: #2cf261;
    font-size: 8px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.promo-card {
    border: 1px solid #3b6074;
    border-radius: 10px;
    background: linear-gradient(135deg, #26475b 0%, #1a3647 100%);
    padding: 14px;
}

.promo-card.alt {
    background: linear-gradient(135deg, #314d75 0%, #203d5f 100%);
}

.promo-card.gold {
    background: linear-gradient(135deg, #75602d 0%, #4d3d1b 100%);
}

.promo-card .tag {
    display: inline-flex;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    align-items: center;
    background: rgba(240, 249, 255, 0.18);
    color: #eaf6ff;
    font-size: 12px;
    font-weight: 700;
}

.promo-card h4 {
    margin: 12px 0 6px;
    color: #f1f9ff;
    font-size: 20px;
}

.promo-card p {
    margin: 0;
    color: #c4d9e7;
    font-size: 14px;
    line-height: 1.35;
}

.dashboard-home[data-auth-state="guest"] .logged-only {
    display: none;
}

.dashboard-home[data-auth-state="logged-in"] .guest-only {
    display: none;
}

@media (max-width: 1180px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .vip-user {
        font-size: 25px;
    }

    .vip-percent {
        font-size: 20px;
    }

    .vip-next {
        font-size: 17px;
    }
}

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