* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #000;
    --bg2: #0a0a0a;
    --bg3: #111;
    --text: #fff;
    --text2: #999;
    --text3: #666;
    --red: #e63946;
    --red2: #c1121f;
    --red3: #8d0b1a;
    --green: #2ecc71;
    --green2: #27ae60;
    --yellow: #f39c12;
    --gold: #f1c40f;
    --gold2: #d4a800;
    --border: #1a1a1a;
    --border2: #2a2a2a;
    --shadow: rgba(230,57,70,0.3);
    --shadow-green: rgba(46,204,113,0.3);
    --shadow-gold: rgba(241,196,15,0.3);
    --grad: linear-gradient(135deg, #e63946, #ff6b6b);
    --grad-red: linear-gradient(135deg, #e63946, #c1121f);
    --grad-gold: linear-gradient(135deg, #f1c40f, #f39c12);
    --grad-green: linear-gradient(135deg, #2ecc71, #27ae60);
    --grad-dark: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 75px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg2);
}

::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red2);
}

/* ============================================================
   WINNERS BAR
   ============================================================ */
.winners-bar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.winners-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0.5;
}

.winners-track {
    display: flex;
    gap: 40px;
    animation: winnersScroll 50s linear infinite;
    width: max-content;
}

.winners-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    padding: 4px 12px;
    background: var(--bg2);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.winners-item .trophy-icon {
    font-size: 18px;
    color: var(--gold);
    animation: trophyGlow 1.5s ease-in-out infinite;
}

.winners-item .game-icon {
    font-size: 20px;
    color: var(--red);
}

.winners-item .winner-name {
    color: var(--red);
    font-weight: 800;
}

.winners-item .winner-amount {
    color: var(--green);
    font-weight: 800;
    background: rgba(46,204,113,0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

@keyframes winnersScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes trophyGlow {
    0%, 100% { filter: drop-shadow(0 0 2px var(--gold)); }
    50% { filter: drop-shadow(0 0 8px var(--gold)); }
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--bg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.top-logo {
    height: 32px;
    width: auto;
    border-radius: 4px;
    transition: var(--transition);
}

.top-logo:hover {
    transform: scale(1.05);
}

.user-area {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.balance-box {
    text-align: right;
    padding: 4px 10px;
    background: var(--bg2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    min-width: 80px;
}

.balance-box:hover {
    border-color: var(--border2);
}

.balance-label {
    display: block;
    font-size: 9px;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--green);
}

.balance-value.bonus {
    color: var(--gold);
}

/* ============================================================
   PROVIDERS BAR
   ============================================================ */
.providers-bar {
    background: var(--bg);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.providers-scroll {
    display: flex;
    gap: 20px;
    padding: 0 16px;
    animation: providerScroll 15s linear infinite;
    width: max-content;
}

.provider-item {
    flex-shrink: 0;
    height: 30px;
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: var(--transition);
}

.provider-item:hover {
    opacity: 1;
}

.provider-item img {
    height: 24px;
    width: auto;
    filter: grayscale(100%) brightness(2);
    transition: var(--transition);
}

.provider-item:hover img {
    filter: grayscale(0) brightness(1);
}

@keyframes providerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   PROMO SLIDER
   ============================================================ */
.promo-slider-container {
    margin: 0;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: var(--bg2);
    border: none;
    width: 100%;
    max-width: 2560px;
    margin: 0 auto;
    aspect-ratio: 2560 / 750;
    max-height: 750px;
    position: relative;
}

.promo-slider-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    pointer-events: none;
    z-index: 1;
}

.promo-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
}

.promo-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    touch-action: none;
}

.promo-slide-fallback {
    display: none;
    width: 100%;
    height: 100%;
    background: var(--grad);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
}

.promo-slide-fallback i {
    font-size: 40px;
}

.promo-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.promo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.promo-dot:hover {
    background: rgba(255,255,255,0.6);
    transform: scale(1.2);
}

.promo-dot.active {
    background: var(--red);
    width: 24px;
    border-radius: 5px;
}

.promo-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 12px;
}

.promo-thumb {
    background: var(--bg2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.promo-thumb:hover {
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
}

.promo-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    touch-action: none;
}

.promo-thumb-title {
    padding: 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    line-height: 1.3;
}

.promo-thumb-fallback {
    display: none;
    width: 100%;
    height: 80px;
    background: var(--grad);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.promo-thumb-fallback i {
    font-size: 24px;
}

/* ============================================================
   TAB CONTENT
   ============================================================ */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-area {
    padding: 8px 12px;
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
    font-size: 14px;
    font-weight: 700;
    margin: 16px 0 10px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title i {
    color: var(--red);
}

.section-title .badge-new {
    background: var(--red);
    color: var(--text);
    font-size: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

/* ============================================================
   GAMES GRID
   ============================================================ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 4px;
}

.game-card {
    background: var(--bg2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-slow);
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6));
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover {
    border-color: var(--red);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--shadow);
}

.game-card.blocked {
    opacity: 0.6;
    filter: grayscale(0.3);
    cursor: not-allowed;
}

.game-card.blocked:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.game-card.blocked .play-btn {
    display: none;
}

.game-card .blocked-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
    border-radius: var(--radius);
}

.game-card.blocked .blocked-overlay {
    display: flex;
}

.game-card .blocked-overlay i {
    font-size: 30px;
    color: var(--gold);
}

.game-card .blocked-overlay span {
    font-size: 11px;
    color: var(--text2);
    text-align: center;
    padding: 0 16px;
}

.game-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-card .game-info {
    padding: 10px 12px;
    position: relative;
    z-index: 2;
}

.game-card .game-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.game-card .game-provider {
    font-size: 10px;
    color: var(--red);
}

.game-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--red);
    color: var(--text);
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
    z-index: 3;
    box-shadow: 0 4px 20px var(--shadow);
}

.game-card:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================================
   NEWS
   ============================================================ */
.news-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
}

.news-scroll::-webkit-scrollbar {
    display: none;
}

.news-tab {
    padding: 8px 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text2);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.news-tab:hover {
    border-color: var(--red);
    color: var(--text);
}

.news-tab.active {
    background: var(--red);
    border-color: transparent;
    color: var(--text);
}

.news-card {
    background: var(--bg2);
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    transition: var(--transition);
}

.news-card:hover {
    border-color: var(--border2);
}

.news-card h4 {
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--text);
}

.news-card p {
    font-size: 11px;
    color: var(--text2);
    line-height: 1.5;
}

.news-card .news-date {
    font-size: 10px;
    color: var(--red);
    margin-top: 6px;
}

/* ============================================================
   MISSIONS
   ============================================================ */
.mission-card {
    background: var(--bg2);
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.mission-card:hover {
    border-color: var(--border2);
}

.mission-card h4 {
    font-size: 13px;
    margin-bottom: 3px;
    color: var(--text);
}

.mission-card p {
    font-size: 11px;
    color: var(--text2);
}

.mission-reward {
    color: var(--gold);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    margin-left: 10px;
    background: rgba(241,196,15,0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

/* ============================================================
   SUPPORT
   ============================================================ */
.support-card {
    background: var(--bg2);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.support-card:hover {
    border-color: var(--border2);
}

.support-card .support-icon {
    font-size: 40px;
    color: var(--red);
    margin-bottom: 10px;
}

.support-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text);
}

.support-card p {
    font-size: 12px;
    color: var(--text2);
    margin-bottom: 14px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg2);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 10px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border2);
}

.card h3 {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.card h3 i {
    color: var(--red);
}

/* ============================================================
   FORM
   ============================================================ */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--red);
    box-shadow: 0 0 20px var(--shadow);
}

.form-group input::placeholder {
    color: var(--text3);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* ============================================================
   QUICK AMOUNTS
   ============================================================ */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.quick-amounts button {
    padding: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.quick-amounts button:hover {
    border-color: var(--red);
    background: rgba(230,57,70,0.1);
    transform: translateY(-2px);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: block;
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text);
    font-family: inherit;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: width 0.6s ease, height 0.6s ease;
    transform: translate(-50%, -50%);
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-red {
    background: var(--grad-red);
}

.btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
}

.btn-green {
    background: var(--grad-green);
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-green);
}

.btn-gold {
    background: var(--grad-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-gold);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--red);
    background: rgba(230,57,70,0.05);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    width: auto;
    padding: 8px 14px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================================
   DEPOSIT TABS
   ============================================================ */
.deposit-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.deposit-tabs button {
    flex: 1;
    padding: 10px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text2);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.deposit-tabs button:hover {
    border-color: var(--red);
    color: var(--text);
}

.deposit-tabs button.active {
    background: var(--red);
    border-color: transparent;
    color: var(--text);
}

/* ============================================================
   PIN GROUP
   ============================================================ */
.pin-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.pin-group input {
    width: 44px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    padding: 0;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

.pin-group input:focus {
    border-color: var(--red);
    box-shadow: 0 0 20px var(--shadow);
}

/* ============================================================
   ACCOUNT CARD
   ============================================================ */
.account-card {
    background: var(--bg);
    padding: 14px;
    border-radius: var(--radius);
    margin-bottom: 14px;
    font-size: 12px;
    border: 1px solid var(--border);
}

.account-card p {
    margin-bottom: 3px;
    color: var(--text2);
}

.account-card p strong {
    color: var(--text);
}

/* ============================================================
   HISTORY
   ============================================================ */
.history-item {
    background: var(--bg2);
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.history-item:hover {
    border-color: var(--border2);
}

.history-item .info h5 {
    font-size: 12px;
    margin-bottom: 2px;
    color: var(--text);
}

.history-item .info span {
    font-size: 10px;
    color: var(--text2);
}

.amount {
    font-size: 13px;
    font-weight: 700;
}

.amount.positive {
    color: var(--green);
}

.amount.negative {
    color: var(--red);
}

.amount.pending {
    color: var(--gold);
}

.badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending {
    background: rgba(241,196,15,0.2);
    color: var(--gold);
}

.badge-completed {
    background: rgba(46,204,113,0.2);
    color: var(--green);
}

.badge-cancelled {
    background: rgba(230,57,70,0.2);
    color: var(--red);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 30px;
    color: var(--text2);
    font-size: 13px;
}

.empty-state i {
    font-size: 36px;
    margin-bottom: 8px;
    color: var(--border);
    display: block;
}

/* ============================================================
   HISTORY TABS
   ============================================================ */
.history-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.history-tabs button {
    flex: 1;
    padding: 8px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text2);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.history-tabs button:hover {
    border-color: var(--red);
    color: var(--text);
}

.history-tabs button.active {
    background: var(--red);
    border-color: transparent;
    color: var(--text);
}

/* ============================================================
   MODALS
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 200;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-box {
    background: var(--bg2);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    width: 90%;
    max-width: 380px;
    position: relative;
    animation: modalIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-box::-webkit-scrollbar {
    width: 3px;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
    z-index: 5;
}

.modal-close:hover {
    border-color: var(--red);
    color: var(--red);
}

.modal-title {
    text-align: center;
    margin-bottom: 14px;
    font-size: 16px;
    color: var(--text);
}

/* ============================================================
   PIX MODAL
   ============================================================ */
.pix-amount-display {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 12px;
}

.pix-qr-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 12px;
    display: block;
    background: var(--text);
    border-radius: var(--radius);
    padding: 8px;
}

.pix-code-box {
    background: var(--bg);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--text2);
    word-break: break-all;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    border: 1px solid var(--border);
}

/* ============================================================
   AUTH MODAL
   ============================================================ */
.auth-modal-box {
    max-width: 420px;
    padding: 20px 18px;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 18px;
    background: var(--bg3);
    border-radius: var(--radius);
    padding: 3px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text2);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-family: inherit;
}

.auth-tab:hover {
    color: var(--text);
}

.auth-tab.active {
    background: var(--red);
    color: var(--text);
}

.auth-modal-box .form-group {
    margin-bottom: 12px;
}

.auth-modal-box .form-group input {
    padding: 11px;
    font-size: 13px;
}

/* ============================================================
   PROFILE
   ============================================================ */
.profile-section {
    text-align: center;
    padding: 20px 0;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--red);
    object-fit: cover;
}

.profile-status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid var(--bg);
}

.profile-id {
    font-size: 20px;
    font-weight: 800;
    margin-top: 10px;
    color: var(--text);
    letter-spacing: 1px;
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
    background: rgba(10,10,10,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.05);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.summary-item {
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius);
}

.summary-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--green);
}

.summary-label {
    display: block;
    font-size: 10px;
    color: var(--text2);
    text-transform: uppercase;
    margin-top: 4px;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.glass-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(10,10,10,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.glass-item:hover {
    background: rgba(230,57,70,0.1);
    border-color: var(--red);
}

.glass-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.glass-item .menu-arrow {
    margin-left: auto;
    font-size: 14px;
    color: var(--text2);
}

.glass-item.danger {
    color: var(--red);
}

.glass-item.danger:hover {
    background: rgba(230,57,70,0.15);
}

/* ============================================================
   GAME MODAL
   ============================================================ */
#gameModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

#gameModal.active {
    display: flex;
}

.game-modal-box {
    max-width: 100%;
    width: 100%;
    height: 100%;
    padding: 0;
    background: var(--bg);
    border-radius: 0;
    border: none;
}

.game-modal-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================
   TOAST
   ============================================================ */
.alert-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: var(--text);
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px var(--shadow-green);
    animation: toastIn 0.4s ease, toastOut 0.4s ease 2.5s forwards;
    pointer-events: none;
    min-width: 200px;
    justify-content: center;
}

.alert-toast.error {
    background: var(--red);
    box-shadow: 0 8px 30px var(--shadow);
}

.alert-toast.warning {
    background: var(--gold);
    color: var(--bg);
    box-shadow: 0 8px 30px var(--shadow-gold);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* ============================================================
   LOADING
   ============================================================ */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn-loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: var(--text);
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes btnSpin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
}

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 6px);
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text2);
    font-size: 10px;
    padding: 6px 12px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    position: relative;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--red);
    transition: var(--transition);
}

.nav-btn.active::before {
    width: 60%;
}

.nav-btn.active {
    color: var(--red);
}

.nav-btn i {
    font-size: 18px;
}

.nav-btn:hover {
    color: var(--red);
}

.nav-btn .nav-badge {
    position: absolute;
    top: 0;
    right: 4px;
    background: var(--red);
    color: var(--text);
    font-size: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg2);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--red);
}

.stat-label {
    display: block;
    font-size: 10px;
    color: var(--text2);
    text-transform: uppercase;
    margin-top: 4px;
}

.notif-list {
    background: var(--bg2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 12px;
    margin-bottom: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.notif-item {
    padding: 8px;
    font-size: 12px;
    color: var(--text2);
    border-bottom: 1px solid var(--border);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-unread {
    color: var(--text);
    font-weight: 600;
}

.admin-item {
    background: var(--bg2);
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: var(--bg2);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    text-align: center;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text2);
}

.admin-table th {
    background: var(--bg);
    font-weight: 700;
    color: var(--text);
}

.admin-table tr:hover td {
    background: rgba(230,57,70,0.05);
}

/* ============================================================
   EXTRATO / AFILIADO
   ============================================================ */
.extrato-table-container,
.afiliado-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

.extrato-titulo,
.afiliado-titulo {
    font-size: 18px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 12px;
}

.extrato-table,
.afiliado-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: var(--bg2);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.extrato-table th,
.afiliado-table th,
.extrato-table td,
.afiliado-table td {
    padding: 10px 12px;
    text-align: center;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text2);
}

.extrato-table th,
.afiliado-table th {
    background: var(--bg);
    font-weight: 700;
    color: var(--text);
}

.extrato-table td.tipo {
    color: var(--red);
    font-weight: 600;
}

.extrato-table td.valor,
.afiliado-table td.valor {
    color: var(--green);
    font-weight: 600;
}

.afiliado-info {
    background: var(--bg2);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text2);
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.afiliado-info strong {
    color: var(--red);
}

.afiliado-content-link {
    margin: 14px 0 10px;
}

.afiliado-content-link .input-icon {
    position: relative;
}

.afiliado-content-link .input-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--red);
}

.afiliado-content-link input {
    width: 100%;
    padding: 12px 12px 12px 36px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 12px;
    outline: none;
    font-family: inherit;
}

.afiliado-content-link input:focus {
    border-color: var(--red);
}

.submit-button {
    width: 100%;
    padding: 12px;
    background: var(--red);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--red2);
}

.resgatar {
    padding: 5px 10px;
    background: var(--red);
    border: none;
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition);
}

.resgatar:hover {
    background: var(--red2);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.extrato-pagination {
    text-align: center;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 6px 12px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text2);
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
}

.pagination-btn:hover {
    border-color: var(--red);
    color: var(--text);
}

.pagination-btn.active {
    background: var(--red);
    border-color: transparent;
    color: var(--text);
}

/* ============================================================
   POPUP GIF
   ============================================================ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup-gif-box {
    position: relative;
    max-width: 90%;
    max-height: 80%;
}

.popup-gif {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 60px var(--shadow);
    animation: popupPulse 2s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--red);
    border: 2px solid var(--bg);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
    z-index: 10;
    pointer-events: auto;
}

.popup-close:hover {
    transform: scale(1.1);
    background: var(--red2);
}

@keyframes popupPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px var(--shadow));
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 40px var(--shadow));
    }
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 480px) {
    .popup-gif {
        max-width: 95%;
        max-height: 70vh;
    }

    .pix-qr-image {
        width: 160px;
        height: 160px;
    }

    .auth-modal-box {
        padding: 16px;
    }

    .modal-box {
        padding: 16px;
        width: 95%;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .game-card img {
        height: 100px;
    }

    .game-card .game-name {
        font-size: 11px;
    }

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

    .top-bar {
        padding: 8px 12px;
    }

    .balance-value {
        font-size: 13px;
    }

    .balance-box {
        padding: 2px 8px;
        min-width: 60px;
    }

    .user-area {
        gap: 8px;
    }

    .promo-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    .promo-thumb img {
        height: 60px;
    }

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

@media (max-width: 360px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .game-card img {
        height: 80px;
    }

    .game-card .game-info {
        padding: 6px 8px;
    }

    .game-card .game-name {
        font-size: 10px;
    }

    .game-card .game-provider {
        font-size: 8px;
    }

    .promo-thumb img {
        height: 50px;
    }

    .promo-thumb-title {
        font-size: 8px;
        padding: 4px;
    }
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .game-card img {
        height: 160px;
    }

    .promo-slider-container {
        border-radius: var(--radius);
        margin: 8px;
        max-height: 400px;
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .game-card img {
        height: 180px;
    }
}

@media (min-width: 1440px) {
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .game-card img {
        height: 200px;
    }
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-red {
    color: var(--red);
}

.text-green {
    color: var(--green);
}

.text-gold {
    color: var(--gold);
}

.text-muted {
    color: var(--text2);
}

.mt-8 {
    margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-16 {
    margin-bottom: 16px;
}

.gap-8 {
    gap: 8px;
}

.gap-16 {
    gap: 16px;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.w-full {
    width: 100%;
}

.hidden {
    display: none !important;
}

.relative {
    position: relative;
}