:root {
    --bg-color: #000000;
    --text-color: #90EE90;
    --hint-color: #a0aec0;
    --button-color: #21a750;
    --button-text-color: #ffffff;
    --secondary-bg-color: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: none;
    overscroll-behavior: none;
    touch-action: none;
}

.game-container {
    width: 100%;
    height: 100vh;
    background-color: #000000;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-overflow-scrolling: none;
    overscroll-behavior: none;
    touch-action: none;
}

.top-panel {
    padding: 10px 20px;
    background: #000000;
    color: var(--text-color);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #2d3748;
    height: 50px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.coins-display {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.dollars-display {
    font-size: 12px;
    color: var(--hint-color);
    font-weight: 400;
}

.coins-icon {
    margin-right: 12px;
    font-size: 36px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.main-game-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    position: relative;
    min-height: calc(100vh - 120px);
    overflow: hidden;
    -webkit-overflow-scrolling: none;
    overscroll-behavior: none;
    touch-action: none;
}

.main-game-area::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('bg.png'); /* linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.main-game-area::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    /* background: 
        linear-gradient(90deg, #000000 1px, transparent 1px),
        linear-gradient(0deg, #000000 1px, transparent 1px); */
    /* background: 
        linear-gradient(90deg, #02c28f 1px, transparent 1px),
        linear-gradient(0deg, #02c28f 1px, transparent 1px); */
    background-size: 40px 40px;
    opacity: 0.3;
    animation: gridMove 15s linear infinite;
    z-index: 0;
    transform-origin: center;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, 20px) rotate(0.5deg);
    }
    50% {
        transform: translate(0, 40px) rotate(0deg);
    }
    75% {
        transform: translate(-20px, 20px) rotate(-0.5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.05;
        transform: scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.08;
        transform: scale(1.1) rotate(1deg);
    }
    50% {
        opacity: 0.05;
        transform: scale(1) rotate(0deg);
    }
    75% {
        opacity: 0.08;
        transform: scale(1.1) rotate(-1deg);
    }
}

.click-button {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: linear-gradient(135deg, #02c28f, #029e74, #04e6b0, #38ffd1);
    background-size: 300% 300%;
    /* border: 4px solid rgba(2, 194, 143, 0.3); */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
                inset 0 -8px 16px rgba(0, 0, 0, 0.2),
                0 0 20px rgba(2, 194, 143, 0.3);
    z-index: 1;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transform-origin: center;
    touch-action: manipulation;
    background-image: url('coin.png');
    background-size: 102%;
    background-position: center;
    background-repeat: no-repeat;
}

.click-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    pointer-events: none;
    animation: shine 3s linear infinite;
    mix-blend-mode: overlay;
}

.click-button::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background: #02c28f;
    opacity: 0.7;
    mix-blend-mode: color;
    pointer-events: none;
    z-index: 2;
}

@keyframes shine {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
                    inset 0 -8px 16px rgba(0, 0, 0, 0.2),
                    0 0 20px rgba(2, 194, 143, 0.3);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
                    inset 0 -8px 16px rgba(0, 0, 0, 0.2),
                    0 0 30px rgba(2, 194, 143, 0.5);
    }
    100% {
        background-position: 0% 50%;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
                    inset 0 -8px 16px rgba(0, 0, 0, 0.2),
                    0 0 20px rgba(2, 194, 143, 0.3);
    }
}

.click-button:active {
    transform: scale(0.95);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2),
                inset 0 -4px 8px rgba(0, 0, 0, 0.2),
                0 0 10px rgba(76, 175, 80, 0.2);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.click-button:not(:active) {
    transform: scale(1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
                inset 0 -8px 16px rgba(0, 0, 0, 0.2),
                0 0 20px rgba(76, 175, 80, 0.3);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.click-animation {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    position: absolute;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.5; }
}

.hamster-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.bottom-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 8px 16px;
    background-color: #000000;
    border-top: 1px solid #333333;
    z-index: 100;
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #90EE90;
    font-size: 12px;
    padding: 8px;
    cursor: pointer;
    transition: color 0.2s;
    width: 25%;
}

.tab-button.active {
    color: #21a750;
}

.tab-button.active .tab-icon {
    color: #21a750;
}

.tab-icon {
    font-size: 20px;
    margin-bottom: 2px;
    color: #90EE90;
    transition: color 0.2s;
}

.tab-text {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: hidden;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000000;
    padding: 16px;
    border-radius: 12px;
    max-width: 90%;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #333333;
    -webkit-overflow-scrolling: touch;
}

/* Разрешаем скролл для всех элементов внутри модального окна */
.modal * {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #333333;
}

.upgrades-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    margin: -16px;
    -webkit-overflow-scrolling: touch;
}

.upgrade-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #333333;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upgrade-name {
    color: var(--text-color);
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.upgrade-level {
    color: var(--hint-color);
    font-size: 12px;
    font-weight: normal;
    margin-left: 8px;
}

.upgrade-description {
    color: var(--hint-color);
    font-size: 14px;
    line-height: 1.4;
}

.upgrade-effect {
    color: var(--button-color);
    font-size: 14px;
    line-height: 1.4;
    padding: 8px;
    background: rgba(33, 167, 80, 0.1);
    border-radius: 6px;
}

.upgrade-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.upgrade-price {
    color: #876f21;
    font-weight: bold;
    font-size: 14px;
}

.upgrade-button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upgrade-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.upgrade-button .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    display: none;
}

.upgrade-button.loading .spinner {
    display: block;
}

.upgrade-button.loading span {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Coin animation */
@keyframes coinAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.coin-animation {
    animation: coinAnimation 0.3s ease-in-out;
}

/* Новые элементы дизайна */
.stats-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.stats-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.stats-item:last-child {
    margin-bottom: 0;
}

.stats-icon {
    margin-right: 8px;
    font-size: 16px;
    color: var(--button-color);
}

.click-effect {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: clickEffect 0.5s ease-out forwards;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes clickEffect {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--button-color), var(--button-color));
    width: 0%;
    transition: width 0.3s ease;
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -20px);
    background-color: var(--button-color);
    color: var(--button-text-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@keyframes notificationSlide {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.coin-popup {
    position: absolute;
    color: var(--button-color);
    font-weight: bold;
    font-size: 32px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3),
                 0 0 10px rgba(33, 167, 80, 0.5);
    pointer-events: none;
    animation: coinPopup 1.5s ease-out forwards;
    z-index: 2;
    transform-origin: center;
}

@keyframes coinPopup {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
        filter: brightness(1) blur(0);
    }
    50% {
        transform: translate(var(--tx), var(--ty)) scale(1.5) rotate(180deg);
        opacity: 0.8;
        filter: brightness(1.5) blur(0);
    }
    100% {
        transform: translate(calc(var(--tx) * 1.5), calc(var(--ty) * 1.5)) scale(0) rotate(360deg);
        opacity: 0;
        filter: brightness(2) blur(2px);
    }
}

.coin-popup.critical-hit {
    color: #4CAF50;
    font-size: 36px;
    text-shadow: 0 2px 4px rgba(76, 175, 80, 0.3),
                 0 0 10px rgba(76, 175, 80, 0.5);
    animation: criticalPopup 1.5s ease-out forwards;
}

@keyframes criticalPopup {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
        filter: brightness(1) blur(0);
    }
    50% {
        transform: translate(var(--tx), var(--ty)) scale(1.8) rotate(180deg);
        opacity: 0.8;
        filter: brightness(1.5) blur(0);
    }
    100% {
        transform: translate(calc(var(--tx) * 1.5), calc(var(--ty) * 1.5)) scale(0) rotate(360deg);
        opacity: 0;
        filter: brightness(2) blur(2px);
    }
}

/* Адаптивный дизайн */
@media (max-width: 480px) {
    .click-button {
        width: 200px;
        height: 200px;
    }
    
    /* .coins-display {
        font-size: 24px;
    } */
    
    .stats-panel {
        top: 10px;
        right: 10px;
        padding: 10px;
    }

    .main-game-area::before {
        background-size: 150% auto;
    }
}

@media (max-width: 360px) {
    .main-game-area::before {
        background-size: 150% auto;
    }
}

@keyframes desktopVibrate {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-2px, 2px) rotate(-1deg); }
    50% { transform: translate(2px, -2px) rotate(1deg); }
    75% { transform: translate(-2px, 2px) rotate(-1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.upgrade-effect {
    font-size: 0.9em;
    color: var(--button-color);
    margin: 8px 0;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-align: center;
}

.withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #000000;
    border-radius: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.withdraw-form input {
    width: 100%;
    padding: 10px;
    border: 2px solid #333333;
    border-radius: 8px;
    background-color: #1a1a1a;
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 14px;
}

.withdraw-form input:focus {
    outline: none;
    border-color: var(--button-color);
}

.withdraw-form input::placeholder {
    color: var(--hint-color);
}

.withdraw-button {
    background-color: var(--button-color);
    color: var(--button-text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
    width: 100%;
    font-size: 14px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.withdraw-button:hover {
    opacity: 0.9;
}

.withdraw-button:disabled {
    background: #2d3748;
    cursor: not-allowed;
    opacity: 0.7;
}

.withdraw-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.withdraw-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.withdraw-info {
    color: var(--hint-color);
    text-align: center;
    margin-top: 15px;
}

.withdraw-error {
    color: #ff4d4f;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

.withdraw-success {
    color: #52c41a;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

/* Медиа-запрос для маленьких экранов */
@media screen and (max-width: 500px) {
    .main-game-area {
        padding-bottom: 140px;
    }
    
    .bottom-panel {
        height: 100px;
    }
}

/* Медиа-запрос для устройств с большой системной панелью */
@media screen and (min-width: 500px) {
    .game-container {
        padding-bottom: 140px;
    }
    
    .bottom-panel {
        height: 80px;
    }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}

#click-button {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--button-color);
    border: 2px solid #2d3748;
    color: var(--button-text-color);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: auto;
}

.info-content {
    color: var(--text-color);
    line-height: 1.5;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.info-content p {
    margin-bottom: 12px;
    color: var(--hint-color);
    font-size: 14px;
}

.upgrade-level {
    color: var(--hint-color);
    font-size: 14px;
}

button, 
.click-button,
.upgrade-button,
.withdraw-button,
.tab-button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Разрешаем скролл для модальных окон */
.modal-content,
.upgrades-list,
.withdraw-form,
.info-content {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.energy-container {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    padding: 0 20px;
    z-index: 100;
}

.energy-bar {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.energy-progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 100%;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 4px;
}

.energy-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    z-index: 1;
}

.energy-text {
    position: absolute;
    top: -20px;
    left: 0;
    color: var(--text-color);
    font-size: 12px;
    font-weight: 500;
}

.energy-value {
    position: absolute;
    top: -20px;
    right: 0;
    color: var(--text-color);
    font-size: 12px;
    font-weight: 500;
}

.energy-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 0 20px;
}

.energy-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.energy-progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 100%;
    transition: width 0.3s ease;
}

.energy-value {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.loading-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #21a750;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.balance-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.info-section, .leaderboard-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #333333;
}

.info-section h3, .leaderboard-section h3 {
    color: var(--button-color);
    font-size: 18px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333333;
}

.info-text {
    color: var(--hint-color);
    font-size: 14px;
    line-height: 1.5;
}

.info-text p {
    margin-bottom: 12px;
}

.leaderboard-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #333333;
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.leaderboard-item .rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--button-color);
    color: var(--button-text-color);
    border-radius: 50%;
    font-weight: bold;
    margin-right: 12px;
    font-size: 12px;
}

.leaderboard-item .player {
    flex: 1;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-item .score {
    color: var(--button-color);
    font-weight: bold;
    margin-left: 8px;
    white-space: nowrap;
}

.leaderboard-item:nth-child(1) .rank {
    background: linear-gradient(135deg, #21a750, #1e9447);
}

.leaderboard-item:nth-child(2) .rank {
    background: linear-gradient(135deg, #27c86a, #43e685);
}

.leaderboard-item:nth-child(3) .rank {
    background: linear-gradient(135deg, #a5e6b7, #21a750);
}

.leaderboard-item:nth-child(n+4) .rank {
    background: linear-gradient(135deg, #4a4a4a, #2a2a2a);
    color: #ffffff;
}

.withdraw-info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.withdraw-info-content {
    background: #000000;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    width: 400px;
    text-align: center;
    position: relative;
    border: 1px solid #333333;
}

.conversion-info {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
}

.conversion-info p {
    margin: 5px 0;
    color: var(--text-color);
    font-size: 11px;
    line-height: 1.4;
}

.conversion-info p:first-child {
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
}

.withdraw-info-button {
    background: var(--button-color);
    color: var(--background-color);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.withdraw-info-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.withdraw-info-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.withdraw-info-button .timer {
    font-weight: bold;
}

.withdraw-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.withdraw-details p {
    margin: 8px 0;
    color: var(--text-color);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.withdraw-details p span:first-child {
    color: var(--hint-color);
}

.withdraw-details p span:last-child {
    font-weight: 500;
    color: var(--button-color);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

.join-channel-button {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    width: 100%;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.join-channel-button:hover {
    background: linear-gradient(45deg, #FFA500, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.join-channel-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#invite-friend-button {
    margin-top: 10px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    width: 100%;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#invite-friend-button:hover {
    background: linear-gradient(45deg, #FFA500, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#invite-friend-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.faq-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-section h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 500;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.faq-item h4 {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1em;
    cursor: pointer;
    position: relative;
    padding-right: 20px;
    font-weight: 500;
}

.faq-item h4::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--hint-color);
}

.faq-item.active h4::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    color: var(--hint-color);
    font-size: 0.9em;
    line-height: 1.4;
    display: none;
    margin-top: 8px;
}

.faq-item.active p {
    display: block;
}

.premium-upgrade {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.premium-upgrade .upgrade-name {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.premium-upgrade .upgrade-description {
    color: rgba(255, 255, 255, 0.9);
}

.premium-upgrade .upgrade-button {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #000;
    font-weight: bold;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.premium-upgrade .upgrade-button:hover {
    background: linear-gradient(135deg, #ffd700, #daa520);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.premium-bonus {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.2em;
    margin: 20px 0;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(184, 134, 11, 0.1));
    border-radius: 8px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.top-players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.top-player-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333333;
    transition: all 0.3s ease;
}

.top-player-item:hover {
    border-color: var(--button-color);
    transform: translateX(5px);
}

.player-rank {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--button-color);
    color: #000;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 15px;
}

.player-rank.gold {
    background: linear-gradient(135deg, #21a750, #1e9447);
}

.player-rank.silver {
    background: linear-gradient(135deg, #27c86a, #43e685);
}

.player-rank.bronze {
    background: linear-gradient(135deg, #a5e6b7, #21a750);
}

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-name {
    color: var(--text-color);
    font-weight: 500;
}

.player-earnings {
    color: var(--button-color);
    font-size: 0.9em;
}

.chat-button {
    background: var(--button-color);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.no-players {
    text-align: center;
    color: var(--hint-color);
    padding: 20px;
    font-style: italic;
}

.requisites-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

#requisites-input {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #333333;
    border-radius: 5px;
    resize: vertical;
    font-family: inherit;
    background-color: #1a1a1a;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
}

#requisites-input:focus {
    outline: none;
    border-color: var(--button-color);
}

#requisites-input::placeholder {
    color: var(--hint-color);
}

.requisites-button {
    background: var(--button-color);
    color: var(--button-text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.requisites-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.conversion-details {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    margin: 15px 0;
}

.conversion-details p {
    margin: 10px 0;
    color: #333;
}

.conversion-button {
    background: #2196F3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    width: 100%;
    margin-top: 15px;
}

.conversion-button:hover {
    background: #1976D2;
}

.requisites-info {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-color);
}

.requisites-examples {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.requisites-examples p {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--accent-color);
}

.requisites-examples ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requisites-examples li {
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.9;
}

.requisites-examples li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.paypal-requirements {
    margin-top: 15px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.paypal-requirements p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-color);
    white-space: pre-line;
}

/* Стили для приглашения друзей */
.invite-info {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.invite-info p {
    margin: 10px 0;
    line-height: 1.5;
    color: #fff;
}

.invite-bonus {
    color: #4CAF50 !important;
    font-weight: bold;
    font-size: 1.1em;
}

.invite-button {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.invite-button:hover {
    background: #45a049;
}

.invite-button:active {
    transform: scale(0.98);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .invite-info {
        padding: 10px;
    }
    
    .invite-button {
        padding: 10px;
        font-size: 14px;
    }
}

.bonus-info {
    color: #4CAF50;
    font-weight: 500;
    margin: 10px 0;
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.join-channel-button {
    background: #1a1a1a;
    color: var(--text-color);
    border: 1px solid #333333;
    padding: 12px 24px;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
}

.join-channel-button:hover {
    border-color: var(--button-color);
    background: #1a1a1a;
}

#invite-friend-button {
    margin-top: 10px;
} 

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 8px;
    min-height: 250px;
}

.transactions-list::-webkit-scrollbar {
    width: 8px;
}

.transactions-list::-webkit-scrollbar-track {
    background: rgba(33, 167, 80, 0.1);
    border-radius: 4px;
    margin: 4px 0;
}

.transactions-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #21a750, #1a8f42);
    border-radius: 4px;
    border: 1px solid rgba(33, 167, 80, 0.2);
}

.transactions-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1a8f42, #21a750);
}

.transactions-list {
    scroll-behavior: smooth;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(33, 167, 80, 0.1) 0%, rgba(33, 167, 80, 0.05) 100%);
    border: 1px solid rgba(33, 167, 80, 0.2);
    border-radius: 12px;
    color: #21a750;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 65px;
}

.transaction-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #21a750, #4CAF50, #21a750);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.transaction-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 167, 80, 0.15);
    border-color: rgba(33, 167, 80, 0.4);
    background: linear-gradient(135deg, rgba(33, 167, 80, 0.15) 0%, rgba(33, 167, 80, 0.08) 100%);
}

.transaction-item:hover::before {
    opacity: 1;
}

.transaction-item.positive {
    border-left: 4px solid #4CAF50;
}

.transaction-item.negative {
    border-left: 4px solid #f44336;
}

.transaction-item .transaction-date {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    color: rgba(33, 167, 80, 0.7);
    font-weight: 400;
    min-height: 40px;
    justify-content: center;
}

.transaction-item .transaction-date .date-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transaction-item .transaction-date .date {
    font-weight: 500;
    color: #21a750;
}

.transaction-item .transaction-date .time {
    font-size: 11px;
    color: rgba(33, 167, 80, 0.6);
    font-weight: 400;
}

.transaction-item .transaction-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
}

.transaction-item .transaction-amount.positive {
    color: #4CAF50;
}

.transaction-item .transaction-amount.negative {
    color: #f44336;
}

.transaction-item .transaction-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(33, 167, 80, 0.1);
    color: #21a750;
    font-size: 12px;
}

.transaction-item.positive .transaction-icon {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.transaction-item.negative .transaction-icon {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.transaction-item .transaction-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-top: 2px;
    line-height: 1.2;
    min-height: 14px;
}

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

/* Анимация появления транзакций */
@keyframes transactionSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.transaction-item {
    animation: transactionSlideIn 0.3s ease-out;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .transaction-item {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 55px;
    }
    
    .transaction-item .transaction-amount {
        font-size: 14px;
    }
    
    .transaction-item .transaction-date {
        font-size: 11px;
        min-height: 35px;
    }
    
    #transactions-modal .modal-content {
        max-height: 90vh;
        max-width: 95vw;
        width: 100%;
        margin: 15px;
        min-height: 350px;
    }
    
    .transactions-list {
        max-height: 400px;
        min-height: 200px;
        gap: 8px;
    }
}

/* Стили для состояний загрузки и ошибок */
.transactions-list .loading-state,
.transactions-list .error-state,
.transactions-list .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #21a750;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.transactions-list .error-state {
    color: #f44336;
}

.transactions-list .loading-state::before {
    content: '⏳';
    font-size: 24px;
    animation: spin 1s linear infinite;
}

.transactions-list .error-state::before {
    content: '⚠️';
    font-size: 24px;
}

.transactions-list .empty-state::before {
    content: '📋';
    font-size: 24px;
    opacity: 0.7;
}

.transactions-list .empty-state {
    color: rgba(33, 167, 80, 0.7);
} 

/* Специальные стили для модального окна транзакций */
#transactions-modal .modal-content {
    max-height: 85vh;
    max-width: 90vw;
    width: 550px;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

#transactions-modal .modal-content h2 {
    margin-bottom: 20px;
    flex-shrink: 0;
}

#transactions-modal .transactions-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

/* Стили для кнопки поддержки */
.support-button {
    background: #21a750 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.support-button:hover {
    background: #1a8f42 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(33, 167, 80, 0.3) !important;
}

.support-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(33, 167, 80, 0.3) !important;
} 