@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap');

/* Скрываем скроллбар для всех браузеров */
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
    scroll-behavior: smooth; /* Плавный скролл */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    font-family: 'Manrope', sans-serif;
    background: #ffffff !important;
    /* Скрываем скроллбар для всех браузеров */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
    overflow-x: hidden; /* Предотвращаем горизонтальный скролл */
    overflow-y: auto; /* Разрешаем вертикальный скролл */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Скрываем скроллбары для всех элементов на странице */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

#app {
    min-height: 100vh;
}

.subscription-header {
    background-color: #007bff !important;
    color: white;
    padding: 2.5rem 1rem 1.5rem 1rem !important;
    border-radius: 0;
    text-shadow: none;
    margin-bottom: 0;
    position: relative;
}

/* Стилизация кнопки назад как в profile.css */
.back-button {
    position: absolute;
    top: 32px;
    left: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    transition: all 0.2s;
    text-decoration: none;
    z-index: 10;
    color: #fff;
    padding: 0;
}
.back-button:hover, .back-button:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    text-decoration: none;
}
.back-button .fa-home {
    color: #fff;
    font-size: 1.1rem;
}
.back-button:hover .fa-home {
    color: #fff;
}

.subscription-header .logo-image {
    width: 70px !important;
    height: 70px !important;
    margin-bottom: 1rem;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s;
}

.subscription-header .logo-image:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 32px rgba(66, 211, 255, 0.25), 0 2px 10px rgba(0,0,0,0.15);
}

.subscription-header h1 {
    font-weight: 800;
    font-size: 2.8rem;
}

.subscription-header .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-container {
    margin-top: 6rem; /* опускаем карточки ниже шапки */
    margin-bottom: 4rem;
    position: relative;
    z-index: 5;
}

.pricing-row {
    margin-bottom: 2rem;
}

.pricing-row .col-lg-4, .pricing-row .col-md-6 {
    margin-bottom: 2rem;
}

.pricing-row:last-child {
    margin-bottom: 0;
}

.pricing-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%; /* Make cards in a row equal height */
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.pricing-card .card-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pricing-card .card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a202c;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a202c;
    line-height: 1;
}

.pricing-card .price .period {
    font-size: 1rem;
    font-weight: 600;
    color: #718096;
}

.pricing-card .card-text {
    color: #4a5568;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    min-height: 40px;
}

.pricing-card .features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-card .features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2d3748;
}

.pricing-card .features i {
    color: #48bb78;
    margin-right: 12px;
    font-size: 1.2rem;
}

.pricing-card .btn {
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: auto;
    transition: all 0.3s ease;
}

/* Plan Specifics */

.pricing-card.current-plan {
    background-color: #f7fafc;
}

.pricing-card.current-plan .btn {
    background-color: #e2e8f0;
    border-color: #e2e8f0;
    color: #2d3748;
}

/* Free for Channel Subscription */
.card-free-channel .btn {
    background: #007bff;
    border-color: #007bff;
    color: white;
}
.card-free-channel .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(78, 129, 237, 0.4);
}

/* Recommended Plan Styling */
.pricing-card.recommended {
    border-width: 0;
    position: relative;
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.recommended:hover {
    transform: scale(1.05) translateY(-10px);
}

.recommended-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #f6ad55;
    color: #1a202c;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card.recommended .btn {
    background: linear-gradient(135deg, #42a5ff 0%, #42d3ff 100%);
    color: white;
    border: none;
}
.pricing-card.recommended .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(66, 163, 255, 0.2);
}

/* Премиум (Профи) карточка */
.card-pro {
    background-color: #1a202c;
}
.card-pro .card-title,
.card-pro .price,
.card-pro .features li {
    color: #f7fafc;
}
.card-pro .price .period,
.card-pro .card-text {
    color: #a0aec0;
}
.card-pro .features i {
    color: #f6ad55;
}
.card-pro .btn {
    background: linear-gradient(135deg, #f6ad55 0%, #e58a2d 100%);
    color: #1a202c;
}
.card-pro .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(246, 173, 85, 0.4);
}

@media (max-width: 991.98px) {
    .pricing-card.recommended {
        transform: scale(1); /* Don't scale on tablet */
    }
}

@media (max-width: 767.98px) {
    .pricing-container {
        margin-top: 3rem; /* на мобильных опускаем чуть, но без отрицательного */
    }
    .subscription-header h1 {
        font-size: 2.2rem;
    }
} 

/* ---- Terms Modal Styling ---- */
#termsModal .modal-dialog {
    max-width: 480px;
}

#termsModal .modal-content {
    border: none;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.4s ease-out;
}

#termsModal .modal-header {
    background: linear-gradient(135deg, #42a5ff 0%, #42d3ff 100%);
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

#termsModal .modal-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

#termsModal .close {
    color: #fff;
    opacity: 0.9;
    text-shadow: none;
}
#termsModal .close:hover {
    color: #f7fafc;
}

#termsModal .modal-body {
    padding: 1.75rem 1.5rem 1.25rem 1.5rem;
    background-color: #ffffff;
}

#termsModal .modal-body p {
    font-size: 0.95rem;
    color: #4a5568;
}

#termsModal .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 4px;
}

#termsModal .form-check-label {
    padding-left: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

#termsModal .modal-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    background-color: #ffffff;
    border-top: none;
}

#termsModal .btn-primary {
    background: linear-gradient(135deg, #42a5ff 0%, #42d3ff 100%);
    border: none;
    font-weight: 700;
    transition: all 0.3s ease;
}
#termsModal .btn-primary:hover {
    box-shadow: 0 7px 20px rgba(66, 163, 255, 0.4);
    transform: translateY(-2px);
}

/* Animation for modal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
} 

.special-offer {
    color: #ff6f61;
    font-weight: bold;
}

.subscription-page ::-webkit-scrollbar {
    width: 8px;
}
.subscription-page ::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.subscription-page ::-webkit-scrollbar-thumb {
    background: #88a4ff;
    border-radius: 6px;
}
.subscription-page ::-webkit-scrollbar-thumb:hover {
    background: #5577ff;
} 

#floating-icons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    display: block;
    opacity: 0;
    transition: opacity 0.5s;
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1); /* делаем иконки белыми как в tasks */
}

.pricing-card:not(.card-pro) {
    border: 2px solid #007bff;
}

.card-pro {
    border: 2px solid #f6ad55;
} 