/* New Project wizard — modern, theme-driven (var(--primary) / var(--secondary)). */

.np-wrap { --np-accent: var(--primary); }

/* Stepper */
.np-stepper { display: flex; align-items: flex-start; gap: 0; margin: 0 0 1.25rem; }
.np-step { flex: 1; text-align: center; position: relative; font-size: .78rem; color: #8a94a6; }
.np-step:not(:first-child)::before {
    content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px;
    background: #e3e7ee; z-index: 0;
}
.np-step.done:not(:first-child)::before,
.np-step.active:not(:first-child)::before { background: var(--primary); }
.np-step__dot {
    position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
    background: #e3e7ee; color: #8a94a6; display: flex; align-items: center; justify-content: center;
    margin: 0 auto .35rem; font-weight: 700; transition: background .2s, color .2s;
}
.np-step.active .np-step__dot { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.np-step.done .np-step__dot { background: var(--primary); color: #fff; }
.np-step.active .np-step__label { color: var(--primary); font-weight: 600; }

.np-progress { height: 5px; border-radius: 999px; background: #e3e7ee; overflow: hidden; margin-bottom: 1rem; }
.np-progress__bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width .3s; }

.np-pane { display: none; animation: npFade .25s ease; }
.np-pane.active { display: block; }
@keyframes npFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.np-section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); font-weight: 700; margin: .25rem 0 .75rem; }

/* Plan cards */
.np-plan-card {
    /* .np-plan-card is a <label>, which defaults to display:inline — without
       an explicit block-level display it shrink-wraps to its own content
       width instead of filling the grid column, so cards end up different
       widths (driven by whichever text line is longest) with leftover gap
       beside each one instead of a clean 2-up grid. */
    display: block; width: 100%; box-sizing: border-box;
    cursor: pointer; height: 100%; border: 2px solid #e3e7ee; border-radius: 1rem; padding: 1.1rem;
    transition: border-color .15s, box-shadow .15s, transform .1s; position: relative; background: #fff; margin: 0;
}
.np-plan-card:hover { border-color: color-mix(in srgb, var(--primary) 45%, #e3e7ee); }
.np-plan-card.selected { 
    border-color: var(--primary) !important;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 18%, transparent) !important;
    transform: translateY(-2px);
 }
.np-plan-card.selected::after {
    content: '\2713'; position: absolute; top: .75rem; right: .75rem; width: 24px; height: 24px; border-radius: 50%;
    background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem;
}
.np-plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.np-plan-name { font-weight: 700; font-size: 1.05rem; }
.np-plan-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin: .35rem 0; }
.np-plan-feats { list-style: none; padding: 0; margin: 0; font-size: .82rem; color: #55606e; }
.np-plan-feats li { padding: .12rem 0; display: flex; align-items: center; gap: .4rem; }
.np-plan-feats i { color: var(--primary); }

/* Segmented control (hosting choice) */
.np-segment { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; }
.np-segment label {
    border: 2px solid #e3e7ee; border-radius: .8rem; padding: .8rem .9rem; cursor: pointer; margin: 0;
    display: flex; flex-direction: column; gap: .15rem; transition: border-color .15s, background .15s;
}
.np-segment label:hover { border-color: color-mix(in srgb, var(--primary) 40%, #e3e7ee); }
.np-segment input { position: absolute; opacity: 0; }
.np-segment label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, #fff); }
.np-segment .np-seg-title { font-weight: 600; font-size: .9rem; }
.np-segment .np-seg-sub { font-size: .76rem; color: #6c757d; }

/* Feature picker */
.np-feature-picker { border: 1px solid #e3e7ee; border-radius: .8rem; overflow: hidden; }
.np-feature-picker__head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .6rem .7rem; background: color-mix(in srgb, var(--primary) 6%, #fff); border-bottom: 1px solid #e9edf3; }
.np-feature-picker__head .np-feature-search { max-width: 240px; flex: 1 1 180px; }
.np-count-badge { margin-left: auto; background: var(--primary); color: #fff; border-radius: 999px; font-size: .72rem; padding: .15rem .6rem; font-weight: 600; }
.np-feature-list { max-height: 260px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .35rem; padding: .6rem; }
.np-feature-item { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border: 1px solid transparent; border-radius: .55rem; cursor: pointer; margin: 0; }
.np-feature-item:hover { background: color-mix(in srgb, var(--primary) 7%, #fff); }
.np-feature-item input { accent-color: var(--primary); width: 1.05rem; height: 1.05rem; }
.np-feature-item:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, #fff); }
.np-feature-item.included { opacity: .85; background: color-mix(in srgb, var(--primary) 6%, #fff); cursor: default; }
.np-feature-item__name { font-size: .87rem; font-weight: 500; flex: 1; }
.np-feature-item__price { font-size: .76rem; color: #6c757d; white-space: nowrap; }
.np-feature-item.is-hidden { display: none; }
.np-badge-included { background: var(--primary); color: #fff; border-radius: 999px; font-size: .66rem; padding: .1rem .45rem; }

/* Summary */
.np-summary { position: sticky; top: 90px; border: 0; border-radius: 1rem; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.np-summary .card-header { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border: 0; }
.np-summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; font-size: .9rem; }
.np-summary-total { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.np-summary .breakdown li { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; padding: .18rem 0; border-bottom: 1px dashed #eef1f5; }
.np-summary .breakdown li.discount span:last-child { color: #1a9d5a; }

/* Sticky wallet strip — always visible beside the wizard */
.np-wallet {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .75rem;
    margin: 0 0 .55rem;
    padding: .85rem .95rem;
    border-radius: .85rem;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, #e3e7ee);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, #fff), #fff 55%);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.np-wallet__icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--primary) 14%, #fff);
    color: var(--primary);
    font-size: .95rem;
}
.np-wallet__meta { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.np-wallet__label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6c757d;
}
.np-wallet__amount {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
    color: #1f2937;
    letter-spacing: -.02em;
}
.np-wallet__status {
    align-self: start;
    margin-top: .15rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: .28rem .5rem;
    border-radius: 999px;
    background: color-mix(in srgb, #1a9d5a 12%, #fff);
    color: #147a46;
    white-space: nowrap;
}
.np-wallet__hint {
    margin: 0 0 1rem;
    font-size: .75rem;
    color: #6c757d;
}
.np-wallet.is-short {
    border-color: color-mix(in srgb, #d97706 35%, #e3e7ee);
    background: linear-gradient(135deg, color-mix(in srgb, #d97706 10%, #fff), #fff 60%);
    box-shadow: 0 0 0 3px color-mix(in srgb, #d97706 8%, transparent);
}
.np-wallet.is-short .np-wallet__icon {
    background: color-mix(in srgb, #d97706 14%, #fff);
    color: #b45309;
}
.np-wallet.is-short .np-wallet__status {
    background: color-mix(in srgb, #d97706 14%, #fff);
    color: #9a3412;
}
.np-wallet.is-ready .np-wallet__status {
    background: color-mix(in srgb, #1a9d5a 12%, #fff);
    color: #147a46;
}

/* Chip list (included features / read-only) */
.np-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.np-chip { background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 30%, #fff); border-radius: 999px; padding: .2rem .6rem; font-size: .78rem; font-weight: 600; }

.np-feature-list::-webkit-scrollbar { width: 8px; }
.np-feature-list::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--primary) 40%, #ccc); border-radius: 8px; }

/* Platform badge: first thing on a plan card so the client sees what the plan covers */
.np-plan-platform { display:inline-flex; align-items:center; gap:6px; padding:3px 10px; margin-bottom:8px; border-radius:999px; font-size:12px; font-weight:600; background:rgba(0,0,0,.06); color:var(--primary); }
.np-plan-platform i { font-size:13px; }

/* Permanent virtual account card (Review step) */

/* Dedicated account card (Review step): clean card, header is the collapse control */
.np-card { background: #fff; border: 1px solid #e3e7ee; border-radius: 14px; box-shadow: 0 1px 2px rgba(20,35,70,.04), 0 6px 20px rgba(20,35,70,.05); overflow: hidden; margin-bottom: 1rem; }
.np-card__header { display: flex; align-items: center; gap: .85rem; width: 100%; padding: .9rem 1.1rem; border: 0; background: #fff; text-align: left; cursor: pointer; color: #1c2434; }
.np-card__header:hover { background: #fafbfd; }
.np-card__header:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.np-card__icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-size: .95rem;
    color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, #fff); }
.np-card__titles { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.np-card__title { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.np-card__sub { font-size: .82rem; color: #667089; line-height: 1.4; }
.np-card__sub--closed { display: none; }
.np-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; color: #1c2434; font-weight: 600; }
.np-card__chev { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #e3e7ee; color: #667089; font-size: .75rem; }
.np-card__chev i { transition: transform .25s; }
.np-card__collapsible { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s ease; }
.np-card__inner { min-height: 0; overflow: hidden; border-top: 1px solid #edf0f5; }
.np-card.is-collapsed .np-card__collapsible { grid-template-rows: 0fr; }
.np-card.is-collapsed .np-card__inner { border-top-color: transparent; }
.np-card.is-collapsed .np-card__sub--open { display: none; }
.np-card.is-collapsed .np-card__sub--closed { display: block; }
.np-card.is-collapsed .np-card__chev i { transform: rotate(180deg); }

/* Account rows */
.np-acct { padding: 1rem 1.1rem; }
.np-acct + .np-acct, .np-more__inner > .np-acct + .np-acct { border-top: 1px solid #edf0f5; }
.np-acct--primary { background: color-mix(in srgb, var(--primary) 5%, #fff); }
.np-acct__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.np-acct__details { min-width: 0; }
.np-acct__bank { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #667089; }
.np-acct__number { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.6rem; font-weight: 700; letter-spacing: .1em; line-height: 1.3; color: #161a23; word-break: break-all; }
.np-acct__number--sm { font-size: 1.2rem; }
.np-acct__name { font-size: .9rem; font-weight: 600; color: #2c3446; }
.np-copy-btn { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 9px; border: 1px solid #d3d9e6; background: #fff; color: #2c3446; font-size: .85rem; font-weight: 600; cursor: pointer; }
.np-copy-btn:hover { border-color: var(--primary); color: var(--primary); }

/* What the bank vendor charges when you fund by transfer */
.np-fees { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .45rem; margin-top: .75rem; }
.np-fees__label { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #8a93a8; margin-right: .15rem; font-weight: 600; }
.np-fee { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; line-height: 1.35; color: #3a4458; background: #f2f4f8; border: 1px solid #e1e5ee; }
.np-fee i { font-size: .68rem; color: #8a93a8; }
.np-fee--free { color: #11704f; background: #e8f7f0; border-color: #bfe6d3; }
.np-fee--free i { color: #11704f; }

/* Other accounts */
.np-stack__toggle { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: .6rem 1rem; border: 0; border-top: 1px solid #edf0f5; background: #fff;
    color: var(--primary); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.np-stack__toggle:hover { background: #fafbfd; }
.np-stack__toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.np-stack__toggle i { font-size: .7rem; transition: transform .25s; }
.np-stack__toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.np-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.np-more.is-open { grid-template-rows: 1fr; }
.np-more__inner { min-height: 0; overflow: hidden; }
.np-more.is-open .np-more__inner { border-top: 1px solid #edf0f5; }

.np-card__footer { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .8rem 1.1rem; background: #f7f8fb; border-top: 1px solid #edf0f5; }
.np-card__status { color: #667089; flex: 1; min-width: 0; }
.np-card__link { font-size: .82rem; font-weight: 600; margin-left: auto; }
@media (max-width: 480px) { .np-acct__number { font-size: 1.3rem; letter-spacing: .06em; } .np-card__sub--open { display: none; } .np-card:not(.is-collapsed) .np-card__sub--closed { display: none; } }
@media (prefers-reduced-motion: reduce) { .np-card__collapsible, .np-more, .np-card__chev i, .np-stack__toggle i { transition: none; } }

/* Contract note modal: scroll to the end to unlock "I agree" */
.np-contract { border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,42,.28); }
.np-contract .modal-header { align-items: center; padding: .6rem 1rem; border-bottom: 0; }
.np-contract .modal-title { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.np-contract .modal-header .btn-close { margin: 0 -.25rem 0 .5rem; padding: .5rem; }
.np-contract__sub { font-size: .78rem; line-height: 1.35; color: #4b5563; margin-top: .05rem; }
.np-contract__progress { height: 3px; background: #e9edf4; }
.np-contract__progress > span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .12s linear; }
.np-contract__scroll { height: min(62vh, 560px); max-height: min(62vh, 560px); overflow-y: auto; padding: 1.25rem 1.5rem; overscroll-behavior: contain; }
.np-contract__scroll:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.np-contract__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .85rem 1.25rem; background: #f7f8fb; border-top: 1px solid #edf0f5; }
.np-contract__hint { font-size: .82rem; color: #4b5563; display: inline-flex; align-items: center; gap: .45rem; }
.np-contract__hint.is-done { color: #11704f; font-weight: 600; }
.np-contract__buttons { display: flex; gap: .5rem; margin-left: auto; }
.np-contract__buttons .btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 480px) { .np-contract__scroll { padding: 1rem; } .np-contract__buttons { width: 100%; } .np-contract__buttons .btn { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .np-contract__progress > span { transition: none; } }

/* "Terms and Conditions" beside the tick box: reads as text, opens the contract note, carries no URL */
.np-terms-link { display: inline; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: var(--primary); cursor: pointer; }
.np-terms-link:hover { text-decoration: underline; }
.np-terms-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px; }

