:root {
    --pricing-dark: #0a1628;
    --pricing-gold: #d4af37;
    --pricing-gold-light: #f0d060;
    --pricing-white: #ffffff;
}

.pricing-page,
.pricing-page * {
    box-sizing: border-box;
}

.pricing-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    color: var(--pricing-white);
    background: var(--pricing-dark);
    font-family: "Plus Jakarta Sans", sans-serif;
}

html[dir="rtl"] .pricing-page,
html:lang(ar) .pricing-page,
html:lang(ku) .pricing-page {
    font-family: "Cairo", sans-serif;
}

.pricing-page #ocean-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pricing-page-content {
    position: relative;
    z-index: 1;
}

@keyframes pricing-fade-up {
    from {
        opacity: 0;
        transform: translateY(36px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pricing-shimmer {
    from {
        background-position: -200% center;
    }

    to {
        background-position: 200% center;
    }
}

@keyframes pricing-float {
    0%, 100% {
        transform: translateY(-8px);
    }

    50% {
        transform: translateY(-18px);
    }
}

@keyframes pricing-badge-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

@keyframes pricing-border-flow {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 200% 50%;
    }
}

@keyframes pricing-gold-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, .30), 0 32px 64px rgba(0, 0, 0, .45);
    }

    50% {
        box-shadow: 0 0 0 18px rgba(212, 175, 55, 0), 0 32px 64px rgba(0, 0, 0, .45);
    }
}

@keyframes pricing-shine-ltr {
    0% {
        left: -80%;
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    55% {
        left: 140%;
        opacity: 1;
    }

    56%, 100% {
        left: 140%;
        opacity: 0;
    }
}

@keyframes pricing-shine-rtl {
    0% {
        right: -80%;
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    55% {
        right: 140%;
        opacity: 1;
    }

    56%, 100% {
        right: 140%;
        opacity: 0;
    }
}

@keyframes pricing-trial-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0), inset 3px 0 0 rgba(212, 175, 55, .55);
    }

    50% {
        box-shadow: 0 0 28px 4px rgba(212, 175, 55, .14), inset 3px 0 0 var(--pricing-gold);
    }
}

html[dir="rtl"] .pricing-page .trial-notice {
    animation-name: pricing-trial-pulse-rtl;
}

@keyframes pricing-trial-pulse-rtl {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0), inset -3px 0 0 rgba(212, 175, 55, .55);
    }

    50% {
        box-shadow: 0 0 28px 4px rgba(212, 175, 55, .14), inset -3px 0 0 var(--pricing-gold);
    }
}

@keyframes pricing-featured-glow {
    0%, 100% {
        opacity: .55;
        transform: scale(.96);
    }

    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

@keyframes pricing-enterprise-breathe {
    0%, 100% {
        border-color: rgba(212, 175, 55, .25);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 32px rgba(0, 0, 0, .22);
    }

    50% {
        border-color: rgba(212, 175, 55, .55);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 44px rgba(0, 0, 0, .28), 0 0 32px rgba(212, 175, 55, .14);
    }
}

.pricing-page .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .7s ease;
}

    .pricing-page .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

.pricing-hero {
    padding: 7rem 0 3.25rem;
    text-align: center;
}

.pricing-hero-title {
    margin: 0 0 1.25rem;
    font-size: clamp(2.55rem, 7vw, 3.75rem);
    font-weight: 800;
    line-height: 1.18;
    text-shadow: 0 0 80px rgba(212, 175, 55, .12);
    animation: pricing-fade-up .8s ease both;
}

html[dir="rtl"] .pricing-hero-title {
    line-height: 1.35;
}

.pricing-hero-title .gold-text {
    color: var(--pricing-gold-light);
    background: linear-gradient(135deg, var(--pricing-gold), var(--pricing-gold-light), var(--pricing-gold));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(212, 175, 55, .35));
    animation: pricing-shimmer 3s linear infinite;
}

.pricing-hero-subtitle {
    max-width: 610px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .80);
    font-size: 1.18rem;
    font-weight: 500;
    animation: pricing-fade-up .8s ease .15s both;
}

.pricing-plans-section {
    padding: 2.5rem 0 6rem;
}

.pricing-section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.pricing-section-title {
    margin: 0 0 .75rem;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
}

.pricing-section-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, .52);
    font-size: 1.1rem;
    font-weight: 500;
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.billing-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255, 255, 255, .45);
    font-size: .9375rem;
    font-weight: 600;
    transition: color .3s ease;
}

    .billing-label.is-active {
        color: var(--pricing-white);
    }

.billing-switch {
    position: relative;
    width: 52px;
    height: 28px;
    margin: 0;
    flex: 0 0 auto;
}

    .billing-switch input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
    }

.billing-track {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 28px;
    background: rgba(255, 255, 255, .15);
    transition: background .35s ease;
}

    .billing-track::before {
        position: absolute;
        top: 4px;
        inset-inline-start: 4px;
        width: 20px;
        height: 20px;
        content: "";
        border-radius: 50%;
        background: var(--pricing-white);
        box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
        transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
    }

.billing-switch input:focus-visible + .billing-track {
    outline: 3px solid rgba(240, 208, 96, .5);
    outline-offset: 3px;
}

.billing-switch input:checked + .billing-track {
    background: var(--pricing-gold);
}

    .billing-switch input:checked + .billing-track::before {
        transform: translateX(24px);
    }

html[dir="rtl"] .billing-switch input:checked + .billing-track::before {
    transform: translateX(-24px);
}

.save-pill {
    padding: .2rem .6rem;
    border: 1px solid rgba(212, 175, 55, .4);
    border-radius: 20px;
    color: var(--pricing-gold-light);
    background: rgba(212, 175, 55, .2);
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.trial-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .875rem;
    max-width: 940px;
    margin: 0 auto 3rem;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(212, 175, 55, .35);
    border-radius: 14px;
    background: rgba(212, 175, 55, .09);
    backdrop-filter: blur(8px);
    animation: pricing-trial-pulse 3.5s ease-in-out infinite;
}

    .trial-notice i {
        flex: 0 0 auto;
        color: var(--pricing-gold);
        font-size: 1.25rem;
    }

    .trial-notice p {
        margin: 0;
        font-size: .9375rem;
        font-weight: 600;
    }

    .trial-notice strong {
        color: var(--pricing-gold-light);
    }

.pricing-grid {
    position: relative;
}

.pricing-card-column {
    animation: pricing-fade-up .75s ease both;
}

.card-delay-1 {
    animation-delay: .08s;
}

.card-delay-2 {
    animation-delay: .22s;
}

.card-delay-3 {
    animation-delay: .36s;
}

.card-delay-4 {
    animation-delay: .50s;
}

.pricing-card-shell {
    position: relative;
    height: 100%;
}

.featured-glow {
    position: absolute;
    z-index: 0;
    inset: -50px;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, .22) 0%, rgba(212, 175, 55, .08) 45%, transparent 72%);
    animation: pricing-featured-glow 3s ease-in-out infinite;
}

.pricing-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 660px;
    padding: 2.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 24px;
    color: var(--pricing-white);
    background: rgba(255, 255, 255, .07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 32px rgba(0, 0, 0, .20);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform .4s cubic-bezier(.25, .46, .45, .94), border-color .35s ease, box-shadow .4s ease;
}

    .pricing-card:hover {
        transform: translateY(-10px);
        border-color: rgba(212, 175, 55, .55);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 28px 56px rgba(0, 0, 0, .35);
    }

    .pricing-card.is-featured {
        z-index: 2;
        transform: translateY(-8px);
        border-color: var(--pricing-gold);
        background: rgba(212, 175, 55, .09);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .20), 0 32px 64px rgba(0, 0, 0, .45);
        animation: pricing-gold-pulse 3s ease-in-out infinite, pricing-float 6s ease-in-out infinite;
    }

        .pricing-card.is-featured:hover {
            transform: translateY(-20px);
            animation: pricing-gold-pulse 1.5s ease-in-out infinite;
        }

        .pricing-card.is-featured::before {
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            height: 3px;
            content: "";
            background: linear-gradient(90deg, var(--pricing-gold), var(--pricing-gold-light), var(--pricing-gold));
            background-size: 200% auto;
            animation: pricing-border-flow 2.5s linear infinite;
        }

.enterprise-shell .pricing-card {
    animation: pricing-enterprise-breathe 5s ease-in-out infinite;
}

.card-shine {
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .045), transparent);
    transform: skewX(-14deg);
    animation: pricing-shine-ltr 8s ease-in-out infinite;
}

html[dir="rtl"] .card-shine {
    right: -80%;
    left: auto;
    background: linear-gradient(255deg, transparent, rgba(255, 255, 255, .045), transparent);
    transform: skewX(14deg);
    animation-name: pricing-shine-rtl;
}

.popular-badge {
    position: absolute;
    top: 1.5rem;
    inset-inline-end: 1.5rem;
    padding: .375rem 1rem;
    border-radius: 20px;
    color: var(--pricing-dark);
    background: var(--pricing-gold);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    animation: pricing-badge-pulse 2s ease-in-out infinite;
}

html[dir="rtl"] .popular-badge {
    letter-spacing: 0;
}

.package-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    transition: transform .35s ease;
}

.pricing-card:hover .package-icon {
    transform: scale(1.12) rotate(-5deg);
}

html[dir="rtl"] .pricing-card:hover .package-icon {
    transform: scale(1.12) rotate(5deg);
}

.pricing-card.is-featured .package-icon {
    border-color: rgba(212, 175, 55, .4);
    background: rgba(212, 175, 55, .18);
}

.package-icon i {
    color: rgba(255, 255, 255, .8);
    font-size: 1.5rem;
}

.pricing-card.is-featured .package-icon i {
    color: var(--pricing-gold);
}

.package-name {
    margin: 0 0 .5rem;
    color: var(--pricing-white);
    font-size: 1.75rem;
    font-weight: 800;
}

.package-description {
    min-height: 3rem;
    margin: 0 0 2rem;
    color: rgba(255, 255, 255, .52);
    font-size: .9375rem;
    font-weight: 500;
}

.pricing-card.is-featured .package-description {
    color: rgba(255, 255, 255, .72);
}

.price-wrap {
    margin-bottom: 1.45rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.pricing-card.is-featured .price-wrap {
    border-bottom-color: rgba(212, 175, 55, .28);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    min-height: 3.75rem;
    margin-bottom: .35rem;
}

.price-currency {
    color: rgba(255, 255, 255, .65);
    font-size: 1.5rem;
    font-weight: 700;
}

.pricing-card.is-featured .price-currency {
    color: var(--pricing-gold);
}

.price-amount {
    color: var(--pricing-white);
    font-size: clamp(2.8rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    transition: opacity .2s ease, transform .2s ease;
}

    .price-amount.is-changing {
        opacity: 0;
        transform: translateY(-10px);
    }

.pricing-card.is-featured .price-amount {
    color: var(--pricing-gold-light);
}

.original-price {
    margin-inline-start: .4rem;
    color: rgba(255, 255, 255, .30);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: line-through;
}

.pricing-card.is-featured .original-price {
    color: rgba(212, 175, 55, .38);
}

.price-period {
    color: rgba(255, 255, 255, .45);
    font-size: 1rem;
    font-weight: 500;
}

.price-note {
    min-height: 1.25rem;
    margin: .35rem 0 0;
    color: rgba(255, 255, 255, .40);
    font-size: .80rem;
    font-weight: 500;
}

.pricing-card.is-featured .price-note {
    color: rgba(212, 175, 55, .75);
}

.contact-price {
    color: var(--pricing-white);
    font-size: 2rem;
    font-weight: 800;
}

.features-list {
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

    .features-list li {
        display: flex;
        align-items: flex-start;
        gap: .75rem;
        padding: .55rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, .05);
        color: rgba(255, 255, 255, .64);
        font-size: .9375rem;
        font-weight: 500;
        transition: color .22s ease, transform .22s ease;
    }

        .features-list li:last-child {
            border-bottom: 0;
        }

        .features-list li:hover {
            color: var(--pricing-white);
            transform: translateX(4px);
        }

html[dir="rtl"] .features-list li:hover {
    transform: translateX(-4px);
}

.features-list i {
    flex: 0 0 auto;
    margin-top: .18rem;
    color: var(--pricing-gold);
    font-size: .9375rem;
}

.pricing-card.is-featured .features-list li {
    border-bottom-color: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .74);
}

.pricing-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    margin-top: auto;
    padding: 1rem 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 12px;
    color: var(--pricing-white);
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(4px);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

    .pricing-cta::before {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        content: "";
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent);
        transition: left .55s ease;
    }

html[dir="rtl"] .pricing-cta::before {
    right: -100%;
    left: auto;
    background: linear-gradient(270deg, transparent, rgba(255, 255, 255, .09), transparent);
    transition-property: right;
}

.pricing-cta:hover {
    color: var(--pricing-white);
    border-color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .18);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .30);
    transform: translateY(-2px);
}

    .pricing-cta:hover::before {
        left: 100%;
    }

html[dir="rtl"] .pricing-cta:hover::before {
    right: 100%;
    left: auto;
}

.pricing-card.is-featured .pricing-cta {
    border-color: var(--pricing-gold);
    color: var(--pricing-dark);
    background: var(--pricing-gold);
    font-weight: 800;
}

    .pricing-card.is-featured .pricing-cta:hover {
        color: var(--pricing-dark);
        background: var(--pricing-gold-light);
        box-shadow: 0 8px 28px rgba(212, 175, 55, .45);
    }

.pricing-cta.outline {
    border-color: rgba(212, 175, 55, .45);
    color: var(--pricing-gold);
    background: transparent;
}

    .pricing-cta.outline:hover {
        border-color: var(--pricing-gold);
        color: var(--pricing-gold-light);
        background: rgba(212, 175, 55, .10);
    }

.pricing-empty-state {
    max-width: 620px;
    margin: 2rem auto 0;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 24px;
    text-align: center;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(18px);
}

    .pricing-empty-state i {
        margin-bottom: 1rem;
        color: var(--pricing-gold);
        font-size: 2rem;
    }

    .pricing-empty-state h3 {
        margin-bottom: .75rem;
        font-weight: 800;
    }

    .pricing-empty-state p {
        margin: 0;
        color: rgba(255, 255, 255, .62);
    }

@media (max-width: 1199.98px) {
    .pricing-card.is-featured,
    .pricing-card.is-featured:hover {
        transform: none;
    }

    .featured-glow {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .pricing-hero {
        padding: 5.5rem 0 2.5rem;
    }

    .pricing-plans-section {
        padding-top: 1.5rem;
    }

    .billing-toggle {
        gap: .7rem;
    }

    .billing-label {
        font-size: .85rem;
    }

    .save-pill {
        display: none;
    }

    .trial-notice {
        align-items: flex-start;
        text-align: start;
    }

    .pricing-card {
        min-height: 0;
        padding: 2rem 1.5rem;
    }

    .popular-badge {
        top: 1.25rem;
        inset-inline-end: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-page *,
    .pricing-page *::before,
    .pricing-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .pricing-page .reveal {
        opacity: 1;
        transform: none;
    }
}
