/* ==========================================================
   AnimeHub - Страница подписки AniPlus (/aniplus)
   ========================================================== */

.aniplus-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 20px 20px;
    color: #f3f4f6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .aniplus-container {
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

.aniplus-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.aniplus-back-link:hover {
    color: #ff3b5c;
    transform: translateX(-3px);
}

/* ==========================================================
   Hero секция
   ========================================================== */
.aniplus-hero {
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(255, 59, 92, 0.25) 0%, rgba(20, 21, 28, 0.85) 75%);
    border: 1px solid rgba(255, 59, 92, 0.35);
    border-radius: 24px;
    padding: 46px 36px 40px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.aniplus-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 59, 92, 0.35) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(30px);
}

.aniplus-hero-logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.aniplus-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 59, 92, 0.35) 0%, rgba(14, 15, 20, 0.95) 100%);
    border: 2px solid rgba(255, 59, 92, 0.65);
    box-shadow: 0 0 28px rgba(255, 59, 92, 0.55), inset 0 0 16px rgba(255, 59, 92, 0.3);
    flex-shrink: 0;
    margin-bottom: 0;
    animation: aniplusHeroFloat 4s ease-in-out infinite alternate;
}

.aniplus-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 59, 92, 1));
}

@keyframes aniplusHeroFloat {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 24px rgba(255, 59, 92, 0.45), inset 0 0 14px rgba(255, 59, 92, 0.25);
    }
    100% {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 0 38px rgba(255, 59, 92, 0.8), inset 0 0 22px rgba(255, 59, 92, 0.45);
    }
}

.aniplus-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    box-sizing: border-box;
    white-space: nowrap;
    background: rgba(255, 59, 92, 0.16);
    color: #ff3b5c;
    border: 1px solid rgba(255, 59, 92, 0.4);
    padding: 0 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 auto 20px;
    line-height: 1;
}

.aniplus-hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.aniplus-gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #ff5270 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aniplus-hero-sub {
    font-size: 16.5px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .aniplus-hero {
        padding: 30px 20px 28px;
        border-radius: 18px;
    }

    .aniplus-hero-logo-box {
        margin-bottom: 16px;
    }

    .aniplus-logo-wrap {
        width: 64px;
        height: 64px;
        margin-bottom: 0;
    }

    .aniplus-logo-img {
        width: 36px;
        height: 36px;
    }

    .aniplus-hero-badge {
        height: 30px;
        padding: 0 10px;
        font-size: 10px;
        letter-spacing: 0.4px;
        white-space: nowrap;
        margin-bottom: 16px;
    }

    .aniplus-hero h1 {
        font-size: 26px;
    }

    .aniplus-hero-sub {
        font-size: 14.5px;
    }
}

/* ==========================================================
   Главная карточка тарифа / Покупка
   ========================================================== */
.aniplus-pricing-wrap {
    margin-bottom: 44px;
}

.aniplus-plan-card {
    background: linear-gradient(145deg, rgba(26, 27, 36, 0.95) 0%, rgba(18, 19, 25, 0.95) 100%);
    border: 2px solid rgba(255, 59, 92, 0.45);
    border-radius: 22px;
    padding: 32px 34px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 30px rgba(255, 59, 92, 0.15);
}

.aniplus-plan-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 59, 92, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.aniplus-plan-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 22px;
    margin-bottom: 24px;
}

.aniplus-plan-title-block h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
}

.aniplus-plan-title-block p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.aniplus-price-tag {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.aniplus-price-val {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(255, 59, 92, 0.4);
}

.aniplus-price-period {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.aniplus-plan-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
    margin-bottom: 28px;
}

@media (max-width: 680px) {
    .aniplus-plan-list {
        grid-template-columns: 1fr;
    }
}

.aniplus-plan-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.88);
}

.aniplus-check-icon {
    width: 18px;
    height: 18px;
    color: #ff3b5c;
    flex-shrink: 0;
}

.aniplus-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.aniplus-pay-btn {
    width: 100%;
    max-width: 440px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #ff3b5c 0%, #ff5270 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 59, 92, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    -webkit-tap-highlight-color: transparent;
}

.aniplus-pay-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ff4d6d 0%, #ff6b84 100%);
    box-shadow: 0 12px 30px rgba(255, 59, 92, 0.55);
}

.aniplus-pay-btn:active {
    transform: translateY(0);
}

.aniplus-pay-btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.9));
}

.aniplus-cta-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

@media (max-width: 768px) {
    .aniplus-plan-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .aniplus-price-val {
        font-size: 34px;
    }

    .aniplus-pay-btn {
        font-size: 15.5px;
        padding: 14px 20px;
    }
}

/* ==========================================================
   Интерактивное превью ника с AniPlus бейджем
   ========================================================== */
.aniplus-preview-section {
    background: #121319;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 26px 28px;
    margin-bottom: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.aniplus-preview-info {
    max-width: 480px;
}

.aniplus-preview-info h3 {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
}

.aniplus-preview-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.aniplus-mock-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(20, 21, 28, 0.9);
    border: 1px solid rgba(255, 59, 92, 0.35);
    padding: 14px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.aniplus-mock-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 59, 92, 0.5);
}

.aniplus-mock-user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aniplus-mock-username-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.aniplus-mock-username {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.aniplus-mock-badge-tag {
    font-size: 11px;
    font-weight: 600;
    color: #ff3b5c;
    background: rgba(255, 59, 92, 0.15);
    padding: 1px 7px;
    border-radius: 10px;
    border: 1px solid rgba(255, 59, 92, 0.3);
}

.aniplus-mock-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .aniplus-preview-section {
        padding: 20px 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .aniplus-mock-user-card {
        justify-content: flex-start;
    }
}

/* ==========================================================
   Сетка подробных привилегий
   ========================================================== */
.aniplus-section-header {
    text-align: center;
    margin-bottom: 28px;
}

.aniplus-section-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.aniplus-section-header p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.aniplus-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 44px;
}

.aniplus-feat-card {
    background: #121319;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px 22px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.aniplus-feat-card:hover {
    border-color: rgba(255, 59, 92, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 59, 92, 0.12);
}

.aniplus-feat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 59, 92, 0.12);
    border: 1px solid rgba(255, 59, 92, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ff3b5c;
    flex-shrink: 0;
}

.aniplus-feat-icon-wrap svg {
    width: 22px;
    height: 22px;
    color: #ff3b5c;
    stroke: #ff3b5c;
    filter: drop-shadow(0 0 5px rgba(255, 59, 92, 0.55));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.aniplus-feat-card:hover .aniplus-feat-icon-wrap svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 9px rgba(255, 59, 92, 0.9));
}

.aniplus-feat-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.aniplus-feat-card p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
    margin: 0;
}

/* ==========================================================
   Таблица сравнения: Базовый vs AniPlus
   ========================================================== */
.aniplus-compare-wrap {
    background: #121319;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 44px;
}

.aniplus-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.aniplus-compare-table th,
.aniplus-compare-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.aniplus-compare-table th {
    background: rgba(20, 21, 28, 0.8);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.aniplus-compare-table th:last-child {
    color: #ff3b5c;
}

.aniplus-compare-table tr:last-child td {
    border-bottom: none;
}

.aniplus-compare-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.aniplus-check-text {
    color: #ff3b5c;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.aniplus-table-check-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    stroke: #ff3b5c;
}

.aniplus-cross-text {
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 768px) {
    .aniplus-compare-table th,
    .aniplus-compare-table td {
        padding: 12px 14px;
        font-size: 13px;
    }
}

/* ==========================================================
   Модальное окно-заглушка оплаты
   ========================================================== */
.aniplus-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.aniplus-modal-backdrop.is-active {
    display: flex;
    opacity: 1;
}

.aniplus-modal-box {
    background: #14151c;
    border: 1px solid rgba(255, 59, 92, 0.4);
    border-radius: 22px;
    max-width: 480px;
    width: 100%;
    padding: 32px 28px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 59, 92, 0.2);
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.aniplus-modal-backdrop.is-active .aniplus-modal-box {
    transform: scale(1);
}

.aniplus-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.aniplus-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.aniplus-modal-icon-wrap {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 59, 92, 0.2) 0%, rgba(20, 21, 28, 0.9) 100%);
    border: 2px solid rgba(255, 59, 92, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 59, 92, 0.35);
}

.aniplus-modal-icon-wrap img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 59, 92, 0.8));
}

.aniplus-modal-box h3 {
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
}

.aniplus-modal-box p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0 0 20px;
}

.aniplus-pay-methods-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.aniplus-method-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.aniplus-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aniplus-modal-tg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ff3b5c;
    color: #ffffff;
    font-weight: 600;
    font-size: 14.5px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255, 59, 92, 0.35);
    transition: all 0.2s ease;
}

.aniplus-modal-tg-btn:hover {
    background: #ff5270;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 92, 0.5);
}

.aniplus-modal-cancel-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aniplus-modal-cancel-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

/* ==========================================================
   Стили оформления платежей и тестового режима
   ========================================================== */
.aniplus-test-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.16) 0%, rgba(255, 87, 34, 0.12) 100%);
    border: 1px solid rgba(255, 179, 0, 0.45);
    color: #ffd54f;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    box-shadow: 0 0 16px rgba(255, 179, 0, 0.18);
}

.aniplus-active-status {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 22px;
    color: #34d399;
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.12);
}

.aniplus-order-summary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 16px 0 20px;
    text-align: left;
}

.aniplus-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
}

.aniplus-order-row:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
}

.aniplus-order-row .highlight {
    color: #ff3b5c;
    font-size: 18px;
    font-weight: 800;
}

.aniplus-test-pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 14.5px;
    padding: 13px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
    width: 100%;
}

.aniplus-test-pay-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.aniplus-real-pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff3b5c 0%, #e11d48 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 14.5px;
    padding: 13px 20px;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 59, 92, 0.35);
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.aniplus-real-pay-btn:hover {
    background: linear-gradient(135deg, #ff5270 0%, #f43f5e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 92, 0.5);
}

.aniplus-modal-success-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(20, 21, 28, 0.9) 100%);
    border: 2px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.45);
    color: #34d399;
}

.aniplus-spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: aniplusSpin 0.7s linear infinite;
    display: inline-block;
}

@keyframes aniplusSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================
   Выбор тарифных планов (1 мес, 3 мес, 6 мес, 1 год)
   ========================================================== */
.aniplus-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .aniplus-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .aniplus-plans-grid {
        grid-template-columns: 1fr;
    }
}

.aniplus-plan-card-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 18px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.aniplus-plan-card-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 59, 92, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 59, 92, 0.15);
}

.aniplus-plan-card-item.is-selected {
    background: linear-gradient(145deg, rgba(255, 59, 92, 0.12) 0%, rgba(20, 21, 28, 0.9) 100%);
    border-color: #ff3b5c;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 59, 92, 0.35);
    transform: translateY(-3px);
}

.aniplus-plan-badge-top {
    position: absolute;
    top: -12px;
    right: 12px;
    background: linear-gradient(135deg, #ff3b5c 0%, #ff8a00 100%);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 59, 92, 0.4);
    letter-spacing: 0.3px;
    white-space: nowrap;
    line-height: 1.3;
    pointer-events: none;
    z-index: 2;
}

.aniplus-plan-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.aniplus-plan-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

.aniplus-plan-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.aniplus-plan-card-item.is-selected .aniplus-plan-radio {
    border-color: #ff3b5c;
    background: #ff3b5c;
}

.aniplus-plan-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    display: none;
}

.aniplus-plan-card-item.is-selected .aniplus-plan-radio::after {
    display: block;
}

.aniplus-plan-price-row {
    margin-bottom: 8px;
}

.aniplus-plan-main-price {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.aniplus-plan-old-price {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    margin-left: 6px;
}

.aniplus-plan-monthly-calc {
    font-size: 13.5px;
    font-weight: 700;
    color: #00f5d4;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.aniplus-plan-savings-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 245, 212, 0.12);
    border: 1px solid rgba(0, 245, 212, 0.25);
    color: #00f5d4;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
}

/* Модальное окно выбора тарифа */
.aniplus-modal-plans-select {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0 20px;
    text-align: left;
}

@media (max-width: 480px) {
    .aniplus-modal-plans-select {
        grid-template-columns: 1fr;
    }
}

.aniplus-modal-plan-opt {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.aniplus-modal-plan-opt:hover {
    border-color: rgba(255, 59, 92, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.aniplus-modal-plan-opt.is-active {
    background: rgba(255, 59, 92, 0.12);
    border-color: #ff3b5c;
    box-shadow: 0 0 16px rgba(255, 59, 92, 0.25);
}

.aniplus-modal-plan-opt-badge {
    position: absolute;
    top: -8px;
    right: 8px;
    background: #ff3b5c;
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 8px;
}

.aniplus-modal-plan-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.aniplus-modal-plan-price {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.aniplus-modal-plan-per-month {
    font-size: 11.5px;
    color: #00f5d4;
    font-weight: 600;
}

