/* --- СЕКЦИЯ МАГАЗИНА --- */
.cyber-shop-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 10rem 5% 4rem 5%;
    background: var(--bg);
    display: flex;
    justify-content: center;
    z-index: 10;
}

.giant-bg {
    position: fixed;
    /* Фиксируем фон */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-weight: 900;
    color: rgba(var(--fg-rgb), 0.02);
    letter-spacing: -0.05em;
    z-index: 0;
    pointer-events: none;
}

.shop-container {
    width: 100%;
    max-width: 1500px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.shop-header {
    text-align: center;
}

.shop-title {
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--fg);
}

/* Сетка карточек */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.shop-card {
    background: var(--surface-bg);
    border: 1px solid var(--border-light);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-10px);
}

/* Уникальные свечения для карточек */
.gem-emerald:hover {
    border-color: #2ecc71;
    box-shadow: 0 20px 40px rgba(46, 204, 113, 0.1);
}

.gem-diamond:hover {
    border-color: #00e5ff;
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.1);
}

.gem-sapphire:hover {
    border-color: #ba34db;
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.1);
}

.gem-ruby:hover {
    border-color: #e74c3c;
    box-shadow: 0 20px 40px rgba(231, 76, 60, 0.1);
}

.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.card-icon img {
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease;
}

.shop-card:hover .card-icon img {
    transform: scale(1.1) translateY(-5px);
}

.card-tier {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 0.2rem;
}

.card-duration {
    text-align: center;
    font-family: monospace;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.card-perks {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 3rem;
}

.card-perks li {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
    text-transform: none;
}

.card-perks li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--fg);
    font-weight: bold;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.card-price {
    font-size: 2rem;
    font-weight: 900;
}

.card-price span {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Кнопка покупки */
.buy-btn {
    background: transparent;
    color: var(--fg);
    border: 2px solid var(--fg);
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.buy-btn:hover {
    background: var(--fg);
    color: var(--bg);
}

/* Баннер: Серверные Монеты */
.coin-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(var(--fg-rgb), 0.03);
    border: 1px solid var(--border-light);
    padding: 3rem 4rem;
}

.coin-info {
    flex: 1;
    max-width: 600px;
}

/* Баннер Изображения */
.case-banner-img {
    width: 160px;
    height: auto;
    margin-right: 2rem;
    filter: drop-shadow(0 0 20px rgba(var(--fg-rgb), 0.5));
}

.banner-coin-icon {
    width: 80px;
    height: auto;
    margin-right: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(var(--fg-rgb), 0.3));
}

/* Действия (кнопки и цены) */
.case-banner-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.case-banner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.case-amount {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.case-amount span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.case-price {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--fg);
    margin-bottom: 1rem;
}

.case-buy-btn {
    width: 100%;
    min-width: 130px;
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
}

.case-buy-btn-dark {
    background: var(--fg);
    color: var(--bg);
}

.case-buy-btn-dark:hover {
    background: transparent;
    color: var(--fg);
}

.case-divider {
    width: 1px;
    height: 80px;
    background: rgba(255,255,255,0.1);
}

.coin-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.coin-info p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    text-transform: none;
}

.coin-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.coin-amount {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.coin-price {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--fg);
}

.banner-btn {
    margin-top: 1rem;
}

/* Контакты в подвале магазина */
.shop-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.85rem;
    color: var(--text-sub);
    text-transform: none;
    text-align: center;
}

.contact-line {
    flex-grow: 1;
    height: 1px;
    background: var(--border-light);
}

/* --- МОДАЛЬНОЕ ОКНО ПОКУПКИ --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--bg-rgb), 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease forwards;
}

.modal-content {
    background: var(--surface-bg);
    border: 1px solid var(--border-light);
    width: 100%;
    max-width: 600px;
    position: relative;
    animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--fg);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2rem 2.5rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.modal-body {
    padding: 2.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    color: var(--text-sub);
    text-transform: none;
    line-height: 1.6;
}

.admin-contact-box {
    margin-top: 2rem;
    background: rgba(var(--fg-rgb), 0.05);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--fg);
}

.admin-id-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dm-btn {
    background: transparent;
    border: 1px solid var(--fg);
    color: var(--fg);
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dm-btn:hover {
    background: var(--fg);
    color: var(--bg);
}