﻿/* ============================================
   PRICING SECTION — МійВчитель
   ============================================ */

.pricing_section {
    position: relative;
    padding: 100px 40px 120px;
    background: transparent;
    overflow: hidden;
    text-align: center;
}

/* ---------- Parallax Background Elements ---------- */
.pricing_parallax_bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.px_orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    will-change: transform;
    transition: transform 0.1s linear;
}

.px_orb_1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #a855f7 0%, transparent 70%);
    top: 10px;
    left: 15px;
}

.px_orb_2 {
    width: 500px;
    height: 137px;
    background: radial-gradient(circle, #06ccd4 0%, transparent 70%);
    bottom: 109px;
    right: 45px;
}

.px_orb_3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #71ffd7 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.2;
}

/* Floating geometric shapes */
.px_shape {
    position: absolute;
    will-change: transform;
}

.px_shape_1 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(113, 255, 215, 0.25);
    border-radius: 20px;
    top: 15%;
    left: 8%;
    transform: rotate(20deg);
    animation: float_shape_1 8s ease-in-out infinite;
}

.px_shape_2 {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(168, 85, 247, 0.35);
    border-radius: 50%;
    top: 70%;
    left: 5%;
    animation: float_shape_2 11s ease-in-out infinite;
}

.px_shape_3 {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(6, 182, 212, 0.25);
    border-radius: 24px;
    top: 10%;
    right: 6%;
    transform: rotate(-30deg);
    animation: float_shape_1 10s ease-in-out infinite reverse;
}

.px_shape_4 {
    width: 60px;
    height: 60px;
    background: rgba(113, 255, 215, 0.07);
    border: 1px solid rgba(113, 255, 215, 0.2);
    border-radius: 12px;
    bottom: 18%;
    right: 9%;
    transform: rotate(45deg);
    animation: float_shape_2 9s ease-in-out infinite;
}

.px_shape_5 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.25);
    top: 45%;
    left: 14%;
    animation: float_shape_1 7s ease-in-out infinite;
}

.px_shape_6 {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.2);
    top: 30%;
    right: 12%;
    animation: float_shape_2 12s ease-in-out infinite;
}

.px_star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    animation: twinkle 3s ease-in-out infinite;
}

.px_star:nth-child(1)  { top: 12%; left: 22%; animation-delay: 0s; }
.px_star:nth-child(2)  { top: 28%; left: 80%; animation-delay: 0.5s; }
.px_star:nth-child(3)  { top: 55%; left: 18%; animation-delay: 1s; }
.px_star:nth-child(4)  { top: 80%; left: 60%; animation-delay: 1.5s; }
.px_star:nth-child(5)  { top: 38%; left: 93%; animation-delay: 0.8s; }
.px_star:nth-child(6)  { top: 65%; left: 40%; animation-delay: 2s; }
.px_star:nth-child(7)  { top: 90%; left: 25%; animation-delay: 0.3s; }
.px_star:nth-child(8)  { top: 8%;  left: 55%; animation-delay: 1.2s; }
.px_star:nth-child(9)  { top: 48%; left: 70%; animation-delay: 0.6s; }
.px_star:nth-child(10) { top: 72%; left: 88%; animation-delay: 1.8s; }

@keyframes float_shape_1 {
    0%, 100% { transform: translateY(0) rotate(20deg); }
    50%       { transform: translateY(-25px) rotate(30deg); }
}

@keyframes float_shape_2 {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(20px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 0.1; transform: scale(0.4); }
}

/* ---------- Section Title ---------- */
.pricing_section .pricing_title_wrap {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.pricing_section .pricing_eyebrow {
    display: inline-block;
    background: linear-gradient(135deg, rgba(113, 255, 215, 0.18), rgba(113, 255, 215, 0.06));
    border: 1px solid rgba(113, 255, 215, 0.35);
    color: #71ffd7;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 22px;
    border-radius: 50px;
    margin-bottom: 22px;
}

.pricing_section .pricing_h {
    color: #fff;
    font-size: 52px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 14px;
}

.pricing_section .pricing_h span {
    color: #71ffd7;
    font-weight: 500;
}

.pricing_section .pricing_sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 17px;
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* ---------- Discount Badge ---------- */
.pricing_discount_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffcb00, #fba329);
    color: #1a0538;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(251, 163, 41, 0.5);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    animation: badge_pulse 2.5s ease-in-out infinite;
}

.pricing_discount_badge .badge_icon {
    font-size: 18px;
}

@keyframes badge_pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(251, 163, 41, 0.5); }
    50%       { box-shadow: 0 4px 35px rgba(251, 163, 41, 0.85); }
}

/* ---------- Cards Grid ---------- */
.pricing_cards_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ---------- Card ---------- */
.pricing_card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    padding: 40px 30px 36px;
    position: relative;
    overflow: hidden;
    text-align: left;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    cursor: default;

    /* Entrance animation */
    opacity: 0;
    transform: translateY(40px) scale(0.96);
}

.pricing_card.card_visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.36, 0.64, 1),
                box-shadow 0.35s ease, border-color 0.35s ease;
}

.pricing_card:nth-child(1) { transition-delay: 0s; }
.pricing_card:nth-child(2) { transition-delay: 0.12s; }
.pricing_card:nth-child(3) { transition-delay: 0.24s; }

.pricing_card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(113, 255, 215, 0.3);
    border-color: rgba(113, 255, 215, 0.4);
}

/* Popular card */
.pricing_card.card_popular {
    background: linear-gradient(145deg, rgba(113, 255, 215, 0.12) 0%, rgba(102, 0, 191, 0.3) 100%);
    border-color: rgba(113, 255, 215, 0.5);
    box-shadow: 0 20px 50px rgba(113, 255, 215, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateY(0) scale(1.04);
}

.pricing_card.card_popular.card_visible {
    transform: translateY(0) scale(1.04);
}

.pricing_card.card_popular:hover {
    transform: translateY(-10px) scale(1.06);
    box-shadow: 0 36px 70px rgba(113, 255, 215, 0.25), 0 0 0 1px rgba(113, 255, 215, 0.5);
}

/* Glow overlay inside card */
.pricing_card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(113, 255, 215, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* ---------- Popular Badge ---------- */
.card_popular_badge {
    display: none;
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #71ffd7 0%, #00c9a5 100%);
    color: #1a0538;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 0 0 16px 16px;
    white-space: nowrap;
}

.pricing_card.card_popular .card_popular_badge {
    display: block;
}

/* ---------- Card Header ---------- */
.card_class_tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(113, 255, 215, 0.2), rgba(113, 255, 215, 0.06));
    border: 1px solid rgba(113, 255, 215, 0.4);
    color: #71ffd7;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.card_class_name {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.1;
}

.card_seats {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgb(247 184 40 / 85%);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

.card_seats_dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #71ffd7;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(113, 255, 215, 0.8);
    animation: dot_blink 2s ease-in-out infinite;
}

@keyframes dot_blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ---------- Price Block ---------- */
.card_price_block {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 20px 20px 16px;
    margin-bottom: 24px;
    position: relative;
}

.card_original_price {
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    font-weight: 500;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.card_current_price {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
}

.card_current_price span.currency {
    font-size: 20px;
    font-weight: 600;
    vertical-align: top;
    line-height: 1.5;
    color: rgba(255,255,255,0.75);
}

.card_per_month {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 400;
}

.card_discount_pill {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #ffcb00, #fba329);
    color: #1a0538;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
}

/* ---------- Features List ---------- */
.card_features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 12px;
}

.card_features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.card_features li .feat_check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #71ffd7, #00c9a5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.card_features li .feat_check svg {
    width: 11px;
    height: 11px;
    stroke: #1a0538;
    stroke-width: 2.5;
    fill: none;
}

/* Divider */
.card_divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0 24px;
}

/* ---------- CTA Button ---------- */
.card_cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.card_cta_primary {
    background: linear-gradient(140deg, #ffcb00 10%, #fba329 90%);
    color: #fff;
    box-shadow: inset 0 -3px 0 rgba(204, 119, 0, 0.6),
                0 6px 20px rgba(251, 163, 41, 0.45);
}

.card_cta_primary:hover {
    transform: scale(0.97);
    box-shadow: inset 0 0 0 rgba(0,0,0,0), 0 3px 10px rgba(251, 163, 41, 0.3);
    opacity: 0.92;
}

.card_cta_outline {
    background: transparent;
    color: #71ffd7;
    border: 2px solid rgba(113, 255, 215, 0.45);
}

.card_cta_outline:hover {
    background: rgba(113, 255, 215, 0.08);
    transform: scale(0.97);
    border-color: rgba(113, 255, 215, 0.8);
}

/* ---------- Bottom Note ---------- */
.pricing_note {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin-top: 50px;
}

.pricing_note a {
    color: #71ffd7;
    text-decoration: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .pricing_cards_grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .pricing_card.card_popular {
        transform: scale(1);
    }

    .pricing_card.card_popular:hover {
        transform: translateY(-10px) scale(1.02);
    }

    .pricing_card.card_popular.card_visible {
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 600px) {
    .pricing_section {
        padding: 70px 20px 90px;
    }

    .pricing_section .pricing_h {
        font-size: 34px;
    }

    .pricing_section .pricing_sub {
        font-size: 15px;
        margin-bottom: 40px;
    }

    .px_shape_1, .px_shape_3 {
        display: none;
    }

    .pricing_cards_grid {
        max-width: 100%;
    }
}
