/* --- ОБЩИЕ СТИЛИ ДОНАТА --- */
.donate-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 28px;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #cc2b14, transparent);
}

/* --- HERO СЕКЦИЯ (ОПИСАНИЕ И ПРЕИМУЩЕСТВА) --- */
.donate-hero {
    background: linear-gradient(135deg, #1e1111 0%, #111 100%);
    border: 1px solid #3a1c1c;
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.donate-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,87,0.1) 0%, transparent 60%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(255, 107, 87, 0.5);
    text-transform: uppercase;
}

.hero-desc {
    font-size: 16px;
    color: #aaa;
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.benefit-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid #2a2a2a;
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
}

.benefit-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

.benefit-card h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}

.benefit-card p {
    color: #888;
    font-size: 13px;
    margin: 0;
}

/* --- ПРЯМЫЕ ПОКУПКИ (МАГАЗИН) --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.shop-item {
    background: var(--bg-card);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.shop-item:hover {
    border-color: #ff9800;
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.15);
    transform: translateY(-5px);
}

.shop-icon {
    font-size: 50px;
    color: #ff9800;
    margin-bottom: 20px;
}

.shop-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.shop-desc {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 20px;
    flex: 1;
}

.shop-price {
    font-size: 22px;
    font-weight: 900;
    color: #4caf50;
    margin-bottom: 20px;
}

/* --- КЕЙСЫ --- */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.case-card {
    background: linear-gradient(180deg, #222 0%, #161616 100%);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.case-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(204, 43, 20, 0.3);
}

.case-icon {
    font-size: 70px;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 25px rgba(255, 107, 87, 0.6);
    transition: 0.3s;
}

.case-card:hover .case-icon {
    transform: scale(1.1);
}

.case-title {
    font-size: 22px;
    color: #fff;
    font-weight: 800;
    margin-bottom: 10px;
}

.case-price {
    font-size: 18px;
    color: #4caf50;
    font-weight: 700;
    background: rgba(76, 175, 80, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

/* --- МОДАЛЬНОЕ ОКНО ПРЕДПРОСМОТРА КЕЙСА --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.preview-modal {
    background: #161616;
    border: 1px solid #333;
    border-radius: 16px;
    width: 800px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
}

.preview-header {
    background: linear-gradient(90deg, #2a1111 0%, #161616 100%);
    padding: 30px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #333;
}

.preview-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    transition: 0.2s;
}

.preview-close:hover {
    color: #fff;
}

.preview-case-icon {
    font-size: 80px;
    color: var(--primary);
    text-shadow: 0 0 30px rgba(255, 107, 87, 0.5);
    margin-bottom: 15px;
}

.preview-case-name {
    font-size: 28px;
    color: #fff;
    font-weight: 800;
    margin: 0;
}

.preview-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.preview-loot-title {
    font-size: 16px;
    color: #aaa;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

.loot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

/* Карточка дропа */
.loot-item {
    background: #1f1f1f;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.2s;
}

.loot-item:hover {
    background: #252525;
    transform: translateY(-3px);
}

.loot-icon {
    font-size: 35px;
    margin-bottom: 10px;
}

.loot-name {
    font-size: 12px;
    font-weight: 700;
    color: #ddd;
}

.preview-footer {
    padding: 20px 30px;
    background: #111;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Цвета редкостей для дропа */
.r-common {
    color: #aaa;
    border-bottom: 2px solid #aaa;
}

.r-rare {
    color: #00bcd4;
    border-bottom: 2px solid #00bcd4;
    text-shadow: 0 0 10px rgba(0,188,212,0.4);
}

.r-epic {
    color: #9c27b0;
    border-bottom: 2px solid #9c27b0;
    text-shadow: 0 0 10px rgba(156,39,176,0.4);
}

.r-legend {
    color: #ffc107;
    border-bottom: 2px solid #ffc107;
    text-shadow: 0 0 15px rgba(255,193,7,0.7);
}

/* --- РУЛЕТКА (АНИМАЦИЯ) --- */
.roulette-modal {
    background: #111;
    border: 1px solid #333;
    border-radius: 16px;
    width: 1000px;
    max-width: 95vw;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 100px rgba(255, 107, 87, 0.2);
    animation: fadeIn 0.3s ease;
}

.r-title {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.roulette-wrapper {
    width: 100%;
    height: 200px;
    background: #0a0a0a;
    border: 2px solid #222;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 50px #000;
}

/* Неоновый указатель по центру */
.roulette-pointer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #ffc107;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 20px #ffc107, 0 0 40px #ffc107;
}

.roulette-pointer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 18px solid #ffc107;
}

.roulette-pointer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 18px solid #ffc107;
}

.roulette-track {
    display: flex;
    height: 100%;
    transition: transform 8s cubic-bezier(0.12, 0.8, 0.1, 1);
    will-change: transform;
}

.r-item {
    width: 180px;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #1a1a1a;
    background: linear-gradient(180deg, #161616 0%, #0a0a0a 100%);
}

.r-item i {
    font-size: 60px;
    margin-bottom: 15px;
}

.r-item span {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    padding: 0 10px;
}

/* Пульсация победного предмета */
.winner-pulse {
    animation: winPulse 1.5s infinite;
    background: linear-gradient(180deg, rgba(255, 107, 87, 0.2) 0%, #0a0a0a 100%);
    border-left: 1px solid var(--primary);
    border-right: 1px solid var(--primary);
}

@keyframes winPulse {
    0% { box-shadow: inset 0 0 0px var(--primary); }
    50% { box-shadow: inset 0 0 40px rgba(255, 107, 87, 0.6); }
    100% { box-shadow: inset 0 0 0px var(--primary); }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Добавить в конец файла /Css/donate.css */
@media (max-width: 768px) {
    .donate-hero { padding: 30px 15px; }
    .hero-title { font-size: 28px; }
    .benefits-grid { grid-template-columns: 1fr; }
    
    .cases-grid { grid-template-columns: 1fr 1fr; } 
    @media (max-width: 480px) { .cases-grid { grid-template-columns: 1fr; } }
    
    .preview-modal, .roulette-modal { padding: 20px; width: 95vw; }
    .preview-header { padding: 20px; }
    .preview-case-name { font-size: 22px; }
    .preview-body { padding: 15px; }
    
    .preview-footer { flex-direction: column; gap: 15px; text-align: center; }
    .preview-footer .btn { width: 100%; justify-content: center; }
    
    .r-title { font-size: 20px; margin-bottom: 20px; }
    .r-item { width: 120px; } 
    .r-item i { font-size: 40px; }
}