/* ============================================================
   CYBER//TYPE — Subscription Styles
   Планы подписки, Premium-статус, модалка оплаты
   ============================================================ */

/* ==================== PREMIUM BADGE (user panel) ==================== */
.premium-badge {
    display: inline-block;
    padding: 3px 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    color: #000;
    background: linear-gradient(90deg, #bf00ff, #ff00c8);
    box-shadow: 0 0 12px rgba(191, 0, 255, 0.5);
    animation: premiumGlow 2s ease-in-out infinite;
}

@keyframes premiumGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(191, 0, 255, 0.4); }
    50%      { box-shadow: 0 0 20px rgba(191, 0, 255, 0.7), 0 0 40px rgba(191, 0, 255, 0.3); }
}

/* ==================== PREMIUM BUTTON (header) ==================== */
.premium-btn {
    padding: 8px 16px;
    background: rgba(191, 0, 255, 0.12);
    border: 1px solid rgba(191, 0, 255, 0.5);
    color: #bf00ff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    letter-spacing: 1px;
}
.premium-btn:hover {
    background: #bf00ff;
    color: #000;
    box-shadow: 0 0 25px rgba(191, 0, 255, 0.5);
}
.premium-btn.active-sub {
    border-color: var(--success);
    color: var(--success);
    background: rgba(0, 255, 0, 0.08);
}
.premium-btn.active-sub:hover {
    background: rgba(0, 255, 0, 0.15);
    color: var(--success);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

/* ==================== SUBSCRIPTION MODAL ==================== */
.subscription-modal {
    max-width: 720px;
    width: 95%;
    padding: 35px;
}

.subscription-modal .modal-title {
    margin-bottom: 10px;
}

.subscription-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin-bottom: 30px;
}

/* ==================== PLANS GRID ==================== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.plan-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(191, 0, 255, 0.2);
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.plan-card:hover {
    border-color: rgba(191, 0, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(191, 0, 255, 0.15);
}
.plan-card.selected {
    border-color: #bf00ff;
    background: rgba(191, 0, 255, 0.08);
    box-shadow: 0 0 20px rgba(191, 0, 255, 0.2);
}

/* Popular badge */
.plan-card.popular::before {
    content: 'ВЫГОДНО';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    letter-spacing: 1px;
    background: var(--warning);
    color: #000;
}

.plan-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: #bf00ff;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.plan-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 5px;
}

.plan-currency {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.plan-period {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 15px;
}

.plan-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.plan-per-day {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(191, 0, 255, 0.15);
    font-size: 11px;
    color: rgba(0, 255, 200, 0.6);
}

/* ==================== SUBSCRIBE BUTTON ==================== */
.btn-subscribe {
    display: block;
    width: 100%;
    padding: 16px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    letter-spacing: 3px;
    cursor: pointer;
    border: 2px solid #bf00ff;
    background: linear-gradient(90deg, rgba(191, 0, 255, 0.2), rgba(191, 0, 255, 0.1));
    color: #bf00ff;
    transition: all 0.3s;
}
.btn-subscribe:hover {
    background: #bf00ff;
    color: #000;
    box-shadow: 0 0 30px rgba(191, 0, 255, 0.5);
}
.btn-subscribe:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==================== ACTIVE SUBSCRIPTION STATUS ==================== */
.sub-status {
    text-align: center;
    padding: 20px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    background: rgba(0, 255, 0, 0.05);
    margin-bottom: 20px;
}

.sub-status-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: var(--success);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.sub-status-plan {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.sub-status-expires {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 5px;
}

/* ==================== FEATURES LIST ==================== */
.premium-features {
    padding: 0;
    margin: 0 0 25px;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.premium-features li {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    padding-left: 18px;
    position: relative;
}
.premium-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #bf00ff;
}

/* ==================== SUBSCRIPTION LOADING ==================== */
.sub-loading {
    display: none;
    text-align: center;
    padding: 40px;
}
.sub-loading.show { display: block; }

/* ==================== PROMO CODE ==================== */
.promo-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.promo-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(191, 0, 255, 0.15);
}
.promo-divider span {
    position: relative;
    padding: 0 15px;
    background: var(--bg, #0a0a0f);
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.promo-section {
    margin-bottom: 10px;
}

.promo-input-row {
    display: flex;
    gap: 10px;
}

.promo-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(191, 0, 255, 0.25);
    color: var(--primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.3s;
}
.promo-input:focus {
    border-color: rgba(191, 0, 255, 0.6);
}
.promo-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
    text-transform: none;
}

.btn-promo {
    padding: 12px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    border: 1px solid rgba(191, 0, 255, 0.5);
    background: rgba(191, 0, 255, 0.1);
    color: #bf00ff;
    transition: all 0.3s;
    white-space: nowrap;
}
.btn-promo:hover {
    background: rgba(191, 0, 255, 0.25);
    box-shadow: 0 0 15px rgba(191, 0, 255, 0.3);
}
.btn-promo:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.promo-error {
    color: var(--secondary, #ff2d55);
    font-size: 12px;
    margin-top: 8px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
    .subscription-modal {
        padding: 25px 15px;
    }
    .premium-features {
        grid-template-columns: 1fr;
    }
    .promo-input-row {
        flex-direction: column;
    }
}
