/* =========================================================
   MZANSI CV THEME — COMPONENTS · "LAGOON DUSK"
   All colour comes from the tokens in style.css so light /
   dark switching is automatic.
   ========================================================= */

/* ---- ECOSYSTEM BAR (slim strip above the header) ---- */
.cv2cu-ecobar {
    position: relative;
    z-index: 1001;
    background: linear-gradient(90deg, var(--cv-teal-deep), rgba(var(--cv-brand-rgb), 0.22) 50%, var(--cv-teal-deep));
    border-bottom: 1px solid var(--cv-border);
    font-size: 0.72rem;
    color: #D6F2EA;
}
.cv2cu-ecobar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 34px;
    padding-top: 4px;
    padding-bottom: 4px;
}
.cv2cu-ecobar__msg { display: flex; align-items: center; gap: 0.5rem; letter-spacing: 0.02em; }
.cv2cu-ecobar__msg a { color: #FFFFFF; font-weight: 700; }
.cv2cu-ecobar__msg a:hover { color: #F5CF86; }
.cv2cu-ecobar__links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.cv2cu-ecobar__links a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px;
    color: #D6F2EA; font-weight: 600; letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
}
.cv2cu-ecobar__links a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.cv2cu-ecobar__links a[aria-current="true"] { background: rgba(255,255,255,0.16); color: #fff; }
.cv2cu-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--cv-brand)); flex-shrink: 0; box-shadow: 0 0 8px var(--dot, var(--cv-brand)); }

/* ---- HEADER ---- */
.cv2cu-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--cv-glass);
    border-bottom: 1px solid var(--cv-border);
    transition: box-shadow 0.3s, border-color 0.3s;
    /* Deliberately NOT backdrop-filter/transform/filter/perspective/will-change
       on this element — any of those would make it the containing block for its
       position:fixed descendant (.cv2cu-nav--open, the full-screen mobile menu),
       trapping the overlay inside the header's own small box. The blur lives on
       ::before instead, which is not an ancestor of the nav. */
}
.cv2cu-header::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    z-index: -1;
    pointer-events: none;
}
.cv2cu-header--scrolled {
    box-shadow: 0 8px 40px rgba(var(--cv-shadow-rgb), 0.35);
    border-bottom-color: var(--cv-border-strong);
}
.cv2cu-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--header-h);
}
.cv2cu-header__logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* Logo lockup */
.cv2cu-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--cv-text); text-decoration: none; }
.cv2cu-logo:hover { color: var(--cv-text); }
.cv2cu-logo__mark { width: 36px; height: 36px; flex-shrink: 0; filter: drop-shadow(0 4px 12px rgba(var(--cv-brand-rgb), 0.35)); transition: transform 0.5s var(--ease-out); }
.cv2cu-logo:hover .cv2cu-logo__mark { transform: rotate(-8deg) scale(1.05); }
.cv2cu-logo__word { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1; }
.cv2cu-logo__word b { color: var(--cv-action); font-weight: 800; }
.cv2cu-logo__tld { font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--cv-text-soft); margin-left: 1px; }

.cv2cu-header__actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.cv2cu-header__logout { font-size: 0.78rem; color: var(--cv-text-soft); padding: 0 0.25rem; }

/* Theme toggle */
.cv2cu-theme-toggle {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(var(--cv-fg-rgb), 0.05);
    border: 1px solid var(--cv-border);
    color: var(--cv-text);
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.4s var(--ease-out);
}
.cv2cu-theme-toggle:hover { background: rgba(var(--cv-brand-rgb), 0.14); border-color: var(--cv-brand); transform: rotate(18deg); }
.cv2cu-theme-toggle svg { width: 19px; height: 19px; }
.cv2cu-theme-toggle .icon-sun  { display: none; }
:root[data-theme="light"] .cv2cu-theme-toggle .icon-sun  { display: block; }
:root[data-theme="light"] .cv2cu-theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .cv2cu-theme-toggle .icon-sun  { display: block; }
    :root:not([data-theme="dark"]) .cv2cu-theme-toggle .icon-moon { display: none; }
}

/* Navigation */
.cv2cu-nav { flex: 1; }
.cv2cu-nav__list { list-style: none; display: flex; gap: 0.15rem; align-items: center; }
.cv2cu-nav__link,
.cv2cu-nav__list li a {
    position: relative;
    display: block;
    padding: 0.55rem 0.95rem;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--cv-text-soft);
    text-decoration: none;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}
.cv2cu-nav__link:hover,
.cv2cu-nav__list li a:hover,
.cv2cu-nav__list .current-menu-item > a,
.cv2cu-nav__link[aria-current="page"] { color: var(--cv-text); background: rgba(var(--cv-brand-rgb), 0.12); }
.cv2cu-nav__mobile-actions { display: none; }

/* Hamburger */
.cv2cu-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    background: rgba(var(--cv-fg-rgb), 0.05);
    border: 1px solid var(--cv-border);
    cursor: pointer;
    padding: 0 11px;
    border-radius: 50%;
}
.cv2cu-hamburger span {
    display: block;
    height: 2px;
    background: var(--cv-text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.cv2cu-hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cv2cu-hamburger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.cv2cu-hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.cv2cu-menu-open { overflow: hidden; }

/* ---- POPIA NOTICE ---- */
.cv2cu-popia {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 9999;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    background: var(--cv-glass);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border: 1px solid var(--cv-border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    font-size: 0.84rem;
    color: var(--cv-text-soft);
    animation: fadeUp 0.6s var(--ease-out) both;
}
.cv2cu-popia strong { color: var(--cv-brand); }
.cv2cu-popia p { max-width: none; font-size: inherit; color: inherit; flex: 1 1 320px; }

/* ---- FOOTER ---- */
.cv2cu-footer {
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(var(--cv-shadow-rgb), 0.28));
    border-top: 1px solid var(--cv-border);
    padding: 4.5rem 0 2rem;
    margin-top: 6rem;
}
.cv2cu-footer::before {
    content: '';
    position: absolute; top: -1px; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cv-brand), var(--cv-sky), var(--cv-action), transparent);
    opacity: 0.7;
}
.cv2cu-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.cv2cu-footer__brand { padding-right: 2rem; }
.cv2cu-footer__mission { font-size: 0.9rem; color: var(--cv-text-soft); margin-top: 1rem; max-width: 34ch; }
.cv2cu-footer__mission em { font-style: normal; color: var(--cv-brand); font-weight: 600; }
.cv2cu-footer__ecosystem { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.4rem; flex-wrap: wrap; }
.cv2cu-footer__eco-link {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
    color: var(--cv-text-soft);
    padding: 5px 11px;
    border: 1px solid var(--cv-border);
    border-radius: 999px;
    background: rgba(var(--cv-fg-rgb), 0.03);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cv2cu-footer__eco-link:hover { color: var(--cv-text); border-color: var(--dot, var(--cv-brand)); background: rgba(var(--cv-fg-rgb), 0.07); }
.cv2cu-footer__eco-link--active { color: var(--cv-text); border-color: var(--cv-border-strong); }
.cv2cu-footer__heading { color: var(--cv-brand); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; }
.cv2cu-footer__links { list-style: none; }
.cv2cu-footer__links li { margin-bottom: 0.6rem; }
.cv2cu-footer__links a { font-size: 0.88rem; color: var(--cv-text-soft); transition: color 0.2s, padding-left 0.25s var(--ease-out); }
.cv2cu-footer__links a:hover { color: var(--cv-text); padding-left: 4px; }
.cv2cu-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.76rem;
    color: var(--cv-text-soft);
    padding-top: 1.5rem;
}
.cv2cu-footer__copy a { color: var(--cv-action); font-weight: 600; }
.cv2cu-footer__payments span + span::before { content: '·'; margin: 0 0.5rem; color: var(--cv-text-soft); }
.cv2cu-footer__payments span:first-child + span::before { content: none; }   /* no dot straight after the "Payments:" label */
.cv2cu-footer__payments span:first-child + span { margin-left: 0.4rem; }
.cv2cu-footer__payments b { color: var(--cv-text); font-weight: 600; }

/* ---- PRICING CARDS ---- */
.cv2cu-pricing {
    display: grid;
    grid-template-columns: repeat(var(--mcb-cols, 4), minmax(0, 1fr));
    gap: 1.25rem;
    margin: 3rem 0;
    align-items: stretch;
}
.cv2cu-pricing__card {
    background:
        linear-gradient(180deg, rgba(var(--cv-fg-rgb), 0.05), rgba(var(--cv-fg-rgb), 0.01)),
        var(--cv-surface);
    border: 1px solid var(--cv-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.cv2cu-pricing__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--tier-color, var(--cv-action));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-out);
}
.cv2cu-pricing__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--cv-border-strong); }
.cv2cu-pricing__card:hover::before { transform: scaleX(1); }
.cv2cu-pricing__card--featured {
    border-color: rgba(var(--cv-action-rgb), 0.55);
    background:
        radial-gradient(120% 60% at 50% -10%, rgba(var(--cv-action-rgb), 0.16), transparent 70%),
        var(--cv-surface);
    box-shadow: var(--shadow-electric);
}
.cv2cu-pricing__card--featured::before { transform: scaleX(1); background: linear-gradient(90deg, var(--cv-action), var(--cv-gold)); }
.cv2cu-pricing__featured-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cv-on-action);
    background: linear-gradient(135deg, #FFB48A, #FF9C73);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 800;
}
.cv2cu-pricing__tier { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--cv-text-soft); font-weight: 600; }
.cv2cu-pricing__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--cv-text); }
.cv2cu-pricing__price-wrap { border-top: 1px solid var(--cv-border); padding-top: 1rem; }
.cv2cu-pricing__price {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--tier-color, var(--cv-brand));
    line-height: 1;
    letter-spacing: -0.03em;
}
.cv2cu-pricing__price sup { font-size: 1rem; vertical-align: super; margin-right: 2px; font-weight: 700; }
.cv2cu-pricing__period { font-size: 0.78rem; color: var(--cv-text-soft); margin-top: 0.4rem; }
.cv2cu-pricing__features { list-style: none; flex: 1; }
.cv2cu-pricing__features li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--cv-text-soft);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(var(--cv-fg-rgb), 0.06);
}
.cv2cu-pricing__features li:last-child { border-bottom: none; }
.cv2cu-pricing__features li::before {
    content: '';
    width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-4.9' fill='none' stroke='%23061D25' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat,
        var(--cv-brand);
}
.cv2cu-pricing__cta { margin-top: auto; }
.cv2cu-pricing__cta .cv-btn { width: 100%; }

/* ---- Custom Amount expandable panel ---- */
.cv2cu-custom-amount {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--cv-border-strong);
    animation: fadeUp 0.3s var(--ease-out) both;
}
.cv2cu-custom-amount label { display: block; font-size: 0.78rem; color: var(--cv-text-soft); margin-bottom: 0.5rem; }
.cv2cu-custom-amount__row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem; }
.cv2cu-custom-amount__input {
    flex: 1; min-width: 0;
    background: rgba(var(--cv-fg-rgb), 0.05);
    border: 1px solid var(--cv-border-strong);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--cv-text);
    font-size: 0.95rem;
}
.cv2cu-custom-amount__input:focus-visible { outline: 2px solid var(--cv-brand); outline-offset: 2px; }
.cv2cu-custom-amount__total {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--cv-brand);
    white-space: nowrap;
}

/* ---- CV BUILDER LAYOUT ---- */
.cv2cu-builder {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 340px;
    gap: 1.5rem;
    min-height: 80vh;
    align-items: start;
}
.cv2cu-builder__sidebar,
.cv2cu-builder__main {
    background:
        linear-gradient(180deg, rgba(var(--cv-fg-rgb), 0.045), rgba(var(--cv-fg-rgb), 0.01)),
        var(--cv-surface);
    border: 1px solid var(--cv-border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.cv2cu-builder__sidebar { padding: 1.25rem; position: sticky; top: calc(var(--header-h) + 20px); }
.cv2cu-builder__main    { padding: 2rem; min-width: 0; }
.cv2cu-builder__preview {
    background: #FFFFFF;
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--cv-border);
}
.cv2cu-builder__preview-header {
    background: var(--cv-teal-deep);
    padding: 0.7rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #BFF3E6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cv2cu-builder__preview-header .cv2cu-dot { animation: pulse-dot 2.4s ease-in-out infinite; }
.cv2cu-builder__preview-close { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ---- FORM ELEMENTS ---- */
.cv2cu-form__group { margin-bottom: 1.25rem; }
.cv2cu-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 640px) { .cv2cu-form__row { grid-template-columns: 1fr; } }
.cv2cu-form__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--cv-text-soft);
    margin-bottom: 0.45rem;
}
.cv2cu-form__label .req { color: var(--cv-action); margin-left: 2px; }
.cv2cu-form__input,
.cv2cu-form__textarea,
.cv2cu-form__select {
    width: 100%;
    background: rgba(var(--cv-shadow-rgb), 0.28);
    border: 1px solid var(--cv-border-strong);
    border-radius: 10px;
    padding: 11px 14px;
    color: var(--cv-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
:root[data-theme="light"] .cv2cu-form__input,
:root[data-theme="light"] .cv2cu-form__textarea,
:root[data-theme="light"] .cv2cu-form__select { background: #FFFFFF; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .cv2cu-form__input,
    :root:not([data-theme="dark"]) .cv2cu-form__textarea,
    :root:not([data-theme="dark"]) .cv2cu-form__select { background: #FFFFFF; }
}
.cv2cu-form__input:hover,
.cv2cu-form__textarea:hover,
.cv2cu-form__select:hover { border-color: rgba(var(--cv-brand-rgb), 0.55); }
.cv2cu-form__input:focus,
.cv2cu-form__textarea:focus,
.cv2cu-form__select:focus {
    border-color: var(--cv-brand);
    box-shadow: 0 0 0 3px rgba(var(--cv-brand-rgb), 0.18);
}
.cv2cu-form__input::placeholder,
.cv2cu-form__textarea::placeholder { color: rgba(var(--cv-fg-rgb), 0.38); }
.cv2cu-form__textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.cv2cu-form__select {
    cursor: pointer;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%239DBBB8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}
.cv2cu-form__select option { background: var(--cv-bg-2); color: var(--cv-text); }
.cv2cu-form__hint { font-size: 0.76rem; color: var(--cv-text-soft); margin-top: 0.4rem; max-width: none; }
.cv2cu-form__error { font-size: 0.76rem; color: var(--cv-danger); margin-top: 0.4rem; }
.cv2cu-form__input.is-invalid,
.cv2cu-form__textarea.is-invalid { border-color: var(--cv-danger); box-shadow: 0 0 0 3px rgba(255,107,122,0.15); }

.cv2cu-form__check { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.9rem; color: var(--cv-text); cursor: pointer; line-height: 1.5; }
.cv2cu-form__check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cv-brand); flex-shrink: 0; cursor: pointer; }

/* ---- PIN INPUT ---- */
.cv2cu-pin-input { display: flex; gap: 0.75rem; justify-content: center; margin: 1.5rem 0; }
.cv2cu-pin-input input {
    width: 54px; height: 62px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    background: rgba(var(--cv-shadow-rgb), 0.35);
    border: 2px solid var(--cv-border-strong);
    border-radius: 12px;
    color: var(--cv-brand);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cv2cu-pin-input input:focus { border-color: var(--cv-brand); box-shadow: 0 0 0 4px rgba(var(--cv-brand-rgb), 0.18); transform: translateY(-2px); }
.cv2cu-pin-input input.filled { border-color: var(--cv-brand); background: rgba(var(--cv-brand-rgb), 0.10); }

/* ---- PROGRESS STEPS ---- */
.cv2cu-steps { display: flex; align-items: center; margin-bottom: 1.75rem; overflow-x: auto; padding-bottom: 0.6rem; scrollbar-width: thin; }
.cv2cu-step { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; cursor: pointer; }
.cv2cu-step__num {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--cv-border-strong);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700;
    color: var(--cv-text-soft);
    transition: all 0.3s;
}
.cv2cu-step--active .cv2cu-step__num { border-color: var(--cv-action); background: linear-gradient(135deg, #FFB48A, #FF9C73); color: var(--cv-on-action); box-shadow: 0 0 0 4px rgba(var(--cv-action-rgb), 0.18); }
.cv2cu-step--done .cv2cu-step__num { border-color: var(--cv-brand); background: rgba(var(--cv-brand-rgb), 0.14); color: var(--cv-brand); }
.cv2cu-step__label { font-size: 0.8rem; color: var(--cv-text-soft); white-space: nowrap; }
.cv2cu-step--active .cv2cu-step__label { color: var(--cv-text); font-weight: 600; }
.cv2cu-step__connector { flex: 1; min-width: 28px; height: 2px; background: var(--cv-border); margin: 0 0.5rem; border-radius: 2px; }

/* ---- ALERTS ---- */
.cv2cu-alert {
    padding: 0.95rem 1.2rem;
    border-radius: 12px;
    border: 1px solid;
    border-left-width: 4px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    margin: 1rem 0;
    line-height: 1.55;
    color: var(--cv-text);
}
.cv2cu-alert--success { border-color: rgba(74,222,159,0.45); border-left-color: var(--cv-success); background: rgba(74,222,159,0.09); }
.cv2cu-alert--error   { border-color: rgba(255,122,138,0.5);  border-left-color: var(--cv-danger);  background: rgba(255,122,138,0.09); }
.cv2cu-alert--info    { border-color: rgba(var(--cv-sky-rgb), 0.5);  border-left-color: var(--cv-sky);  background: rgba(var(--cv-sky-rgb), 0.09); }
.cv2cu-alert--warning { border-color: rgba(var(--cv-gold-rgb), 0.55); border-left-color: var(--cv-gold); background: rgba(var(--cv-gold-rgb), 0.10); }
.cv2cu-alert__icon { flex-shrink: 0; }

/* ---- DASHBOARD ---- */
.cv2cu-dashboard { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; min-height: 80vh; align-items: start; }
.cv2cu-dashboard__nav {
    background: var(--cv-surface);
    border: 1px solid var(--cv-border);
    border-radius: var(--radius);
    padding: 1rem;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: flex; flex-direction: column; gap: 2px;
}
.cv2cu-dashboard__nav-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    color: var(--cv-text-soft);
    font-size: 0.88rem; font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
}
.cv2cu-dashboard__nav-item:hover { color: var(--cv-text); background: rgba(var(--cv-brand-rgb), 0.08); }
.cv2cu-dashboard__nav-item--active { color: var(--cv-brand); background: rgba(var(--cv-brand-rgb), 0.12); border-color: rgba(var(--cv-brand-rgb), 0.28); }
.cv2cu-dashboard__stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.cv2cu-stat-card {
    background: var(--cv-surface);
    border: 1px solid var(--cv-border);
    border-radius: var(--radius);
    padding: 1.4rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cv2cu-stat-card::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--cv-brand), transparent); opacity: 0.6; }
.cv2cu-stat-card__value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--cv-brand); letter-spacing: -0.03em; line-height: 1.1; }
.cv2cu-stat-card__label { font-size: 0.78rem; color: var(--cv-text-soft); margin-top: 0.35rem; }

/* ---- TOASTS ---- */
.cv2cu-toast {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 10000;
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    font-size: 0.85rem; font-weight: 500;
    max-width: min(380px, calc(100vw - 2rem));
    background: var(--cv-surface-solid);
    color: var(--cv-text);
    border: 1px solid var(--cv-border-strong);
    box-shadow: var(--shadow-card);
    animation: fadeUp 0.35s var(--ease-out);
    transition: opacity 0.3s, transform 0.3s;
}
.cv2cu-toast--out { opacity: 0; transform: translateY(10px); }
.cv2cu-toast--success { border-color: var(--cv-success); }
.cv2cu-toast--error   { border-color: var(--cv-danger); }
.cv2cu-toast--info    { border-color: var(--cv-sky); }
.cv2cu-toast--warning { border-color: var(--cv-gold); }
.cv2cu-toast__icon { font-weight: 800; }
.cv2cu-toast--success .cv2cu-toast__icon { color: var(--cv-success); }
.cv2cu-toast--error   .cv2cu-toast__icon { color: var(--cv-danger); }
.cv2cu-toast--info    .cv2cu-toast__icon { color: var(--cv-sky); }
.cv2cu-toast--warning .cv2cu-toast__icon { color: var(--cv-gold); }
@media (max-width: 600px) { .cv2cu-toast { right: 1rem; left: 1rem; bottom: 1rem; max-width: none; } }

/* ---- LONG-FORM CONTENT (pages & posts) ---- */
.cv2cu-content { color: rgba(var(--cv-fg-rgb), 0.86); line-height: 1.8; }
.cv2cu-content h2, .cv2cu-content h3, .cv2cu-content h4 { margin-top: 2.2rem; margin-bottom: 0.75rem; }
.cv2cu-content h2 { font-size: 1.55rem; border-bottom: 1px solid var(--cv-border); padding-bottom: 0.5rem; }
.cv2cu-content h3 { font-size: 1.25rem; }
.cv2cu-content p { margin-bottom: 1rem; max-width: 70ch; }
.cv2cu-content ul, .cv2cu-content ol { margin: 0 0 1rem 1.5rem; }
.cv2cu-content li { margin-bottom: 0.35rem; }
.cv2cu-content strong { color: var(--cv-text); }
.cv2cu-content a { color: var(--cv-brand); text-decoration: underline; text-underline-offset: 3px; }
.cv2cu-content code { font-size: 0.85em; background: rgba(var(--cv-brand-rgb), 0.10); padding: 2px 6px; border-radius: 6px; color: var(--cv-brand); }
.cv2cu-content pre { background: rgba(var(--cv-shadow-rgb), 0.5); border: 1px solid var(--cv-border); border-radius: 12px; padding: 1rem; overflow-x: auto; margin: 1.5rem 0; }
.cv2cu-content blockquote { border-left: 4px solid var(--cv-action); padding: 0.25rem 0 0.25rem 1.1rem; color: var(--cv-text-soft); font-style: italic; margin: 1.5rem 0; }
.cv2cu-content img { border-radius: var(--radius); }
.cv2cu-content figure.wp-block-table { overflow-x: auto; }
.cv2cu-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.cv2cu-content th, .cv2cu-content td { padding: 0.65rem 1rem; border: 1px solid var(--cv-border); font-size: 0.9rem; text-align: left; }
.cv2cu-content th { background: rgba(var(--cv-brand-rgb), 0.08); color: var(--cv-brand); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; }

.cv2cu-pagination { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.cv2cu-pagination .page-numbers { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--cv-border); color: var(--cv-text-soft); font-size: 0.85rem; }
.cv2cu-pagination .page-numbers.current, .cv2cu-pagination .page-numbers:hover { border-color: var(--cv-brand); color: var(--cv-brand); background: rgba(var(--cv-brand-rgb), 0.1); }

/* ---- 404 ---- */
.cv2cu-404 { text-align: center; padding: 6rem 0 3rem; }
.cv2cu-404 p { margin-left: auto; margin-right: auto; }
.cv2cu-404__code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -0.06em;
    background: linear-gradient(135deg, var(--cv-brand), var(--cv-sky) 55%, var(--cv-action)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1180px) {
    .cv2cu-builder { grid-template-columns: 230px minmax(0, 1fr); }
    /* Preview becomes an off-canvas sheet, opened from the builder's Preview button */
    .cv2cu-builder__preview {
        position: fixed; inset: 0; z-index: 2000; border-radius: 0;
        overflow-y: auto; display: none;
    }
    .cv2cu-builder__preview.is-open { display: block; }
    .cv2cu-builder__preview-close { display: block; }
}
@media (max-width: 1024px) {
    .cv2cu-pricing { grid-template-columns: repeat(2, 1fr); }
    .cv2cu-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .cv2cu-dashboard { grid-template-columns: 1fr; }
    .cv2cu-dashboard__nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
    .cv2cu-dashboard__stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .cv2cu-builder { grid-template-columns: 1fr; }
    .cv2cu-builder__sidebar { position: static; }
    .cv2cu-builder__main { padding: 1.25rem; }
}

/* Defensive: nothing on the page should be wider than the viewport.
   NOTE: this used to be `html { overflow-x: hidden; max-width: 100%; }` — that broke
   position:sticky (the header) and position:fixed (the scroll-progress bar, the mobile
   nav overlay) on real devices, because giving <html> a non-visible overflow makes it a
   second scrolling container. overflow-x is set to `clip` on body instead (see style.css);
   clip achieves the same "no horizontal scrollbar" result without that side effect. */

@media (max-width: 900px) {
    .cv2cu-ecobar__links { display: none; }
    .cv2cu-ecobar__inner { justify-content: center; }
    .cv2cu-nav { display: none; }
    .cv2cu-nav--open {
        display: flex; flex-direction: column;
        position: fixed; inset: 0;
        background: var(--cv-bg);
        z-index: 999;
        padding: calc(var(--header-h) + 2.2rem) 1.5rem 2rem;
        overflow-y: auto;
        animation: fadeIn 0.25s ease both;
    }
    .cv2cu-nav--open .cv2cu-nav__list { flex-direction: column; align-items: stretch; gap: 0.35rem; }
    .cv2cu-nav--open .cv2cu-nav__link,
    .cv2cu-nav--open .cv2cu-nav__list li a { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; padding: 0.9rem 1rem; color: var(--cv-text); border-radius: 14px; }
    .cv2cu-nav--open .cv2cu-nav__mobile-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
    .cv2cu-nav--open .cv2cu-nav__mobile-actions .cv-btn { width: 100%; }
    .cv2cu-hamburger { display: flex; }
    .cv2cu-header__actions .cv-btn--ghost { display: none; }
    .cv2cu-header__logout { display: none; }
}
@media (max-width: 768px) {
    .cv2cu-pricing { grid-template-columns: 1fr; }
    .cv2cu-footer__grid { grid-template-columns: 1fr; }
    .cv2cu-footer__bottom { flex-direction: column; align-items: flex-start; }
    .cv2cu-dashboard__stat-grid { grid-template-columns: 1fr; }
    .cv2cu-popia { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; }
}
@media (max-width: 480px) {
    .cv2cu-logo__tld { display: none; }
    .cv2cu-header__inner { gap: 0.6rem; }
    .cv2cu-header__actions { gap: 0.4rem; }
    .cv2cu-header__actions .cv-btn--sm { padding: 8px 14px; font-size: 0.78rem; }
    .cv2cu-pin-input input { width: 46px; height: 54px; font-size: 1.35rem; }
    .cv2cu-pin-input { gap: 0.5rem; }
}

/* Theme toggle inside the mobile menu; the header one steps aside on very small phones */
.cv2cu-nav__mobile-actions .cv2cu-theme-toggle { width: auto; height: 46px; border-radius: 999px; gap: 10px; padding: 0 1.2rem; font-size: 0.9rem; font-weight: 600; justify-content: center; }
.cv2cu-nav__mobile-actions .cv2cu-theme-toggle:hover { transform: none; }
@media (max-width: 420px) { .cv2cu-header__actions > .cv2cu-theme-toggle { display: none; } }

/* ---- Plugin-provisioned form cards (register / contact) ---- */
.mcb-form-card { max-width: 560px; margin: 0 auto; }
.cv2cu-content .mcb-form-card p, .cv2cu-content .cv-card p { max-width: none; }
.cv2cu-content > p:first-child { text-align: center; margin-left: auto; margin-right: auto; }

/* Pricing: never squeeze cards side by side on small screens (inline column count must not beat these) */
@media (max-width: 1024px) { .cv2cu-pricing { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px)  { .cv2cu-pricing { grid-template-columns: 1fr !important; } .cv2cu-pricing__featured-badge { position: static; align-self: flex-start; } }
