/* ========================================
   MinesTon - Premium Crypto Casino
   Telegram Mini App Styles
   ======================================== */

:root {
    /* Colors */
    --bg-primary: #0a1929;
    --bg-secondary: #132337;
    --bg-card: #1a3a4a;
    --bg-card-hover: #234555;
    --bg-input: #0d2438;

    --accent-blue: #00d4ff;
    --accent-blue-dark: #0099cc;
    --accent-green: #4ade80;
    --accent-green-dark: #22c55e;
    --accent-red: #ef4444;
    --accent-yellow: #fbbf24;
    --accent-purple: #a855f7;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: #2d4a5e;
    --border-glow: rgba(0, 212, 255, 0.3);

    /* Sizes */
    --header-height: 60px;
    /* 60px header */
    --nav-height: 50px;
    /* Чуть уменьшили (было 70) */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.twemoji {
    height: 1.1em;
    width: 1.1em;
    vertical-align: -0.2em;
    margin: 0 0.1em;
    filter: saturate(1.5) contrast(1.1) brightness(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    font-weight: 700;
    /* Bold */
    color: var(--text-primary);
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed;
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}

.app {
    max-width: 480px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* ========================================
   Header
   ======================================== */

.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 12px;
    height: var(--header-height);
    background: rgba(19, 35, 55, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-self: start;
}

.logo-svg {
    height: 1px !important;
    width: auto !important;
    display: block;
}

@media (max-width: 380px) {
    .logo-svg {
        height: 1px !important;
    }
}

.header-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 14px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    min-width: 140px;
    justify-content: center;
    justify-self: center;
    transition: all 0.2s ease;
    padding-left: 10px;
}

.current-balance-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: contain;
    margin-right: 4px;
}

@media (hover: hover) {
    .header-balance:hover {
        border-color: var(--accent-blue);
        background: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 350px) {
    .header-balance {
        padding: 6px 10px;
        min-width: 110px;
        gap: 4px;
    }

    .balance-amount {
        font-size: 14px;
    }

    .balance-currency {
        font-size: 12px;
    }
}

/* Single Dropdown Definition - NO ANIMATIONS */
.balance-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a2c38;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 280px;
    max-width: calc(100vw - 32px);
    /* Защита от вылета за края на мелких экранах */
}

.balance-dropdown-menu.active {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    /* Убираем monospace для лучшей читаемости */
}

@media (hover: hover) {
    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

.dropdown-item.active {
    background: rgba(0, 231, 1, 0.1);
    color: var(--accent-green);
}

.dropdown-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.currency-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.dropdown-item-balance {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    text-align: right;
    letter-spacing: 0.3px;
    white-space: nowrap;
    /* Валюта не должна переноситься */
}

.balance-amount {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.balance-currency {
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 700;
}

.balance-dropdown {
    font-size: 12px;
    color: var(--text-muted);
}



.header-actions {
    display: flex;
    gap: 6px;
    justify-self: end;
}

.header-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--accent-blue);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn:hover {
    background: var(--accent-blue);
    color: var(--bg-primary);
    transform: scale(1.05);
}

/* ========================================
   Main Content
   ======================================== */

.main-content {
    flex: 1;
    padding: 16px;
    padding-bottom: calc(var(--nav-height) + 20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Плавный скролл iOS */
}

/* ========================================
   Game Grid
   ======================================== */

.game-container {
    margin-bottom: 8px;
    /* Было 16px */
}

.mines-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    /* Очень плотно */
    padding: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.mine-cell {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    /* Чуть менее скругленные для плотности */
    cursor: pointer;
    transition: all 0.1s ease;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    /* Крупнее иконки */
    position: relative;
    overflow: hidden;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.mine-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

@media (hover: hover) {
    .mine-cell:hover:not(.revealed):not(.disabled) {
        transform: translateY(-2px);
        background: rgba(41, 121, 255, 0.05);
        border-color: var(--accent-blue);
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    }
}

.mine-cell:active:not(.revealed):not(.disabled) {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.mine-cell.revealed.gem {
    background: linear-gradient(145deg, #166534 0%, #14532d 100%);
    border-color: var(--accent-green);
    animation: gemReveal 0.4s ease;
}

.mine-cell.revealed.bomb {
    background: linear-gradient(145deg, #991b1b 0%, #7f1d1d 100%);
    border-color: var(--accent-red);
    animation: bombReveal 0.4s ease;
}

.mine-cell.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mine-cell.clicking {
    transform: scale(0.92);
    background: rgba(0, 212, 255, 0.15) !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.05s ease;
}

.mine-cell.revealed {
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes gemReveal {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bombReveal {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* ========================================
   Game Stats
   ======================================== */

/* Game Stats */
.game-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    background: #111c2a;
    padding: 4px;
    border-radius: 16px;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: #1a2c3d;
    padding: 6px 2px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    min-height: 55px;
    box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.05);
}

.stat-icon {
    font-size: 18px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item.highlight .twemoji {
    height: 1.4em;
    width: 1.4em;
}

.stat-item.payout .twemoji {
    height: 1.25em;
    width: 1.25em;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* На всю ширину карточки */
}

.stat-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-align: center;
    width: 100%;
}

.stat-value {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    width: 100%;
    font-variant-numeric: tabular-nums;
}

/* ========================================
   Bet Controls
   ======================================== */

.bet-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#placeBetBtn,
#activatePromoBtn,
#changeSeedBtn {
    background: #00D4FF;
    color: #0A1929;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    border: none;
}

#placeBetBtn:hover,
#activatePromoBtn:hover,
#changeSeedBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: var(--bg-primary);
    border: none;
    padding: 14px 24px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: var(--bg-primary);
    border: none;
    padding: 14px 24px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 14px 24px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
}

.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* Compact Bet Control (Restored Style) */
/* Compact Bet Control (Restored Style) */
.bet-amount-section {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
    display: block;
    height: auto;
    box-shadow: none;
}

.bet-row-main {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

/* Контейнер инпута: Левая половина */
.bet-input-container {
    flex: 1;
    /* Занимает доступное пространство */
    min-width: 0;
    /* Позволяет сжиматься на узких экранах */
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.bet-label-small {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.input-with-currency {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border-radius: 8px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    /* Адаптивная ширина */
    max-width: 280px;
    /* Максимальная длина на больших экранах */
    height: 50px;
}

.input-with-currency input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    /* Крупнее */
    font-weight: 700;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
    text-align: left;
    min-width: 0;
}

.input-with-currency input::-webkit-outer-spin-button,
.input-with-currency input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.currency-tag {
    font-size: 16px;
    /* Увеличили */
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Кнопки: Правая половина */
.bet-actions {
    display: flex;
    gap: 6px;
    align-self: flex-end;
    flex: 0 0 auto;
    /* Запрещаем сжатие кнопок */
    justify-content: flex-end;
    /* Кнопки справа */
}

.bet-mult-btn {
    min-width: 50px;
    height: 50px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    /* Убираем рамку фокуса */
    -webkit-tap-highlight-color: transparent;
    /* Убираем стандартную подсветку на iOS/Android */
}

/* Подсветка только при наведении мышкой */
@media (hover: hover) {
    .bet-mult-btn:hover {
        border-color: var(--accent-blue);
        color: var(--accent-blue);
    }
}

.bet-mult-btn:active {
    transform: scale(0.95);
    /* Легкое уменьшение при нажатии */
}

/* Увеличенный шрифт для 1/2 */
.bet-mult-btn[data-mult="0.5"] {
    font-size: 24px;
}

/* Анимация пульсации */
@keyframes pulse {
    0% {
        transform: scale(1);
        background: var(--bg-input);
    }

    50% {
        transform: scale(1.1);
        background: var(--accent-blue);
        color: var(--bg-primary);
    }

    100% {
        transform: scale(1);
        background: var(--bg-input);
    }
}

.bet-mult-btn.pulse {
    animation: pulse 0.3s ease-out;
    z-index: 10;
}

/* Mines Selector - Premium Style */
.mines-selector {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.mines-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.mines-header .section-icon {
    display: none;
}

.mines-header .section-title {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mines-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.mines-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 54px;
    -webkit-tap-highlight-color: transparent;
}

.mines-num {
    font-size: 20px;
    font-weight: 700;
}

.mines-icon {
    display: block;
    font-size: 16px;
    opacity: 0.8;
}

.mines-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.mines-btn.active {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    border-color: var(--accent-blue);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.mines-btn.active .mines-icon {
    opacity: 1;
}

/* ========================================
   Bottom Navigation
   ======================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: calc(var(--nav-height) + env(safe-area-inset-bottom));
    background: rgba(19, 35, 55, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    /* Прижимаем иконки к низу */
    padding: 0 20px;
    padding-bottom: max(4px, env(safe-area-inset-bottom));
    /* Небольшой отступ снизу */
    z-index: 100;
}

/* Hide nav when keyboard is open (mobile) */
body.keyboard-active .bottom-nav {
    display: none !important;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    /* Уменьшили gap */
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 16px;
    /* Уменьшили padding */
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: var(--text-secondary);
}

.nav-item.active {
    color: var(--accent-blue);
}

.nav-icon,
.nav-item .twemoji {
    height: 24px !important;
    width: 24px !important;
    margin: 0 auto 4px auto;
    display: block;
    object-fit: contain;
    transition: all 0.2s ease;
}

.nav-item[data-page="fairness"] .nav-icon,
.nav-item[data-page="profile"] .nav-icon {
    height: 28px !important;
    width: 28px !important;
    transform: translateY(3px);
}

.nav-item[data-page="game"] .nav-icon {
    height: 26px !important;
    width: 26px !important;
}

.nav-label {
    font-size: 10px;
    /* Уменьшили до 10px */
    font-weight: 700;
}





/* ========================================
   Modals
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    touch-action: none;
    /* Prevents gestures on overlay from reaching Telegram */
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal.closing {
    animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.modal-content {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    /* Prevents swipe-to-close on Telegram */
    -webkit-overflow-scrolling: touch;
    /* Smooth iOS scroll */
}

.modal.active .modal-content {
    animation: slideUp 0.3s ease;
}

.modal.closing .modal-content {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100%);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-highlight {
    color: var(--accent-blue);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--accent-red);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* Payment Section */
.payment-section,
.network-section,
.address-section,
.withdraw-amount-section,
.wallet-section {
    margin-bottom: 20px;
}

.section-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.crypto-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.crypto-btn {
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.crypto-btn img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
}

.crypto-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.crypto-btn.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent-blue);
    color: white;
}

.card-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border: none;
    border-radius: var(--border-radius-sm);
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.network-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    /* Разрешаем перенос на узких экранах */
}

.network-btn {
    flex: 1;
    min-width: 80px;
    /* Минимальная ширина для предотвращения сплющивания */
    padding: 10px 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

@media (max-width: 360px) {
    .crypto-buttons {
        grid-template-columns: repeat(2, 1fr);
        /* 2 колонки вместо 3 на совсем мелких экранах */
    }

    .crypto-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .crypto-btn img {
        width: 18px;
        height: 18px;
    }

    .balance-value {
        font-size: 26px;
        /* Чуть меньше на мелких экранах */
    }

    .ticker-small {
        font-size: 13px;
    }
}

.network-btn:hover {
    border-color: var(--accent-blue);
}

.network-btn.active {
    border-color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.1);
}

.network-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.network-desc {
    display: block;
    font-size: 9px;
    color: var(--text-muted);
}

.address-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    padding: 14px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.address-text {
    flex: 1;
    font-size: 12px;
    font-family: monospace;
    color: var(--text-secondary);
    word-break: break-all;
}

.copy-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .copy-btn:hover {
        border-color: var(--accent-blue);
        background: var(--bg-card-hover);
    }
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: var(--border-radius-sm);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deposit-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-icon {
    font-size: 16px;
}

/* Balance Display */
.balance-display {
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.balance-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 700;
}

.balance-value {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.ticker-small {
    font-size: 16px;
    font-weight: 700;
    opacity: 0.6;
    margin-left: 2px;
    vertical-align: middle;
}

/* Withdraw Input */
.withdraw-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    padding: 14px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.withdraw-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    outline: none;
}

.wallet-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0 14px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.wallet-input-wrapper:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.wallet-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 14px 0 !important;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    box-shadow: none !important;
}

.paste-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent-blue);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
    text-transform: uppercase;
}

.paste-btn:hover {
    background: var(--accent-blue);
    color: white;
    transform: scale(1.05);
}

.paste-btn:active {
    transform: scale(0.95);
}

/* Bonus Modal Styles */
.bonus-display {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(19, 35, 55, 1) 100%);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    border-radius: var(--border-radius-lg);
}

.promo-input {
    text-align: center;
    letter-spacing: 1px;
    font-weight: 700;
    margin-top: 10px;
    text-transform: uppercase;
}

.promo-input::placeholder {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
}

.modal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
    margin: 25px 0;
    opacity: 0.5;
}

.bonus-withdrawal-section .btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-color);
    font-size: 13px;
    font-weight: 700;
}

.bonus-withdrawal-section .btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.bonus-withdrawal-section .btn-secondary.btn-glow {
    background: var(--accent-green);
    color: var(--bg-primary);
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(74, 222, 128, 0.7);
    }

    100% {
        box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
    }
}

.wallet-hint {
    font-size: 11px;
    color: var(--text-muted);
}

/* ========================================
   Pages
   ======================================== */

.page {
    position: fixed;
    top: var(--header-height);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: calc(100vh - var(--header-height) - var(--nav-height));
    background: transparent;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 50;
}

/* Profile Page */
#profilePage {
    padding-top: min(6vh, 32px);
}

.profile-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    border: 1.5px solid rgba(0, 212, 255, 0.3);
    /* Synced bluish border */
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    /* Internal shadow for depth, no neon glow */
}

#avatarImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

#avatarImage.hidden {
    display: none;
}

#avatarInitials {
    position: relative;
    z-index: 1;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.profile-username {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 2px;
}

.profile-id {
    font-size: 11px;
    color: var(--text-muted);
}

.profile-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 16px 20px;
}

.btn-action {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.btn-deposit {
    background: rgba(33, 192, 92, 0.3);
    color: #26E56E;
    /* More luminous green */
    border: 1px solid rgba(33, 192, 92, 0.5);
    box-shadow: 0 4px 15px rgba(33, 192, 92, 0.2);
    text-shadow: 0 0 10px rgba(38, 229, 110, 0.3);
}

.btn-deposit:active {
    background: rgba(33, 192, 92, 0.45);
    transform: scale(0.96);
}

.btn-withdraw {
    background: rgba(195, 74, 63, 0.3);
    color: #FF574B;
    /* More luminous red */
    border: 1px solid rgba(195, 74, 63, 0.5);
    box-shadow: 0 4px 15px rgba(195, 74, 63, 0.2);
    text-shadow: 0 0 10px rgba(255, 87, 75, 0.3);
}

.btn-withdraw:active {
    background: rgba(195, 74, 63, 0.45);
    transform: scale(0.96);
}

.action-icon {
    font-size: 18px;
    font-weight: 900;
}

.promo-code-btn {
    width: 100%;
    padding: 16px;
    background: #00D4FF;
    border-radius: 16px;
    border: none;
    color: #0A1929;
    /* Deep blue text on bright button for contrast */
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.promo-code-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.2);
}

.promo-icon {
    font-size: 18px;
}

.bonus-btn {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bonus-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(34, 197, 94, 0.4);
}

.profile-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.profile-stat {
    flex: 1;
    text-align: center;
    padding: 16px 8px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.2s ease;
}



.profile-stat-icon {
    display: block;
    height: 25px !important;
    width: 25px !important;
    margin: 0 auto 8px auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.profile-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.profile-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.1);
    padding: 5px;
    border-radius: 12px;
}

.profile-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 10px;
}

.profile-tab.active {
    color: #0A1929;
    background: #00D4FF;
    box-shadow: 0 4px 10px rgba(0, 212, 255, 0.3);
}

.load-more-container {
    display: flex;
    justify-content: center;
    padding: 10px 0 20px 0;
}

.btn-load-more {
    background: rgba(41, 121, 255, 0.1);
    border: 1px solid rgba(41, 121, 255, 0.3);
    color: var(--accent-blue);
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (hover: hover) {
    .btn-load-more:hover {
        background: var(--accent-blue);
        color: #fff;
        transform: translateY(-2px);
    }
}

.btn-load-more:active {
    transform: scale(0.95);
}



.profile-content {
    min-height: 200px;
    padding-bottom: 20px;
}

/* History & Transaction Items */
.history-item,
.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin-bottom: 10px;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

@media (hover: hover) {

    .history-item:hover,
    .transaction-item:hover {
        background: rgba(30, 41, 59, 0.5);
        border-color: rgba(41, 121, 255, 0.3);
        transform: scale(1.02);
    }
}

.item-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-title {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.item-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.item-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-value {
    font-weight: 800;
    font-size: 14px;
}

.item-meta {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 50px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-text {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--accent-red);
    font-weight: 700;
}

.loading-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 700;
}

/* Fairness Page */
.fairness-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-top: min(3vh, 16px);
}

.fairness-icon {
    font-size: 24px;
    color: var(--accent-blue);
    filter: none;
    /* Убираем неон */
}

.fairness-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: none;
    -webkit-text-fill-color: initial;
}

.copy-btn svg {
    display: block;
    opacity: 0.6;
    transition: opacity 0.2s;
}

@media (hover: hover) {
    .copy-btn:hover svg {
        opacity: 1;
        color: var(--accent-blue);
    }
}

.copy-btn.pulse svg {
    animation: iconPulse 0.3s ease-out;
    color: var(--accent-blue);
    opacity: 1;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.fairness-seeds {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

@media (hover: hover) {
    .fairness-seeds:hover {
        border-color: rgba(41, 121, 255, 0.2);
        transform: translateY(-2px);
    }
}

.seed-item {
    margin-bottom: 20px;
}

.seed-item:last-child {
    margin-bottom: 24px;
}

.seed-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seed-value {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-input);
    padding: 14px 16px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s;
}

@media (hover: hover) {
    .seed-value:hover {
        border-color: var(--accent-blue);
    }
}

.seed-value span {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-bets {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
}

.live-bets-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: #ff4d4d;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.6);
}

.live-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid #ff4d4d;
    border-radius: 50%;
    animation: dotPulse 2s infinite;
    opacity: 0;
}

@keyframes dotPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Live Bets Header */
.players-count {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.players-count.was-updated {
    animation: countPulse 0.5s ease;
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.2);
}

@keyframes countPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.live-bets-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
}

.live-bet-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.live-bet-item.win {
    border-color: rgba(74, 222, 128, 0.2);
    box-shadow: inset 0 0 20px rgba(74, 222, 128, 0.05);
}

.live-bet-item.win::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-green);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.live-bet-item.slide-in {
    animation: slideInLow 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInLow {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bet-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--bg-input);
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.bet-info-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bet-user-id {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.bet-mines-count {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 1px;
}

.bet-values {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.bet-amount-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.bet-multiplier-val {
    font-size: 10px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bet-multiplier-val.win {
    color: var(--accent-green);
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.bet-multiplier-val.loss {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

/* End of Live Bets Section */

/* ========================================
   Utilities
   ======================================== */

.text-green {
    color: var(--accent-green);
}

.text-red {
    color: var(--accent-red);
}

.text-blue {
    color: var(--accent-blue);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Telegram WebApp specific */
@supports (padding: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(var(--nav-height) + env(safe-area-inset-bottom));
    }
}

/* Currency Modal List */
.currency-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.currency-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.currency-item:hover {
    border-color: var(--accent-blue);
    background: rgba(41, 121, 255, 0.05);
}

.currency-item.active {
    border-color: var(--accent-green);
    background: rgba(0, 231, 1, 0.05);
    box-shadow: 0 0 10px rgba(0, 231, 1, 0.1);
}

.currency-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.currency-name {
    font-size: 14px;
    font-weight: 700;
}

.currency-balance {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
   Promo Code Section - Enhanced
   ======================================== */

.promo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    margin-top: 8px;
}

.promo-input-group {
    width: 100%;
    display: flex;
    justify-content: center;
}

.promo-input {
    width: 100%;
    max-width: 320px;
    padding: 18px 20px !important;
    font-size: 18px !important;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--bg-input);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.promo-input::placeholder {
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: none;
}

.promo-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.promo-section .btn-primary {
    max-width: 320px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.bonus-display {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 212, 255, 0.4);
    margin-bottom: 8px;
}

.bonus-display .balance-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.bonus-withdrawal-section {
    padding-top: 8px;
}

.bonus-withdrawal-section .btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

/* FORCE RESIZE OF EMOJI INSIDE CELLS */
.mine-cell img.twemoji {
    width: 60% !important;
    height: 60% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain !important;
}