/* ==========================================================================
   SHOP.CSS — ПРЕМИАЛЬНЫЙ RPG СТИЛЬ ДЛЯ СТРАНИЦЫ МАГАЗИНА (SHOP.HTML)
   ========================================================================== */

/* Двухколоночный макет верха */
.shop-layout {
    display: flex;
    gap: 40px;
    max-width: 900px;
    margin: 40px auto 0 auto;
    align-items: flex-start;
}

/* Накопительные бонусные Привилегии (В самом низу) */
.ranks-showcase-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    padding: 0 10px;
}

.rank-display-card {
    background: rgba(12, 15, 22, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 25px 20px;
    width: 190px;
    text-align: center;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rank-display-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
    transform: translateY(-4px);
}

.rank-card-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.rank-display-card h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 800;
}

.rank-cost {
    font-size: 14px;
    font-weight: 800;
    color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

/* Информационная панель */
.info-panel {
    background: rgba(51, 153, 255, 0.03);
    padding: 18px 25px;
    border-radius: 10px;
    max-width: 850px;
    margin: 0 auto 40px auto;
    text-align: left;
    border-left: 4px solid var(--blue);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.6;
    backdrop-filter: blur(4px);
}

/* СТИЛИ СТРОК ВВОДА И КОНТЕЙНЕРА ДОНАТА */
.donate-box {
    flex: 1.2;
    background: rgba(12, 15, 22, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(51, 153, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 25px;
}

.input-group label {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    background: rgba(5, 6, 8, 0.8); /* Полупрозрачный черный внутри полей */
    border: 1px solid #232936;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: 0.3s ease;
}

.input-group input:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 12px rgba(51, 153, 255, 0.3);
}

/* Кастомные стрелки + и - */
.custom-number-wrapper {
    display: flex;
    align-items: center;
    background: rgba(5, 6, 8, 0.8);
    border: 1px solid #232936;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s ease;
}

.custom-number-wrapper:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 12px rgba(51, 153, 255, 0.3);
}

.custom-number-wrapper input {
    text-align: center;
    border: none !important;
    background: transparent !important;
    padding: 15px 0 !important;
    font-weight: 700;
    font-size: 18px;
    color: var(--gold) !important;
}

.num-btn {
    background: rgba(255, 255, 255, 0.02);
    border: none;
    color: var(--text-gray);
    font-size: 20px;
    font-weight: bold;
    width: 60px;
    height: 52px;
    cursor: pointer;
    transition: 0.2s ease;
    user-select: none;
}

.btn-down { border-right: 1px solid #232936; }
.btn-up { border-left: 1px solid #232936; }

.num-btn:hover {
    background: rgba(51, 153, 255, 0.15);
    color: var(--blue);
    text-shadow: 0 0 8px var(--blue-glow);
}

/* Блок промокода */
.promo-input-wrapper { display: flex; gap: 10px; }
.promo-input-wrapper input { flex: 1; }

.btn-promo-apply {
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 22px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-promo-apply:hover { 
    background: #1e82eb; 
    box-shadow: 0 0 15px rgba(51, 153, 255, 0.4); 
}
.promo-status-text { font-size: 12px; margin-top: 8px; display: block; font-weight: 600; }

/* Калькулятор цены */
.price-calculator { font-size: 20px; font-weight: 800; margin-bottom: 30px; padding-top: 25px; border-top: 1px dashed #232936; text-align: left; }
.discount-badge { background: rgba(76, 175, 80, 0.1); color: #4caf50; font-size: 12px; padding: 4px 12px; border-radius: 12px; display: inline-block; margin-left: 12px; border: 1px solid rgba(76, 175, 80, 0.2); font-weight: 700; text-transform: uppercase; }

.btn-gold { width: 100%; background: var(--gold); color: #000; font-size: 16px; font-weight: 800; text-transform: uppercase; padding: 16px; border-radius: 8px; cursor: pointer; transition: 0.3s ease; border: none; }
.btn-gold:hover { background: #fff176; box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5); transform: translateY(-2px); }

/* Живая лента доната */
.live-feed-box {
    flex: 1;
    background: rgba(12, 15, 22, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.02);
    height: 410px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.live-feed-box h3 {
    font-size: 18px;
    margin: 0 0 20px 0;
    font-weight: 800;
    border-bottom: 1px solid #232936;
    padding-bottom: 15px;
}

.feed-container { display: flex; flex-direction: column; gap: 12px; overflow-y: hidden; flex-grow: 1; }
.feed-item { display: flex; justify-content: space-between; align-items: center; background: rgba(5, 6, 8, 0.8); padding: 12px 18px; border-radius: 8px; border-left: 3px solid var(--gold); }
.feed-user { font-weight: 700; font-size: 14px; }
.feed-amount { background: rgba(255,215,0,0.1); color: var(--gold); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 15px; }
.feed-placeholder { color: var(--text-gray); text-align: center; margin-top: 100px; font-style: italic; }

/* Категории витрины товаров */
.shop-sub-title { font-size: 24px; text-transform: uppercase; margin: 60px 0 30px 0; font-weight: 900; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.03); padding-bottom: 15px; text-align: center; }
.shop-sub-title span { color: var(--blue); }
.products-grid { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

.product-card { 
    background: rgba(12, 15, 22, 0.65); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.03); 
    border-radius: 12px; 
    padding: 30px 20px; 
    width: 260px; 
    text-align: center; 
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(0,0,0,0.5); border-color: rgba(51, 153, 255, 0.3); }
.product-icon { font-size: 40px; margin-bottom: 15px; }
.product-card h4 { margin: 0 0 10px 0; font-size: 17px; font-weight: 800; color: var(--text-white); }
.product-card p { font-size: 13px; color: var(--text-gray); margin: 0 0 20px 0; line-height: 1.5; min-height: 40px; }
.product-price { display: inline-block; font-size: 13px; font-weight: 800; color: var(--blue); background: rgba(51, 153, 255, 0.05); padding: 5px 14px; border-radius: 20px; border: 1px solid rgba(51, 153, 255, 0.1); }

/* [ОБНОВЛЕНО] Стилизация двух новых типов древних ключей */
.key-purple {
    border-color: rgba(155, 93, 229, 0.15) !important;
}
.key-purple:hover {
    border-color: #9b5de5 !important;
    box-shadow: 0 0 20px rgba(155, 93, 229, 0.25) !important;
}
.key-purple .product-price {
    color: #9b5de5;
    background: rgba(155, 93, 229, 0.05);
    border-color: rgba(155, 93, 229, 0.1);
}

.key-gold {
    border-color: rgba(255, 215, 0, 0.15) !important;
}
.key-gold:hover {
    border-color: var(--gold) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.25) !important;
}
.key-gold .product-price {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.1);
}


@media (max-width: 768px) {
    .shop-layout { flex-direction: column; }
    .donate-box, .live-feed-box, .product-card, .rank-display-card { width: 100%; }
}
