
/* --- НОВЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ PREMIUM --- */
.premium-page-bg {
    background: linear-gradient(160deg, #1a0b2e 0%, #0f061f 30%, #0a0a12 60%, #08030f 100%);
    background-attachment: fixed;
}

.premium-title-icon-bg {
    width: 100px; height: 100px;
    background: linear-gradient(145deg, rgba(250, 204, 21, 0.15), rgba(192, 132, 252, 0.15));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.2), 0 0 15px rgba(192, 132, 252, 0.2);
    position: relative;
}
.premium-title-icon-bg i.fa-crown {
    font-size: 3.5rem;
    color: #fde047; /* Яркий золотой */
    text-shadow: 0 0 10px #facc15, 0 0 20px #f59e0b;
    animation: crownPulse 2.5s infinite ease-in-out;
}
@keyframes crownPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
}

.premium-main-title {
    font-family: 'Russo One', sans-serif;
    font-size: 2.8rem; /* Увеличил */
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.5), 0 0 20px rgba(219, 39, 119, 0.3);
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}
.premium-subtitle {
    font-size: 1.1rem; /* Увеличил */
    color: #d1d5db; /* Светлее */
    opacity: 0.9;
    font-weight: 500;
}

.premium-active-banner {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.2), rgba(21, 128, 61, 0.3));
    border: 2px solid #34d399;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 5px 15px rgba(22, 163, 74, 0.2);
    animation: fadeInBanner 0.5s ease-out;
}
@keyframes fadeInBanner { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }

.premium-active-icon {
    font-size: 2.5rem;
    color: #34d399;
    flex-shrink: 0;
}
.premium-active-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #a7f3d0;
}
.premium-active-expiry {
    font-size: 0.9rem;
    color: #d1fae5;
}

.special-offer-banner {
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.85), rgba(219, 39, 119, 0.85)), 
                url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    border: 2px solid #fde047; /* Золотая рамка */
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.3), 0 0 30px rgba(219, 39, 119, 0.2) inset;
    animation: pulseBorder 2s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.special-offer-icon-container {
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    padding: 0.75rem;
    display: inline-flex;
    margin-bottom: 0.5rem;
}
.special-offer-icon {
    font-size: 2.5rem;
    color: #fde047;
    animation: fa-beat 1.5s infinite;
}

.special-offer-title {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 8px #fde047;
    margin-bottom: 0.25rem;
}
.special-offer-description {
    font-size: 0.9rem;
    color: #f3f4f6;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
    font-family: 'Russo One', sans-serif;
    margin-top: 0.5rem;
}
.countdown-segment {
    background-color: rgba(0,0,0,0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem; /* rounded-md */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}
.countdown-segment span:first-child {
    font-size: 1.75rem; /* text-3xl */
    line-height: 1;
    color: #fde047;
}
.countdown-label {
    font-size: 0.65rem; /* text-xs */
    color: #e5e7eb;
    text-transform: uppercase;
    margin-top: 0.1rem;
}
.countdown-separator {
    font-size: 1.5rem;
    color: #fde047;
    align-self: center;
    padding-bottom: 0.6rem; /* Примерно выровнять с цифрами */
}

@keyframes pulseBorder {
    0% { box-shadow: 0 8px 25px rgba(250, 204, 21, 0.3), 0 0 30px rgba(219, 39, 119, 0.2) inset, 0 0 0 0 rgba(253, 224, 71, 0.5); }
    50% { box-shadow: 0 8px 30px rgba(250, 204, 21, 0.4), 0 0 35px rgba(219, 39, 119, 0.3) inset, 0 0 0 4px rgba(253, 224, 71, 0); }
    100% { box-shadow: 0 8px 25px rgba(250, 204, 21, 0.3), 0 0 30px rgba(219, 39, 119, 0.2) inset, 0 0 0 0 rgba(253, 224, 71, 0.5); }
}

.premium-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem; /* Уменьшил gap */
}
.premium-benefit-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem; /* rounded-xl */
    padding: 1rem; /* Уменьшил padding */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.premium-benefit-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.benefit-icon {
    font-size: 2rem; /* Уменьшил */
    margin-bottom: 0.5rem; /* Уменьшил */
}
.benefit-title {
    font-size: 0.9rem; /* Уменьшил */
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem; /* Уменьшил */
}
.benefit-description {
    font-size: 0.75rem; /* Уменьшил */
    color: #d1d5db;
    line-height: 1.4;
}

.premium-tiers-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
@media (min-width: 640px) { /* sm breakpoint */
    .premium-tiers-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.premium-tier-card {
    background: linear-gradient(145deg, #26193d, #1c112e);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 1rem; /* rounded-2xl */
    padding: 1.5rem;
    text-align: center;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px; /* Для выравнивания высоты */
}
.premium-tier-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(126, 34, 206, 0.3), 0 0 20px rgba(250, 204, 21, 0.1);
    border-color: rgba(167, 139, 250, 0.5);
}
.premium-tier-card.disabled-tier {
    opacity: 0.7;
    cursor: not-allowed;
}
.premium-tier-card.disabled-tier:hover {
    transform: none;
    box-shadow: none;
}

.tier-icon-container {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    height: 60px; /* Фиксированная высота для выравнивания */
    display: flex;
    align-items: center;
    justify-content: center;
}
.tier-icon-container i {
    background: linear-gradient(45deg, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(192, 132, 252, 0.5));
}

.tier-name {
    font-family: 'Russo One', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}
.tier-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fde047; /* Золотой */
    margin-bottom: 0.25rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
}
.tier-star-icon {
    font-size: 1.2rem;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    vertical-align: middle;
}
.tier-star-icon-small {
    font-size: 0.7rem;
    margin-left: 0.1rem;
    vertical-align: baseline;
}
.tier-duration-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #d1d5db;
    margin-left: 0.25rem;
}
.tier-original-price {
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
    height: 1.2em; /* Резервируем место, чтобы не прыгало */
}
.tier-discount-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6ee7b7; /* Мятный */
    margin-bottom: 0.75rem;
    height: 1.3em; /* Резервируем место */
}
.tier-description {
    font-size: 0.8rem;
    color: #e5e7eb;
    opacity: 0.8;
    margin-bottom: 1.25rem;
    flex-grow: 1; /* Занимает доступное пространство */
    min-height: 40px; /* Минимальная высота для выравнивания */
}
.tier-subscribe-button {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
    border: none;
    width: 100%;
    margin-top: auto; /* Прижимает кнопку книзу */
}
.tier-subscribe-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.4);
    filter: brightness(1.1);
}
.tier-subscribe-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.premium-tier-card.highlighted-tier {
    transform: scale(1.05);
    border-color: #fde047; /* Золотая рамка */
    box-shadow: 0 10px 40px rgba(250, 204, 21, 0.25), 0 0 20px rgba(167, 139, 250, 0.15);
    z-index: 10;
}
.premium-tier-card.highlighted-tier:hover {
    transform: translateY(-5px) scale(1.07); /* Чуть больше эффект при ховере */
}

.best-value-banner {
    position: absolute;
    top: -1px; right: -1px;
    background: linear-gradient(45deg, #facc15, #fbbf24);
    color: #4c1d95; /* Темно-фиолетовый для контраста */
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 1.5rem 0.3rem 0.8rem;
    border-top-right-radius: 0.875rem; /* Соответствует карточке */
    border-bottom-left-radius: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.3);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 10% 100%, 0% 70%);
}

/* Анимация для появления элементов */
.premium-page-bg > div > * {
    animation: fadeInItem 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}
.premium-page-bg > div > *:nth-child(1) { animation-delay: 0.1s; }
.premium-page-bg > div > *:nth-child(2) { animation-delay: 0.2s; }
.premium-page-bg > div > *:nth-child(3) { animation-delay: 0.3s; }
.premium-page-bg > div > *:nth-child(4) { animation-delay: 0.4s; }
.premium-page-bg > div > *:nth-child(5) { animation-delay: 0.5s; }

.premium-benefits-grid .premium-benefit-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInBenefitCard 0.5s ease-out forwards;
}
@keyframes fadeInBenefitCard { to { opacity: 1; transform: translateY(0); } }

.premium-benefits-grid .premium-benefit-card:nth-child(1) { animation-delay: 0.35s; }
.premium-benefits-grid .premium-benefit-card:nth-child(2) { animation-delay: 0.4s; }
.premium-benefits-grid .premium-benefit-card:nth-child(3) { animation-delay: 0.45s; }
.premium-benefits-grid .premium-benefit-card:nth-child(4) { animation-delay: 0.5s; }
.premium-benefits-grid .premium-benefit-card:nth-child(5) { animation-delay: 0.55s; }
.premium-benefits-grid .premium-benefit-card:nth-child(6) { animation-delay: 0.6s; }


.premium-tiers-container .premium-tier-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: fadeInTierCard 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
@keyframes fadeInTierCard { to { opacity: 1; transform: translateY(0) scale(1); } }

.premium-tiers-container .premium-tier-card:nth-child(1) { animation-delay: 0.5s; }
.premium-tiers-container .premium-tier-card:nth-child(2) { animation-delay: 0.6s; } /* Центральная - чуть позже */
.premium-tiers-container .premium-tier-card:nth-child(3) { animation-delay: 0.55s; }


@keyframes fadeInItem {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

