/* ============================================================================
   Subscription Page Styles
   Pricing cards, billing toggle, comparison table, FAQ accordion,
   payment modal, loading overlay, credit balance bar, result banner.
   All tokens from ux-consistency.css.
   ============================================================================ */

/* -- Keyframe animations --------------------------------------------------- */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeInUpPopular {
    from { opacity: 0; transform: translateY(30px) scale(1); }
    to   { opacity: 1; transform: translateY(-12px) scale(1.04); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 40px rgba(var(--vh-primary-rgb),.15), 0 0 0 1.5px rgba(var(--vh-primary-rgb),.2); }
    50%      { box-shadow: 0 12px 48px rgba(var(--vh-primary-rgb),.28), 0 0 20px 3px rgba(var(--vh-primary-rgb),.12); }
}

@keyframes priceScaleIn {
    0%   { transform: scale(1.15); opacity: 0; }
    60%  { transform: scale(.97); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes checkPop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

@keyframes tableRowFadeIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes modalScaleUp {
    from { opacity: 0; transform: scale(.88) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes modalScaleDown {
    from { opacity: 1; transform: scale(1) translateY(0); }
    to   { opacity: 0; transform: scale(.92) translateY(12px); }
}

@keyframes discountBounce {
    0%, 100% { transform: translateY(0); }
    30%      { transform: translateY(-4px); }
    60%      { transform: translateY(-2px); }
}

@keyframes writeUnderline {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

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

@keyframes savingsCountUp {
    from { opacity: 0; transform: translateY(8px) scale(.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes swipeHint {
    0%, 100% { transform: translateX(0); opacity: .7; }
    50%      { transform: translateX(-10px); opacity: 1; }
}

@keyframes btnPress {
    0%   { transform: scale(1); }
    50%  { transform: scale(.96); }
    100% { transform: scale(1); }
}

@keyframes loadingDots {
    0%, 20%  { content: '.'; }
    40%      { content: '..'; }
    60%, 100% { content: '...'; }
}

@keyframes loadingPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .6; }
}

@keyframes faqSlideDown {
    from { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
    to   { opacity: 1; max-height: 500px; }
}

@keyframes stepCheck {
    0%   { transform: scale(0) rotate(-45deg); opacity: 0; }
    60%  { transform: scale(1.15) rotate(0); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes skeletonPulse {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes modalContentFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes popularRibbonShine {
    0%   { left: -100%; }
    100% { left: 200%; }
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(var(--vh-primary-rgb),.3); }
    50%      { transform: scale(1.06); box-shadow: 0 4px 16px rgba(var(--vh-primary-rgb),.5); }
}

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes tooltipFadeInMobile {
    from { opacity: 0; transform: translateX(0) translateY(6px); }
    to   { opacity: 1; transform: translateX(0) translateY(0); }
}

@keyframes cardFocusRing {
    0%, 100% { box-shadow: 0 0 0 3px rgba(var(--vh-primary-rgb),.3); }
    50%      { box-shadow: 0 0 0 4px rgba(var(--vh-primary-rgb),.5); }
}

@keyframes skeletonFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; transform: scale(.98); }
}

/* Staggered card entrance from left to right */
@keyframes cardSlideInLeft {
    from { opacity: 0; transform: translateX(-40px) scale(.96); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes cardSlideInLeftPopular {
    from { opacity: 0; transform: translateX(-40px) scale(.96); }
    to   { opacity: 1; transform: translateX(0) translateY(-12px) scale(1.04); }
}

/* Badge glow animation */
@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 2px 8px rgba(var(--vh-primary-rgb),.3), 0 0 0 0 rgba(var(--vh-primary-rgb),0); }
    50%      { box-shadow: 0 4px 16px rgba(var(--vh-primary-rgb),.45), 0 0 12px 4px rgba(var(--vh-primary-rgb),.15); }
}

/* Savings percentage pulse */
@keyframes savingsPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

/* Credit progress bar glow pulse */
@keyframes progressGlow {
    0%, 100% { opacity: .6; }
    50%      { opacity: 1; }
}

/* Trust indicator staggered entrance */
@keyframes trustFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* -- Hero section ----------------------------------------------------------- */

.sub-hero {
    padding: calc(72px + 3.5rem) 0 0.5rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all .8s cubic-bezier(.4, 0, .2, 1);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.eyebrow {
    display: inline-block;
    padding: .6rem 1.2rem;
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--vh-text, #0f172a);
    background: var(--vh-primary-soft, rgba(var(--vh-primary-rgb),.08));
    border: 1px solid var(--vh-primary-border, rgba(var(--vh-primary-rgb),.25));
    border-radius: var(--radius-pill, 9999px);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    font-family: var(--vh-font-display);
}

.section-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--vh-text-secondary, #475569);
}

.hero-title-highlight {
    position: relative;
    display: inline-block;
    font-family: var(--vh-font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--vh-text, #0f172a);
}

.handwritten-underline {
    position: absolute;
    bottom: -.15em;
    left: -.05em;
    right: -.05em;
    height: .35em;
    background: rgba(var(--vh-primary-rgb),.2);
    z-index: -1;
    transform-origin: left;
    animation: writeUnderline 1s ease-out both;
}


/* -- Credit balance bar ----------------------------------------------------- */

.sub-credit-bar {
    max-width: 480px;
    margin: 0 auto 2rem;
    background: var(--vh-highlight, #fffbeb);
    border: 1.5px solid var(--vh-primary-border, rgba(var(--vh-primary-rgb),.3));
    border-radius: var(--radius-lg, 16px);
    padding: 1rem 1.5rem;
    transition: all .3s ease;
}

.sub-credit-bar:hover {
    box-shadow: 0 4px 16px rgba(var(--vh-primary-rgb),.12);
}

.sub-credit-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    font-size: .95rem;
    font-weight: 500;
    color: var(--vh-text-secondary, #475569);
}

.sub-credit-inner svg {
    color: var(--vh-primary-hover, #D4A017);
    flex-shrink: 0;
}

.sub-credit-inner strong {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--vh-text, #0f172a);
}

.sub-credit-plan {
    color: var(--vh-text-tertiary, #94a3b8);
    font-size: .85rem;
}


/* -- Billing toggle --------------------------------------------------------- */

.sub-billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 340px;
    margin: 0 auto 2rem;
    padding: .35rem;
    background: var(--vh-surface, #fff);
    border: 1.5px solid var(--vh-border, #e2e8f0);
    border-radius: var(--radius-pill, 9999px);
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(15, 23, 42, .04)),
                inset 0 1px 2px rgba(0, 0, 0, .03);
    position: relative;
    isolation: isolate;
    contain: layout style;
}

/* Sliding indicator behind active toggle button */
.sub-toggle-slider {
    position: absolute;
    top: .35rem;
    left: .35rem;
    height: calc(100% - .7rem);
    width: calc(50% - .35rem);
    background: var(--vh-primary);
    border-radius: var(--radius-pill, 9999px);
    box-shadow: 0 2px 8px rgba(var(--vh-primary-rgb),.35),
                inset 0 1px 0 rgba(255, 255, 255, .2);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateX(0) translateZ(0);
}

.sub-toggle-slider.slide-right {
    transform: translateX(100%) translateZ(0);
}

.sub-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .75rem 1.2rem;
    border: none;
    border-radius: var(--radius-pill, 9999px);
    background: transparent;
    font-family: var(--vh-font-body);
    font-size: .9rem;
    font-weight: 600;
    color: var(--vh-text-tertiary, #94a3b8);
    cursor: pointer;
    transition: color .3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    z-index: 1;
    min-width: 0;
    white-space: nowrap;
}

.sub-toggle-btn.active {
    color: var(--vh-on-primary, #1a1a1a);
    font-weight: 700;
}

.sub-toggle-btn:hover:not(.active) {
    color: var(--vh-text, #0f172a);
}

.sub-toggle-btn:focus-visible {
    outline: 2px solid var(--vh-primary);
    outline-offset: 2px;
    border-radius: var(--radius-pill, 9999px);
}

.sub-toggle-save {
    display: inline-block;
    padding: .15rem .5rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: rgba(var(--vh-success-rgb),.12);
    color: var(--vh-success, #16a34a);
    border-radius: var(--radius-sm, 8px);
    animation: discountBounce 2s ease-in-out infinite;
}


/* -- Savings indicator ------------------------------------------------------ */

.sub-savings-indicator {
    text-align: center;
    margin: -.5rem auto 1.5rem;
    max-width: 380px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .5s cubic-bezier(.4, 0, .2, 1),
                opacity .4s cubic-bezier(.4, 0, .2, 1) .05s,
                margin .4s ease;
    will-change: max-height, opacity;
}

.sub-savings-indicator.active {
    max-height: 60px;
    opacity: 1;
    margin: -.5rem auto 1.5rem;
}

.sub-savings-inner {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.4rem;
    background: rgba(var(--vh-success-rgb),.08);
    border: 1px solid rgba(var(--vh-success-rgb),.2);
    border-radius: var(--radius-pill, 9999px);
    font-size: .85rem;
    font-weight: 600;
    color: var(--vh-success, #16a34a);
    animation: savingsCountUp .5s ease-out both;
}

.sub-savings-inner svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sub-savings-amount {
    font-weight: 800;
    font-size: .95rem;
    min-width: 2.5em;
    display: inline-block;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Savings percentage badge next to amount */
.sub-savings-pct {
    display: inline-flex;
    align-items: center;
    padding: .15rem .45rem;
    font-size: .7rem;
    font-weight: 800;
    background: rgba(var(--vh-success-rgb),.15);
    color: var(--vh-success, #16a34a);
    border-radius: var(--radius-xs, 6px);
    animation: savingsPulse 2s ease-in-out infinite;
}


/* -- Pricing Grid ----------------------------------------------------------- */

.sub-plans {
    padding: 0.5rem 0 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
    /* Equal height cards with align-items stretch (default) */
    align-items: stretch;
}

/* -- Price card base -------------------------------------------------------- */

.price-card {
    position: relative;
    padding: 3rem 2.5rem 2.5rem;
    background: var(--vh-surface, #fff);
    border: 1.5px solid var(--vh-border, #e2e8f0);
    border-radius: var(--radius-2xl, 28px);
    opacity: 0;
    transform: translateX(-40px) scale(.96);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, .06));
    transition: transform .4s cubic-bezier(.4, 0, .2, 1),
                box-shadow .4s cubic-bezier(.4, 0, .2, 1),
                border-color .3s ease;
    display: flex;
    flex-direction: column;
    will-change: transform;
    backface-visibility: hidden;
    contain: layout style paint;
}

/* Staggered entrance from left to right */
.price-card.visible {
    animation: cardSlideInLeft .7s cubic-bezier(.4, 0, .2, 1) both;
}

.price-card:nth-child(1).visible { animation-delay: 0ms; }
.price-card:nth-child(2).visible { animation-delay: 150ms; }
.price-card:nth-child(3).visible { animation-delay: 300ms; }

/* -- Popular card with enhanced visual hierarchy ---------------------------- */

.price-card.popular {
    border: 2.5px solid var(--vh-primary);
    box-shadow: 0 8px 40px rgba(var(--vh-primary-rgb),.15), 0 0 0 1.5px rgba(var(--vh-primary-rgb),.2);
    background: linear-gradient(180deg, #fffef5 0%, var(--vh-surface) 60%);
    z-index: 2;
}

.price-card.popular.visible {
    animation: cardSlideInLeftPopular .7s cubic-bezier(.4, 0, .2, 1) both,
               pulseGlow 3s ease-in-out 1.2s infinite;
}

/* Popular ribbon shine overlay */
.price-card.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--vh-primary-rgb),.08), transparent);
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.price-card.popular:hover::before {
    animation: popularRibbonShine 1.2s ease-in-out;
}

/* Subtle top accent bar for popular card */
.price-card.popular::after {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--vh-primary), transparent);
    border-radius: 0 0 2px 2px;
    z-index: 1;
}

.price-card.current {
    border-color: var(--vh-success, #16a34a);
    box-shadow: 0 0 0 3px var(--vh-success-bg, #f0fdf4);
}

/* -- Card hover: lift + enhanced shadow + slight scale --------------------- */

.price-card:hover {
    transform: translateY(-8px) scale(1.01) translateZ(0);
    box-shadow: 0 24px 56px rgba(var(--vh-primary-rgb),.15), 0 8px 24px rgba(0, 0, 0, .06);
    border-color: var(--vh-primary);
}

.price-card.popular:hover {
    transform: translateY(-16px) scale(1.04) translateZ(0);
    box-shadow: 0 32px 72px rgba(var(--vh-primary-rgb),.25), 0 16px 40px rgba(0, 0, 0, .06);
}

/* Smooth return for popular card in resting state */
.price-card.popular.visible:not(:hover) {
    transform: translateY(-12px) scale(1.04);
}

/* Keyboard focus on card */
.price-card:focus-within {
    border-color: var(--vh-primary);
    box-shadow: 0 0 0 3px rgba(var(--vh-primary-rgb),.25), 0 12px 32px rgba(var(--vh-primary-rgb),.1);
}

/* Roving tabindex active card */
.price-card[tabindex="0"]:focus-visible {
    outline: 3px solid var(--vh-primary);
    outline-offset: 4px;
    border-radius: var(--radius-2xl, 28px);
    animation: cardFocusRing 1.5s ease-in-out infinite;
}


/* -- Plan icon -------------------------------------------------------------- */

/* Plan icons hidden -- decorative SVGs removed from cards */
.plan-icon {
    display: none;
}

/* Pro card yellow accent bar */
.price-card[data-plan="pro"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--vh-primary), transparent);
    border-radius: 0 0 2px 2px;
    z-index: 1;
}

/* Pro card subtle yellow border on hover */
.price-card[data-plan="pro"]:hover {
    border-color: rgba(var(--vh-primary-rgb),.5);
    box-shadow: 0 24px 56px rgba(var(--vh-primary-rgb),.12), 0 8px 24px rgba(0, 0, 0, .06);
}


/* -- Badge ------------------------------------------------------------------ */

.badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: .4rem .9rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--vh-on-primary, #1a1a1a);
    background: rgba(var(--vh-primary-rgb),.12);
    border: 1.5px solid rgba(var(--vh-primary-rgb),.3);
    border-radius: var(--radius-sm, 8px);
    transition: all .3s ease;
}

/* Popular badge with glow */
.price-card.popular > .badge {
    background: var(--vh-primary);
    color: var(--vh-on-primary, #1a1a1a);
    font-size: .72rem;
    padding: .5rem 1.1rem;
    border: none;
    border-radius: var(--radius-pill, 9999px);
    box-shadow: 0 2px 8px rgba(var(--vh-primary-rgb),.3);
    animation: badgeGlow 2.5s ease-in-out .8s infinite;
    z-index: 2;
}

.badge-pro {
    background: rgba(var(--vh-primary-rgb),.1);
    border-color: rgba(var(--vh-primary-rgb),.3);
    color: var(--vh-primary-dark);
}

.badge-current {
    top: auto;
    bottom: 1.5rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    background: var(--vh-success-bg, #f0fdf4);
    border-color: var(--vh-success-border, #bbf7d0);
    color: var(--vh-success, #16a34a);
}


/* -- Plan name / price ------------------------------------------------------ */

.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .5rem;
    color: var(--vh-text, #0f172a);
    transition: color .3s ease;
}

.price-wrap {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    margin-bottom: .5rem;
}

.currency {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--vh-text-secondary, #475569);
    transition: color .3s ease;
    align-self: flex-start;
    margin-top: .5rem;
}

.amount {
    font-size: 3.75rem;
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--vh-text, #0f172a);
    transition: color .3s ease;
    display: inline-block;
    min-width: 1.5ch;
    font-variant-numeric: tabular-nums;
}

/* Popular card price accent */
.price-card.popular .amount {
    color: var(--vh-on-primary, #1a1a1a);
}

/* Price scale-in when switching plans */
.amount.price-changing {
    animation: priceScaleIn .4s cubic-bezier(.34, 1.56, .64, 1) both;
}

.period {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--vh-text-tertiary, #94a3b8);
    transition: color .3s ease;
    align-self: flex-end;
    margin-bottom: .35rem;
}

.billed-yearly-note {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--vh-success, #16a34a);
    margin-bottom: .25rem;
    animation: savingsCountUp .4s ease-out both;
}

/* Yearly savings tag inside card */
.card-yearly-savings {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .65rem;
    margin-bottom: .25rem;
    font-size: .75rem;
    font-weight: 700;
    background: rgba(var(--vh-success-rgb),.1);
    color: var(--vh-success, #16a34a);
    border-radius: var(--radius-pill, 9999px);
    animation: savingsCountUp .4s ease-out both;
}

.card-yearly-savings svg {
    width: 12px;
    height: 12px;
}

.plan-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--vh-text-secondary, #475569);
    margin-bottom: 2rem;
    transition: color .3s ease;
    min-height: 3.2rem; /* Align descriptions across cards */
}


/* -- Feature list ----------------------------------------------------------- */

.features {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin-bottom: 2.5rem;
    /* Push button to bottom of card */
    flex: 1;
}

.feature {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .95rem;
    font-weight: 500;
    color: var(--vh-text-secondary, #475569);
    transition: color .3s ease;
    position: relative;
    min-height: 1.75rem;
}

.feature.disabled {
    opacity: .45;
}

.feature.disabled span:not(.x-icon) {
    text-decoration: line-through;
    text-decoration-color: rgba(148, 163, 184, .4);
}

/* Feature checkmark staggered pop-in */
.price-card.visible .feature .check-icon {
    animation: checkPop .4s cubic-bezier(.34, 1.56, .64, 1) both;
}

.price-card.visible .feature:nth-child(1) .check-icon { animation-delay: .15s; }
.price-card.visible .feature:nth-child(2) .check-icon { animation-delay: .25s; }
.price-card.visible .feature:nth-child(3) .check-icon { animation-delay: .35s; }
.price-card.visible .feature:nth-child(4) .check-icon { animation-delay: .45s; }
.price-card.visible .feature:nth-child(5) .check-icon { animation-delay: .55s; }
.price-card.visible .feature:nth-child(6) .check-icon { animation-delay: .65s; }

/* Green checkmark icons */
.check-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--vh-success-rgb),.1);
    border-radius: 50%;
    transition: transform .3s ease, background .3s ease;
}

.feature:hover .check-icon {
    transform: scale(1.12);
    background: rgba(var(--vh-success-rgb),.18);
}

.check-icon svg {
    width: 13px;
    height: 13px;
    color: var(--vh-success, #16a34a);
}

/* Gray X icons for missing features */
.x-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, .08);
    border-radius: 50%;
    transition: transform .3s ease;
}

.x-icon svg {
    width: 12px;
    height: 12px;
    color: var(--vh-text-tertiary, #94a3b8);
}


/* -- Feature tooltip -------------------------------------------------------- */

.feature-tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dashed rgba(148, 163, 184, .4);
    padding-bottom: 1px;
}

.feature-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: .55rem .9rem;
    background: var(--vh-text, #0f172a);
    color: var(--vh-surface, #fff);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: var(--radius-sm, 8px);
    max-width: 260px;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    text-decoration: none;
}

.feature-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--vh-text, #0f172a);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 100;
}

/* Desktop: show on hover and keyboard focus */
.feature-tooltip:hover::after,
.feature-tooltip:focus-visible::after,
.feature-tooltip.tooltip-active::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.feature-tooltip:hover::before,
.feature-tooltip:focus-visible::before,
.feature-tooltip.tooltip-active::before {
    opacity: 1;
    visibility: visible;
}

/* Mobile touch: tooltip-active class toggled by JS */
.feature-tooltip.tooltip-active::after {
    pointer-events: auto;
}


/* -- Plan button ------------------------------------------------------------ */

.plan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.15rem 2rem;
    font-family: var(--vh-font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--vh-on-primary, #1a1a1a);
    background: var(--vh-primary);
    border: none;
    border-radius: var(--radius-lg, 16px);
    cursor: pointer;
    text-decoration: none;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 6px 16px rgba(var(--vh-primary-rgb),.25);
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

/* Shimmer effect overlay */
.plan-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
    transition: none;
    z-index: 1;
}

.plan-btn:hover:not(:disabled)::before {
    animation: shimmer .8s ease-in-out;
}

/* Glow hover effect */
.plan-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--vh-primary-hover, #E5B93A);
    opacity: 0;
    transition: opacity .3s cubic-bezier(.4, 0, .2, 1);
    z-index: 0;
}

.plan-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(var(--vh-primary-rgb),.35), 0 0 20px rgba(var(--vh-primary-rgb),.15);
}

.plan-btn:hover:not(:disabled)::after {
    opacity: 1;
}

/* Press-down micro-animation */
.plan-btn:active:not(:disabled) {
    animation: btnPress .15s ease-out;
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(var(--vh-primary-rgb),.2);
}

.plan-btn span {
    position: relative;
    z-index: 2;
}

.plan-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Focus-visible with yellow accent outline */
.plan-btn:focus-visible {
    outline: 3px solid var(--vh-primary);
    outline-offset: 3px;
}

/* Secondary / outline button style for non-popular cards */
.plan-btn-outline {
    background: transparent;
    color: var(--vh-text, #0f172a);
    border: 2px solid var(--vh-border, #e2e8f0);
    box-shadow: none;
}

.plan-btn-outline::after {
    background: var(--vh-primary-soft, rgba(var(--vh-primary-rgb),.08));
}

.plan-btn-outline:hover:not(:disabled) {
    border-color: var(--vh-primary);
    color: var(--vh-on-primary, #1a1a1a);
    background: rgba(var(--vh-primary-rgb),.05);
    box-shadow: 0 4px 12px rgba(var(--vh-primary-rgb),.15);
}

/* Pro card button -- secondary style with yellow accent */
.price-card[data-plan="pro"] .plan-btn {
    background: transparent;
    color: var(--vh-primary-dark);
    border: 2px solid rgba(var(--vh-primary-rgb),.3);
    box-shadow: none;
}

.price-card[data-plan="pro"] .plan-btn::after {
    background: rgba(var(--vh-primary-rgb),.06);
}

.price-card[data-plan="pro"] .plan-btn:hover:not(:disabled) {
    border-color: var(--vh-primary);
    background: rgba(var(--vh-primary-rgb),.08);
    box-shadow: 0 6px 20px rgba(var(--vh-primary-rgb),.15);
    color: var(--vh-on-primary, #1a1a1a);
}

/* Popular card button stays primary gold */
.price-card.popular .plan-btn {
    background: var(--vh-primary);
    color: var(--vh-on-primary, #1a1a1a);
    border: none;
    box-shadow: 0 8px 24px rgba(var(--vh-primary-rgb),.3);
    font-size: 1.05rem;
    padding: 1.25rem 2rem;
}

.price-card.popular .plan-btn:hover:not(:disabled) {
    box-shadow: 0 14px 36px rgba(var(--vh-primary-rgb),.4), 0 0 24px rgba(var(--vh-primary-rgb),.15);
    transform: translateY(-3px);
}


/* -- Comparison table ------------------------------------------------------- */

.sub-compare {
    padding: 0 0 5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all .8s cubic-bezier(.4, 0, .2, 1);
}

.sub-compare.visible {
    opacity: 1;
    transform: translateY(0);
}

.sub-compare-title {
    text-align: center;
    font-family: var(--vh-font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    color: var(--vh-text, #0f172a);
}

.sub-table-wrap {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-xl, 20px);
    border: 1.5px solid var(--vh-border, #e2e8f0);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, .06));
}

.sub-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}

.sub-compare-table th,
.sub-compare-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--vh-border, #e2e8f0);
    vertical-align: middle;
    transition: background .3s ease;
}

.sub-compare-table th:first-child,
.sub-compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--vh-text, #0f172a);
}

.sub-compare-table th {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--vh-text-tertiary, #94a3b8);
    background: var(--vh-bg, #f8fafc);
    border-bottom: 2px solid var(--vh-border, #e2e8f0);
    position: sticky;
    top: 0;
    z-index: 1;
}

.sub-compare-table td {
    color: var(--vh-text-secondary, #475569);
    font-weight: 500;
}

/* Alternating row stripes */
.sub-compare-table tbody tr:nth-child(even) td {
    background: var(--vh-bg, rgba(248, 250, 252, .5));
}

.sub-compare-table tbody tr:nth-child(even) td.col-highlight {
    background: rgba(var(--vh-primary-rgb),.06);
}

.sub-compare-table .col-highlight {
    background: rgba(var(--vh-primary-rgb),.04);
}

.sub-compare-table th.col-highlight {
    color: var(--vh-primary-dark);
    background: rgba(var(--vh-primary-rgb),.1);
    position: relative;
}

/* Highlight column header label */
.sub-compare-table th.col-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--vh-primary);
}

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

.sub-compare-table tbody tr:hover td {
    background: var(--vh-highlight, #fffbeb);
}

.sub-compare-table tbody tr:hover td.col-highlight {
    background: rgba(var(--vh-primary-rgb),.12);
}

/* Alternating table row fade-in */
.sub-compare.visible .sub-compare-table tbody tr {
    animation: tableRowFadeIn .5s cubic-bezier(.4, 0, .2, 1) both;
}
.sub-compare.visible .sub-compare-table tbody tr:nth-child(1) { animation-delay: .1s; }
.sub-compare.visible .sub-compare-table tbody tr:nth-child(2) { animation-delay: .15s; }
.sub-compare.visible .sub-compare-table tbody tr:nth-child(3) { animation-delay: .2s; }
.sub-compare.visible .sub-compare-table tbody tr:nth-child(4) { animation-delay: .25s; }
.sub-compare.visible .sub-compare-table tbody tr:nth-child(5) { animation-delay: .3s; }
.sub-compare.visible .sub-compare-table tbody tr:nth-child(6) { animation-delay: .35s; }

.cmp-check {
    width: 20px;
    height: 20px;
    color: var(--vh-success, #16a34a);
    display: inline-block;
    vertical-align: middle;
}

.cmp-x {
    width: 20px;
    height: 20px;
    color: var(--vh-text-tertiary, #94a3b8);
    opacity: .35;
    display: inline-block;
    vertical-align: middle;
}


/* -- FAQ section ------------------------------------------------------------ */

.sub-faq {
    padding: 0 0 6rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all .8s cubic-bezier(.4, 0, .2, 1);
}

.sub-faq.visible {
    opacity: 1;
    transform: translateY(0);
}

.sub-faq-title {
    text-align: center;
    font-family: var(--vh-font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    color: var(--vh-text, #0f172a);
}

.sub-faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: .75rem;
    counter-reset: faq-counter;
}

.sub-faq-item {
    border: 1.5px solid var(--vh-border, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
    background: var(--vh-surface, #fff);
    counter-increment: faq-counter;
}

.sub-faq-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.sub-faq-item[open] {
    border-color: rgba(var(--vh-primary-rgb),.4);
    box-shadow: 0 4px 16px rgba(var(--vh-primary-rgb),.08);
}

.sub-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--vh-text, #0f172a);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background .3s ease, color .3s ease;
}

.sub-faq-question::-webkit-details-marker {
    display: none;
}

.sub-faq-question::marker {
    display: none;
    content: '';
}

/* FAQ numbering badge */
.sub-faq-question::before {
    content: counter(faq-counter, decimal-leading-zero);
    font-size: .75rem;
    font-weight: 700;
    color: var(--vh-primary);
    background: rgba(var(--vh-primary-rgb),.1);
    border-radius: var(--radius-xs, 6px);
    padding: .2rem .5rem;
    margin-right: .75rem;
    flex-shrink: 0;
    min-width: 1.8rem;
    text-align: center;
    transition: background .3s ease, color .3s ease;
}

.sub-faq-item[open] > .sub-faq-question::before {
    background: rgba(var(--vh-primary-rgb),.2);
    color: var(--vh-primary-dark);
}

/* FAQ chevron */
.sub-faq-question::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--vh-text-tertiary, #94a3b8);
    border-bottom: 2px solid var(--vh-text-tertiary, #94a3b8);
    transform: rotate(45deg);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), border-color .3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.sub-faq-item[open] > .sub-faq-question::after {
    transform: rotate(-135deg);
    border-color: var(--vh-primary);
}

.sub-faq-question:hover {
    background: var(--vh-highlight, #fffbeb);
}

.sub-faq-question:focus-visible {
    outline: 2px solid var(--vh-primary);
    outline-offset: -2px;
    border-radius: var(--radius-lg, 16px);
}

.sub-faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--vh-text-secondary, #475569);
    font-size: .95rem;
    line-height: 1.7;
    animation: faqSlideDown .35s ease-out both;
}

/* Answer padding for numbering alignment */
.sub-faq-answer p {
    padding-left: calc(1.8rem + .75rem + .5rem);
}


/* -- Payment result banner -------------------------------------------------- */

.sub-payment-result {
    padding: 2rem 0 3rem;
}

.sub-payment-result-inner {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-2xl, 24px);
    border: 2px solid transparent;
    animation: modalScaleUp .5s cubic-bezier(.22, 1, .36, 1) both;
}

.sub-payment-result-inner.result-success {
    background: var(--vh-success-bg, #f0fdf4);
    border-color: var(--vh-success-border, #bbf7d0);
}

.sub-payment-result-inner.result-error {
    background: var(--vh-error-bg, #fef2f2);
    border-color: var(--vh-error-border, #fecaca);
}

.sub-payment-icon {
    margin-bottom: 1rem;
}

.result-success .sub-payment-icon svg {
    color: var(--vh-success, #16a34a);
}

.result-error .sub-payment-icon svg {
    color: var(--vh-error, #dc2626);
}

.sub-payment-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--vh-text, #0f172a);
}

.sub-payment-message {
    font-size: 1rem;
    color: var(--vh-text-secondary, #475569);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sub-payment-result .plan-btn {
    width: auto;
    display: inline-flex;
    padding: 1rem 2rem;
}


/* -- Modal ------------------------------------------------------------------ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s cubic-bezier(.4, 0, .2, 1);
}

.modal-overlay.modal-active {
    opacity: 1;
}

.modal-overlay[hidden] {
    display: none;
}

/* Modal closing animation */
.modal-overlay.modal-closing {
    opacity: 0;
}

.modal-overlay.modal-closing .modal-dialog {
    animation: modalScaleDown .3s cubic-bezier(.4, 0, .2, 1) both;
}

.modal-dialog {
    max-width: 500px;
    width: 90%;
    background: var(--vh-surface, #fff);
    border-radius: var(--radius-2xl, 24px);
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .16);
    animation: modalScaleUp .4s cubic-bezier(.22, 1, .36, 1) both;
}

/* Staggered content animation inside modal */
.modal-dialog .modal-header {
    animation: modalContentFadeIn .4s cubic-bezier(.4, 0, .2, 1) .1s both;
}

.modal-dialog .modal-price {
    animation: modalContentFadeIn .4s cubic-bezier(.4, 0, .2, 1) .2s both;
}

.modal-dialog .checkbox-wrapper {
    animation: modalContentFadeIn .4s cubic-bezier(.4, 0, .2, 1) .3s both;
}

.modal-dialog .modal-actions {
    animation: modalContentFadeIn .4s cubic-bezier(.4, 0, .2, 1) .4s both;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--vh-bg, #f8fafc);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--vh-text-tertiary, #94a3b8);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    z-index: 2;
}

.modal-close:hover {
    background: var(--vh-border, #e2e8f0);
    color: var(--vh-text, #0f172a);
    transform: rotate(90deg);
}

.modal-close:focus-visible {
    outline: 2px solid var(--vh-primary);
    outline-offset: 2px;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--vh-text, #0f172a);
}

.modal-subtitle {
    color: var(--vh-text-secondary, #475569);
    font-size: .95rem;
}

.modal-price {
    background: var(--vh-highlight, #fffbeb);
    padding: 1.5rem;
    border-radius: var(--radius-md, 10px);
    margin-bottom: 1.5rem;
    border: 1px solid var(--vh-primary-border, rgba(var(--vh-primary-rgb),.3));
    text-align: center;
    transition: all .3s ease;
}

.modal-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--vh-text, #0f172a);
    font-variant-numeric: tabular-nums;
}

.modal-price-label {
    color: var(--vh-text-secondary, #475569);
    font-size: .9rem;
    margin-top: .25rem;
}

/* Modal plan features summary */
.modal-plan-features {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
    justify-content: center;
}

.modal-plan-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .6rem;
    font-size: .75rem;
    font-weight: 600;
    background: rgba(var(--vh-primary-rgb),.08);
    border-radius: var(--radius-sm, 8px);
    color: var(--vh-text-secondary, #475569);
}

.modal-plan-feature-tag svg {
    width: 12px;
    height: 12px;
    color: var(--vh-primary-hover, #D4A017);
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--vh-primary-soft, rgba(var(--vh-primary-rgb),.05));
    border-radius: var(--radius-sm, 8px);
    border: 1.5px solid var(--vh-primary-border, rgba(var(--vh-primary-rgb),.2));
    transition: border-color .3s ease, background .3s ease;
}

.checkbox-wrapper:hover {
    border-color: rgba(var(--vh-primary-rgb),.4);
}

.checkbox-wrapper input[type="checkbox"] {
    margin-top: .25rem;
    cursor: pointer;
    accent-color: var(--vh-primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--vh-primary);
    outline-offset: 2px;
}

.checkbox-wrapper label {
    font-size: .9rem;
    color: var(--vh-text-secondary, #475569);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-wrapper label a,
.modal-terms-link {
    color: var(--vh-text, #0f172a);
    text-decoration: none;
    font-weight: 600;
    transition: color .3s ease;
}

.modal-terms-link:hover {
    text-decoration: underline;
    color: var(--vh-primary-hover, #D4A017);
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.btn-modal {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-md, 10px);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    font-family: var(--vh-font-body);
    position: relative;
    overflow: hidden;
}

.btn-modal:focus-visible {
    outline: 3px solid var(--vh-primary);
    outline-offset: 2px;
}

.btn-modal.secondary {
    background: var(--vh-surface, #fff);
    color: var(--vh-text, #0f172a);
    border: 2px solid var(--vh-border, #e2e8f0);
}

.btn-modal.secondary:hover:not(:disabled) {
    background: var(--vh-bg, #f8fafc);
    border-color: var(--vh-text-tertiary, #94a3b8);
}

.btn-modal.secondary:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn-modal.primary {
    background: var(--vh-primary);
    color: var(--vh-on-primary, #1a1a1a);
}

/* Shimmer on primary modal button */
.btn-modal.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
    z-index: 0;
}

.btn-modal.primary:hover:not(:disabled)::before {
    animation: shimmer .8s ease-in-out;
}

.btn-modal.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--vh-primary-rgb),.35);
}

.btn-modal.primary:active:not(:disabled) {
    animation: btnPress .15s ease-out;
    transform: translateY(0);
}

.btn-modal.primary:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Processing state for confirm button */
.btn-modal.primary.processing {
    animation: loadingPulse 1.2s ease-in-out infinite;
    pointer-events: none;
}

/* Processing spinner inside button */
.btn-modal.primary.processing::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(26, 26, 26, .3);
    border-top-color: var(--vh-on-primary, #1a1a1a);
    border-radius: 50%;
    animation: subSpin .6s linear infinite;
    margin-left: .5rem;
    vertical-align: middle;
}


/* -- Loading overlay -------------------------------------------------------- */

.sub-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 11000;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    animation: modalScaleUp .3s ease-out both;
}

.sub-loading-overlay[hidden] {
    display: none;
}

.sub-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--vh-border, #e2e8f0);
    border-top-color: var(--vh-primary);
    border-radius: 50%;
    animation: subSpin .8s linear infinite;
}

.sub-loading-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--vh-text-secondary, #475569);
}

/* Payment processing loading state with steps */
.sub-loading-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    margin-top: .5rem;
}

.sub-loading-step {
    font-size: .85rem;
    color: var(--vh-text-tertiary, #94a3b8);
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: color .4s ease, transform .3s ease;
    transform: translateX(0);
}

.sub-loading-step::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vh-border, #e2e8f0);
    flex-shrink: 0;
    transition: background .4s ease, transform .3s ease;
}

.sub-loading-step.active {
    color: var(--vh-text, #0f172a);
    font-weight: 600;
    transform: translateX(4px);
}

.sub-loading-step.active::before {
    background: var(--vh-primary);
    transform: scale(1.3);
    box-shadow: 0 0 6px rgba(var(--vh-primary-rgb),.4);
}

.sub-loading-step.done {
    color: var(--vh-success, #16a34a);
}

.sub-loading-step.done::before {
    background: var(--vh-success, #16a34a);
}


/* -- Skeleton loading placeholder ------------------------------------------- */

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card-skeleton {
    background: var(--vh-surface, #fff);
    border: 1.5px solid var(--vh-border, #e2e8f0);
    border-radius: var(--radius-2xl, 28px);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: opacity .4s ease, transform .4s ease;
}

.price-card-skeleton.skeleton-hiding {
    animation: skeletonFadeOut .4s ease-out forwards;
}

.skeleton-line {
    height: 1rem;
    border-radius: .5rem;
    background: linear-gradient(90deg,
        var(--vh-border, #e2e8f0) 25%,
        var(--vh-bg, #f1f5f9) 50%,
        var(--vh-border, #e2e8f0) 75%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease-in-out infinite;
    margin-bottom: .75rem;
}

.skeleton-line.skeleton-icon {
    display: none;
}

.skeleton-line.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-line.skeleton-price {
    height: 3rem;
    width: 45%;
    margin-bottom: 1.25rem;
}

.skeleton-line.skeleton-short {
    width: 75%;
}

.skeleton-line.skeleton-feature {
    width: 85%;
    height: .9rem;
}

.skeleton-line.skeleton-btn {
    height: 3rem;
    margin-top: 1.5rem;
    border-radius: var(--radius-lg, 16px);
}

/* Staggered skeleton pulse */
.price-card-skeleton:nth-child(2) .skeleton-line { animation-delay: .15s; }
.price-card-skeleton:nth-child(3) .skeleton-line { animation-delay: .3s; }


/* -- Mobile swipe hint ------------------------------------------------------ */

.sub-swipe-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .6rem 1rem;
    font-size: .8rem;
    font-weight: 500;
    color: var(--vh-text-secondary, #475569);
    margin-bottom: 1rem;
    transition: opacity .5s ease;
    background: rgba(var(--vh-primary-rgb), .06);
    border: 1px solid rgba(var(--vh-primary-rgb), .15);
    border-radius: var(--radius-pill, 999px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.sub-swipe-hint.hiding {
    opacity: 0;
}

.sub-swipe-hint svg {
    width: 16px;
    height: 16px;
}
.sub-swipe-hint svg:first-child {
    animation: swipeHintLeft 1.5s ease-in-out infinite;
}
.sub-swipe-hint svg:last-child {
    animation: swipeHintRight 1.5s ease-in-out infinite;
}
@keyframes swipeHintLeft {
    0%, 100% { transform: translateX(0); opacity: .6; }
    50%      { transform: translateX(-4px); opacity: 1; }
}
@keyframes swipeHintRight {
    0%, 100% { transform: translateX(0); opacity: .6; }
    50%      { transform: translateX(4px); opacity: 1; }
}


/* -- Screen reader only utility --------------------------------------------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* -- Global focus-visible --------------------------------------------------- */

*:focus-visible {
    outline: 2px solid var(--vh-primary);
    outline-offset: 2px;
}

/* Better transitions on all interactive elements */
a, button, input, select, textarea, details summary {
    transition-property: color, background-color, border-color, box-shadow, transform, opacity;
    transition-duration: .3s;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}


/* -- Responsive ------------------------------------------------------------- */

@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .skeleton-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .price-card {
        padding: 2.5rem 2rem 2rem;
    }
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        gap: 1.25rem;
        overflow-x: visible;
    }

    .skeleton-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        gap: 1.25rem;
    }

    /* Popular card: put it first visually on mobile */
    .price-card[data-plan="basic"] {
        order: -1;
    }

    .price-card.popular.visible,
    .price-card.popular.visible:not(:hover) {
        transform: translateY(0) scale(1);
    }

    .price-card:hover {
        transform: translateY(-4px) scale(1);
    }

    .price-card.popular:hover {
        transform: translateY(-6px) scale(1.01);
    }

    /* Reset accent bars on mobile */
    .price-card.popular::after,
    .price-card[data-plan="pro"]::after {
        left: 1.5rem;
        right: 1.5rem;
    }

    .plan-desc {
        min-height: auto;
    }

    /* 7. Billing toggle: centered, easy to tap on mobile */
    .sub-billing-toggle {
        max-width: 100%;
        width: 100%;
    }
    .sub-toggle-btn {
        min-height: 48px;
        padding: .75rem 1rem;
        font-size: .88rem;
        -webkit-tap-highlight-color: transparent;
    }

    .sub-compare-table th,
    .sub-compare-table td {
        padding: .75rem .6rem;
        font-size: .85rem;
        white-space: nowrap;
    }

    /* 10. Comparison table: horizontally scrollable on mobile */
    .sub-table-wrap {
        border: 1.5px solid var(--vh-border, #e2e8f0);
        border-radius: var(--radius-lg, 16px);
        box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, .06));
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sub-compare-table {
        min-width: 520px;
    }
    /* Sticky first column so feature names stay visible while scrolling */
    .sub-compare-table td:first-child,
    .sub-compare-table th:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        background: var(--vh-surface, #fff);
        white-space: normal;
        min-width: 130px;
        box-shadow: 4px 0 8px -2px rgba(0, 0, 0, .06);
    }
    .sub-compare-table th:first-child {
        background: var(--vh-bg, #f8fafc);
        box-shadow: 4px 0 8px -2px rgba(0, 0, 0, .06);
    }
    /* Preserve highlight column bg over sticky */
    .sub-compare-table tbody tr:nth-child(even) td:first-child {
        background: var(--vh-bg, rgba(248, 250, 252, .5));
    }

    .sub-swipe-hint {
        display: flex;
    }
    .sub-table-scroll-hint {
        display: flex;
    }

    /* 8. Feature tooltips: touch-friendly on mobile */
    .feature-tooltip {
        -webkit-tap-highlight-color: rgba(var(--vh-primary-rgb),.15);
        padding: 2px 0;
    }
    .feature-tooltip::after {
        left: 0;
        right: auto;
        transform: translateX(0) translateY(4px);
        max-width: min(220px, 70vw);
        font-size: .76rem;
    }
    .feature-tooltip:hover::after,
    .feature-tooltip:focus-visible::after,
    .feature-tooltip.tooltip-active::after {
        transform: translateX(0) translateY(0);
    }
    .feature-tooltip.tooltip-active::after {
        pointer-events: auto;
    }
    .feature-tooltip::before {
        left: 24px;
        transform: translateX(0);
    }

    /* 9. FAQ: full width, proper spacing */
    .sub-faq-list {
        max-width: 100%;
    }
    .sub-faq-answer p {
        padding-left: 0;
    }
    .sub-faq-question {
        padding: 1.1rem 1.25rem;
    }

    /* Pro button on mobile */
    .price-card[data-plan="pro"] .plan-btn {
        background: transparent;
        border-color: rgba(var(--vh-primary-rgb),.3);
    }

    /* Trust grid: 2 columns on tablet */
    .sub-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Modal: stack buttons vertically on mobile */
    .modal-dialog {
        width: 94%;
        max-width: 420px;
    }
    .modal-actions {
        flex-direction: column;
        gap: .75rem;
    }
    .btn-modal {
        min-height: 48px;
    }
}

@media (max-width: 640px) {
    .sub-hero {
        padding: calc(64px + 2rem) 0 1.5rem;
    }
    .price-card {
        padding: 2rem 1.5rem 1.75rem;
    }
    .price-card-skeleton {
        padding: 2rem 1.5rem;
    }
    .amount {
        font-size: 3rem;
    }
    .currency {
        font-size: 1.5rem;
    }
    /* Toggle stays full width, tighter padding */
    .sub-billing-toggle {
        max-width: 100%;
    }
    .sub-toggle-btn {
        padding: .6rem .8rem;
        font-size: .82rem;
    }
    .sub-toggle-save {
        font-size: .6rem;
        padding: .1rem .35rem;
    }
    .modal-dialog {
        padding: 1.75rem;
        border-radius: var(--radius-xl, 20px);
    }
    .modal-title {
        font-size: 1.3rem;
    }
    .modal-price-amount {
        font-size: 2rem;
    }
    /* FAQ: tighter spacing, full width */
    .sub-faq-question {
        padding: 1rem 1.1rem;
        font-size: .9rem;
        gap: .5rem;
    }
    .sub-faq-answer {
        padding: 0 1.1rem 1rem;
        font-size: .88rem;
    }
    .sub-faq-question::before {
        font-size: .65rem;
        padding: .15rem .4rem;
        min-width: 1.6rem;
    }
    .sub-faq-question::after {
        width: 8px;
        height: 8px;
        margin-left: .65rem;
        flex-shrink: 0;
    }
    .sub-faq-title {
        margin-bottom: 1.75rem;
    }
    /* Comparison table: tighter cells for small screens */
    .sub-compare-table th,
    .sub-compare-table td {
        padding: .6rem .5rem;
        font-size: .78rem;
    }
    .modal-plan-features {
        gap: .35rem;
    }
    .modal-plan-feature-tag {
        font-size: .7rem;
        padding: .2rem .5rem;
    }
    .skeleton-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    /* Credit bar: compact on small screens */
    .sub-credit-bar {
        padding: .75rem 1rem;
    }
    .sub-credit-inner {
        font-size: .85rem;
        gap: .4rem;
    }
    .sub-credit-inner strong {
        font-size: 1.1rem;
    }
    /* Trust grid: single column on small mobile */
    .sub-trust-grid {
        grid-template-columns: 1fr;
    }
    .sub-trust-item {
        padding: .75rem 1rem;
    }
    /* Modal card form mobile */
    .modal-card-fields {
        grid-template-columns: 1fr;
    }
    .modal-card-field-full {
        grid-column: 1;
    }
}

@media (max-width: 400px) {
    .price-card {
        padding: 1.75rem 1.25rem 1.5rem;
    }
    .plan-name {
        font-size: 1.3rem;
    }
    .amount {
        font-size: 2.5rem;
    }
    .plan-btn {
        padding: 1rem 1.5rem;
        font-size: .95rem;
    }
    .feature {
        font-size: .88rem;
    }
    .badge {
        top: 1rem;
        right: 1rem;
        font-size: .65rem;
        padding: .3rem .7rem;
    }
    /* FAQ question: prevent text from overflowing */
    .sub-faq-question {
        padding: .9rem 1rem;
        font-size: .85rem;
    }
    .sub-faq-answer {
        padding: 0 1rem .85rem;
        font-size: .85rem;
    }
}


/* -- Touch devices: larger tap targets -------------------------------------- */

@media (pointer: coarse) {
    .sub-toggle-btn {
        min-height: 48px;
    }
    .plan-btn {
        min-height: 52px;
    }
    .btn-modal {
        min-height: 48px;
    }
    .modal-close {
        width: 44px;
        height: 44px;
    }
    /* Tooltip: tap-toggle instead of hover */
    .feature-tooltip {
        cursor: pointer;
        padding: 2px 0;
    }
    /* FAQ: larger tap target for summary */
    .sub-faq-question {
        min-height: 48px;
    }
    /* Prevent sticky hover states */
    .price-card:hover {
        transform: none;
    }
    .price-card.popular:hover {
        transform: none;
    }
    .sub-trust-item:hover {
        transform: none;
    }
    .sub-faq-item:hover {
        transform: none;
    }
}


/* -- Reduced motion --------------------------------------------------------- */

/* -- Credit progress bar ---------------------------------------------------- */

.sub-credit-progress {
    margin-top: .75rem;
    height: 6px;
    background: rgba(var(--vh-primary-rgb),.12);
    border-radius: var(--radius-xs);
    overflow: hidden;
    position: relative;
}

.sub-credit-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--vh-primary), #E5B93A, var(--vh-primary-hover, #D4A017));
    border-radius: var(--radius-xs);
    width: 0%;
    transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    box-shadow: 0 0 8px rgba(var(--vh-primary-rgb),.4), 0 0 2px rgba(var(--vh-primary-rgb),.6);
}

.sub-credit-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5));
    border-radius: 0 3px 3px 0;
    animation: progressGlow 2s ease-in-out infinite;
}


/* -- Scroll-to-FAQ link ---------------------------------------------------- */

.sub-scroll-to-faq {
    text-align: center;
    margin-top: 2rem;
}

.sub-faq-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.2rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--vh-text-secondary, #475569);
    text-decoration: none;
    border-radius: var(--radius-pill, 9999px);
    border: 1.5px solid var(--vh-border, #e2e8f0);
    background: var(--vh-surface, #fff);
    transition: all .3s ease;
}

.sub-faq-link:hover {
    color: var(--vh-primary-dark);
    border-color: rgba(var(--vh-primary-rgb),.4);
    box-shadow: 0 2px 8px rgba(var(--vh-primary-rgb),.12);
    transform: translateY(-1px);
}

.sub-faq-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


/* -- FAQ search ------------------------------------------------------------- */

.sub-faq-search-wrap {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.sub-faq-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--vh-text-tertiary, #94a3b8);
    pointer-events: none;
    transition: color .3s ease;
}

.sub-faq-search {
    width: 100%;
    padding: .85rem 2.75rem .85rem 2.75rem;
    font-family: var(--vh-font-body);
    font-size: .95rem;
    color: var(--vh-text, #0f172a);
    background: var(--vh-surface, #fff);
    border: 1.5px solid var(--vh-border, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    outline: none;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.sub-faq-search:focus {
    border-color: rgba(var(--vh-primary-rgb),.5);
    box-shadow: 0 0 0 3px rgba(var(--vh-primary-rgb),.12);
}

.sub-faq-search:focus ~ .sub-faq-search-icon {
    color: var(--vh-primary-hover, #D4A017);
}

.sub-faq-search::placeholder {
    color: var(--vh-text-tertiary, #94a3b8);
}

.sub-faq-search-clear {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vh-bg, #f8fafc);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    color: var(--vh-text-tertiary, #94a3b8);
    cursor: pointer;
    transition: all .2s ease;
}

.sub-faq-search-clear:hover {
    background: var(--vh-border, #e2e8f0);
    color: var(--vh-text, #0f172a);
}

.sub-faq-no-results {
    text-align: center;
    color: var(--vh-text-tertiary, #94a3b8);
    font-size: .95rem;
    padding: 2rem 0;
    max-width: 720px;
    margin: 0 auto;
}

.sub-faq-item.faq-hidden {
    display: none;
}

.sub-faq-item .faq-highlight {
    background: rgba(var(--vh-primary-rgb),.25);
    border-radius: var(--radius-xs);
    padding: 0 1px;
}


/* -- Trust indicators ------------------------------------------------------- */

.sub-trust {
    padding: 0 0 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all .8s cubic-bezier(.4, 0, .2, 1);
}

.sub-trust.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entrance for trust items */
.sub-trust.visible .sub-trust-item {
    animation: trustFadeInUp .5s cubic-bezier(.4, 0, .2, 1) both;
}
.sub-trust.visible .sub-trust-item:nth-child(1) { animation-delay: .05s; }
.sub-trust.visible .sub-trust-item:nth-child(2) { animation-delay: .12s; }
.sub-trust.visible .sub-trust-item:nth-child(3) { animation-delay: .19s; }
.sub-trust.visible .sub-trust-item:nth-child(4) { animation-delay: .26s; }

.sub-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.sub-trust-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: var(--vh-surface, #fff);
    border: 1.5px solid var(--vh-border, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    transition: all .3s ease;
}

.sub-trust-item:hover {
    border-color: rgba(var(--vh-primary-rgb),.3);
    box-shadow: 0 2px 8px rgba(var(--vh-primary-rgb),.08);
    transform: translateY(-2px);
}

.sub-trust-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--vh-primary-rgb),.08);
    border-radius: var(--radius-sm, 8px);
    color: var(--vh-primary-hover, #D4A017);
}

.sub-trust-icon svg {
    width: 20px;
    height: 20px;
}

.sub-trust-icon-guarantee {
    background: rgba(var(--vh-success-rgb),.08);
    color: var(--vh-success, #16a34a);
}

.sub-trust-text {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.sub-trust-text strong {
    font-size: .85rem;
    font-weight: 700;
    color: var(--vh-text, #0f172a);
}

.sub-trust-text span {
    font-size: .75rem;
    color: var(--vh-text-tertiary, #94a3b8);
}


/* -- Modal card form (display-only) ----------------------------------------- */

.modal-card-form {
    margin-bottom: 1.25rem;
    border: 1.5px solid var(--vh-border, #e2e8f0);
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    animation: modalContentFadeIn .4s cubic-bezier(.4, 0, .2, 1) .25s both;
}

.modal-card-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    background: var(--vh-bg, #f8fafc);
    border-bottom: 1px solid var(--vh-border, #e2e8f0);
    font-size: .85rem;
    font-weight: 600;
    color: var(--vh-text, #0f172a);
}

.modal-card-header svg {
    width: 18px;
    height: 18px;
    color: var(--vh-text-tertiary, #94a3b8);
}

.modal-card-brands {
    margin-left: auto;
    display: flex;
    gap: .35rem;
}

.modal-card-brand {
    padding: .15rem .4rem;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--vh-border, #e2e8f0);
    border-radius: var(--radius-xs);
    color: var(--vh-text-tertiary, #94a3b8);
    background: var(--vh-surface, #fff);
    letter-spacing: .03em;
}

.modal-card-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: .75rem 1rem;
}

.modal-card-field {
    padding: .4rem .5rem;
}

.modal-card-field-full {
    grid-column: 1 / -1;
}

.modal-card-field label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--vh-text-tertiary, #94a3b8);
    margin-bottom: .3rem;
}

.modal-card-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem .75rem;
    background: var(--vh-bg, #f8fafc);
    border: 1px solid var(--vh-border, #e2e8f0);
    border-radius: var(--radius-xs, 6px);
    cursor: not-allowed;
}

.modal-card-placeholder {
    font-size: .85rem;
    font-weight: 500;
    color: var(--vh-text-tertiary, #94a3b8);
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
}

.modal-card-lock {
    width: 14px;
    height: 14px;
    color: var(--vh-success, #16a34a);
    flex-shrink: 0;
}

.modal-card-note {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1rem;
    font-size: .75rem;
    color: var(--vh-text-tertiary, #94a3b8);
    background: rgba(var(--vh-success-rgb),.04);
    border-top: 1px solid var(--vh-border, #e2e8f0);
}

.modal-card-note svg {
    width: 14px;
    height: 14px;
    color: var(--vh-success, #16a34a);
    flex-shrink: 0;
}


/* -- Modal success animation ------------------------------------------------ */

@keyframes modalSuccessCircle {
    0%   { stroke-dashoffset: 166; }
    100% { stroke-dashoffset: 0; }
}

@keyframes modalSuccessCheck {
    0%   { stroke-dashoffset: 48; }
    100% { stroke-dashoffset: 0; }
}

@keyframes modalSuccessFadeIn {
    from { opacity: 0; transform: scale(.8); }
    to   { opacity: 1; transform: scale(1); }
}

.modal-success-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--vh-surface, #fff);
    border-radius: inherit;
    z-index: 10;
    animation: modalSuccessFadeIn .3s ease-out both;
}

.modal-success-overlay[hidden] {
    display: none;
}

.modal-success-checkmark svg {
    width: 72px;
    height: 72px;
}

.modal-success-circle {
    stroke: var(--vh-success, #16a34a);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-linecap: round;
    animation: modalSuccessCircle .6s cubic-bezier(.65, 0, .45, 1) forwards;
}

.modal-success-check {
    stroke: var(--vh-success, #16a34a);
    stroke-width: 2;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-linecap: round;
    animation: modalSuccessCheck .3s cubic-bezier(.65, 0, .45, 1) .35s forwards;
}

.modal-success-text {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--vh-text-secondary, #475569);
}


/* -- Sticky billing toggle -------------------------------------------------- */

.sub-billing-toggle-sticky-wrap {
    position: relative;
    z-index: 50;
}

.sub-billing-toggle-sticky-wrap.is-sticky {
    position: sticky;
    top: 72px;
    padding: .5rem 0;
    background: var(--vh-bg, #f8fafc);
    border-bottom: 1px solid var(--vh-border, #e2e8f0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    border-radius: 0;
    z-index: 100;
    animation: modalContentFadeIn .3s ease-out both;
}


/* -- Comparison table mobile scroll indicator ------------------------------- */

.sub-table-scroll-hint {
    display: none;
    text-align: center;
    font-size: .75rem;
    color: var(--vh-text-tertiary, #94a3b8);
    margin-top: .5rem;
    gap: .3rem;
    align-items: center;
    justify-content: center;
}

.sub-table-scroll-hint svg {
    width: 14px;
    height: 14px;
}


@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .15s !important;
    }

    .sub-toggle-slider {
        transition-duration: .15s !important;
    }

    .price-card {
        opacity: 1 !important;
        transform: none !important;
    }

    .price-card.popular.visible,
    .price-card.popular.visible:not(:hover) {
        transform: none !important;
    }

    .price-card:hover {
        transform: translateY(-4px) !important;
    }

    .section-header,
    .sub-compare,
    .sub-faq,
    .sub-trust {
        opacity: 1 !important;
        transform: none !important;
    }

    .skeleton-line {
        animation: none !important;
        background: var(--vh-border, #e2e8f0) !important;
    }

    .sub-swipe-hint svg {
        animation: none !important;
    }

    .sub-toggle-save {
        animation: none !important;
    }

    .price-card.popular > .badge {
        animation: none !important;
    }

    .sub-credit-progress-fill {
        transition-duration: .15s !important;
    }

    .modal-success-circle,
    .modal-success-check {
        animation-duration: .01ms !important;
        stroke-dashoffset: 0 !important;
    }
}
