/* sections.css: Specific Section Styling */

/* --- Hero Section --- */
.hero-section {
    padding-top: 150px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(37, 211, 102, 0.1), transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    position: relative;
    z-index: 10;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: var(--space-6);
    line-height: 1.35;
}

.hero-content .subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.trust-marks {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.trust-marks span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trust-marks i {
    width: 14px;
    height: 14px;
    color: var(--accent-green);
}

/* Glow Elements */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.4;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: rgba(37, 211, 102, 0.15);
    top: -100px;
    right: 10%;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: rgba(16, 185, 129, 0.1);
    bottom: 10%;
    left: -5%;
}


/* Hero Visuals (Framer-Inspired) */
.hero-visual {
    position: relative;
    height: 600px;
    width: 100%;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.flow-container {
    position: absolute;
    width: 400px;
    height: 500px;
    opacity: 0;
    visibility: hidden;
    transform: rotateY(-15deg) rotateX(10deg) translateZ(-50px) scale(0.95);
    filter: blur(4px);
    pointer-events: none;
    transform-origin: center center;
    transition: opacity 1s ease, transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 1s ease, visibility 1s;
}

.flow-container.active {
    opacity: 1;
    visibility: visible;
    transform: rotateY(-10deg) rotateX(5deg) translateZ(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
}

/* Lines and Particles */
.flow-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: visible;
}

.flow-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
    stroke-linecap: round;
}

.flow-particle {
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 6 30;
    animation: pulse-stream 2s linear infinite;
    filter: drop-shadow(0 0 6px rgba(37, 211, 102, 0.8));
}

@keyframes pulse-stream {
    from {
        stroke-dashoffset: 36;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Modern Nodes */
.f-node-modern {
    position: absolute;
    background: rgba(24, 27, 35, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    transform: translate(-50%, -50%);
    animation: float-node 4s ease-in-out infinite alternate;
    z-index: 2;
    white-space: nowrap;
    /* Pre-promote so compositor layer is ready before animation starts */
    will-change: transform;
}

.f-node-modern i {
    width: 18px;
    height: 18px;
}

.f-node-modern.trigger {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.2);
}

.f-node-modern.trigger i {
    color: #f59e0b;
}

.f-node-modern.action {
    border-color: rgba(37, 211, 102, 0.4);
    box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.2);
}

.f-node-modern.action i {
    color: var(--accent-green);
}

.f-node-modern.logic {
    border-color: rgba(20, 184, 166, 0.4);
}

.f-node-modern.logic i {
    color: var(--accent-teal);
}

.f-node-modern.condition {
    border-color: rgba(139, 92, 246, 0.4);
}

.f-node-modern.condition i {
    color: #8b5cf6;
}

@keyframes float-node {
    0% {
        transform: translate(-50%, -50%) translateY(0px);
    }

    100% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

/* Node Positioning relative to 400x500 box (scaled to contain) */
.node-pos-1 {
    top: 10%;
    left: 50%;
    animation-delay: 0s;
}

.node-pos-2 {
    top: 30%;
    left: 50%;
    animation-delay: 0.5s;
}

.node-pos-3 {
    top: 50%;
    left: 50%;
    animation-delay: 1.0s;
}

.node-pos-4 {
    top: 70%;
    left: 50%;
    animation-delay: 1.5s;
}

.node-pos-5 {
    top: 90%;
    left: 50%;
    animation-delay: 2.0s;
}

.node-branch-left {
    top: 70%;
    left: 25%;
    animation-delay: 1.5s;
}

.node-branch-right {
    top: 70%;
    left: 75%;
    animation-delay: 1.8s;
}

/* --- Preferences Strip --- */
.preferences-strip {
    padding: 0;
    margin-top: -30px;
}

.pref-card {
    background: rgba(24, 27, 35, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .pref-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.pref-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.pref-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pref-controls {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.toggle-group {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 100px;
    padding: 4px;
    border: 1px solid var(--glass-border);
}

.toggle-group button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-group button.active {
    background: var(--accent-green);
    color: #000;
    font-weight: 600;
}

/* --- Bento Grid Section (Framer-inspired) --- */
.bento-section {
    padding: var(--space-16) 0;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: var(--space-8);
    background: var(--glass-border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
.bento-tile {
    background: var(--bg-card);
    padding: var(--space-6);
    position: relative;
    transition: background 0.3s, transform 0.25s, box-shadow 0.25s;
    /* tiles are now <a> elements linking to /features/<slug>.html */
    color: inherit;
    text-decoration: none;
    display: block;
    cursor: pointer;
}
.bento-tile:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -8px rgba(37, 211, 102, 0.15);
}
.bento-tile::after {
    content: "→";
    position: absolute;
    top: var(--space-5);
    right: var(--space-6);
    color: var(--text-tertiary);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.25s, transform 0.25s, color 0.25s;
    font-size: 1.1rem;
    font-weight: 700;
}
.bento-tile:hover::after {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent-green);
}
/* Wide tiles span 1 col on the 2-col base grid */
.bento-wide {
    /* same as default on 2-col */
}
.bento-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(37, 211, 102, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    margin-bottom: var(--space-3);
}
.bento-icon i {
    width: 20px;
    height: 20px;
}
.bento-tile h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}
.bento-tile p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
.bento-tile .link-animate {
    margin-top: var(--space-3);
    font-size: 0.85rem;
}
.bento-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--space-3);
}
.bento-channels span {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.15);
    color: var(--accent-green);
    letter-spacing: 0.02em;
}
.bento-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

/* Desktop: 4-col bento with spanning */
@media (min-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .bento-wide {
        grid-column: span 2;
    }
    .bento-tile {
        padding: var(--space-8) var(--space-6);
    }
}

/* Tablet: 2-col */
@media (min-width: 601px) and (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-wide {
        grid-column: span 1;
    }
}

/* Mobile: 2-col compact grid */
@media (max-width: 600px) {
    .bento-section {
        padding: var(--space-8) 0;
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        border-radius: var(--radius-xl);
        margin-top: var(--space-5);
    }
    .bento-wide {
        grid-column: span 2;
    }
    .bento-tile {
        padding: var(--space-4);
    }
    .bento-icon {
        width: 32px;
        height: 32px;
        margin-bottom: var(--space-2);
    }
    .bento-icon i {
        width: 16px;
        height: 16px;
    }
    .bento-tile h3 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    .bento-tile p {
        font-size: 0.78rem;
        line-height: 1.45;
    }
    .bento-channels {
        gap: 4px;
    }
    .bento-channels span {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
    .bento-cta {
        flex-direction: column;
        margin-top: var(--space-5);
    }
    .bento-cta .btn {
        width: 100%;
    }
}

/* --- Solutions Grid --- */
.solution-block {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.solution-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.solution-block:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(37, 211, 102, 0.2);
    box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.1);
}

.solution-block:hover::before {
    transform: scaleX(1);
}

.solution-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 211, 102, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: var(--accent-green);
}

.solution-block h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}

.solution-block p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-4);
}

/* --- Packages Horizontal Scroll --- */
.horizontal-scroll-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: var(--space-8) var(--space-6);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.packages-track {
    display: flex;
    gap: var(--space-6);
    width: max-content;
    padding: 0 calc(50vw - min(600px, 50vw - var(--space-6)));
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
}

.package-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 211, 102, 0.3);
    box-shadow: var(--shadow-glow);
}

.package-card.bundle-selected {
    border-color: rgba(37, 211, 102, 0.6);
    box-shadow: var(--shadow-glow-strong);
    background: rgba(37, 211, 102, 0.03);
}

.package-tag {
    align-self: flex-start;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: var(--space-2);
}

.package-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

/* Home page bundle cards — fixed width for horizontal scroll */
.home-bundle-card {
    width: clamp(280px, 70vw, 340px);
    flex-shrink: 0;
    scroll-snap-align: start;
}
.home-bundle-card .card-title-zone p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.package-ideal {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--glass-border);
}

.package-price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.package-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 400;
}

.package-features {
    margin: var(--space-6) 0;
    flex-grow: 1;
}

.package-features li {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--space-3);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.package-features i {
    color: var(--accent-green);
    width: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- Enterprise Section --- */
.enterprise-card {
    background: linear-gradient(145deg, var(--bg-card), rgba(37, 211, 102, 0.02));
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.08);
}

.enterprise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

@media (min-width: 768px) {
    .enterprise-card {
        padding: var(--space-12);
    }
}

.enterprise-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.7;
    max-width: 800px;
}

.enterprise-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

@media (min-width: 768px) {
    .enterprise-features {
        grid-template-columns: 1fr 1fr;
    }
}

.enterprise-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.enterprise-features i {
    color: var(--accent-green);
    width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Enterprise price callout box */
.enterprise-price-callout {
    background: rgba(37, 211, 102, 0.06);
    border: 1px solid rgba(37, 211, 102, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-6);
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Enterprise mobile refinements */
@media (max-width: 640px) {
    .enterprise-card {
        padding: var(--space-5);
    }
    .enterprise-card .badge {
        white-space: normal;
        text-align: left;
        font-size: 0.78rem;
        line-height: 1.4;
        max-width: 100%;
    }
    .enterprise-card .section-title {
        font-size: 1.05rem !important;
        line-height: 1.45;
        font-weight: 600;
    }
    .enterprise-price-callout {
        text-align: center;
        padding: var(--space-3) var(--space-4);
        font-size: 0.9rem;
        line-height: 1.6;
    }
    .enterprise-features {
        gap: 0;
    }
    .enterprise-features li {
        font-size: 0.85rem;
        padding: var(--space-2) 0;
        border-bottom: 1px solid var(--glass-border);
    }
    .enterprise-features li:last-child {
        border-bottom: none;
    }
}

/* --- Flow Section Diagram --- */
.feature-checklist li {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    background: rgba(255, 255, 255, 0.02);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.feature-checklist li:hover {
    border-color: rgba(37, 211, 102, 0.2);
    background: rgba(37, 211, 102, 0.03);
}

.feature-checklist i.accent-color {
    color: var(--accent-green);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* === Brain Visual (Automations & AI Section) === */
.brain-visual {
    width: 500px;
    height: 500px;
    position: relative;
    border-radius: 50%;
    margin: 0 auto;
}

/* Central AI Brain */
.brain-center {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -40px;
    margin-left: -40px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bg-surface), #1a1e29);
    border: 2px solid var(--accent-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.4);
}

.brain-center i {
    width: 32px;
    height: 32px;
    color: var(--accent-green);
}

.brain-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    z-index: -1;
    animation: pulsar 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulsar {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Orbit Track Animation */
.orbit-track {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    margin-top: -200px;
    margin-left: -200px;
    border-radius: 50%;
    animation: spin 35s linear infinite;
    z-index: 5;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Orbit Nodes */
.orbit-node {
    position: absolute;
    width: max-content;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    /* Reverse spin to keep upright via keyframes */
}

/* Positioning 9 Nodes evenly around the 400px circle (radius 200px) */
.o-1 {
    transform: rotate(0deg) translate(200px) rotate(0deg) translate(-50%, -50%);
    animation: spr-1 35s linear infinite;
}

.o-2 {
    transform: rotate(40deg) translate(200px) rotate(-40deg) translate(-50%, -50%);
    animation: spr-2 35s linear infinite;
}

.o-3 {
    transform: rotate(80deg) translate(200px) rotate(-80deg) translate(-50%, -50%);
    animation: spr-3 35s linear infinite;
}

.o-4 {
    transform: rotate(120deg) translate(200px) rotate(-120deg) translate(-50%, -50%);
    animation: spr-4 35s linear infinite;
}

.o-5 {
    transform: rotate(160deg) translate(200px) rotate(-160deg) translate(-50%, -50%);
    animation: spr-5 35s linear infinite;
}

.o-6 {
    transform: rotate(200deg) translate(200px) rotate(-200deg) translate(-50%, -50%);
    animation: spr-6 35s linear infinite;
}

.o-7 {
    transform: rotate(240deg) translate(200px) rotate(-240deg) translate(-50%, -50%);
    animation: spr-7 35s linear infinite;
}

.o-8 {
    transform: rotate(280deg) translate(200px) rotate(-280deg) translate(-50%, -50%);
    animation: spr-8 35s linear infinite;
}

.o-9 {
    transform: rotate(320deg) translate(200px) rotate(-320deg) translate(-50%, -50%);
    animation: spr-9 35s linear infinite;
}

@keyframes spr-1 {
    100% {
        transform: rotate(0deg) translate(200px) rotate(-360deg) translate(-50%, -50%);
    }
}

@keyframes spr-2 {
    100% {
        transform: rotate(40deg) translate(200px) rotate(-400deg) translate(-50%, -50%);
    }
}

@keyframes spr-3 {
    100% {
        transform: rotate(80deg) translate(200px) rotate(-440deg) translate(-50%, -50%);
    }
}

@keyframes spr-4 {
    100% {
        transform: rotate(120deg) translate(200px) rotate(-480deg) translate(-50%, -50%);
    }
}

@keyframes spr-5 {
    100% {
        transform: rotate(160deg) translate(200px) rotate(-520deg) translate(-50%, -50%);
    }
}

@keyframes spr-6 {
    100% {
        transform: rotate(200deg) translate(200px) rotate(-560deg) translate(-50%, -50%);
    }
}

@keyframes spr-7 {
    100% {
        transform: rotate(240deg) translate(200px) rotate(-600deg) translate(-50%, -50%);
    }
}

@keyframes spr-8 {
    100% {
        transform: rotate(280deg) translate(200px) rotate(-640deg) translate(-50%, -50%);
    }
}

@keyframes spr-9 {
    100% {
        transform: rotate(320deg) translate(200px) rotate(-680deg) translate(-50%, -50%);
    }
}

.orbit-node i {
    color: var(--accent-teal);
    width: 14px;
    height: 14px;
}

.orbit-node span {
    font-size: 0.75rem;
}

/* Connecting SVG Lines */
.brain-connections {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
    z-index: 1;
    pointer-events: none;
}

.orbit-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
}

.orbit-particle {
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 2;
    stroke-dasharray: 4 40;
    animation: spin 10s linear infinite;
    transform-origin: center center;
}

/* Responsive Scaling for AI Brain */
@media (max-width: 768px) {
    .brain-visual {
        width: 100%;
        max-width: 320px;
        height: 320px;
        transform: scale(0.85);
        /* Scales the entire visual down to fit mobile */
        margin: var(--space-8) auto;
    }
}

@media (max-width: 480px) {
    .brain-visual {
        transform: scale(0.65);
        /* Scales down further for very small screens */
    }
}

.f-node.highlight {
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
    border-color: var(--accent-green);
}

.f-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
}

/* --- Marquee --- */
.marquee-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-6) 0;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.int-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-8);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: rgba(37, 211, 102, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Compare Tables --- */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    position: relative;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

.compare-table th,
.compare-table td {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--glass-border);
}

/* Sticky First Column */
.compare-table th:first-child,
.compare-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg-card);
    border-right: 1px solid var(--glass-border);
}

.compare-table th {
    background: var(--surface-light);
    font-weight: 500;
    color: var(--text-primary);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Intersection of top row & first col */
.compare-table th:first-child {
    z-index: 20;
    background: var(--bg-card);
}

/* Make category text stand out */
.comp-category {
    font-size: 0.95em;
    color: var(--text-primary);
    display: block;
    margin-top: 8px;
    font-weight: 600;
}

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

.highlight-col {
    background: rgba(37, 211, 102, 0.04);
    border-left: 1px solid rgba(37, 211, 102, 0.15);
    border-right: 1px solid rgba(37, 211, 102, 0.15);
}

th.highlight-col {
    background: var(--bg-card);
    color: white;
    border-top: 2px solid var(--accent-green);
    z-index: 11;
    /* Keep above other th */
}

.compare-table .check {
    color: var(--accent-green);
    width: 18px;
    vertical-align: middle;
    margin-right: 8px;
}

/* --- Integration Directory Grid --- */
.int-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .int-directory-grid {
        grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    }
}

/* --- Pricing Page Layout --- */
.pricing-step-section {
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--glass-border);
}

.pricing-section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-6);
}

.pricing-section-label .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pricing-section-label h2 {
    font-size: 1.5rem;
}

.pricing-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: var(--space-4);
    align-items: stretch;
}

.pricing-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: var(--space-4);
    align-items: stretch;
}

/* Override section overflow:hidden so sticky cart works */
section:has(.pricing-main-layout) {
    overflow: visible;
}

.pricing-cart-sticky {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transition: box-shadow 0.3s;
}

.pricing-cart-sticky.has-items {
    border-color: rgba(37, 211, 102, 0.25);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.05);
}

@media (min-width: 992px) {
    .pricing-main-layout {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: var(--space-8);
    }

    .pricing-main-layout>div {
        min-width: 0;
        overflow: visible;
    }

    /* Allow the cart column to overflow visible for sticky */
    .pricing-main-layout>div:last-child {
        overflow: visible;
    }
}

/* Pricing page bundles: keep within container instead of full viewport */
.pricing-bundles-scroll {
    width: 100%;
    position: relative;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 0 0 var(--space-4) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pricing-bundles-scroll::-webkit-scrollbar {
    display: none;
}

.pricing-bundles-scroll .packages-track {
    padding: 0;
    width: max-content;
}

/* Responsive toggle groups (region/currency pickers) */
.pricing-toggles-wrap {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

@media (max-width: 600px) {
    .pricing-toggles-wrap {
        flex-direction: column;
        align-items: center;
    }

    .pricing-toggles-wrap .toggle-group {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: var(--radius-lg);
    }

    .pricing-toggles-wrap .toggle-group button {
        font-size: 0.78rem;
        padding: 0.4rem 0.75rem;
    }
}

/* Desktop: hide mobile cart elements */
.mobile-cart-bar,
.mobile-cart-overlay,
.mobile-cart-drawer {
    display: none;
}

/* Mobile pricing layout */
@media (max-width: 991px) {
    .pricing-main-layout {
        display: flex;
        flex-direction: column;
        gap: var(--space-6);
    }

    /* Hide the desktop cart sidebar on mobile */
    .pricing-main-layout>div:last-child {
        display: none;
    }

    /* Enable mobile cart drawer (hidden off-screen by default via transform) */
    .mobile-cart-overlay {
        display: block;
    }
    .mobile-cart-drawer {
        display: flex;
    }

    /* Floating mobile cart bar */
    .mobile-cart-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: var(--bg-card);
        border-top: 1px solid var(--glass-border);
        padding: 0.75rem 1rem;
        align-items: center;
        justify-content: space-between;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s;
        /* Pre-promote to own layer so backdrop-filter + transform
           don't create a stacking context conflict on HTTP */
        will-change: transform;
    }

    .mobile-cart-bar.empty {
        transform: translateY(100%);
    }

    .mobile-cart-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-cart-count {
        font-size: 0.8rem;
        color: var(--text-secondary);
    }

    .mobile-cart-total {
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--accent-green);
    }

    .mobile-cart-bar .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    /* --- Mobile Cart Drawer (slide-up sheet) --- */
    .mobile-cart-overlay {
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    .mobile-cart-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }
    .mobile-cart-drawer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        background: var(--bg-card);
        border-top: 1px solid rgba(37, 211, 102, 0.25);
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
    }
    .mobile-cart-drawer.open {
        transform: translateY(0);
    }
    .mobile-cart-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--glass-border);
        flex-shrink: 0;
    }
    .mobile-cart-drawer-header h3 {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1rem;
        margin: 0;
    }
    .mobile-cart-drawer-close {
        background: none;
        border: none;
        color: var(--text-muted);
        cursor: pointer;
        padding: 4px;
        border-radius: var(--radius-sm);
        transition: color 0.2s;
    }
    .mobile-cart-drawer-close:hover {
        color: var(--text-primary);
    }
    .mobile-cart-drawer-body {
        flex: 1;
        overflow-y: auto;
        padding: 1rem 1.25rem;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-cart-drawer-footer {
        flex-shrink: 0;
        padding: 0.75rem 1.25rem 1.25rem;
        border-top: 1px solid var(--glass-border);
    }

    .pricing-plans-grid {
        grid-template-columns: 1fr !important;
    }

    .pricing-addons-grid {
        grid-template-columns: 1fr !important;
    }

    /* Add bottom padding to body when cart bar is visible */
    body.has-cart-items {
        padding-bottom: 70px;
    }
}

/* Tablet breakpoint for pricing grids */
@media (min-width: 600px) and (max-width: 991px) {
    .pricing-plans-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .pricing-addons-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Tablet-landscape: base plans 3-col only when wide enough */
@media (min-width: 820px) and (max-width: 991px) {
    .bp-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Small mobile: ensure everything stays within viewport */
@media (max-width: 600px) {
    .pricing-section-label h2 {
        font-size: 1.25rem;
    }

    .card-credits-zone {
        min-height: auto;
    }

    .pricing-step-section {
        margin-top: var(--space-8);
        padding-top: var(--space-6);
    }

    .plan-select-card.most-popular {
        transform: none;
    }

    .plan-select-card.most-popular:hover {
        transform: translateY(-3px);
    }

    /* Enterprise mobile styles moved to dedicated @media (max-width: 640px) block above */
}

/* ═══ PRICING v4: NEW COMPONENTS ═══ */

/* --- Period Selector --- */
.period-selector {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    margin-bottom: var(--space-8);
    position: relative;
}

.period-selector-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.period-selector-row:last-of-type {
    margin-bottom: 0;
}

.period-row-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 40px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trial-pill-group,
.paid-period-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.period-pill {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: var(--font-sans);
}

.period-pill:hover {
    border-color: rgba(37, 211, 102, 0.4);
    color: var(--text-primary);
}

.period-pill.active {
    background: var(--gradient-primary);
    color: #000;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.pill-save {
    font-weight: 700;
    color: var(--accent-green);
}
.pill-days {
    font-size: 0.78em;
    opacity: 0.55;
    font-weight: 400;
}

.period-pill.active .pill-save {
    color: #000;
}
.period-pill.active .pill-days {
    opacity: 0.5;
}

.period-savings-badge {
    text-align: center;
    margin-top: var(--space-3);
    padding: 0.5rem 1rem;
    background: rgba(37, 211, 102, 0.08);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-green);
}

.period-savings-badge.hidden {
    display: none;
}

/* --- Step Bridge Hint --- */
.step-bridge-hint {
    margin: var(--space-8) 0;
    padding: var(--space-4) var(--space-5);
    background: rgba(37, 211, 102, 0.04);
    border-left: 4px solid var(--accent-green);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.bridge-arrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-right: 0.3rem;
    width: 1.2rem;
    text-align: center;
}

/* --- Pricing Section Description --- */
.pricing-section-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    font-size: 0.95rem;
}

/* --- Sale Price Layer --- */
.price-original {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 0.85em;
    margin-right: 0.5rem;
    color: var(--text-secondary);
}

.price-sale {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--accent-green);
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.sale-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: linear-gradient(135deg, #ff6b35, #ff3d3d);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.sale-countdown {
    font-size: 0.8rem;
    color: #ff6b35;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* --- Trial Badge (in-flow inside .card-top-row) --- */
.trial-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
/* Bundle trial pill: right-aligned in tag zone */
.bundle-trial-pill {
    float: right;
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
}

/* --- Savings Badge (subscription) --- */
.savings-badge {
    display: block;
    margin-top: var(--space-2);
    padding: 0.35rem 0.75rem;
    background: rgba(37, 211, 102, 0.08);
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    color: var(--accent-green);
    font-weight: 500;
    line-height: 1.4;
}

/* --- Credits Pill --- */
.credits-pill {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(37, 211, 102, 0.06);
    border: 1px solid rgba(37, 211, 102, 0.15);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--accent-green);
    font-weight: 500;
    margin-top: var(--space-2);
}

/* --- Plan PS Note --- */
.plan-ps-note {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--glass-border);
    line-height: 1.4;
}

/* --- Plan Forced Monthly Note --- */
.plan-force-monthly-note {
    font-size: 0.78rem;
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.6rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.plan-trial-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.4;
}
/* Billed total line under plan/addon prices */
/* --- Feature list icon classes (replaces inline styles) --- */
.feat-icon { width: 14px; height: 14px; flex-shrink: 0; }
.feat-icon-check { color: var(--accent-green); }
.feat-icon-x { color: var(--text-muted); }
.feat-icon-warn { color: var(--accent-amber); }

.plan-billed-total,
.addon-billed-total {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.15rem;
}
.plan-billed-save,
.addon-billed-save {
    color: var(--accent-green, #25D366);
    font-weight: 600;
    font-size: 0.72rem;
    margin-left: 0.15rem;
}

/* Retry-from-failure notice (shown when ?retry=1 restores a cart from thank-you failure) */
.cart-retry-notice {
    max-width: 920px;
    margin: 100px auto 0;
    padding: 12px 20px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: 12px;
    color: var(--accent-green, #25D366);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
    justify-content: center;
}
.cart-retry-notice svg { flex-shrink: 0; }
/* Post-trial charge notice in cart */
.cart-post-trial-amount {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    text-align: center;
    margin-top: 0.5rem;
}
/* --- Addon Grouping --- */
.addon-group {
    margin-bottom: var(--space-6);
}

.addon-group:last-child {
    margin-bottom: 0;
}

.addon-group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
    padding-bottom: 0;
}

.addon-group-header i {
    color: var(--accent-green);
    opacity: 0.7;
}

/* --- Addon Bundle Included State (C3) --- */
.addon-bundle-included { opacity: 0.7; pointer-events: none; }
/* --- Addon Helper Text --- */
.addon-helper-text { font-size: 0.78rem; color: var(--accent-amber); margin: 0.25rem 0 0.5rem; line-height: 1.4; }

/* --- Plan Callouts --- */
.plan-callout {
    margin-top: var(--space-3);
    padding: var(--space-3);
    background: rgba(37, 211, 102, 0.04);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Who It's For --- */
.who-its-for {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-top: var(--space-2);
    margin-bottom: var(--space-3);
}

/* --- Info Callout (amber) --- */
.info-callout {
    margin-top: var(--space-3);
    padding: var(--space-3);
    background: rgba(255, 183, 77, 0.08);
    border-left: 3px solid #ffb74d;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 0.82rem;
    color: #ffcc80;
    line-height: 1.5;
}

/* --- Wallet Note Line --- */
.wallet-note-line {
    font-size: 0.85rem;
    color: var(--accent-green);
    margin-top: 0.25rem;
}

/* --- Add-on Group Title --- */
.addon-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    margin-top: var(--space-2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- India Only Badge --- */
.india-only-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 152, 0, 0.12);
    color: #ffb74d;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 999px;
    margin-left: 0.5rem;
}

/* --- Addon Included State --- */
.addon-included-state {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(37, 211, 102, 0.08);
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-md);
}

/* --- Addon utility classes --- */
.addon-add-btn       { width: 100%; }
.addon-disabled-title { opacity: 0.6; }
.addon-disabled-price { opacity: 0.5; }
.addon-disabled-btn   { width: 100%; opacity: 0.5; }
.addon-warning-note  { font-size: 0.78rem; color: var(--accent-amber); padding: 0.5rem; background: rgba(245, 158, 11, 0.1); border-radius: 4px; margin: 0.5rem 0; }
.addon-controls      { margin-top: 0.75rem; }
/* RCS top-up slider locked note — same visual language as addon-warning-note */
.slider-rcs-locked-note {
    font-size: 0.78rem;
    color: var(--accent-amber);
    padding: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 4px;
    margin: 0.75rem 0 0.5rem;
}

/* --- v5.2: Addon setup note --- */
.addon-setup-note {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(37, 211, 102, 0.04);
    border: 1px solid rgba(37, 211, 102, 0.15);
    border-radius: var(--radius-lg);
}
.addon-setup-note-icon { font-size: 1.3rem; flex-shrink: 0; }
.addon-setup-note-body strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.addon-setup-note-body p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* --- v5.2: Mini App selector in cart --- */
.cart-mini-app-selector {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: rgba(37, 211, 102, 0.05);
    border: 1px dashed rgba(37, 211, 102, 0.3);
    border-radius: var(--radius-lg);
}
.cart-mini-app-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.cart-mini-app-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.cart-mini-app-options .btn-sm {
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
}

/* --- Plan Greyed Out --- */
.plan-greyed {
    opacity: 0.45;
    pointer-events: none;
    position: relative;
}

.plan-greyed::after {
    content: attr(data-greyed-tooltip);
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: #ffb74d;
    font-size: 0.78rem;
    border-radius: var(--radius-md);
    text-align: center;
    pointer-events: auto;
}

/* --- Top-Up Card (unified container for wallet & task credits) --- */
.topup-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: border-color 0.3s;
}
.topup-card:hover {
    border-color: rgba(37, 211, 102, 0.2);
}
.topup-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: var(--space-4);
}
.topup-card-header i {
    flex-shrink: 0;
    margin-top: 2px;
}
.topup-card-header h3 {
    font-size: 1.1rem;
    margin: 0;
}
.topup-card-header p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* --- Wallet slider value display --- */
.slider-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}
.slider-value-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* --- Wallet slider track (topup card) --- */
.topup-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--glass-border);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin: 0.5rem 0;
}
.topup-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-green);
    cursor: grab;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.5);
}
.topup-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-green);
    cursor: grab;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.5);
}

/* --- Slider min/max range labels --- */
.slider-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* --- Conversion info pills (wallet recharge) --- */
.topup-conversion-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--space-3);
}
.topup-conversion-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.3rem 0.65rem;
    background: rgba(37, 211, 102, 0.06);
    border: 1px solid rgba(37, 211, 102, 0.12);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}
.topup-conversion-pill strong {
    color: var(--accent-green);
    font-weight: 600;
}

/* --- Slider Calculator Card (RCS & legacy sliders) --- */
.slider-calculator {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: border-color 0.3s;
}

.slider-calculator:hover {
    border-color: rgba(37, 211, 102, 0.2);
}

.slider-calculator-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-4);
}

.slider-calculator-header .slider-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: rgba(37, 211, 102, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
}

.slider-calculator h4 {
    font-size: 1.1rem;
    margin: 0;
}

.slider-calculator .subtitle {
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin: 0;
}

/* --- Slider topup note (info text below header) --- */
.slider-topup-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: var(--space-3) 0 var(--space-4);
}

/* --- Slider prompt label --- */
.slider-prompt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* --- Slider tab group (Auth/OTP + Utility tabs) --- */
.slider-tab-group {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
    background: var(--bg-lighter);
    padding: 4px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.slider-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0.45rem 0.5rem;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.slider-tab-btn:hover {
    color: var(--text-secondary);
}
.slider-tab-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.slider-tab-icon {
    font-size: 0.85rem;
}

/* --- Slider output block (rate calculation) --- */
.slider-output-calculation {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.slider-output-calculation strong {
    font-size: 1.15rem;
    color: var(--accent-green);
}
.slider-output-rate {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.slider-rate-unavailable {
    padding: 0.5rem;
    background: var(--bg-lighter);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.slider-range-row {
    margin: var(--space-4) 0;
}

.slider-range-row input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(to right, var(--accent-green) var(--fill, 0%), var(--glass-border) var(--fill, 0%));
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    touch-action: none;
}

.slider-range-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-green);
    cursor: grab;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.5);
    transition: box-shadow 0.15s;
}

.slider-range-row input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 14px rgba(37, 211, 102, 0.7);
}

.slider-range-row input[type="range"]:active::-webkit-slider-thumb {
    cursor: grabbing;
    box-shadow: 0 0 18px rgba(37, 211, 102, 0.8);
}

/* Firefox */
.slider-range-row input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-green);
    cursor: grab;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.5);
}

.slider-range-row input[type="range"]::-moz-range-progress {
    background: var(--accent-green);
    border-radius: 3px;
    height: 6px;
}

.slider-range-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.slider-output {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: rgba(37, 211, 102, 0.06);
    border-radius: var(--radius-lg);
}

.slider-output-total {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--accent-green);
}

.slider-output-rate {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.slider-value-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.slider-value-badge span {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-secondary);
    font-family: var(--font-sans);
}

.slider-output-calculation {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.slider-rate-unavailable {
    padding: 0.5rem;
    background: var(--bg-lighter);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.slider-add-btn {
    margin-top: var(--space-4);
    width: 100%;
    font-size: 0.92rem;
}

/* --- Top-up Sliders Grid --- */
.topup-sliders-grid {
    /* Container for the two-col layout inside */
}

/* Universal-credits note above Step 3 top-up section. Same muted
   brand-green strip as the signup-channel-note in the signup modal. */
.topup-universal-note {
    font-size: 0.78rem;
    color: var(--text-muted, #5c6577);
    margin-bottom: var(--space-4);
    padding: 0.55rem 0.85rem;
    background: rgba(37, 211, 102, 0.04);
    border-left: 2px solid rgba(37, 211, 102, 0.3);
    border-radius: 4px;
    line-height: 1.5;
    letter-spacing: 0.01em;
}
.topup-universal-note strong {
    color: var(--accent-green, #25D366);
    font-weight: 600;
}

/* --- Top-up Two Column Layout --- */
.topup-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}
@media (min-width: 768px) {
    .topup-two-col {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}
.topup-col-left,
.topup-col-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* --- Coupon Code Section --- */
.coupon-section {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--glass-border);
}

.coupon-input-row {
    display: flex;
    gap: 0.5rem;
}

.coupon-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-sans);
}

.coupon-input::placeholder {
    color: var(--text-tertiary);
}

.coupon-input:focus {
    outline: none;
    border-color: rgba(37, 211, 102, 0.4);
}

.coupon-apply-btn {
    white-space: nowrap;
    font-size: 0.85rem !important;
    padding: 0.5rem 1rem !important;
}

.coupon-feedback {
    margin-top: var(--space-2);
    font-size: 0.82rem;
    font-weight: 500;
}

.coupon-feedback.hidden {
    display: none;
}

.coupon-feedback.success {
    color: var(--accent-green);
}

.coupon-feedback.error {
    color: #ff6b6b;
}

/* --- Cart Empty State --- */
.cart-summary-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4);
    text-align: center;
}
.cart-summary-empty p {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Cart Title --- */
.cart-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-4);
}

/* --- Mandatory Wallet Line --- */
.mandatory-wallet-line {
    background: rgba(37, 211, 102, 0.04);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    position: relative;
}

.mandatory-wallet-line .cart-remove-btn {
    display: none !important;
}

/* ══════════════════════════════════════════════════════
   PREMIUM CART v2  —  Clean Stacked Design
   ══════════════════════════════════════════════════════ */

/* ── Cart line item ── */
.cart-line {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cart-line:last-child { border-bottom: none; }

/* Locked (mandatory wallet) line gets a subtle tint */
.cart-line-locked {
    background: rgba(37, 211, 102, 0.04);
    border-left: 2px solid rgba(37, 211, 102, 0.2);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.25rem;
}

/* Body: name block (left) + price block (right) */
.cart-line-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}
.cart-line-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
}
/* ── Cart main row: name left, price right ── */
.cart-line-row.main-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}
.cart-line-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}
/* Badge row: period pill + savings pill side by side */
.cart-line-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
/* Right side: remove button */
.cart-line-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.cart-line-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
}
.cart-line-price.free {
    color: var(--accent-green);
}
/* Trial tag — small green pill next to the plan price during trial state */
.cart-line-trial-tag {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-green);
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 999px;
    vertical-align: middle;
}

/* Controls row (below body): qty or type label */
.cart-line-controls {
    margin-top: 0.35rem;
}

/* ── Period badge pill ── */
.cart-period-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-green);
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
}

/* ── Savings pill ── */
.cart-savings-pill {
    font-size: 0.68rem;
    font-weight: 600;
    color: #4ade80;
}

/* ── Remove button (icon only) ── */
.cart-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding: 2px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.cart-remove-btn:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
}

/* ── Locked label ── */
.cart-locked-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── Item type / control label ── */
.cart-item-type {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CART TOTAL BLOCK — Fully Stacked
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cart-total-block {
    border-top: 1px solid var(--glass-border);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Row 1: Monthly rate label + large amount */
.cart-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-total-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.cart-total-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.cart-total-amount small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 1px;
}
/* GST 18% note (India only) — reuses the same .signup-gst-chip pill
   style for visual consistency with the signup-modal summary. */
.cart-gst-note {
    text-align: right;
    margin-top: 8px;
    line-height: 1;
}

/* Row 2: Upfront billing amount (Billed annual / quarterly) */
.cart-upfront-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.75rem;
}
.cart-upfront-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.cart-upfront-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Row 3: Trial notice */
.cart-trial-notice {
    font-size: 0.82rem;
    color: var(--accent-green);
    font-weight: 500;
    background: rgba(37, 211, 102, 0.07);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    text-align: center;
}

/* Row 4: Savings banner (only shown when discount applies) */
.cart-savings-banner {
    font-size: 0.78rem;
    font-weight: 600;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
    border: 1px dashed rgba(74, 222, 128, 0.2);
    border-radius: var(--radius-md);
    padding: 0.45rem 0.75rem;
    text-align: center;
    letter-spacing: 0.01em;
}

/* ── CTA Checkout button ── */
.cart-checkout-btn {
    width: 100%;
    margin-top: var(--space-4);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
}
.cart-checkout-btn:active { transform: translateY(0); }

/* No-plan state — cart has addons but no base/quick plan picked.
   Public and paywall both flip the CTA to a muted, amber-tinted prompt
   pointing customers back to Step 1. The click still routes to
   handleCheckout(), which shows the no-plan nudge modal — but the visual
   makes the issue obvious BEFORE the customer taps and waits. */
.cart-checkout-btn.cart-checkout-disabled {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: none;
    font-weight: 600;
}
.cart-checkout-btn.cart-checkout-disabled:hover {
    background: rgba(245, 158, 11, 0.18);
    transform: none;
    box-shadow: none;
}
.cart-no-plan-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--space-3);
    padding: 0.65rem 0.85rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: var(--radius-lg);
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-secondary, #8b95a5);
}
.cart-no-plan-warning i { color: #f59e0b; flex-shrink: 0; }

/* ── Cart wallet note ── */
.cart-wallet-note {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: rgba(245, 158, 11, 0.06);
    border-left: 2px solid rgba(245, 158, 11, 0.35);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Upgrade hint ── */
.cart-upgrade-hint {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0;
    padding: 0;
}

/* ── Cart quantity stepper ── */
.cart-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--bg-dark);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 999px;
    overflow: hidden;
}
.cart-qty-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.35rem 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 1rem;
    line-height: 1;
}
.cart-qty-btn:hover:not(:disabled) {
    background: rgba(37, 211, 102, 0.15);
    color: var(--accent-green);
}
.cart-qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.cart-qty-val {
    min-width: 28px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ── Cart sub-row layout ── */
.cart-line-row.sub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-line-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.cart-line-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ── Card top row (badge header) ── */
.card-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-2);
    min-height: 1.5rem;
}
.card-top-left, .card-top-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.card-top-left {
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}
.card-top-right {
    flex-shrink: 0;
}

/* ── Card zone system for equal-height alignment ── */
.card-tag-zone       { min-height: 1rem; margin-bottom: 0.15rem; }
.card-title-zone     { margin-bottom: 0.25rem; }
.plan-select-card .card-title-zone h3  { font-size: 1.15rem; margin-bottom: 0.15rem; }
.package-card .card-title-zone h3  { font-size: 1.3rem; margin-bottom: 0.25rem; }
.card-title-zone p   { font-size: 0.8rem; color: var(--text-secondary); margin: 0; line-height: 1.35; }
.card-credits-zone   { min-height: 1.75rem; margin-bottom: 0.25rem; display: flex; align-items: center; }
.card-price-zone     { margin: 0.25rem 0; }
.card-notes-zone     { min-height: 0; }
.card-features-zone  { flex: 1; margin-top: 0.25rem; }
.card-features-zone .package-features { margin: 0; }
.card-footer-zone    { margin-top: auto; padding-top: 0.5rem; }
.bundle-select-btn   { width: 100%; }

/* ── Slider international toggle ── */
.slider-intl-toggle {
    display: inline-flex;
    border-radius: 999px;
    background: var(--bg-lighter);
    border: 1px solid var(--border);
    padding: 3px;
    margin-top: 1rem;
    gap: 2px;
}
.slider-intl-btn {
    padding: 5px 14px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
    color: var(--text-muted);
}
.slider-intl-btn.active {
    background: var(--accent-green);
    color: #fff;
}
.slider-intl-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 0.5rem;
    padding: 0.5rem 0.65rem;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    border-left: 2px solid rgba(255,255,255,0.08);
}
.slider-intl-note svg {
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.5;
}

/* ── Inline badge (used in plan features) ── */
.badge {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}


/* --- Most Popular Badge — floating label above card --- */
.most-popular-badge {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 1.2rem;
    background: transparent;
    color: var(--accent-green);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    z-index: 3;
}

/* ─── Plan Select Card enhancements ─── */
.plan-select-card {
    position: relative;
}

.plan-select-card.most-popular {
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.12), 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
    background: linear-gradient(180deg, rgba(37, 211, 102, 0.04) 0%, var(--bg-card) 40%);
}

.plan-select-card.most-popular:hover {
    box-shadow: 0 0 40px rgba(37, 211, 102, 0.18), 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* All base plan cards get top margin to keep aligned when most-popular badge overflows */
.bp-grid .plan-select-card {
    margin-top: 1.5rem;
}

/* ─── Tooltip System ─── */
.tooltip-popover {
    position: absolute;
    z-index: 9999;
    max-width: 240px;
    padding: 10px 14px;
    background: #1a1a1a;
    color: #f0f0f0;
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    pointer-events: none;
}
.tooltip-trigger {
    color: var(--text-muted);
    cursor: help;
    font-size: 0.75rem;
    margin-left: 2px;
}
.tooltip-trigger:hover {
    color: var(--accent-green);
}

/* ─── Feature Group Rows (stacked: label on top, value below) ─── */
.feature-group-row {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.feature-group-row:last-child {
    border-bottom: none;
}
.feature-group-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-green);
    font-weight: 700;
    white-space: nowrap;
    opacity: 0.85;
}
.feature-group-value {
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Remove empty credits-zone space on base plan cards */
.plan-select-card .card-credits-zone {
    min-height: 0;
    margin: 0;
}
.plan-select-card .card-tag-zone {
    min-height: 0;
    margin-bottom: 0.1rem;
}

/* Prevent price line from wrapping awkwardly in trial mode */
.plan-select-card .card-price-zone {
    white-space: nowrap;
}

/* QS cards — lighter visual weight */
.qs-grid .plan-select-card {
    border-width: 1px;
}

/* Base plan cards — more prominent */
.bp-grid {
    padding-top: 0.75rem; /* room for Most Popular badge overflow */
}
.bp-grid .plan-select-card {
    padding: var(--space-4) var(--space-5);
    border-width: 2px;
    background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, var(--bg-card) 100%);
}
.bp-grid .plan-select-card .card-title-zone h3 {
    font-size: 1.25rem;
}
.bp-grid .plan-select-card .price-sale {
    font-size: 2rem;
}

/* Tablet: reduce card padding slightly for more content room */
@media (min-width: 600px) and (max-width: 991px) {
    .plan-select-card {
        padding: var(--space-4);
    }
}

/* ─── Bundles Carousel ─── */
.pricing-bundles-carousel {
    position: relative;
    margin: 0 24px;
}
.pricing-bundles-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding: 16px 12px 24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.pricing-bundles-scroll::-webkit-scrollbar {
    display: none;
}
.pricing-bundles-scroll .package-card {
    width: clamp(320px, 75vw, 420px);
    flex-shrink: 0;
    scroll-snap-align: start;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.carousel-arrow:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}
.carousel-prev {
    left: -20px;
}
.carousel-next {
    right: -20px;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-3);
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glass-border);
    transition: all 0.2s;
}
.carousel-dot.active {
    background: var(--accent-green);
    transform: scale(1.3);
}
@media (max-width: 768px) {
    .carousel-arrow {
        display: none;
    }
}

/* --- QS Grid: 2 columns on desktop (5 cards: 2+2+1 layout), BP Grid: 3 columns --- */
@media (min-width: 992px) {
    .qs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 920px;
    }

    .bp-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* --- Period pill disabled state (Scale = no monthly) --- */
.period-pill.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

/* --- Task credit pills --- */
/* --- Task Credit Custom Dropdown --- */
.task-dd-wrap {
    position: relative;
    margin-top: var(--space-4);
}
.task-dd-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.task-dd-trigger:hover {
    border-color: rgba(37, 211, 102, 0.35);
}
.task-dd-trigger.has-value {
    color: var(--text-primary);
    border-color: rgba(37, 211, 102, 0.25);
}
.task-dd-wrap.open .task-dd-trigger {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.task-dd-wrap.open .task-dd-trigger i {
    transform: rotate(180deg);
}
.task-dd-trigger i {
    color: var(--text-muted);
    transition: transform 0.2s;
}

/* Dropdown menu */
.task-dd-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--bg-card);
    border: 1px solid var(--accent-green);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}
.task-dd-wrap.open .task-dd-menu {
    display: block;
}

/* Dropdown option row */
.task-dd-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.task-dd-option:last-child {
    border-bottom: none;
}
.task-dd-option:hover {
    background: rgba(37, 211, 102, 0.06);
}
.task-dd-option.selected {
    background: rgba(37, 211, 102, 0.1);
}
.task-dd-option.selected .task-dd-label {
    color: var(--accent-green);
}
.task-dd-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}
.task-dd-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.task-dd-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* --- Mobile period selector — segmented control --- */
@media (max-width: 600px) {
    .period-selector {
        padding: var(--space-3);
        background: transparent;
        border: none;
    }

    .period-selector-row {
        gap: 0;
    }

    /* Hide "PAID:" label on mobile */
    .period-row-label {
        display: none;
    }

    /* Recessed track */
    .paid-period-group {
        width: 100%;
        gap: 3px;
        padding: 3px;
        background: rgba(0, 0, 0, 0.35);
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Each segment — hide bare text nodes (including "·"), show via ::before */
    .period-pill {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 10px 2px 8px;
        border-radius: 11px;
        border: none;
        font-size: 0;       /* hides bare text nodes: label text + "·" separator */
        text-align: center;
        min-width: 0;
        white-space: nowrap;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        color: var(--text-muted);
        background: transparent;
        box-shadow: none;
    }

    /* Abbreviated labels via ::before */
    .period-pill::before {
        font-size: 0.78rem;
        font-weight: 600;
        display: block;
        line-height: 1.2;
        letter-spacing: -0.01em;
        color: var(--text-secondary);
    }

    .period-pill[data-period="monthly"]::before    { content: "Monthly"; }
    .period-pill[data-period="quarterly"]::before   { content: "Quarterly"; }
    .period-pill[data-period="semiannual"]::before  { content: "6 Month"; }
    .period-pill[data-period="annual"]::before      { content: "Annual"; }

    /* Discount badge — compact below label */
    .pill-save {
        font-size: 0.58rem;
        font-weight: 700;
        display: block;
        line-height: 1;
        color: var(--accent-green);
        opacity: 0.85;
    }

    /* Hide day counts on mobile */
    .pill-days {
        display: none;
    }

    /* Active segment */
    .period-pill.active {
        background: var(--gradient-primary);
        box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
    }

    .period-pill.active::before {
        color: #000;
        font-weight: 700;
    }

    .period-pill.active .pill-save {
        color: rgba(0, 0, 0, 0.6);
        opacity: 1;
    }

    /* Hover/press feedback */
    .period-pill:not(.active):active {
        background: rgba(255, 255, 255, 0.04);
    }

    /* Savings badge below the control */
    .period-savings-badge {
        font-size: 0.78rem;
        padding: 0.4rem 0.75rem;
        border-radius: 10px;
    }

    .topup-sliders-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- FAQ Section --- */
.faq-section {
    padding: var(--space-16) 0;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(37, 211, 102, 0.2);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: var(--space-5);
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.faq-item.open .faq-question i {
    transform: rotate(45deg);
    color: var(--accent-green);
}

.faq-answer {
    padding: 0 var(--space-5) var(--space-5);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

/* --- Page Hero (sub-pages) --- */
.page-hero {
    padding-top: 140px;
    padding-bottom: var(--space-8);
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(37, 211, 102, 0.08), transparent 70%);
    pointer-events: none;
}


/* ═══════════════════════════════════════════════════════
   HELP CENTER
   ═══════════════════════════════════════════════════════ */

.hc-main {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
}

/* ─── Sidebar ─── */
.hc-sidebar {
    width: 320px;
    min-width: 320px;
    background: rgba(15, 18, 25, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.hc-sidebar::-webkit-scrollbar {
    width: 4px;
}

.hc-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.hc-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.hc-sidebar-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hc-sidebar-header h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.hc-sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}

.hc-search-wrap {
    position: relative;
    padding: 0 16px 16px;
}

.hc-search-wrap svg {
    position: absolute;
    left: 28px;
    top: 11px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.hc-search-wrap input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.hc-search-wrap input:focus {
    border-color: var(--accent);
}

.hc-search-wrap input::placeholder {
    color: var(--text-muted);
}

.hc-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px 24px;
}

.hc-nav-section {
    margin-bottom: 2px;
}

.hc-nav-section-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    text-align: left;
}

.hc-nav-section-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.hc-nav-section-btn.active {
    background: rgba(37, 211, 102, 0.08);
    color: var(--accent);
}

.hc-nav-section-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hc-nav-section-btn span {
    flex: 1;
}

.hc-nav-section-btn .hc-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.hc-nav-section-btn.active .hc-chevron {
    transform: rotate(180deg);
}

.hc-nav-articles {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.hc-nav-articles.open {
    max-height: 1000px;
}

.hc-nav-article {
    display: block;
    padding: 8px 16px 8px 48px;
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
    line-height: 1.4;
}

.hc-nav-article:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.hc-nav-article.active {
    color: var(--accent);
    background: rgba(37, 211, 102, 0.06);
    font-weight: 500;
}

/* ─── Content Area ─── */
.hc-content {
    flex: 1;
    min-width: 0;
    padding: 40px 48px 80px;
    max-width: 900px;
}

.hc-mobile-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
}

.hc-mobile-toggle svg {
    width: 18px;
    height: 18px;
}

/* ─── Welcome / Landing ─── */
.hc-welcome-header {
    text-align: center;
    margin-bottom: 48px;
}

.hc-welcome-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.hc-welcome-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.hc-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.hc-topic-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
}

.hc-topic-card:hover {
    background: rgba(37, 211, 102, 0.06);
    border-color: rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
}

.hc-topic-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 12px;
    margin: 0 auto 16px;
    color: var(--accent);
}

.hc-topic-icon svg {
    width: 24px;
    height: 24px;
}

.hc-topic-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.hc-topic-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ─── Breadcrumb ─── */
.hc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hc-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.hc-breadcrumb a:hover {
    text-decoration: underline;
}

/* ─── Article ─── */
.hc-article-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    line-height: 1.3;
}

.hc-article-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.hc-article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hc-article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 28px 0 12px;
}

.hc-article-body p {
    margin-bottom: 16px;
}

.hc-article-body ul,
.hc-article-body ol {
    margin: 12px 0 20px 24px;
}

.hc-article-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.hc-article-body li strong {
    color: var(--text-primary);
}

.hc-article-body code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--accent);
}

/* ─── Video Embed ─── */
.hc-video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hc-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ─── Prev / Next ─── */
.hc-prev-next {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hc-pn-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    max-width: 45%;
}

.hc-pn-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(37, 211, 102, 0.04);
}

.hc-pn-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.hc-next {
    margin-left: auto;
    text-align: right;
}

/* ─── Search Results ─── */
.hc-search-results h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.hc-result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.hc-result-item:hover {
    border-color: var(--accent);
    background: rgba(37, 211, 102, 0.04);
}

.hc-result-section {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.hc-result-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.hc-no-results {
    color: var(--text-muted);
    text-align: center;
    padding: 48px 0;
}

/* ─── Mobile Responsive ─── */
@media (max-width: 900px) {
    .hc-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        padding-top: 0;
    }

    .hc-sidebar.mobile-open {
        left: 0;
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
    }

    .hc-sidebar-close {
        display: block;
    }

    .hc-mobile-toggle {
        display: flex;
    }

    .hc-content {
        padding: 24px 20px 60px;
    }

    .hc-welcome-header h1 {
        font-size: 1.75rem;
    }

    .hc-topics-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .hc-topic-card {
        padding: 16px 12px;
    }

    .hc-article-title {
        font-size: 1.5rem;
    }

    .hc-prev-next {
        flex-direction: column;
    }

    .hc-pn-link {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════
   NO-PLAN NUDGE MODAL
   ═══════════════════════════════════════════════════════ */

.nudge-modal-card {
    max-width: 420px;
}

.nudge-inner {
    padding: 2.25rem 2rem 2rem;
    text-align: center;
}

.nudge-icon {
    margin-bottom: 1rem;
}

.nudge-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.nudge-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.nudge-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.nudge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
}

.nudge-step-tag {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.6;
    margin-left: 0.25rem;
}

.nudge-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1.5rem 0;
}

.nudge-existing {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.nudge-existing a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
}

.nudge-existing a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .nudge-modal-card { max-width: 95%; }
    .nudge-inner { padding: 1.75rem 1.25rem 1.5rem; }
    .nudge-title { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════
   SIGNUP / CHECKOUT MODAL
   ═══════════════════════════════════════════════════════ */

.signup-modal-card {
    max-width: 500px;
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.signup-modal-card::-webkit-scrollbar { width: 5px; }
.signup-modal-card::-webkit-scrollbar-track { background: transparent; }
.signup-modal-card::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

/* ── Form wrapper ── */
.signup-form-wrap {
    padding: 2rem 2rem 1.75rem;
}

.signup-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.signup-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.signup-trial-badge {
    display: inline-block;
    background: rgba(37, 211, 102, 0.12);
    color: var(--accent-green);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

/* ── Order note (simple) ── */
.signup-order-summary {
    margin: 1rem auto 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(37,211,102,0.06) 0%, rgba(108,92,231,0.06) 100%);
    border: 1px solid rgba(37,211,102,0.15);
    border-radius: 12px;
    text-align: center;
    max-width: 340px;
}
.signup-order-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.3rem 0;
}
.signup-order-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.signup-order-value {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}
.signup-order-highlight {
    color: var(--accent-green, #25D366);
    font-size: 1.25rem;
}
.signup-order-total-row {
    margin-top: 0.4rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
/* GST 18% — small branded pill chip. WhatsApp-green tinted to match the
   brand surface; muted variant for the "incl. ₹X GST" sub-note (less
   loud than the "+ 18% GST" callout since it just confirms a charge that
   already appears in the total above). */
.signup-order-note-wrap {
    text-align: right;
    margin-top: 2px;
    margin-bottom: 8px;
    line-height: 1;
}
.signup-gst-chip {
    display: inline-block;
    padding: 3px 9px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.18);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--accent-green);
    letter-spacing: 0.04em;
    line-height: 1.4;
    font-family: var(--font-sans);
}
.signup-gst-chip-muted {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.08);
}
.signup-order-date {
    font-size: 0.75rem;
    color: var(--text-tertiary, var(--text-muted));
    margin-top: -0.1rem;
    margin-bottom: 0.35rem;
    text-align: right;
}
.signup-order-free {
    font-size: 0.95rem;
    color: var(--accent-green, #25D366);
    font-weight: 600;
    padding: 0.3rem 0;
}
.signup-order-addon-note {
    font-size: 0.72rem;
    color: var(--accent-amber, #f59e0b);
    margin-top: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 6px;
    line-height: 1.4;
}
/* Channel-currency transparency note — only shown when the customer's
   display currency differs from the Partner Panel channel billing
   currency (i.e. GBP/AED/SGD/BRL → USD). Muted brand-green so it
   reads as informational, not a warning. */
.signup-channel-note {
    font-size: 0.7rem;
    color: var(--text-muted, #5c6577);
    margin-top: 0.6rem;
    padding: 0.4rem 0.6rem;
    background: rgba(37, 211, 102, 0.04);
    border-left: 2px solid rgba(37, 211, 102, 0.3);
    border-radius: 4px;
    line-height: 1.5;
    letter-spacing: 0.01em;
}
.signup-channel-note strong {
    color: var(--accent-green, #25D366);
    font-weight: 600;
}

/* ── Form fields ── */
.signup-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.signup-field {
    margin-bottom: 0.85rem;
}

.signup-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.signup-field .field-optional {
    color: var(--text-muted);
    font-weight: 400;
}

.signup-field input[type="text"],
.signup-field input[type="email"],
.signup-field input[type="tel"],
.signup-field input[type="password"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.signup-field input:focus {
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.08);
}

.signup-field input::placeholder {
    color: var(--text-muted);
}

/* ── Branded field validation (replaces native browser tooltip) ── */
.signup-field input.field-invalid,
.signup-field input[type="tel"].field-invalid {
    border-color: rgba(239, 68, 68, 0.65) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.10) !important;
}

.signup-select.field-invalid,
.signup-phone-select.field-invalid {
    border-color: rgba(239, 68, 68, 0.65) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.10) !important;
}

.field-error-msg {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #f87171;
    font-size: 0.76rem;
    font-weight: 500;
    margin-top: 0.3rem;
    line-height: 1.4;
}

/* Phone row */
.signup-phone-row {
    display: flex;
    gap: 0.5rem;
}

.signup-phone-select {
    width: 110px;
    flex-shrink: 0;
    padding: 0.65rem 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6577' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
}

.signup-phone-select:focus {
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.08);
}

.signup-phone-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.signup-phone-row input[type="tel"] {
    flex: 1;
}

/* Country / Currency selects. Height pinned + line-height: 1 so the
   Country dropdown (which renders a flag emoji) doesn't end up taller
   than the Currency dropdown (no flag). Same fix as the navbar pickers
   in i18n.css — flag emoji intrinsic-emoji height exceeds Lucide icon
   height, so we constrain the box and let the emoji center inside. */
.signup-select {
    width: 100%;
    height: 42px;
    line-height: 1;
    padding: 0 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6577' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-select:focus {
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.08);
}

.signup-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* WhatsApp toggle */
.signup-wa-toggle {
    margin-bottom: 0.5rem;
}

.signup-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.signup-toggle-label input[type="checkbox"] {
    accent-color: #25D366;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ── Consent ── */
/* Business details section (GST/company) */
.signup-biz-section {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.signup-biz-toggle {
    margin-bottom: 0;
}
.signup-biz-toggle .signup-toggle-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
#signup-biz-fields {
    margin-top: 0.75rem;
}
#signup-biz-fields .signup-field {
    margin-bottom: 0.6rem;
}
#signup-gstin {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    letter-spacing: 0.5px;
}

/* ── Error ── */
.signup-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
}

.signup-error.hidden {
    display: none;
}

/* ── Footer block: consent + CTA + trust badge ── */
.signup-footer-block {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.25rem;
    margin-top: 0.25rem;
}

.signup-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.15rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.7rem 0.75rem;
    transition: border-color 0.2s;
}

.signup-consent:hover {
    border-color: var(--glass-border-hover);
}

.signup-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--accent-green);
    cursor: pointer;
    border-radius: 4px;
}

.signup-consent span {
    flex: 1;
}

.signup-consent a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
}

.signup-consent a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: var(--accent-mint);
}

/* ── CTA button ── */
.signup-cta {
    width: 100%;
}

.signup-cta:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Spinner */
.signup-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: signupSpin 0.6s linear infinite;
}

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

.signup-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* ═══ Email OTP verification ═══ */
/* Email field with inline Verify pill */
.signup-email-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}
.signup-email-row input[type="email"] {
    flex: 1 1 auto;
    padding-right: 96px;
}
.signup-email-row input[type="email"][readonly] {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

/* Mac/iOS Safari + Chrome paint an aggressive yellow background when the
   browser autofills email/password fields. No background-color can override
   the user-agent style, but a giant inset box-shadow can — this keeps the
   dark theme intact so the green Verify pill stays legible. Scoped to the
   signup form so we don't accidentally re-skin other site inputs.
   The 999999s transition delays the yellow paint long enough that Chrome's
   animated fill never actually flashes through. */
.signup-form input:-webkit-autofill,
.signup-form input:-webkit-autofill:hover,
.signup-form input:-webkit-autofill:focus,
.signup-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-surface) inset !important;
            box-shadow: 0 0 0 1000px var(--bg-surface) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary) !important;
    transition: background-color 999999s ease 0s, color 999999s ease 0s;
}
/* When the email field is autofilled AND focused, keep the accent-green
   focus ring so the user still sees focus state clearly. */
.signup-form input:-webkit-autofill:focus {
    -webkit-box-shadow:
        0 0 0 1000px var(--bg-surface) inset,
        0 0 0 3px rgba(37, 211, 102, 0.20) !important;
            box-shadow:
        0 0 0 1000px var(--bg-surface) inset,
        0 0 0 3px rgba(37, 211, 102, 0.20) !important;
}
.signup-verify-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(37, 211, 102, 0.45);
    border-radius: var(--radius-md);
    background: rgba(37, 211, 102, 0.10);
    color: var(--accent-green);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.signup-verify-btn:hover:not(:disabled) {
    background: rgba(37, 211, 102, 0.18);
    border-color: rgba(37, 211, 102, 0.7);
}
.signup-verify-btn:disabled {
    opacity: 0.6;
    cursor: default;
}
/* Morph states — the Verify pill turns into a check on success and then
   collapses to an icon-only badge after a beat. Same DOM node throughout
   so the change reads as state morph, not a new element. */
.signup-verify-btn {
    transition: background-color 0.2s ease, border-color 0.2s ease,
                color 0.2s ease, min-width 0.32s cubic-bezier(.32,.72,0,1),
                padding 0.32s cubic-bezier(.32,.72,0,1),
                border-radius 0.32s cubic-bezier(.32,.72,0,1);
    min-width: 92px;
    justify-content: center;
    overflow: hidden;
}
.signup-verify-btn .signup-verify-btn__text {
    display: inline-block;
    max-width: 120px;
    opacity: 1;
    white-space: nowrap;
    transition: max-width 0.3s ease, opacity 0.2s ease, margin-left 0.3s ease;
}
.signup-verify-btn.is-verified {
    background: rgba(37, 211, 102, 0.22);
    border-color: rgba(37, 211, 102, 0.75);
    color: var(--accent-green);
    cursor: default;
    opacity: 1;
}
.signup-verify-btn.is-verified:hover { background: rgba(37, 211, 102, 0.22); }
.signup-verify-btn__check {
    flex-shrink: 0;
    animation: signup-verify-check-pop 0.4s cubic-bezier(.32,.72,0,1);
}
@keyframes signup-verify-check-pop {
    0%   { transform: scale(0.3); opacity: 0; }
    65%  { transform: scale(1.18); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.signup-verify-btn.is-verified.is-compact {
    min-width: 32px;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.signup-verify-btn.is-verified.is-compact .signup-verify-btn__text {
    max-width: 0;
    opacity: 0;
    margin-left: -6px; /* eat the gap left by the now-hidden label */
}

@media (prefers-reduced-motion: reduce) {
    .signup-verify-btn,
    .signup-verify-btn .signup-verify-btn__text,
    .signup-verify-btn__check { transition: none !important; animation: none !important; }
}

/* OTP entry card — slides under the email field when "Verify" is clicked */
.signup-otp-card {
    margin-top: 10px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(37, 211, 102, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: var(--radius-md);
    animation: signup-otp-slide 0.22s ease;
}
.signup-otp-card[hidden] { display: none; }
@keyframes signup-otp-slide {
    from { transform: translateY(-4px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.signup-otp-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}
.signup-otp-card__head strong {
    color: var(--text-primary);
    font-weight: 600;
}
.signup-otp-edit-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent-green);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.signup-otp-card__row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.signup-otp-card__row input[type="text"] {
    flex: 1;
    height: 40px;
    padding: 0 14px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Courier New', monospace;
    font-size: 1.05rem;
    letter-spacing: 0.45em;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}
.signup-otp-card__row input[type="text"]::placeholder {
    letter-spacing: 0.18em;
    color: var(--text-muted);
}
.signup-otp-card__row input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}
.signup-otp-submit-btn {
    min-width: 86px;
    padding: 0 16px;
    background: var(--accent-green);
    color: #0a0a0a;
    border: 1px solid var(--accent-green);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}
.signup-otp-submit-btn:disabled {
    opacity: 0.5;
    cursor: default;
}
.signup-otp-submit-btn:hover:not(:disabled) {
    background: #1eba5a;
}
.signup-otp-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.75rem;
}
.signup-otp-resend {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-secondary);
    font: inherit;
    cursor: pointer;
}
.signup-otp-resend:not(:disabled) {
    color: var(--accent-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.signup-otp-resend:disabled {
    cursor: default;
    opacity: 0.7;
}
.signup-otp-error {
    color: var(--color-error-light, #f87171);
    text-align: right;
    flex: 1;
    font-weight: 500;
}

/* T&C "pending" attention state (CTA stays active per UX request) */
.signup-consent--pending {
    border-color: rgba(245, 158, 11, 0.65) !important;
    background: rgba(245, 158, 11, 0.05);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

/* Shake animation used by nudgeEmailVerify + nudgeConsent */
.signup-shake {
    animation: signup-shake 0.45s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes signup-shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* ═══ Result screens (success / duplicate) ═══ */
.signup-result-wrap {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}

.signup-result-icon {
    margin-bottom: 1.25rem;
}

.signup-result-wrap h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.signup-result-msg {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.signup-result-details {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.signup-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.88rem;
}

.signup-detail-row span {
    color: var(--text-muted);
}

.signup-detail-row strong {
    color: var(--text-primary);
    font-weight: 600;
}

.signup-detail-row + .signup-detail-row {
    border-top: 1px solid var(--glass-border);
}

.signup-password-note {
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.signup-password-note strong {
    color: var(--text-primary);
}

.signup-password-note code {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
    color: var(--accent-green);
    letter-spacing: 0.04em;
    user-select: all;
}

.signup-password-note small {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-size: 0.8em;
}

.signup-partial-warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: #fbbf24;
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.signup-action-btn {
    width: 100%;
    margin-bottom: 0.75rem;
}

.signup-close-btn {
    width: 100%;
    font-size: 0.88rem;
}

.signup-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* ═══ Responsive — mobile bottom-sheet ═══ */
@media (max-width: 540px) {
    /* Overlay: align card to bottom instead of center */
    #signup-modal {
        align-items: flex-end;
        z-index: 10001;    /* above mobile CTA bar (9998) and cart drawer (9999) */
    }

    .signup-modal-card {
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        /* Extra bottom padding for safe area (home indicator) */
        padding-bottom: env(safe-area-inset-bottom, 0);
        /* Bottom-sheet slide-up animation */
        transform: translateY(100%);
    }

    #signup-modal.active .signup-modal-card {
        transform: translateY(0);
    }

    .signup-form-wrap {
        padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0));
    }

    .signup-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .signup-header {
        margin-bottom: 1rem;
    }

    .signup-header h2 {
        font-size: 1.2rem;
    }

    .signup-order-summary {
        max-width: 100%;
        padding: 0.85rem 1rem;
    }

    .signup-order-value {
        font-size: 1.05rem;
    }

    .signup-order-highlight {
        font-size: 1.15rem;
    }

    .signup-trial-badge {
        font-size: 0.72rem;
        padding: 0.25rem 0.7rem;
        margin-bottom: 0.5rem;
    }

    .signup-result-wrap {
        padding: 2rem 1.25rem 1.5rem;
    }

    .signup-phone-select {
        width: 95px;
    }

    /* Tighter field spacing to save vertical space */
    .signup-field {
        margin-bottom: 0.65rem;
    }

    .signup-field label {
        margin-bottom: 0.25rem;
    }
}

/* --- Blog Home Section (Latest Posts on Homepage) --- */
.blog-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: var(--space-8);
}

/* When only 2 posts exist, center them */
.blog-home-grid:has(.blog-home-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.blog-home-card {
    background: linear-gradient(165deg, var(--bg-card) 0%, var(--bg-surface) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}

/* Green accent line at top */
.blog-home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.35s;
}

.blog-home-card:hover {
    border-color: rgba(37, 211, 102, 0.2);
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(37, 211, 102, 0.08),
        0 0 60px -20px rgba(37, 211, 102, 0.1);
}

.blog-home-card:hover::before {
    opacity: 1;
}

/* Image container with overlay gradient */
.blog-home-card-img-wrap {
    position: relative;
    overflow: hidden;
}

.blog-home-card-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--bg-card), transparent);
    pointer-events: none;
}

.blog-home-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-home-card:hover .blog-home-card-img {
    transform: scale(1.04);
}

.blog-home-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-home-card-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-green);
    margin-bottom: 10px;
    padding: 3px 10px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.12);
    border-radius: 100px;
    width: fit-content;
}

.blog-home-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.blog-home-card:hover .blog-home-card-title {
    color: #fff;
}

.blog-home-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-home-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
}

.blog-home-card-meta .dot {
    width: 3px;
    height: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    flex-shrink: 0;
}

.blog-home-card-read {
    margin-left: auto;
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
    flex-shrink: 0;
}

.blog-home-card:hover .blog-home-card-read {
    gap: 8px;
}

@media (max-width: 900px) {
    .blog-home-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .blog-home-grid,
    .blog-home-grid:has(.blog-home-card:nth-child(2):last-child) {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        gap: 16px;
    }

    .blog-home-card-img {
        height: 180px;
    }

    .blog-home-card-body {
        padding: 16px 18px 18px;
    }

    .blog-home-card-title {
        font-size: 1.02rem;
    }

    .blog-home-card-excerpt {
        -webkit-line-clamp: 2;
    }
}

/* ═══════════════════════════════════════════════════════
   PRICING PAGE — Extracted Component Classes
   ═══════════════════════════════════════════════════════ */

/* --- Enterprise CTA Block --- */
.enterprise-cta-block {
    margin-top: var(--space-16);
    text-align: center;
    padding: var(--space-8) var(--space-4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.02);
}
.enterprise-cta-block h3 {
    margin-bottom: var(--space-3);
}
.enterprise-cta-block p {
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.enterprise-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pricing-enterprise-slot {
    margin-top: var(--space-16);
}

/* --- Back to Top Button --- */
.back-to-top {
    display: none;
}
@media (max-width: 991px) {
    .back-to-top {
        display: flex;
        position: fixed;
        bottom: 80px;
        right: 1rem;
        z-index: 998;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--bg-card);
        border: 1px solid var(--glass-border);
        color: var(--accent-green);
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        opacity: 0;
        pointer-events: none;
        transform: translateY(10px);
        transition: opacity 0.3s, transform 0.3s, border-color 0.2s;
    }
    .back-to-top.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .back-to-top:active {
        border-color: var(--accent-green);
        transform: scale(0.92);
    }
}

/* Hide global mobile CTA bar on pricing page — cart bar takes over */
body:has(.pricing-main-layout) .mobile-cta-bar {
    display: none !important;
}

/* --- Comparison Section --- */
.comparison-section {
    margin-top: var(--space-16);
}
.compare-links-row {
    text-align: center;
    margin-top: var(--space-6);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.compare-link {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.compare-link:hover {
    color: var(--accent-green);
}