/* ===========================================
   PUBLIC PAGES STYLES (Privacy, Terms, Pricing)
   Theme-compatible styles for legal and pricing pages
   =========================================== */

/* ===== CSS Variables - Inherit from theme or use defaults ===== */
:root {
    --pp-bg: var(--theme-bg);
    --pp-bg2: var(--theme-bg-alt);
    --pp-text: var(--theme-text);
    --pp-muted: var(--theme-text-muted);
    --pp-surface: var(--theme-surface);
    --pp-surface-2: var(--theme-surface-hover);
    --pp-border: var(--theme-border);
    --pp-primary: var(--theme-primary);
    --pp-accent: var(--theme-accent);
    --pp-gradient: linear-gradient(135deg, var(--theme-primary-hover) 0%, var(--theme-primary) 50%, var(--theme-primary-light) 100%);
    --pp-radius-xl: var(--theme-radius-xl);
    --pp-radius-lg: var(--theme-radius-lg);
    --pp-radius-md: var(--theme-radius-md);
    --pp-shadow-lg: var(--theme-shadow-xl);
    --pp-shadow-md: var(--theme-shadow-lg);
}

/* ===== Page Hero Section ===== */
.public-page-hero {
    padding: 6rem 0 4rem;
    background: var(--pp-gradient);
    position: relative;
    overflow: hidden;
}

.public-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Hero particle background layers */
.public-page-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.public-page-hero .hero-background::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    top: -400px;
    right: -200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pp-float-orb-1 20s ease-in-out infinite;
    filter: blur(60px);
}

.public-page-hero .hero-background::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -300px;
    left: -150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pp-float-orb-2 25s ease-in-out infinite;
    filter: blur(50px);
}

@keyframes pp-float-orb-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 50px) scale(1.1); }
    66% { transform: translate(-50px, 100px) scale(0.9); }
}

@keyframes pp-float-orb-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, -60px) scale(1.15); }
    66% { transform: translate(60px, -80px) scale(0.95); }
}

.public-page-hero .hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: pp-grid-move 30s linear infinite;
    opacity: 0.6;
}

@keyframes pp-grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.public-page-hero .hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 5% 90%, rgba(255, 255, 255, 0.4) 0%, transparent 2px),
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.3) 0%, transparent 3px),
        radial-gradient(circle at 25% 95%, rgba(255, 255, 255, 0.5) 0%, transparent 2px),
        radial-gradient(circle at 35% 80%, rgba(255, 255, 255, 0.4) 0%, transparent 3px),
        radial-gradient(circle at 45% 92%, rgba(255, 255, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle at 55% 88%, rgba(255, 255, 255, 0.5) 0%, transparent 3px),
        radial-gradient(circle at 65% 95%, rgba(255, 255, 255, 0.4) 0%, transparent 2px),
        radial-gradient(circle at 75% 82%, rgba(255, 255, 255, 0.3) 0%, transparent 3px),
        radial-gradient(circle at 85% 90%, rgba(255, 255, 255, 0.5) 0%, transparent 2px),
        radial-gradient(circle at 95% 87%, rgba(255, 255, 255, 0.4) 0%, transparent 3px);
    background-size: 100% 100%;
    animation: pp-particles-rise 8s linear infinite;
}

.public-page-hero .hero-gradient::before,
.public-page-hero .hero-gradient::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(255, 255, 255, 0.5),
        100px 50px 0 0 rgba(255, 255, 255, 0.4),
        -80px 30px 0 0 rgba(255, 255, 255, 0.5),
        50px -20px 0 0 rgba(255, 255, 255, 0.3),
        -120px -40px 0 0 rgba(255, 255, 255, 0.6),
        200px 80px 0 0 rgba(255, 255, 255, 0.4),
        -150px 100px 0 0 rgba(255, 255, 255, 0.3);
    animation: pp-particle-float 10s ease-in-out infinite;
}

.public-page-hero .hero-gradient::before {
    top: 80%;
    left: 10%;
    animation-delay: 0s;
}

.public-page-hero .hero-gradient::after {
    top: 40%;
    right: 15%;
    animation-delay: -5s;
}

@keyframes pp-particles-rise {
    0% { background-position: 0% 100%; }
    100% { background-position: 0% -100%; }
}

@keyframes pp-particle-float {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translate(50px, -300px) scale(1.5); opacity: 0.8; }
    90% { opacity: 0.5; }
    100% { transform: translate(100px, -600px) scale(0.5); opacity: 0; }
}

/* 3D theme overrides for public page hero */
[data-theme="3d"] .public-page-hero {
    background: linear-gradient(135deg, #060616 0%, #0b0b24 50%, #060616 100%);
}

[data-theme="3d"] .public-page-hero::before {
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(139, 92, 246, 0.2), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(34, 211, 238, 0.15), transparent 50%);
}

[data-theme="3d"] .public-page-hero .hero-background::before {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
}

[data-theme="3d"] .public-page-hero .hero-background::after {
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
}

[data-theme="3d"] .public-page-hero .hero-gradient {
    background: 
        radial-gradient(circle at 5% 90%, rgba(139, 92, 246, 0.6) 0%, transparent 2px),
        radial-gradient(circle at 15% 85%, rgba(34, 211, 238, 0.5) 0%, transparent 3px),
        radial-gradient(circle at 25% 95%, rgba(251, 113, 133, 0.7) 0%, transparent 2px),
        radial-gradient(circle at 35% 80%, rgba(167, 139, 250, 0.6) 0%, transparent 3px),
        radial-gradient(circle at 45% 92%, rgba(139, 92, 246, 0.5) 0%, transparent 2px),
        radial-gradient(circle at 55% 88%, rgba(34, 211, 238, 0.7) 0%, transparent 3px),
        radial-gradient(circle at 65% 95%, rgba(251, 113, 133, 0.6) 0%, transparent 2px),
        radial-gradient(circle at 75% 82%, rgba(167, 139, 250, 0.5) 0%, transparent 3px),
        radial-gradient(circle at 85% 90%, rgba(139, 92, 246, 0.7) 0%, transparent 2px),
        radial-gradient(circle at 95% 87%, rgba(34, 211, 238, 0.6) 0%, transparent 3px);
}

[data-theme="3d"] .public-page-hero .hero-gradient::before,
[data-theme="3d"] .public-page-hero .hero-gradient::after {
    background: #8b5cf6;
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.9),
        0 0 40px rgba(34, 211, 238, 0.6),
        100px 50px 0 0 rgba(34, 211, 238, 0.5),
        -80px 30px 0 0 rgba(251, 113, 133, 0.6),
        50px -20px 0 0 rgba(167, 139, 250, 0.4),
        -120px -40px 0 0 rgba(139, 92, 246, 0.7);
}

[data-theme="3d"] .page-hero-title {
    text-shadow: 
        0 0 30px rgba(139, 92, 246, 0.5),
        0 0 60px rgba(34, 211, 238, 0.3);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.page-hero-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.page-hero-icon i {
    font-size: 2.5rem;
    color: white;
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.page-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.page-hero-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ===== Page Content Section ===== */
.public-page-content {
    padding: 4rem 0;
    background: var(--pp-bg);
    min-height: 60vh;
}

.content-card {
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-xl);
    padding: 3rem;
    box-shadow: var(--pp-shadow-lg);
    backdrop-filter: blur(20px);
}

.pricing-aeo-section {
    padding: 4rem 0;
    background: var(--pp-bg);
}

.pricing-aeo-header {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.pricing-aeo-header h2 {
    color: var(--pp-text);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.pricing-aeo-header p {
    color: var(--pp-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.pricing-aeo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.pricing-aeo-card {
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--pp-shadow-md);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-aeo-card:hover {
    transform: translateY(-4px);
    border-color: var(--pp-primary);
    box-shadow: var(--pp-shadow-lg);
}

.pricing-aeo-card h3 {
    color: var(--pp-text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.pricing-aeo-card p {
    color: var(--pp-muted);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 768px) {
    .content-card {
        padding: 1.5rem;
        border-radius: var(--pp-radius-lg);
    }
}

.content-section {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--pp-border);
}

.content-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pp-text);
    margin-bottom: 1.25rem;
}

.section-heading i {
    color: var(--pp-primary);
    font-size: 1.25rem;
}

.subsection-heading {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--pp-text);
    margin: 1.5rem 0 0.75rem;
}

.content-section p {
    color: var(--pp-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ===== Styled Lists ===== */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.styled-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--pp-muted);
    line-height: 1.6;
}

.styled-list li i {
    color: var(--pp-secondary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.styled-list li strong {
    color: var(--pp-text);
}

/* ===== Info Grid ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--pp-surface-2);
    border-radius: var(--pp-radius-md);
    border: 1px solid var(--pp-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--pp-shadow-md);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--pp-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: white;
    font-size: 1.25rem;
}

.info-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pp-text);
    margin-bottom: 0.35rem;
}

.info-content p {
    font-size: 0.9rem;
    color: var(--pp-muted);
    margin: 0;
    line-height: 1.5;
}

/* ===== Security Features ===== */
.security-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--pp-surface-2);
    border-radius: 50px;
    border: 1px solid var(--pp-border);
    color: var(--pp-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.security-item i {
    color: var(--pp-secondary);
}

/* ===== Rights Grid ===== */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.right-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--pp-surface-2);
    border-radius: var(--pp-radius-md);
    border: 1px solid var(--pp-border);
    transition: transform 0.3s ease;
}

.right-item:hover {
    transform: translateY(-5px);
}

.right-item i {
    font-size: 2rem;
    color: var(--pp-primary);
    margin-bottom: 0.75rem;
}

.right-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pp-text);
    margin-bottom: 0.35rem;
}

.right-item p {
    font-size: 0.85rem;
    color: var(--pp-muted);
    margin: 0;
}

/* ===== Contact Section ===== */
.contact-section .contact-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--pp-gradient);
    border-radius: var(--pp-radius-md);
    color: white;
    font-weight: 500;
}

.contact-item i {
    font-size: 1.25rem;
}

/* ===== Page Navigation Links ===== */
.page-nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
}

.nav-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-md);
    color: var(--pp-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link-btn:hover {
    background: var(--pp-primary);
    border-color: var(--pp-primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== Terms Page Specific ===== */
.terms-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.term-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--pp-surface-2);
    border-radius: var(--pp-radius-md);
    border: 1px solid var(--pp-border);
}

.term-number {
    width: 36px;
    height: 36px;
    background: var(--pp-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.term-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pp-text);
    margin-bottom: 0.35rem;
}

.term-content p {
    font-size: 0.9rem;
    color: var(--pp-muted);
    margin: 0;
}

/* ===== Prohibited Grid ===== */
.prohibited-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.prohibited-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 79, 79, 0.08);
    border: 1px solid rgba(255, 79, 79, 0.2);
    border-radius: var(--pp-radius-md);
    color: var(--pp-muted);
}

.prohibited-item i {
    color: #ff4f4f;
    flex-shrink: 0;
}

/* ===== Disclaimer Box ===== */
.disclaimer-box {
    padding: 1.5rem;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: var(--pp-radius-md);
    margin-top: 1rem;
}

.disclaimer-box p {
    color: var(--pp-text);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

/* ===========================================
   PRICING PAGE STYLES
   =========================================== */

.pricing-hero {
    padding: 6rem 0 6rem;
}

.public-page-hero.pricing-hero {
    padding: 6rem 0;
}

.pricing-hero,
.pricing-section,
.comparison-section,
.faq-section,
.pricing-cta-section {
    overflow-x: clip;
}

/* ===== Billing Toggle ===== */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.billing-toggle-pill {
    display: inline-flex;
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.billing-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: var(--pp-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.billing-option.active {
    background: var(--theme-gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.billing-option:not(.active):hover {
    color: var(--pp-text);
}

.discount-badge-inline {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--pp-gradient);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    line-height: 1.4;
}

/* ===== Pricing Carousel (mobile) ===== */
.pricing-carousel-wrapper {
    position: relative;
}

.pricing-carousel-btn {
    display: none; /* hidden on desktop */
}

.pricing-carousel-dots {
    display: none; /* hidden on desktop */
}

@media (max-width: 639px) {
    /* Wrapper becomes the carousel viewport */
    .pricing-carousel-wrapper {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 0.25rem;
    }

    /* Arrow buttons */
    .pricing-carousel-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid var(--pp-border);
        background: var(--pp-surface);
        color: var(--pp-text);
        font-size: 0.85rem;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
        z-index: 5;
        box-shadow: var(--pp-shadow-md);
    }

    .pricing-carousel-btn--prev {
        left: 0.15rem;
        transform: translateY(-50%);
    }

    .pricing-carousel-btn--next {
        right: 0.15rem;
        transform: translateY(-50%);
    }

    .pricing-carousel-btn:hover {
        background: var(--pp-primary);
        color: white;
        border-color: var(--pp-primary);
    }

    .pricing-carousel-btn:disabled {
        opacity: 0.3;
        cursor: default;
        pointer-events: none;
    }

    /* The scrollable track */
    .pricing-grid {
        /* override the 1-col grid for mobile carousel */
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 0.75rem;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 0.5rem 0.75rem 1rem;
        /* hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
        min-width: 0;
        width: 100%;
    }

    .pricing-grid::-webkit-scrollbar {
        display: none;
    }

    /* Each card takes full width of track */
    .pricing-card {
        flex: 0 0 100%;
        scroll-snap-align: center;
        min-width: 0;
        max-width: 100%;
    }

    /* Scale down price typography so it fits the card */
    .pricing-body .price-container {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0 0.2rem;
    }

    .pricing-body .currency {
        font-size: 2rem;
    }

    .pricing-body .price {
        font-size: 2rem;
    }

    .pricing-body .period {
        font-size: 0.85rem;
        align-self: flex-end;
        margin-bottom: 0.2rem;
        white-space: nowrap;
    }

    .pricing-body .price.custom-price {
        font-size: 1.5rem;
        text-align: center;
    }

    .price-original-currency,
    .price-original-amount {
        font-size: 1.1rem;
    }

    /* Dot indicators */
    .pricing-carousel-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .pricing-carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--pp-border);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
    }

@media (max-width: 420px) {
    .pricing-carousel-wrapper {
        padding: 0;
    }

    .pricing-carousel-btn {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }

    .pricing-carousel-btn--prev {
        left: 0;
    }

    .pricing-carousel-btn--next {
        right: 0;
    }

    .pricing-grid {
        padding-inline: 0.45rem !important;
        scroll-padding-inline: 0.45rem;
    }
}

    .pricing-carousel-dot.active {
        background: var(--pp-primary);
        width: 22px;
        border-radius: 4px;
        transform: none;
    }
}

/* ===== Pricing Section ===== */
.pricing-section {
    position: relative;
    padding: 4rem 0 5.5rem;
    background: var(--pp-bg);
}

.pricing-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--pp-bg2));
    pointer-events: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Tablet - 2 columns */
@media (min-width: 640px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Medium screens - 3 columns */
@media (min-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* Large desktop - all 5 cards in a row */
@media (min-width: 1400px) {
    .pricing-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
        padding: 0;
    }
}

/* ===== Pricing Card ===== */
.pricing-card {
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-xl);
    overflow: visible;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

@media (max-width: 639px) {
    .pricing-card:hover {
        transform: none;
    }

    .pricing-card.featured {
        box-shadow: 0 0 24px rgba(124, 92, 255, 0.16);
    }
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--pp-shadow-lg);
}

.pricing-card.featured {
    border-color: var(--pp-primary);
    box-shadow: 0 0 40px rgba(124, 92, 255, 0.2);
}

/* Scale down featured card hover on large screens */
@media (min-width: 1400px) {
    .pricing-card:hover {
        transform: translateY(-5px);
    }
}

.featured-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    background: var(--pp-gradient);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0 0 12px 12px;
}

@media (min-width: 1400px) {
    .featured-badge {
        padding: 0.35rem 1rem;
        font-size: 0.7rem;
    }
}

/* Struck-through original price for annual billing */
.price-original {
    text-align: left;
    margin-bottom: 0.25rem;
}

.price-original-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pp-muted);
}

.price-original-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pp-muted);
    text-decoration: line-through;
    text-decoration-color: var(--pp-muted);
    text-decoration-thickness: 2px;
}

@media (min-width: 1400px) {
    .price-original-amount {
        font-size: 1.2rem;
    }

    .price-original-currency {
        font-size: 1.2rem;
    }
}

.pricing-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    border-bottom: 1px solid var(--pp-border);
}

@media (min-width: 1400px) {
    .pricing-header {
        padding: 2rem 1rem 1rem;
    }
}

.plan-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1400px) {
    .plan-icon {
        width: 55px;
        height: 55px;
        border-radius: 14px;
    }
}

.plan-icon i {
    font-size: 1.75rem;
    color: white;
}

@media (min-width: 1400px) {
    .plan-icon i {
        font-size: 1.4rem;
    }
}

.plan-icon.free {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.plan-icon.starter {
    background: linear-gradient(135deg, #00d4ff, #00a3cc);
}

.plan-icon.pro {
    background: var(--pp-gradient);
}

.plan-icon.enterprise {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.plan-icon.custom {
    background: linear-gradient(135deg, #ff4fd8, #9c27b0);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pp-text);
    margin-bottom: 0.35rem;
}

@media (min-width: 1400px) {
    .plan-name {
        font-size: 1.2rem;
    }
}

.plan-tagline {
    font-size: 0.9rem;
    color: var(--pp-muted);
    margin: 0;
}

@media (min-width: 1400px) {
    .plan-tagline {
        font-size: 0.8rem;
    }
}

.pricing-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 639px) {
    .pricing-header {
        padding: 2.25rem 1.25rem 1.25rem;
    }

    .plan-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        margin-bottom: 0.85rem;
    }

    .plan-icon i {
        font-size: 1.5rem;
    }

    .plan-name {
        font-size: 1.35rem;
    }

    .plan-tagline {
        max-width: 22rem;
        margin: 0 auto;
        line-height: 1.55;
    }

    .pricing-body {
        padding: 1.4rem;
    }

    .price-original,
    .price-note {
        text-align: center;
    }

    .feature-list li {
        align-items: flex-start;
        gap: 0.65rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .feature-list li i {
        margin-top: 0.15rem;
        flex: 0 0 auto;
    }

    .feature-list li span {
        min-width: 0;
    }

    .btn-pricing {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 1400px) {
    .pricing-body {
        padding: 1.25rem;
    }
}

.price-container {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--pp-text);
    line-height: 1;
}

@media (min-width: 1400px) {
    .currency {
        font-size: 2.25rem;
    }
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--pp-text);
    line-height: 1;
}

@media (min-width: 1400px) {
    .price {
        font-size: 2.25rem;
    }
}

.price.custom-price {
    font-size: 2rem;
    background: var(--pp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 1400px) {
    .price.custom-price {
        font-size: 1.5rem;
    }
}

.period {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pp-muted);
    text-transform: uppercase;
    margin-left: 0.35rem;
    align-self: center;
}

@media (min-width: 1400px) {
    .period {
        font-size: 0.85rem;
    }
}

.price-note {
    text-align: left;
    font-size: 0.85rem;
    color: var(--pp-muted);
    margin-bottom: 1.5rem;
}

@media (min-width: 1400px) {
    .price-note {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
}

/* ===== Feature List ===== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

@media (min-width: 1400px) {
    .feature-list {
        margin: 0 0 1rem;
    }
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    color: var(--pp-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 1400px) {
    .feature-list li {
        gap: 0.5rem;
        padding: 0.4rem 0;
        font-size: 0.8rem;
    }
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li.included i {
    color: #00d4ff;
}

.feature-list li.excluded {
    opacity: 0.5;
}

.feature-list li.excluded i {
    color: #666;
}

.feature-list li strong {
    color: var(--pp-text);
}

/* ===== Pricing Buttons ===== */
.btn-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--pp-radius-md);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

@media (min-width: 1400px) {
    .btn-pricing {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

.btn-pricing-primary {
    background: var(--pp-gradient);
    color: white;
}

.btn-pricing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 92, 255, 0.4);
}

.btn-pricing-secondary {
    background: var(--pp-surface-2);
    border: 1px solid var(--pp-border);
    color: var(--pp-text);
}

.btn-pricing-secondary:hover {
    background: var(--pp-primary);
    border-color: var(--pp-primary);
    color: white;
}

.btn-pricing-current {
    background: var(--pp-surface-2);
    border: 2px solid var(--pp-success, #16a34a);
    color: var(--pp-success, #16a34a);
    cursor: default;
    opacity: 0.9;
}

.btn-pricing-current:disabled {
    opacity: 0.9;
}

.trial-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--pp-muted);
    margin-top: 0.75rem;
}

@media (min-width: 1400px) {
    .trial-note {
        font-size: 0.7rem;
        margin-top: 0.5rem;
    }
}

/* ===== Comparison Section ===== */
.comparison-section {
    position: relative;
    padding: 4rem 0 5.5rem;
    background: var(--pp-bg2);
}

.comparison-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--pp-bg));
    pointer-events: none;
}

.comparison-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pp-text);
    text-align: center;
    margin-bottom: 0.5rem;
}

.comparison-subtitle {
    font-size: 1rem;
    color: var(--pp-muted);
    text-align: center;
    margin-bottom: 2.5rem;
}

.comparison-faq-link {
    color: var(--pp-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.comparison-faq-link:hover {
    color: var(--pp-text);
    text-decoration: underline;
}

.comparison-faq-link i {
    font-size: 0.8rem;
    margin-left: 0.15rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--pp-radius-lg);
    border: 1px solid var(--pp-border);
}

.comparison-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: var(--pp-surface);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--pp-border);
}

.comparison-table th {
    background: var(--pp-surface-2);
    font-weight: 600;
    color: var(--pp-text);
}

.comparison-table th.featured {
    background: rgba(124, 92, 255, 0.15);
    color: var(--pp-primary);
}

.comparison-table td.featured {
    background: rgba(124, 92, 255, 0.05);
}

.comparison-table .feature-col {
    text-align: left;
    font-weight: 500;
    color: var(--pp-text);
}

.comparison-table td {
    color: var(--pp-muted);
}

.comparison-table .category-row td {
    background: var(--pp-bg);
    font-weight: 600;
    color: var(--pp-text);
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table .category-row td i {
    margin-right: 0.5rem;
    color: var(--pp-primary);
}

.comparison-table .text-success {
    color: #00d4ff !important;
}

.comparison-table .text-muted {
    color: #666 !important;
}

/* ===== FAQ Section ===== */
.faq-section {
    position: relative;
    padding: 4rem 0 5.5rem;
    background: var(--pp-bg2);
}

.faq-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--pp-bg2));
    pointer-events: none;
}

.faq-icon {
    text-align: center;
    margin-bottom: 0.75rem;
}

.faq-icon i {
    font-size: 2rem;
    background: var(--theme-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pp-text);
    text-align: center;
    margin-bottom: 0.5rem;
}

.faq-subtitle {
    font-size: 1rem;
    color: var(--pp-muted);
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-lg);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.faq-question i {
    color: var(--pp-primary);
    margin-top: 0.2rem;
}

.faq-question h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pp-text);
    margin: 0;
}

.faq-answer {
    font-size: 0.9rem;
    color: var(--pp-muted);
    line-height: 1.6;
    margin: 0;
    padding-left: 1.75rem;
}

/* ===== Wall of Love Section ===== */
.wall-of-love-section {
    position: relative;
    padding: 5rem 0 6.5rem;
    background: var(--pp-bg2);
}

/* Pricing page: wall-of-love follows comparison — flip to light bg for alternation */
.comparison-section + .wall-of-love-section {
    background: var(--pp-bg);
}

.comparison-section + .wall-of-love-section::after {
    background: linear-gradient(to bottom, transparent, var(--pp-bg2));
}

.wall-of-love-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--pp-bg));
    pointer-events: none;
}

.wall-of-love-header {
    text-align: center;
    margin-bottom: 3rem;
}

.wall-of-love-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    background: var(--theme-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wol-heartbeat 1.4s ease-in-out infinite;
    display: inline-block;
}

@keyframes wol-heartbeat {
    0%, 100% { transform: scale(1); }
    14%       { transform: scale(1.18); }
    28%       { transform: scale(1); }
    42%       { transform: scale(1.12); }
    56%       { transform: scale(1); }
}

.wall-of-love-title {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    background: var(--theme-gradient-primary);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wol-gradient-shift 4s linear infinite;
}

@keyframes wol-gradient-shift {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.wall-of-love-subtitle {
    font-size: 1.05rem;
    color: var(--pp-muted);
}

.wall-of-love-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .wall-of-love-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .wall-of-love-grid {
        grid-template-columns: 1fr;
    }
}

.love-card {
    perspective: 800px;
}

.love-card-inner {
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
}

.love-card-inner:hover {
    transform: translateY(-6px) rotateX(2deg);
    box-shadow: var(--pp-shadow-lg);
}

.love-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pp-text);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.love-card-body {
    font-size: 0.9rem;
    color: var(--pp-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.25rem;
}

.love-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pp-border);
}

.love-card-author {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--pp-text);
}

.love-card-role {
    font-size: 0.8rem;
    color: var(--pp-muted);
}

/* ============================================
   PRICING FLOW MODALS
   ============================================ */

.pricing-flow-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
    background: var(--pp-surface);
}

/* Account-required modal on pricing page */
#authRequiredModal .modal-content {
    overflow: hidden;
    border: 1px solid var(--pp-border);
    border-radius: 20px;
    background: var(--pp-surface);
    color: var(--pp-text);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

#authRequiredModal .modal-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-bottom: 1px solid var(--pp-border);
}

#authRequiredModal .modal-title {
    color: var(--pp-text);
    font-weight: 800;
}

#authRequiredModal .modal-title i {
    color: var(--theme-primary);
}

#authRequiredModal .modal-body,
#authRequiredModal .modal-footer {
    background: var(--pp-surface);
}

#authRequiredModal .modal-body .lead {
    color: var(--pp-text);
    line-height: 1.6;
}

#authRequiredModal .modal-footer {
    padding: 1.25rem 1.5rem 1.5rem;
}

#authRequiredModal .btn-primary {
    border: none;
    background: var(--theme-gradient-primary);
    color: white;
    font-weight: 700;
    box-shadow: var(--theme-shadow-primary);
}

#authRequiredModal .btn-outline-primary {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    font-weight: 700;
}

#authRequiredModal .btn-outline-primary:hover {
    background: var(--theme-primary);
    color: white;
}

[data-theme="3d"] #authRequiredModal .modal-content,
[data-landing-theme="3d"] #authRequiredModal .modal-content {
    border-color: rgba(139, 92, 246, 0.22);
    background: rgba(18, 18, 50, 0.98);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 35px rgba(139, 92, 246, 0.2);
}

[data-theme="3d"] #authRequiredModal .modal-header,
[data-theme="3d"] #authRequiredModal .modal-body,
[data-theme="3d"] #authRequiredModal .modal-footer,
[data-landing-theme="3d"] #authRequiredModal .modal-header,
[data-landing-theme="3d"] #authRequiredModal .modal-body,
[data-landing-theme="3d"] #authRequiredModal .modal-footer {
    background: rgba(18, 18, 50, 0.98);
}

[data-theme="3d"] #authRequiredModal .modal-header,
[data-landing-theme="3d"] #authRequiredModal .modal-header {
    border-bottom-color: rgba(139, 92, 246, 0.22);
}

[data-theme="3d"] #authRequiredModal .modal-title,
[data-theme="3d"] #authRequiredModal .modal-body .lead,
[data-landing-theme="3d"] #authRequiredModal .modal-title,
[data-landing-theme="3d"] #authRequiredModal .modal-body .lead {
    color: #e2e8f0;
}

[data-theme="3d"] #authRequiredModal .btn-close,
[data-landing-theme="3d"] #authRequiredModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.75;
}

[data-theme="3d"] #authRequiredModal .btn-close:hover,
[data-landing-theme="3d"] #authRequiredModal .btn-close:hover {
    opacity: 1;
}

[data-theme="3d"] #authRequiredModal .btn-outline-primary,
[data-landing-theme="3d"] #authRequiredModal .btn-outline-primary {
    border-color: #a78bfa;
    color: #c4b5fd;
}

[data-theme="3d"] #authRequiredModal .btn-outline-primary:hover,
[data-landing-theme="3d"] #authRequiredModal .btn-outline-primary:hover {
    background: rgba(139, 92, 246, 0.18);
    color: white;
}

.pricing-flow-modal-header {
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid var(--pp-border);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(14, 165, 233, 0.08) 100%);
}

.pricing-flow-modal-header .modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pp-text);
    display: flex;
    align-items: center;
}

.pricing-flow-modal-header .modal-title i {
    color: var(--theme-primary);
}

.pricing-flow-modal-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pricing-flow-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-gradient-primary);
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--theme-shadow-primary);
}

.pricing-flow-modal-icon--accent {
    background: linear-gradient(135deg, var(--theme-accent) 0%, var(--theme-accent-hover) 100%);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.pricing-flow-modal-heading {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--pp-text);
}

.pricing-flow-modal-message {
    margin: 0;
    color: var(--pp-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

.pricing-flow-plan-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.pricing-flow-plan-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.pricing-flow-plan-summary-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pp-muted);
}

.pricing-flow-plan-pill {
    display: inline-flex;
    width: fit-content;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--theme-primary);
    font-weight: 700;
    font-size: 0.88rem;
}

.pricing-flow-plan-pill--target {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.pricing-flow-expiry-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: var(--pp-text);
    font-size: 0.92rem;
}

.pricing-flow-expiry-chip i {
    color: var(--theme-primary);
}

.pricing-flow-modal-footer {
    padding: 1.25rem 1.6rem 1.6rem;
    border-top: 0;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-pricing-modal-secondary,
.btn-pricing-modal-primary {
    padding: 0.85rem 1.4rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.btn-pricing-modal-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-pricing-modal-secondary:hover {
    background: #d1d5db;
    color: #111827;
}

.btn-pricing-modal-primary {
    background: var(--theme-gradient-primary);
    color: white;
    box-shadow: var(--theme-shadow-primary);
}

.btn-pricing-modal-primary:hover {
    transform: translateY(-2px);
    color: white;
}

[data-theme="3d"] .pricing-flow-modal,
[data-landing-theme="3d"] .pricing-flow-modal {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 35px rgba(139, 92, 246, 0.18);
}

[data-theme="3d"] .pricing-flow-modal-header,
[data-theme="3d"] .pricing-flow-modal-body,
[data-theme="3d"] .pricing-flow-modal-footer,
[data-landing-theme="3d"] .pricing-flow-modal-header,
[data-landing-theme="3d"] .pricing-flow-modal-body,
[data-landing-theme="3d"] .pricing-flow-modal-footer {
    background: rgba(15, 23, 42, 0.98);
}

[data-theme="3d"] .pricing-flow-modal-header,
[data-landing-theme="3d"] .pricing-flow-modal-header {
    border-bottom-color: rgba(139, 92, 246, 0.2);
}

[data-theme="3d"] .pricing-flow-modal-header .modal-title,
[data-theme="3d"] .pricing-flow-modal-heading,
[data-landing-theme="3d"] .pricing-flow-modal-header .modal-title,
[data-landing-theme="3d"] .pricing-flow-modal-heading {
    color: #e2e8f0;
}

[data-theme="3d"] .pricing-flow-modal-message,
[data-theme="3d"] .pricing-flow-plan-summary-label,
[data-theme="3d"] .pricing-flow-expiry-chip,
[data-landing-theme="3d"] .pricing-flow-modal-message,
[data-landing-theme="3d"] .pricing-flow-plan-summary-label,
[data-landing-theme="3d"] .pricing-flow-expiry-chip {
    color: #94a3b8;
}

[data-theme="3d"] .pricing-flow-plan-summary-item,
[data-landing-theme="3d"] .pricing-flow-plan-summary-item {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.85) 100%);
    border-color: rgba(139, 92, 246, 0.18);
}

[data-theme="3d"] .pricing-flow-plan-pill,
[data-landing-theme="3d"] .pricing-flow-plan-pill {
    background: rgba(139, 92, 246, 0.16);
    color: #c4b5fd;
}

[data-theme="3d"] .pricing-flow-plan-pill--target,
[data-landing-theme="3d"] .pricing-flow-plan-pill--target {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}

[data-theme="3d"] .pricing-flow-expiry-chip,
[data-landing-theme="3d"] .pricing-flow-expiry-chip {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.18);
}

[data-theme="3d"] .btn-pricing-modal-secondary,
[data-landing-theme="3d"] .btn-pricing-modal-secondary {
    background: rgba(51, 65, 85, 0.9);
    color: #e2e8f0;
}

[data-theme="3d"] .btn-pricing-modal-secondary:hover,
[data-landing-theme="3d"] .btn-pricing-modal-secondary:hover {
    background: rgba(71, 85, 105, 0.95);
    color: white;
}

@media (max-width: 576px) {
    .pricing-flow-plan-summary {
        grid-template-columns: 1fr;
    }

    .pricing-flow-modal-footer {
        flex-direction: column;
    }

    .btn-pricing-modal-secondary,
    .btn-pricing-modal-primary {
        width: 100%;
    }
}

.love-card-stars {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.love-card-stars i {
    font-size: 0.75rem;
    color: #f5b71a;
}

/* ===== Pricing CTA Section ===== */
.pricing-cta-section {
    padding: 4rem 0;
    background: var(--pp-bg2);
}

.pricing-cta-card {
    text-align: center;
    padding: 3rem;
    background: var(--pp-gradient);
    border-radius: var(--pp-radius-xl);
    position: relative;
    overflow: hidden;
}

.pricing-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

.pricing-cta-card .cta-title,
.pricing-cta-card .cta-description {
    position: relative;
    z-index: 1;
}

.pricing-cta-card .cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.pricing-cta-card .cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.pricing-cta-card .cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ===== CTA Buttons ===== */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--pp-radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease, border-color 0.28s ease;
}

.btn-cta-primary {
    background: white;
    color: var(--pp-primary);
}

.btn-cta-primary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-cta-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* ===== How It Works — Zigzag Timeline ===== */
.how-it-works-section .section-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.how-it-works-section {
    position: relative;
    padding: 5rem 0 6.5rem;
    background: var(--pp-bg);
    overflow: hidden;
}

.how-it-works-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--pp-bg2));
    pointer-events: none;
}

/* ---- Timeline wrapper ---- */
.hiw-timeline {
    position: relative;
    max-width: 1100px;
    margin: 3.5rem auto 0;
    padding: 0 1rem;
}

/* Vertical glowing spine */
.hiw-spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--pp-primary, #7c3aed) 8%,
        var(--pp-primary, #7c3aed) 92%,
        transparent 100%
    );
    opacity: 0.25;
}

.hiw-spine::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(4px);
    opacity: 0.5;
}

/* ---- Each step row ---- */
.hiw-step {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 4.5rem;
    position: relative;
}

/* Left steps: card on left, node on right edge of card (pointing at spine) */
.hiw-step--left {
    flex-direction: row;
    padding-right: calc(50% + 1.5rem);
}

/* Right steps: node first, card on right */
.hiw-step--right {
    flex-direction: row-reverse;
    padding-left: calc(50% + 1.5rem);
}

/* ---- Node (number bubble on the spine) ---- */
.hiw-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--pp-gradient, linear-gradient(135deg, #7c3aed, #a78bfa));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 3;
    box-shadow: 0 0 0 4px var(--pp-bg, #0d0f1a), 0 0 20px rgba(124,58,237,0.5);
}

.hiw-node-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid rgba(167, 139, 250, 0.35);
    animation: hiwPulse 2.6s ease-in-out infinite;
}

@keyframes hiwPulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50%       { opacity: 0.8;  transform: scale(1.15); }
}

.hiw-node--final {
    background: linear-gradient(135deg, #ec4899, #f97316);
    box-shadow: 0 0 0 4px var(--pp-bg, #0d0f1a), 0 0 24px rgba(236,72,153,0.5);
}

.hiw-node-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* ---- Card ---- */
.hiw-card {
    position: relative;
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: 20px;
    padding: 2.4rem 2.2rem 2.4rem 2.6rem;
    display: flex;
    align-items: flex-start;
    gap: 1.6rem;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s cubic-bezier(0.22,1,0.36,1);
    width: 100%;
}

.hiw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.28);
}

/* Coloured left accent bar */
.hiw-card-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 16px 0 0 16px;
}

.hiw-accent--blue   { background: linear-gradient(180deg, #3b82f6, #6366f1); }
.hiw-accent--orange { background: linear-gradient(180deg, #f97316, #fbbf24); }
.hiw-accent--green  { background: linear-gradient(180deg, #10b981, #34d399); }
.hiw-accent--pink   { background: linear-gradient(180deg, #ec4899, #f43f5e); }

/* Icon circle */
.hiw-card-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiw-card-icon i { font-size: 1.6rem; }

.hiw-icon--blue   { background: rgba(99,102,241,0.15); color: #818cf8; }
.hiw-icon--orange { background: rgba(249,115,22,0.15);  color: #fb923c; }
.hiw-icon--green  { background: rgba(16,185,129,0.15);  color: #34d399; }
.hiw-icon--pink   { background: rgba(236,72,153,0.15);  color: #f472b6; }

.hiw-card-body { flex: 1; min-width: 0; }

.hiw-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pp-text);
    margin: 0 0 0.6rem;
}

.hiw-card-desc {
    font-size: 0.975rem;
    color: var(--pp-muted);
    line-height: 1.7;
    margin: 0;
}

/* ---- Mobile: single column ---- */
@media (max-width: 700px) {
    .hiw-spine { display: none; }

    .hiw-step--left,
    .hiw-step--right {
        flex-direction: column;
        padding: 0;
        gap: 1rem;
    }

    .hiw-node {
        position: relative;
        left: auto;
        transform: none;
        margin: 0 auto;
    }
}

/* ===== Use Cases Section ===== */
.use-cases-section {
    position: relative;
    padding: 5rem 0 6.5rem;
    background: var(--pp-bg);
}

.use-cases-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--pp-bg2));
    pointer-events: none;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
}

/* Per-card accent palette — mirrors benefit-card colours */
.use-case-card:nth-child(1) { --uc-accent: #7c3aed; --uc-accent2: #a78bfa; --uc-glow: rgba(124, 58, 237, 0.4);  --uc-bg: rgba(124, 58, 237, 0.06); }
.use-case-card:nth-child(2) { --uc-accent: #0ea5e9; --uc-accent2: #38bdf8; --uc-glow: rgba(14, 165, 233, 0.4);  --uc-bg: rgba(14, 165, 233, 0.06); }
.use-case-card:nth-child(3) { --uc-accent: #10b981; --uc-accent2: #34d399; --uc-glow: rgba(16, 185, 129, 0.4);  --uc-bg: rgba(16, 185, 129, 0.06); }
.use-case-card:nth-child(4) { --uc-accent: #f59e0b; --uc-accent2: #fbbf24; --uc-glow: rgba(245, 158, 11, 0.4);  --uc-bg: rgba(245, 158, 11, 0.06); }
.use-case-card:nth-child(5) { --uc-accent: #ec4899; --uc-accent2: #f472b6; --uc-glow: rgba(236, 72, 153, 0.4);  --uc-bg: rgba(236, 72, 153, 0.06); }
.use-case-card:nth-child(6) { --uc-accent: #06b6d4; --uc-accent2: #22d3ee; --uc-glow: rgba(6, 182, 212, 0.4);   --uc-bg: rgba(6, 182, 212, 0.06); }

.use-case-card {
    position: relative;
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-lg);
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    overflow: hidden;
    cursor: default;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        border-color 0.45s ease;
}

/* Coloured top stripe */
.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--uc-accent), var(--uc-accent2));
    border-radius: var(--pp-radius-lg) var(--pp-radius-lg) 0 0;
    transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

/* Shimmer sweep */
.use-case-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        118deg,
        transparent 20%,
        rgba(255, 255, 255, 0.055) 48%,
        rgba(255, 255, 255, 0.09) 50%,
        rgba(255, 255, 255, 0.055) 52%,
        transparent 80%
    );
    transform: translateX(-140%);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 1;
}

.use-case-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--uc-accent);
    box-shadow:
        0 0 0 1px var(--uc-accent),
        0 24px 64px rgba(0, 0, 0, 0.38),
        0 0 50px var(--uc-glow);
}

.use-case-card:hover::before {
    height: 6px;
}

.use-case-card:hover::after {
    transform: translateX(140%);
}

.use-case-icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--uc-accent) 0%, var(--uc-accent2) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    box-shadow: 0 6px 20px var(--uc-glow);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.use-case-card:hover .use-case-icon {
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 10px 32px var(--uc-glow);
}

.use-case-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.use-case-title {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pp-text);
    margin-bottom: 0.5rem;
}

.use-case-description {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    color: var(--pp-muted);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CTA Section ===== */
.cta-section {
    position: relative;
    padding: 4rem 0;
    background: var(--pp-bg2);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, var(--pp-bg), transparent);
    pointer-events: none;
}

.cta-card {
    background: var(--pp-gradient);
    border-radius: var(--pp-radius-xl);
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 576px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .public-page-hero {
        padding: 4rem 0 3rem;
    }

    .public-page-hero.pricing-hero {
        padding: 4.25rem 0 3.25rem;
    }

    .page-hero-content {
        max-width: 100%;
        padding: 0 0.75rem;
    }

    .page-hero-title,
    .comparison-title,
    .faq-title {
        overflow-wrap: anywhere;
        line-height: 1.15;
    }

    .page-hero-subtitle,
    .comparison-subtitle,
    .faq-subtitle {
        line-height: 1.55;
    }

    .pricing-section,
    .comparison-section,
    .faq-section,
    .pricing-cta-section {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    .pricing-section > .container,
    .comparison-section > .container,
    .faq-section > .container,
    .pricing-cta-section > .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .billing-toggle {
        margin-bottom: 2rem;
    }

    .billing-toggle-pill {
        width: 100%;
        max-width: 22rem;
        justify-content: center;
        border-radius: 18px;
    }

    .billing-option {
        flex: 1 1 0;
        justify-content: center;
        padding: 0.65rem 0.5rem;
        font-size: 0.88rem;
    }

    .discount-badge-inline {
        padding: 0.12rem 0.38rem;
        font-size: 0.65rem;
    }

    .page-hero-icon {
        width: 70px;
        height: 70px;
    }

    .page-hero-icon i {
        font-size: 2rem;
    }

    .comparison-table-wrapper {
        margin: 0;
        border-radius: var(--pp-radius-lg);
        -webkit-overflow-scrolling: touch;
        box-shadow: var(--pp-shadow-md);
    }

    .comparison-table {
        min-width: 620px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem 0.75rem;
        font-size: 0.82rem;
    }

    .comparison-table .category-row td {
        font-size: 0.78rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .faq-item {
        padding: 1.25rem;
    }

    .faq-question {
        gap: 0.6rem;
    }

    .faq-answer {
        padding-left: 0;
    }

    .pricing-flow-modal {
        margin: 0.75rem;
        border-radius: 18px;
    }

    #authRequiredModal .modal-footer {
        flex-direction: column;
    }

    #authRequiredModal .modal-footer .btn {
        width: 100%;
    }

    .pricing-cta-card {
        padding: 2rem 1.25rem;
        border-radius: var(--pp-radius-lg);
    }

    .pricing-cta-card .cta-description {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .pricing-cta-card .cta-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-item {
        max-width: 100%;
    }

    .btn-cta {
        width: 100%;
        padding: 0.9rem 1rem;
    }
}

@media (max-width: 360px) {
    .page-hero-title {
        font-size: 1.75rem;
    }

    .page-hero-subtitle,
    .comparison-subtitle,
    .faq-subtitle {
        font-size: 0.92rem;
    }

    .billing-option {
        gap: 0.25rem;
        font-size: 0.82rem;
    }

    .discount-badge-inline {
        font-size: 0.6rem;
    }

    .pricing-body {
        padding: 1.15rem;
    }

    .pricing-body .currency,
    .pricing-body .price {
        font-size: 1.75rem;
    }

    .feature-list li {
        font-size: 0.85rem;
    }
}











