/* Dashboard Styles */
.dashboard-container {
    width: 100%;
    max-width: 480px;
    /* Slightly wider for dashboard */
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Navbar */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1b1e;
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid #333;
}

.saldo-box {
    background-color: #1f271b;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid #004d40;
}

.saldo-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.saldo-value {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-icon {
    color: #ccc;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
}

/* Carousel */
.carousel-container {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.carousel-slide.active {
    display: block;
    animation: fadeEffect 1s;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4
    }

    to {
        opacity: 1
    }
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    background-color: #0f332a;
    padding: 10px;
    border-radius: 8px;
}

.stat-item {
    color: white;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

/* Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #111;
    padding: 8px 0;
    white-space: nowrap;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.ticker {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 20s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    color: #ccc;
    font-size: 0.8rem;
}

.ticker-h {
    color: var(--accent-green);
    font-weight: bold;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Dashboard Menu Cards */
.dash-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dash-card {
    background-color: #1a1b1e;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #333;
}

.dash-card .card-title {
    font-size: 0.8rem;
    color: #888;
}

.dash-card .card-value {
    font-size: 1.1rem;
    color: var(--accent-green);
    font-weight: bold;
    margin-top: 5px;
}

/* Navigation Icons */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background-color: #1a1b1e;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #333;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 0.75rem;
    cursor: pointer;
}

.nav-item.active {
    color: white;
}

.nav-icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

/* Online Players Banner */
.online-banner {
    background: linear-gradient(90deg, #4b2c45 0%, #4a3e20 100%);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    border: 1px solid #555;
}

/* Game Cards */
.game-card {
    background-color: #1a1b1e;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-icon {
    font-size: 2rem;
}

.game-info h3 {
    font-size: 1rem;
    color: white;
    margin-bottom: 2px;
}

.game-info p {
    font-size: 0.75rem;
    color: #888;
}

.game-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #ccc;
}

.stat-row {
    display: flex;
    justify-content: space-between;
}

.highlight-val {
    color: var(--primary-yellow);
    font-weight: bold;
}

.highlight-green {
    color: var(--accent-green);
    font-weight: bold;
}

.play-btn {
    background-color: var(--primary-yellow);
    color: black;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Scratch Game Styles */
.scratch-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    height: 100px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    border: 1px solid #444;
}

.scratch-card-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ff9800;
    /* Orange color from reference */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.5s ease-out;
    background-image: radial-gradient(#ffb74d 1px, transparent 1px);
    background-size: 10px 10px;
}

.scratch-card.revealed .scratch-card-cover {
    opacity: 0;
    pointer-events: none;
}

.scratch-card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.card-value {
    color: var(--accent-green);
    font-weight: bold;
    font-size: 0.9rem;
}

.nav-back-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}