/* ============================================
   HOME PAGE - Dark Gaming Theme
   ============================================ */

/* Hero Section */
.hero-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 30px;
}

.hero-banner {
    flex: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    height: 350px;
    border: 1px solid var(--glass-border);
}

.hero-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-banner:hover .hero-banner__img {
    transform: scale(1.02);
}

.hero-banner a {
    display: block;
    height: 100%;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.hero-banner a:hover {
    background: none;
    box-shadow: none;
    transform: none;
}

/* Top Depositors Sidebar */
.hero-sidebar {
    width: 340px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.hero-sidebar__header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.hero-sidebar__header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.07) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

.hero-sidebar__content {
    padding: 20px;
    text-align: center;
}

.hero-sidebar__empty {
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 1.4rem;
}

.hero-sidebar__list {
    margin-bottom: 20px;
}

.hero-sidebar__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
}

.hero-sidebar__item:last-child {
    border-bottom: none;
}

.hero-sidebar__item:hover {
    background: rgba(139, 92, 246, 0.06);
}

.hero-sidebar__user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-sidebar__name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-sidebar__amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

/* Rank badges */
.hero-sidebar__rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.3rem;
    color: white;
    background: rgba(100, 116, 139, 0.3);
    border: 2px solid rgba(100, 116, 139, 0.4);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.hero-sidebar__rank::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50% 50% 0 0;
}

.hero-sidebar__rank--gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.hero-sidebar__rank--silver {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    border-color: rgba(148, 163, 184, 0.6);
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.3);
}

.hero-sidebar__rank--bronze {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    border-color: rgba(205, 127, 50, 0.6);
    box-shadow: 0 0 8px rgba(205, 127, 50, 0.3);
}

.hero-sidebar__btn {
    background: linear-gradient(135deg, var(--primary-color), var(--neon-cyan));
    color: white;
    border-radius: var(--border-radius-pill);
    border: none;
    padding: 12px 20px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.hero-sidebar__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.hero-sidebar__btn:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.hero-sidebar__btn:hover::before {
    left: 100%;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.menu {
    margin-bottom: 60px;
}

.menu__header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.menu__header__title {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 14px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-light), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu__header__title i {
    margin-right: 10px;
    color: var(--neon-cyan);
    -webkit-text-fill-color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.35);
}

.menu__header__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--neon-cyan));
    border-radius: var(--border-radius-pill);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

/* ============================================
   QUICK TRANSACTION MENU
   ============================================ */
.special-menu {
    margin-top: 20px;
}

.transaction__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.transaction__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 28px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.transaction__item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.transaction__item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--neon-cyan)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.transaction__item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
}

.transaction__item:hover::before {
    opacity: 1;
}

.transaction__item:hover::after {
    opacity: 1;
}

.transaction__item:hover .text__transaction__item {
    color: var(--primary-light);
}

.transaction__item:hover .transaction__icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.transaction__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--border-radius-circle);
    transition: var(--transition);
}

.transaction__img {
    font-size: 2.4rem !important;
    background: linear-gradient(135deg, var(--primary-light), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text__transaction__item {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

/* ============================================
   CATEGORY / GAME CARDS
   ============================================ */
.category__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.category__item {
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    position: relative;
    cursor: pointer;
}

.category__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--neon-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.category__item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
    border-color: rgba(139, 92, 246, 0.3);
}

.category__item:hover::before {
    opacity: 1;
}

.category__img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.9);
}

.category__item:hover .category__img {
    transform: scale(1.05);
    filter: brightness(1.0);
}

.latest-account-badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981, #14d9aa);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.category__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 14px 16px 8px;
    color: var(--text-primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.category__title .title-kep {
    color: #fb923c;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(251, 146, 60, 0.35);
}

.category__desc {
    margin: 0 15px 8px;
    color: var(--text-muted);
    font-size: 1.3rem;
    text-align: center;
}

.category__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 16px 14px;
    min-height: 42px;
    align-items: center;
}

.category__action {
    margin-top: auto;
    padding: 12px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
    border-top: 1px solid var(--glass-border);
    color: var(--neon-cyan);
    transition: var(--transition);
}

.category__item:hover .category__action {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.25));
    color: white;
}

/* ============================================
   RECENT TRANSACTIONS
   ============================================ */
.recent-transactions {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 15px 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 50px;
    backdrop-filter: blur(10px);
}

.recent-transactions__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.recent-transactions__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-transactions__marquee {
    overflow: hidden;
    position: relative;
    height: 28px;
}

.recent-transactions__list {
    display: flex;
    align-items: center;
    position: absolute;
    animation: marquee 10s linear infinite;
    white-space: nowrap;
}

.recent-transactions__list:hover {
    animation-play-state: paused;
}

.recent-transactions__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    font-size: 1.4rem;
    color: var(--text-secondary);
}

.recent-transactions__item::before {
    content: '•';
    color: var(--primary-color);
    opacity: 0.5;
}

.recent-transactions__username {
    font-weight: 700;
    color: var(--neon-yellow);
}

.recent-transactions__time {
    color: var(--text-muted);
    font-size: 1.3rem;
}

.recent-transactions__amount {
    font-weight: 700;
    color: var(--neon-green);
}

@keyframes marquee {
    0% {
        transform: translateX(100vw);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ============================================
   WELCOME MODAL
   ============================================ */
.welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s ease-out;
    overflow: auto;
}

.welcome-modal {
    width: 90%;
    max-width: 560px;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
    animation: modalSlideIn 0.5s ease-out;
}

.welcome-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--neon-cyan), var(--accent-color));
}

.welcome-modal__header {
    position: relative;
    padding: 24px 30px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(139, 92, 246, 0.05);
}

.welcome-modal__title {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    line-height: 1;
}

.welcome-modal__close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    transform: rotate(90deg);
}

.welcome-modal__body {
    padding: 25px 30px;
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.welcome-modal__body p {
    margin-bottom: 12px;
}

.welcome-modal__body p:first-child {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text-primary);
}

.welcome-modal__icon {
    display: block;
    width: 35%;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.5));
}

.welcome-modal__feature-list {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 18px;
    margin: 18px 0;
}

.welcome-modal__feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.welcome-modal__feature-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.welcome-modal__feature-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-color), var(--neon-cyan));
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.welcome-modal__feature-text {
    flex: 1;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 1.4rem;
}

.welcome-modal__footer {
    padding: 20px 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: rgba(139, 92, 246, 0.04);
}

.welcome-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--neon-cyan));
    color: white;
    font-weight: 700;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.welcome-modal__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.welcome-modal__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.55);
}

.welcome-modal__btn:hover::before {
    left: 100%;
}

.welcome-modal__btn i {
    margin-right: 8px;
    font-size: 1.6rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-40px) scale(0.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
        transform: translateX(-100%);
    }

    100% {
        background-position: 200% center;
        transform: translateX(100%);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 992px) {
    .hero-wrapper {
        flex-direction: column;
    }

    .hero-sidebar {
        width: 100%;
    }

    .transaction__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .transaction__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .transaction__item {
        padding: 20px 12px;
    }

    .menu__header__title {
        font-size: 1.9rem;
    }

    .hero-banner {
        height: 220px;
    }

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

    .category__img {
        height: 120px;
    }

    .category__title {
        font-size: 1.3rem;
        margin: 10px 8px 6px;
    }

    .category__desc {
        font-size: 1.1rem;
        margin: 0 8px 6px;
    }

    .category__stats {
        margin: 0 8px 10px;
        gap: 4px;
    }

    .category__stats .badge {
        font-size: 1rem;
        padding: 3px 8px;
    }

    .category__action {
        padding: 10px 8px;
        font-size: 1.15rem;
    }

    .welcome-modal {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .welcome-modal__header {
        padding: 15px 20px;
    }

    .welcome-modal__title {
        font-size: 1.9rem;
    }

    .welcome-modal__body {
        padding: 18px 20px;
    }

    .welcome-modal__footer {
        padding: 15px 20px;
    }

    .welcome-modal__btn {
        width: 100%;
    }
}