/* --- КАРТОЧКА БУСТЕРА --- */
.booster-card {
    background: var(--bg-card, #fdfaf6);
    border: 1px solid var(--border, #eadfd2);
    border-radius: 14px;
    padding: 20px;
    color: var(--text-main, #2c1810);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px; /* Отступ от других блоков */
}

.booster-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main, #2c1810);
    margin-bottom: 16px;
}

.booster-header i {
    color: var(--accent, #b5722c);
    font-size: 20px;
}

.booster-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    font-size: 13.5px;
    color: var(--text-dim, #7a6b63);
    line-height: 1.5;
}

.booster-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.booster-features li i {
    color: var(--accent, #b5722c);
    font-size: 14px;
    margin-top: 3px;
    width: 16px;
    text-align: center;
}

.booster-divider {
    height: 1px;
    background: var(--border, #eadfd2);
    margin: 16px 0;
}

/* Футер с ценой и кнопкой */
.booster-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.booster-price-block {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
}


.booster-price-sub {
    font-size: 12px;
    color: var(--text-dim, #7a6b63);
    margin-top: 4px;
}

.booster-price.is-paid {
    font-size: 18px !important; /* Уменьшаем размер */
    color: var(--c-accent-deep); /* Или любой другой цвет */
    font-weight: 600;
    letter-spacing: 0;
}
/* Кнопки */
.btn-booster {
    background: var(--accent, #b5722c);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-booster:hover {
    background: var(--accent-hover, #9f6120);
}

.btn-booster:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* --- СОСТОЯНИЕ: PREMIUM (Ожидает применения) --- */
.booster-card.premium {
    border-color: var(--accent, #b5722c);
    background: #fffaf4;
}

.booster-card.premium .booster-price {
    font-size: 15px;
    color: var(--accent, #b5722c);
    font-weight: 600;
}

/* --- СОСТОЯНИЕ: АКТИВЕН (Уже применен) --- */
.booster-card.active {
    border-color: #10b981;
    background: #ecfdf5;
}

.booster-card.active .booster-header i,
.booster-card.active .booster-features li i {
    color: #10b981;
}

.booster-card.active .booster-price {
    color: #10b981;
    font-size: 16px;
}

.booster-card.active .btn-booster {
    display: none;
}


.booster-card.active .active-badge {
    display: flex;
}

/* --- МОДАЛКА БУСТЕРА --- */
.booster-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 24, 16, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInBooster 0.2s ease;
}

.booster-modal-overlay[hidden] {
    display: none !important;
}

@keyframes fadeInBooster {
    from { opacity: 0; }
    to { opacity: 1; }
}

.booster-modal-content {
    background: var(--bg-card, #fdfaf6);
    border: 1px solid var(--border, #eadfd2);
    border-radius: 16px;
    padding: 32px 28px 24px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    color: var(--text-main, #2c1810);
    animation: popInBooster 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes popInBooster {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.booster-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-dim, #7a6b63);
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.booster-modal-close:hover {
    background: var(--border, #eadfd2);
    color: var(--text-main, #2c1810);
}

.booster-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.booster-modal-header i {
    font-size: 32px;
    color: var(--accent, #b5722c);
    margin-bottom: 12px;
}

.booster-modal-header h2 {
    font-size: 22px;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.booster-modal-header p {
    font-size: 14px;
    color: var(--text-dim, #7a6b63);
    margin: 0;
}

/* --- ШТОРКА ОПЛАТЫ --- */
/* --- ШТОРКА ОПЛАТЫ --- */
.payment-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    justify-content: flex-end;
}

.payment-drawer-overlay[hidden] {
    display: none !important;
}

.payment-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(44, 24, 16, 0.6);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

.payment-drawer-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: #fdfaf6;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
    overflow-y: auto;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #7a6b63;
    cursor: pointer;
}

.drawer-header { text-align: center; margin-bottom: 20px; }
.drawer-header h3 { font-size: 22px; color: #2c1810; margin-bottom: 6px; }
.drawer-header p { font-size: 14px; color: #7a6b63; line-height: 1.4; }

/* Контейнер для QR и цены */
/* Блок QR + Цена */
.drawer-payment-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
    width: 100%;
}

/* Контейнер под QR */
.drawer-qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px; /* Чтобы не прыгало пока грузится */
    width: 260px;
    height: 260px;
}

.drawer-qr-container img {
    border-radius: 8px;
    background: #fff; /* Белый фон под прозрачным QR */
    padding: 8px;
    border: 1px solid var(--c-line, #eadfd2);
    object-fit: contain;
}

/* Цена */
.booster-price-block {
    text-align: center;
}

.booster-price {
    font-family: var(--f-sans);
    font-size: 92px;
    font-weight: 700;
    color: var(--c-ink, #2c1810);
    line-height: 1;
}

.booster-price-sub {
    font-size: 15px;
    color: var(--c-ink-muted, #7a6b63);
    margin-top: 6px;
}

/* Блок "Что входит" */
.drawer-includes {
    background: #faf6ef;
    border: 1px solid #eadfd2;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.includes-title {
    font-size: 14px;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 12px;
}

.includes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #7a6b63;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.includes-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.includes-list li i {
    color: #10b981; /* Зеленая галочка */
    font-size: 14px;
    margin-top: 3px;
}

/* Футер */
.drawer-footer { 
    margin-top: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

/* Кнопка "Применить" (появляется после оплаты) */
.btn-booster {
    background: var(--accent, #b5722c);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    width: 100%;
}

.btn-booster:hover {
    background: #9f6120;
}

/* Плашка "Активен" */
.active-badge {
    display: flex;
    color: #10b981;
    font-weight: 700;
    font-size: 15px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #ecfdf5;
    border-radius: 8px;
    border: 1px solid #10b981;
}

/* =========================================================
   МОДАЛКА ПРИМЕНЕНИЯ БУСТЕРА ДЛЯ PREMIUM
   ========================================================= */
.premium-booster-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important; /* Высокий приоритет */
    background: rgba(44, 24, 16, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    
    /* ЖЕСТКО ЗАДАЕМ НЕПРОЗРАЧНОСТЬ */
    opacity: 1 !important; 
}

.premium-booster-overlay[hidden] {
    display: none !important;
}

.premium-booster-card {
    position: relative;
    background: #fdfaf6;
    border: 1px solid #eadfd2;
    border-radius: 20px;
    padding: 32px 24px 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: popIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.premium-booster-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #7a6b63;
    cursor: pointer;
    transition: color 0.2s;
}
.premium-booster-close:hover { color: #2c1810; }

.premium-booster-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5d98b 0%, #e8b84a 45%, #c98a1f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #2b1c05;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(232, 184, 74, 0.4);
}

.premium-booster-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 8px;
}

.premium-booster-sub {
    font-size: 14px;
    color: #7a6b63;
    line-height: 1.5;
    margin-bottom: 24px;
}

.premium-booster-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium-booster-actions .btn {
    padding: 14px;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.premium-booster-actions .btn-primary {
    background: #b5722c;
    color: #fff;
    border: none;
}
.premium-booster-actions .btn-primary:hover { background: #9f6120; }

.premium-booster-actions .btn-ghost {
    background: transparent;
    color: #7a6b63;
    border: 1px solid #eadfd2;
}
.premium-booster-actions .btn-ghost:hover { background: #f5f3eb; }

.booster-terms {
    margin-top: 16px;
    margin-bottom: 20px;
    text-align: center;
    padding: 0 10px;
}

.booster-terms p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--c-ink-muted, #7a6b63);
    margin: 0;
    font-style: italic; /* Чтобы визуально отличалось от основного текста */
}