.coin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Панель с монетой */
.coin-panel {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.coin-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    padding: 1rem;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: coinFloat 3s ease-in-out infinite;
}

.panel-titles {
    flex: 1;
}

.farm-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.farm-title i {
    color: #ffd700;
}

.panel-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Центр с монетой */
.coin-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.coin-main {
    text-align: center;
    position: relative;
}

/* Анимация монеты */
.coin-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
}

.coin-outer {
    width: 100%;
    height: 100%;
    position: relative;
    animation: rotateCoin 20s linear infinite;
}

.coin-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.coin {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.coin:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.coin:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.coin-front,
.coin-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.coin-front {
    background: radial-gradient(circle at 30% 30%, #ffd700, #b8860b);
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.5),
        inset -10px -10px 20px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(255, 215, 0, 0.5);
    border: 10px solid rgba(255, 215, 0, 0.8);
}

.coin-front img {
    width: 140px;
    height: 140px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.coin-back {
    background: radial-gradient(circle at 30% 30%, #7c3aed, #4c1d95);
    transform: rotateY(180deg);
    box-shadow: 
        inset 0 0 20px rgba(124, 58, 237, 0.5),
        inset -10px -10px 20px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(124, 58, 237, 0.5);
    border: 10px solid rgba(124, 58, 237, 0.8);
}

.coin-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coin-glow {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: glowPulse 2s ease-in-out infinite;
}

.coin-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 150px;
    background: linear-gradient(to top, rgba(255, 215, 0, 0), rgba(255, 215, 0, 0.8));
    transform-origin: bottom center;
}

.ray-1 { transform: translate(-50%, -50%) rotate(0deg); }
.ray-2 { transform: translate(-50%, -50%) rotate(90deg); }
.ray-3 { transform: translate(-50%, -50%) rotate(180deg); }
.ray-4 { transform: translate(-50%, -50%) rotate(270deg); }

@keyframes rotateCoin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.coin-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* Статистика монеты */
.coin-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.balance-container,
.click-container {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
}

.balance-label,
.click-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.balance-value,
.click-value {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
}

.balance-value.blue { color: #3b82f6; }
.click-value.red { color: #ef4444; }

/* Сообщение */
.coin-message {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
    padding: 1rem 2rem;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 2rem auto;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    animation: messagePulse 2s infinite;
}

.coin-message i {
    color: #ffd700;
    font-size: 1.5rem;
}

@keyframes messagePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
    }
}

/* Кнопки монеты */
.coin-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.coin-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 200px;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

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

.coin-btn:hover::before {
    left: 100%;
}

.coin-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.coin-btn i {
    font-size: 1.3rem;
}

.btn-cost {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Информационная секция */
.info-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Карточка курсов */
.rates-card h3,
.stats-card h3,
.upgrades-card h3 {
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
}

.rates-card h3 i {
    color: #10b981;
}

.rates-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.rate-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.rate-name {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    font-weight: 500;
}

.rate-name i {
    color: #ffd700;
    font-size: 1.2rem;
    width: 24px;
}

.rate-value {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
}

.rate-change {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.rate-change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.rate-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Карточка статистики */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.stat-value {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Карточка улучшений */
.upgrades-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upgrade-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.upgrade-item:hover {
    background: rgba(124, 58, 237, 0.1);
    transform: translateX(5px);
}

.upgrade-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.upgrade-info {
    flex: 1;
}

.upgrade-name {
    color: white;
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.upgrade-desc {
    color: #94a3b8;
    font-size: 0.8rem;
}

.upgrade-cost {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.action-btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 250px;
    justify-content: center;
    position: relative;
    font-size: 1rem;
}

.action-btn i {
    font-size: 1.3rem;
}

.leaderboard-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.leaderboard-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.exchange-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.exchange-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.withdraw-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.withdraw-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.action-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Видео секция */
.video-section {
    margin-top: 3rem;
}

.video-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
}

.video-section h3 i {
    color: #ef4444;
}

.video-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info p {
    color: #cbd5e1;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.video-stats {
    display: flex;
    gap: 2rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-stats i {
    color: #3b82f6;
}

/* Летающие монеты */
.floating-coins {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-coin {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #ffd700, #b8860b);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: floatCoin linear forwards;
}

@keyframes floatCoin {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Эффекты кликов */
.click-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.click-effect {
    position: absolute;
    width: 100px;
    height: 100px;
    pointer-events: none;
    animation: clickEffect 0.5s ease-out forwards;
}

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

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(10, 14, 35, 0.95);
    border-radius: 25px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Футер */
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .coin-center {
        min-height: 350px;
    }
    
    .coin-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .coin {
        width: 160px;
        height: 160px;
    }
    
    .coin-front img {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 768px) {
    .coin-container {
        padding: 1rem;
    }
    
    .coin-panel {
        padding: 1.5rem;
    }
    
    .panel-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .farm-title {
        font-size: 2rem;
        justify-content: center;
    }
    
    .coin-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .balance-container,
    .click-container {
        min-width: auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .coin-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .coin-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .farm-title {
        font-size: 1.5rem;
    }
    
    .coin-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .coin {
        width: 130px;
        height: 130px;
    }
    
    .coin-front img {
        width: 90px;
        height: 90px;
    }
    
    .balance-value,
    .click-value {
        font-size: 1.8rem;
    }
    
    .video-container iframe {
        height: 250px;
    }
}
