/* ============================================================================
   NETROUTING CHECKOUT 2026
   A clean-slate rewrite of the orderpage styling.
   Design tokens live at the top — change them to rebrand.
   ============================================================================ */

/* ----- Design tokens -------------------------------------------------------- */
.nrc,
.nrc3 {
    /* Brand colours */
    --nrc-primary:       #4A7CFF;        /* Netrouting blue */
    --nrc-primary-hover: #3562e3;
    --nrc-primary-2:     #7B5FE7;        /* Netrouting purple (gradient end stop) */
    --nrc-primary-soft:  #edf2ff;        /* Soft blue tint for hover/selected bg */
    --nrc-gradient:      linear-gradient(135deg, #4A7CFF 0%, #7B5FE7 100%);
    --nrc-gradient-soft: linear-gradient(135deg, rgba(74,124,255,.08) 0%, rgba(123,95,231,.08) 100%);
    --nrc-success:       #14BB60;        /* Netrouting green */
    --nrc-success-hover: #109b4e;
    --nrc-success-soft:  #e6faf0;
    --nrc-danger:        #e74c3c;
    --nrc-warning:       #F59E0B;

    /* Tier colours — each tier gets its own visual identity on the badge */
    --nrc-tier-budget:      #9ba0b3;     /* grey — Instant */
    --nrc-tier-popular:     #4A7CFF;     /* blue — Edge */
    --nrc-tier-performance: #7B5FE7;     /* purple — Edge Pro */
    --nrc-tier-bandwidth:   #10B981;     /* emerald — Bandwidth */
    --nrc-tier-cores:       #F59E0B;     /* amber — Compute Dense */
    --nrc-tier-memory:      #14B8C7;     /* teal — Memory */

    /* Neutrals */
    --nrc-text:          #1a2540;
    --nrc-text-soft:     #5a6478;
    --nrc-text-muted:    #9ba0b3;
    --nrc-border:        #e4e8f0;
    --nrc-border-strong: #cbd2df;
    --nrc-bg:            #f6f8fb;
    --nrc-card:          #ffffff;

    /* Geometry */
    --nrc-radius-sm:     8px;
    --nrc-radius:        12px;
    --nrc-radius-lg:     20px;

    /* Elevation */
    --nrc-shadow-sm: 0 1px 2px rgba(26, 37, 64, .05);
    --nrc-shadow:    0 4px 16px -4px rgba(26, 37, 64, .08);
    --nrc-shadow-lg: 0 20px 50px -20px rgba(26, 37, 64, .25);
    --nrc-shadow-focus: 0 0 0 3px rgba(74, 124, 255, .15);

    /* Typography */
    --nrc-font-xs:   12px;
    --nrc-font-sm:   13px;
    --nrc-font-base: 15px;
    --nrc-font-md:   17px;
    --nrc-font-lg:   22px;
    --nrc-font-xl:   32px;

    /* Spacing scale */
    --nrc-space-1:   4px;
    --nrc-space-2:   8px;
    --nrc-space-3:   12px;
    --nrc-space-4:   16px;
    --nrc-space-5:   24px;
    --nrc-space-6:   32px;
    --nrc-space-7:   48px;
    --nrc-space-8:   64px;

    /* Step indicator */
    --nrc-step-size: 36px;

    /* Layout */
    --nrc-summary-top-offset: 96px;
}

/* Hide the 2019 theme's global footer inside the orderpage only */
.orderpage.nrc ~ .footer-content,
body:has(.orderpage.nrc) .footer-content { display: none !important; }

/* ----- Header --------------------------------------------------------------- */
.nrc-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--nrc-space-5);
    margin-bottom: var(--nrc-space-7);
}
.nrc-header__title {
    font-size: var(--nrc-font-xl);
    font-weight: 700;
    color: var(--nrc-text);
    margin: 0 0 var(--nrc-space-3);
    letter-spacing: -0.02em;
}
.nrc-header__subtitle {
    font-size: var(--nrc-font-md);
    color: var(--nrc-text-soft);
    margin: 0;
    max-width: 720px;
}

/* ----- Grid layout ---------------------------------------------------------- */
.nrc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--nrc-space-6);
}
@media (min-width: 992px) {
    .nrc-grid {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: var(--nrc-space-7);
    }
}
@media (min-width: 1280px) {
    .nrc-grid {
        grid-template-columns: minmax(0, 1fr) 420px;
    }
}
.nrc-grid__main { min-width: 0; }
.nrc-grid__aside { min-width: 0; }

/* ----- Sections ------------------------------------------------------------- */
.nrc .nrc-section {
    margin-bottom: var(--nrc-space-7);
    padding: 0;
    border: 0;
    background: transparent;
}
.nrc-section__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--nrc-space-4);
    margin-bottom: var(--nrc-space-5);
}
.nrc-section__title {
    font-size: var(--nrc-font-lg);
    font-weight: 700;
    color: var(--nrc-text);
    margin: 0;
    letter-spacing: -0.01em;
}
.nrc-section__description {
    color: var(--nrc-text-soft);
    font-size: var(--nrc-font-sm);
    margin-bottom: var(--nrc-space-4);
    padding-left: calc(var(--nrc-step-size) + var(--nrc-space-4));
}
.nrc-required {
    color: var(--nrc-danger);
    margin-left: 2px;
}

/* ----- Step indicators (connected circles) ---------------------------------- */
.nrc-step,
.nrc .cart-products-scount {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: var(--nrc-step-size);
    height: var(--nrc-step-size);
    border-radius: 50%;
    background: var(--nrc-card);
    border: 2px solid var(--nrc-border);
    color: var(--nrc-text-muted);
    font-size: var(--nrc-font-sm);
    font-weight: 700;
    line-height: 1;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    transition: all .2s ease;
}
.nrc-section:hover .nrc-step {
    border-color: var(--nrc-primary);
    color: var(--nrc-primary);
}

/* ----- Product picker ------------------------------------------------------- */
.nrc-product-picker { margin-bottom: var(--nrc-space-7); }

.nrc-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--nrc-space-3);
}

.nrc-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--nrc-card);
    border: 1.5px solid var(--nrc-border);
    border-radius: var(--nrc-radius);
    padding: var(--nrc-space-4);
    cursor: pointer;
    transition: all .15s ease;
    overflow: hidden;
    min-height: 112px;
}
.nrc-product-card:hover:not(.is-outofstock) {
    border-color: var(--nrc-primary);
    transform: translateY(-1px);
    box-shadow: var(--nrc-shadow);
}
.nrc-product-card.is-selected {
    border-color: var(--nrc-primary);
    background: var(--nrc-gradient);
    box-shadow: var(--nrc-shadow-lg), 0 0 0 3px rgba(74, 124, 255, .15);
    cursor: default;
}
.nrc-product-card.is-selected * { color: #ffffff !important; }
.nrc-product-card.is-selected .nrc-spec__label { color: rgba(255, 255, 255, .75) !important; }
.nrc-product-card.is-selected .nrc-tier-badge { background: rgba(255, 255, 255, .18) !important; color: #ffffff !important; }
.nrc-product-card.is-outofstock {
    opacity: .55;
    cursor: not-allowed;
}
.nrc-product-card.is-outofstock .nrc-product-card__body { opacity: .6; }

.nrc-product-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: var(--nrc-space-1);
}

/* Tier badge positioned above the name on the same card */
.nrc-product-card .nrc-tier-badge {
    align-self: flex-start;
    margin-bottom: 4px;
}

.nrc-product-card__name {
    font-size: var(--nrc-font-base);
    font-weight: 700;
    color: var(--nrc-text);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.nrc-product-card__price {
    margin-top: auto;
    padding-top: var(--nrc-space-3);
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.nrc-product-card__price-amount {
    font-size: var(--nrc-font-md);
    font-weight: 800;
    color: var(--nrc-primary);
}
.nrc-product-card__price-cycle {
    color: var(--nrc-text-muted);
    font-size: var(--nrc-font-xs);
    font-weight: 500;
}

.nrc-product-card__specs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: var(--nrc-space-2);
    padding-top: var(--nrc-space-2);
    border-top: 1px solid var(--nrc-border);
}
.nrc-product-card.is-selected .nrc-product-card__specs {
    border-top-color: rgba(255, 255, 255, .2);
}
.nrc-spec {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--nrc-space-2);
    font-size: var(--nrc-font-xs);
    line-height: 1.3;
}
.nrc-spec__label {
    color: var(--nrc-text-muted);
    font-weight: 400;
    text-align: left;
}
.nrc-spec__value {
    color: var(--nrc-text);
    font-weight: 600;
    text-align: right;
}

.nrc-product-card__cta {
    display: none; /* Implicit: the entire card is the click target */
}

.nrc-product-card__ribbon {
    position: absolute;
    top: var(--nrc-space-3);
    right: var(--nrc-space-3);
    padding: var(--nrc-space-1) var(--nrc-space-3);
    background: var(--nrc-ribbon-bg, var(--nrc-success));
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    z-index: 5;
}
.nrc-product-card__ribbon span { color: #ffffff !important; }

.nrc-product-card__outofstock {
    position: absolute;
    top: var(--nrc-space-3);
    left: var(--nrc-space-3);
    padding: var(--nrc-space-1) var(--nrc-space-3);
    background: var(--nrc-text-muted);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    z-index: 5;
}
.nrc-product-card__info {
    position: absolute;
    top: var(--nrc-space-3);
    right: var(--nrc-space-3);
    z-index: 10;
}

/* ----- Form fields ---------------------------------------------------------- */
.nrc-field { margin-bottom: var(--nrc-space-3); }

.nrc .form-control,
.nrc-input,
.nrc-textarea {
    background: var(--nrc-card);
    border: 1.5px solid var(--nrc-border);
    border-radius: var(--nrc-radius-sm);
    padding: 12px 16px;
    font-size: var(--nrc-font-base);
    color: var(--nrc-text);
    transition: all .15s ease;
    height: auto;
    min-height: 48px;
}
.nrc .form-control:focus,
.nrc-input:focus,
.nrc-textarea:focus {
    border-color: var(--nrc-primary);
    box-shadow: 0 0 0 3px rgba(56, 145, 242, .15);
    outline: 0;
}
.nrc .form-control::placeholder { color: var(--nrc-text-muted); }

.nrc .btn-primary {
    background: var(--nrc-primary);
    border-color: var(--nrc-primary);
    border-radius: var(--nrc-radius-sm);
    padding: 12px 24px;
    font-weight: 600;
    transition: all .15s ease;
}
.nrc .btn-primary:hover {
    background: var(--nrc-primary-hover);
    border-color: var(--nrc-primary-hover);
}
.nrc .btn-success,
.nrc .btn.btn-success,
.nrc button.btn-success {
    background: var(--nrc-success) !important;
    background-color: var(--nrc-success) !important;
    border-color: var(--nrc-success) !important;
    color: #ffffff !important;
    border-radius: var(--nrc-radius-sm);
    font-weight: 600;
    transition: all .15s ease;
}
.nrc .btn-success:hover,
.nrc .btn.btn-success:hover,
.nrc button.btn-success:hover {
    background: var(--nrc-success-hover) !important;
    background-color: var(--nrc-success-hover) !important;
    border-color: var(--nrc-success-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--nrc-shadow);
}

/* ----- Alerts --------------------------------------------------------------- */
.nrc-alert {
    padding: var(--nrc-space-4);
    border-radius: var(--nrc-radius-sm);
    font-size: var(--nrc-font-sm);
}
.nrc-alert--info {
    background: var(--nrc-primary-soft);
    color: var(--nrc-text);
    border: 1px solid rgba(56, 145, 242, .2);
}
.nrc-alert__label {
    font-weight: 600;
    margin-right: var(--nrc-space-2);
}

/* ----- Addons & card items (override bootstrap .card) ----------------------- */
.nrc-addons { display: flex; flex-direction: column; gap: var(--nrc-space-3); }
.nrc .nrc-addon.card,
.nrc .card {
    background: var(--nrc-card);
    border: 1.5px solid var(--nrc-border);
    border-radius: var(--nrc-radius);
    box-shadow: none;
    transition: border-color .15s ease;
}
.nrc .card:hover { border-color: var(--nrc-border-strong); }

/* ----- TOS ------------------------------------------------------------------ */
.nrc-tos-item {
    display: flex;
    align-items: flex-start;
    gap: var(--nrc-space-3);
    padding: var(--nrc-space-3) 0;
}
.nrc-tos-item + .nrc-tos-item { border-top: 1px solid var(--nrc-border); }

/* ============================================================================
   SUMMARY RAIL
   ============================================================================ */

.nrc-summary {
    background: var(--nrc-card);
    border: 1.5px solid var(--nrc-border);
    border-radius: var(--nrc-radius-lg);
    padding: var(--nrc-space-5);
    box-shadow: var(--nrc-shadow-sm);
    /* Native sticky — no JS needed */
    position: sticky;
    top: var(--nrc-summary-top-offset);
}

.nrc-summary__header {
    padding-bottom: var(--nrc-space-4);
    margin-bottom: var(--nrc-space-4);
    border-bottom: 1px solid var(--nrc-border);
}
.nrc-summary__title {
    font-size: var(--nrc-font-md);
    font-weight: 700;
    color: var(--nrc-text);
    margin: 0;
    letter-spacing: -0.01em;
}

/* Summary body */
.nrc-summary__body {
    margin-bottom: var(--nrc-space-4);
}
.nrc-summary__product {
    margin-bottom: var(--nrc-space-3);
}
.nrc-summary__product-category {
    font-size: var(--nrc-font-xs);
    font-weight: 600;
    color: var(--nrc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.nrc-summary__product-name {
    font-size: var(--nrc-font-base);
    font-weight: 700;
    color: var(--nrc-text);
    line-height: 1.3;
}

.nrc-summary__lines {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--nrc-space-4);
}
.nrc-summary__line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--nrc-space-3);
    font-size: var(--nrc-font-sm);
    padding: 3px 0;
    line-height: 1.4;
}
.nrc-summary__line-label {
    color: var(--nrc-text-soft);
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nrc-summary__line-value {
    color: var(--nrc-text);
    font-weight: 600;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.nrc-summary__line--option .nrc-summary__line-label {
    color: var(--nrc-text-muted);
    font-size: var(--nrc-font-xs);
}
.nrc-summary__line--option .nrc-summary__line-value {
    color: var(--nrc-text-soft);
    font-size: var(--nrc-font-xs);
    font-weight: 500;
}
.nrc-summary__divider {
    border: 0;
    border-top: 1px dashed var(--nrc-border);
    margin: var(--nrc-space-4) 0;
}

/* Billing cycle */
.nrc-summary__content { padding-top: 0; }
.nrc-summary__bcycle {
    padding: var(--nrc-space-4) 0;
    border-top: 1px solid var(--nrc-border);
}
.nrc-summary__bcycle-label {
    display: block;
    font-size: var(--nrc-font-xs);
    font-weight: 600;
    color: var(--nrc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--nrc-space-2);
}
.nrc-summary__bcycle select {
    width: 100%;
    background: var(--nrc-bg);
    border: 1.5px solid var(--nrc-border);
    border-radius: var(--nrc-radius-sm);
    padding: 10px 12px;
    font-size: var(--nrc-font-sm);
    color: var(--nrc-text);
    cursor: pointer;
}

/* Promo */
.nrc-summary__promo {
    display: flex;
    gap: var(--nrc-space-2);
    align-items: stretch;
    padding: var(--nrc-space-4) 0;
    border-top: 1px solid var(--nrc-border);
    margin: 0;
}
.nrc-summary__promo-input {
    flex: 1 1 auto;
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: var(--nrc-font-sm) !important;
}
.nrc-summary__promo-submit {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 16px !important;
    border-radius: var(--nrc-radius-sm) !important;
    font-size: var(--nrc-font-sm) !important;
    font-weight: 600;
}
.nrc-summary__coupon-applied {
    display: flex;
    align-items: center;
    gap: var(--nrc-space-2);
    flex-wrap: wrap;
    padding: var(--nrc-space-2) var(--nrc-space-3);
    background: rgba(45, 199, 107, .08);
    border-radius: var(--nrc-radius-sm);
    font-size: var(--nrc-font-xs);
    margin-bottom: var(--nrc-space-3);
}
.nrc-summary__coupon-label { color: var(--nrc-text-muted); font-weight: 600; }
.nrc-summary__coupon-code { color: var(--nrc-success); font-weight: 700; }
.nrc-summary__coupon-discount { color: var(--nrc-text-muted); margin-left: auto; }

/* Recurring line */
.nrc-summary__recurring {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--nrc-space-3) 0;
    font-size: var(--nrc-font-xs);
    color: var(--nrc-text-muted);
    border-top: 1px solid var(--nrc-border);
}
.nrc-summary__recurring-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.nrc-summary__recurring-value {
    color: var(--nrc-text-soft);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* The total — the moment of truth */
.nrc-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--nrc-space-4) 0;
    border-top: 2px solid var(--nrc-text);
    margin: 0;
}
.nrc-summary__total-label {
    font-size: var(--nrc-font-md);
    font-weight: 700;
    color: var(--nrc-text);
}
.nrc-summary__total-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--nrc-primary);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

/* Submit */
.nrc-summary__submit { margin-top: var(--nrc-space-4); }
.nrc-summary__submit-btn {
    width: 100%;
    padding: 16px var(--nrc-space-5) !important;
    font-size: var(--nrc-font-md) !important;
    font-weight: 700 !important;
    border-radius: var(--nrc-radius-sm) !important;
    letter-spacing: 0.01em;
}

/* ----- Mobile summary toggle ------------------------------------------------ */
.nrc-summary-mobile-toggle {
    display: none;
    width: 100%;
    background: var(--nrc-card);
    border: 1.5px solid var(--nrc-border);
    border-radius: var(--nrc-radius);
    padding: var(--nrc-space-4);
    margin-bottom: var(--nrc-space-4);
    align-items: center;
    gap: var(--nrc-space-3);
    cursor: pointer;
    font-size: var(--nrc-font-base);
    color: var(--nrc-text);
    text-align: left;
}
.nrc-summary-mobile-toggle__label {
    font-weight: 700;
    flex: 1 1 auto;
}
.nrc-summary-mobile-toggle__total {
    font-weight: 800;
    color: var(--nrc-primary);
    font-variant-numeric: tabular-nums;
}
.nrc-summary-mobile-toggle__chevron {
    flex: 0 0 auto;
    transition: transform .2s ease;
    color: var(--nrc-text-muted);
}
.nrc-summary-mobile-toggle[aria-expanded="true"] .nrc-summary-mobile-toggle__chevron {
    transform: rotate(180deg);
}

@media (max-width: 991.98px) {
    .nrc-summary-mobile-toggle { display: flex; }
    .nrc-grid__aside .nrc-summary { display: none; }
    .nrc-grid__aside .nrc-summary.is-open { display: block; position: static; }
    /* Move aside to top of mobile flow */
    .nrc-grid { display: flex; flex-direction: column; }
    .nrc-grid__aside { order: -1; }
}

/* ============================================================================
   PHASE 2 — Visual selectors: tier badges, option cards, locations, RAID pills
   ============================================================================ */

/* ----- Tier badges ---------------------------------------------------------- */
.nrc-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
}
.nrc-tier-badge--budget      { background: #eceff4; color: var(--nrc-tier-budget); }
.nrc-tier-badge--popular     { background: rgba(74, 124, 255, .12); color: var(--nrc-tier-popular); }
.nrc-tier-badge--performance { background: rgba(123, 95, 231, .12); color: var(--nrc-tier-performance); }
.nrc-tier-badge--bandwidth   { background: rgba(16, 185, 129, .12); color: var(--nrc-tier-bandwidth); }
.nrc-tier-badge--cores       { background: rgba(245, 158, 11, .12); color: var(--nrc-tier-cores); }
.nrc-tier-badge--memory      { background: rgba(20, 184, 199, .12); color: var(--nrc-tier-memory); }

.nrc-tier-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Tier badge flows in the card body, above the name */
.nrc-product-card__tier {
    position: static;
}

/* Shared "chip" component — used for included DDoS, instant deploy, features */
.nrc-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 6px;
    background: var(--nrc-bg);
    color: var(--nrc-text-soft);
    border: 1px solid var(--nrc-border);
}
.nrc-chip--success {
    background: var(--nrc-success-soft);
    color: var(--nrc-success);
    border-color: rgba(20, 187, 96, .25);
}
.nrc-chip--included { background: var(--nrc-success-soft); color: var(--nrc-success); border-color: rgba(20, 187, 96, .25); }
.nrc-chip--instant  { background: rgba(245, 158, 11, .12); color: var(--nrc-warning); border-color: rgba(245, 158, 11, .25); }
.nrc-chip svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ----- Option cards (Bandwidth, Storage, generic radio-card picker) --------- */
.nrc-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--nrc-space-3);
}
.nrc-option-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--nrc-space-2);
    padding: var(--nrc-space-4);
    background: var(--nrc-card);
    border: 1.5px solid var(--nrc-border);
    border-radius: var(--nrc-radius);
    cursor: pointer;
    transition: all .15s ease;
    text-align: left;
    min-height: 90px;
    color: var(--nrc-text);
    font-family: inherit;
}
.nrc-option-card:hover {
    border-color: var(--nrc-primary);
    transform: translateY(-1px);
    box-shadow: var(--nrc-shadow);
}
.nrc-option-card.is-selected {
    border-color: var(--nrc-primary);
    background: var(--nrc-gradient-soft);
    box-shadow: 0 0 0 1px var(--nrc-primary) inset;
}
.nrc-option-card.is-selected::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--nrc-gradient) no-repeat center / 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.nrc-option-card__icon {
    width: 28px;
    height: 28px;
    color: var(--nrc-text-soft);
    flex-shrink: 0;
}
.nrc-option-card.is-selected .nrc-option-card__icon { color: var(--nrc-primary); }

.nrc-option-card__label {
    font-size: var(--nrc-font-base);
    font-weight: 700;
    color: var(--nrc-text);
    line-height: 1.3;
}
.nrc-option-card__sub {
    font-size: var(--nrc-font-xs);
    color: var(--nrc-text-muted);
    line-height: 1.3;
}
.nrc-option-card__price {
    margin-top: auto;
    font-size: var(--nrc-font-sm);
    font-weight: 700;
    color: var(--nrc-success);
}
.nrc-option-card__price--zero {
    color: var(--nrc-text-muted);
    font-weight: 500;
}
.nrc-option-card__price-label { opacity: .6; font-weight: 500; }

/* ----- Hide HostBill native field widgets inside enhanced sections --------- */
/* When my JS replaces a select with visual cards, it sets data-nrc-hidden="1"
   on the underlying <select>. HostBill/Bootstrap has selectors that override
   inline display:none, so we need !important here.
   HostBill ships an older Chosen.js that uses the `chzn-*` class prefix
   (not the modern `chosen-*`), so we target both. */
select[data-nrc-hidden="1"],
.chzn-container,
.chosen-container {
    display: none !important;
}

/* ----- Static info chip (single-option field, read-only) ------------------- */
.nrc-static-info {
    display: flex;
    align-items: center;
    gap: var(--nrc-space-3);
    padding: var(--nrc-space-4) var(--nrc-space-5);
    background: var(--nrc-bg);
    border: 1.5px solid var(--nrc-border);
    border-radius: var(--nrc-radius);
    color: var(--nrc-text);
    font-size: var(--nrc-font-base);
}
.nrc-static-info__check {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex: 0 0 20px;
    color: var(--nrc-success);
    display: block;
}
.nrc-static-info__label {
    flex: 1 1 auto;
    font-weight: 600;
    color: var(--nrc-text);
}
.nrc-static-info__price {
    font-size: var(--nrc-font-sm);
    color: var(--nrc-text-muted);
    font-weight: 500;
}

/* ----- Location card grid --------------------------------------------------- */
.nrc-location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--nrc-space-3);
}
.nrc-location-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--nrc-space-3);
    padding: var(--nrc-space-4);
    background: var(--nrc-card);
    border: 1.5px solid var(--nrc-border);
    border-radius: var(--nrc-radius);
    cursor: pointer;
    transition: all .15s ease;
    text-align: left;
    color: var(--nrc-text);
    font-family: inherit;
    min-height: 72px;
}
.nrc-location-card:hover {
    border-color: var(--nrc-primary);
    transform: translateY(-1px);
    box-shadow: var(--nrc-shadow);
}
.nrc-location-card.is-selected {
    border-color: var(--nrc-primary);
    background: var(--nrc-gradient-soft);
    box-shadow: 0 0 0 1px var(--nrc-primary) inset;
}
.nrc-location-card__flag {
    width: 36px;
    height: 27px;
    flex: 0 0 36px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--nrc-border);
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
    display: block;
}
.nrc-location-card__flag svg { display: block; width: 100%; height: 100%; }
.nrc-location-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nrc-location-card__name {
    font-size: var(--nrc-font-base);
    font-weight: 700;
    color: var(--nrc-text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nrc-location-card__country {
    font-size: 11px;
    color: var(--nrc-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1;
}

/* ----- RAID pill row (compact selector for free-choice option) ------------- */
.nrc-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nrc-space-2);
}
.nrc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--nrc-card);
    border: 1.5px solid var(--nrc-border);
    border-radius: 100px;
    font-size: var(--nrc-font-sm);
    font-weight: 600;
    color: var(--nrc-text-soft);
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
    line-height: 1;
}
.nrc-pill:hover {
    border-color: var(--nrc-primary);
    color: var(--nrc-primary);
}
.nrc-pill.is-selected {
    background: var(--nrc-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: var(--nrc-shadow-sm);
}
.nrc-pill__sub {
    font-size: 11px;
    font-weight: 500;
    opacity: .7;
}
.nrc-pill.is-selected .nrc-pill__sub { opacity: .9; color: #ffffff; }

/* ----- Add-ons section divider --------------------------------------------- */
.nrc-addons-zone {
    margin-top: var(--nrc-space-8);
    padding-top: var(--nrc-space-7);
    border-top: 1px dashed var(--nrc-border);
    position: relative;
}
.nrc-addons-zone::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 4px 16px;
    background: var(--nrc-bg);
    color: var(--nrc-text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    border: 1px dashed var(--nrc-border);
    content: 'Optional Add-ons';
}
.nrc-addons-zone .nrc-section__title { font-size: var(--nrc-font-md); }

/* ----- Product hero / "you picked" compact banner (post-selection) --------- */
.nrc-product-picker.is-collapsed .nrc-product-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    transition: all .3s ease;
}
.nrc-product-picker.is-collapsed .nrc-product-card:not(.is-selected) {
    display: none;
}
.nrc-product-picker.is-collapsed .nrc-product-card__cta-text::after {
    content: ' — click to change';
    font-weight: 500;
    opacity: .7;
}
.nrc-product-picker-change {
    display: none;
    text-align: right;
    margin-top: var(--nrc-space-2);
}
.nrc-product-picker.is-collapsed .nrc-product-picker-change { display: block; }
.nrc-product-picker-change button {
    background: none;
    border: 0;
    color: var(--nrc-primary);
    font-size: var(--nrc-font-sm);
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--nrc-radius-sm);
    transition: background .15s ease;
}
.nrc-product-picker-change button:hover { background: var(--nrc-primary-soft); }

/* Summary rail tier badge nestling */
.nrc-summary__product .nrc-tier-badge {
    margin-top: 4px;
}


.nrc .orderpage-summary.orderpage-summary-sticky {
    position: sticky !important;
    top: var(--nrc-summary-top-offset) !important;
    margin-left: 0 !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    box-shadow: var(--nrc-shadow-sm) !important;
    z-index: 10 !important;
    background: var(--nrc-card) !important;
    padding: var(--nrc-space-5) !important;
    border-radius: var(--nrc-radius-lg) !important;
    overflow: visible !important;
}
#orderpage-lastblock { height: 0 !important; display: none; }

/* ----- Responsive tweaks ---------------------------------------------------- */
@media (max-width: 767.98px) {
    .nrc-header {
        flex-direction: column;
        gap: var(--nrc-space-4);
    }
    .nrc-header__title { font-size: 26px; }
    .nrc-product-grid { grid-template-columns: 1fr; }
    .nrc-section__header { gap: var(--nrc-space-3); }
    .nrc-section__title { font-size: 18px; }
    .nrc-summary__total-value { font-size: 24px; }
}

/* ============================================================================
   NETROUTING CHECKOUT v3 — Cherry-inspired unified card shell
   ============================================================================
   This section overrides/extends the v2 styles above. The .nrc3 namespace class
   on the outer wrapper scopes all v3-specific rules so they don't leak to v2
   templates if both are used on the same instance.
   ============================================================================ */

.nrc3 {
    /* v3 inherits v2's design tokens. Duplicate them here because the v2 tokens
       are defined on `.nrc` scope, and v3 pages use `.nrc3` as the wrapper class.
       Without this block, var(--nrc-card), var(--nrc-border), etc. resolve to
       nothing and the product picker renders as transparent text. */
    --nrc-primary:       #4A7CFF;
    --nrc-primary-hover: #3562e3;
    --nrc-primary-2:     #7B5FE7;
    --nrc-primary-soft:  #edf2ff;
    --nrc-gradient:      linear-gradient(135deg, #4A7CFF 0%, #7B5FE7 100%);
    --nrc-gradient-soft: linear-gradient(135deg, rgba(74,124,255,.08) 0%, rgba(123,95,231,.08) 100%);
    --nrc-success:       #14BB60;
    --nrc-success-hover: #109b4e;
    --nrc-success-soft:  #e6faf0;
    --nrc-danger:        #e74c3c;
    --nrc-warning:       #F59E0B;

    --nrc-text:          #1a2540;
    --nrc-text-soft:     #5a6478;
    --nrc-text-muted:    #9ba0b3;
    --nrc-border:        #e4e8f0;
    --nrc-border-strong: #cbd2df;
    --nrc-bg:            #f6f8fb;
    --nrc-card:          #ffffff;

    --nrc-radius-sm:     8px;
    --nrc-radius:        12px;
    --nrc-radius-lg:     20px;

    --nrc-shadow-sm: 0 1px 2px rgba(26, 37, 64, .05);
    --nrc-shadow:    0 4px 16px -4px rgba(26, 37, 64, .08);
    --nrc-shadow-lg: 0 20px 50px -20px rgba(26, 37, 64, .25);
    --nrc-shadow-focus: 0 0 0 3px rgba(74, 124, 255, .15);

    /* v3-specific spacing for tighter card layout */
    --nrc3-card-gap: 12px;
    --nrc3-card-padding-y: 14px;
    --nrc3-card-padding-x: 16px;
    --nrc3-group-gap: 24px;
    --nrc3-title-size: 14px;
    --nrc3-desc-size: 12px;
    --nrc3-label-size: 11px;
}

/* ----- Header strip (title + subtitle + currency picker) ------------------ */
.nrc3 .nrc3-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--nrc-border);
}
.nrc3 .nrc3-header__title {
    font-size: 26px;
    font-weight: 700;
    color: var(--nrc-text);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}
.nrc3 .nrc3-header__subtitle {
    font-size: 14px;
    color: var(--nrc-text-soft);
    margin: 4px 0 0;
    flex-basis: 100%;
}
.nrc3 .nrc3-header__currency { margin-left: auto; }

/* ----- Hero strip (single-product deep link) ------------------------------ */
.nrc3 .nrc3-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 24px;
    background: var(--nrc-card);
    border: 1.5px solid var(--nrc-border);
    border-radius: var(--nrc-radius-lg);
    margin-bottom: 24px;
}
.nrc3 .nrc3-hero__body { flex: 1 1 auto; min-width: 0; }
.nrc3 .nrc3-hero__eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nrc-text-muted);
    margin-bottom: 6px;
}
.nrc3 .nrc3-hero__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--nrc-text);
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    line-height: 1.2;
}
.nrc3 .nrc3-hero__description {
    font-size: 13px;
    color: var(--nrc-text-soft);
    line-height: 1.5;
    max-width: 640px;
}
.nrc3 .nrc3-hero__price { flex-shrink: 0; text-align: right; }
.nrc3 .nrc3-hero__price-label {
    font-size: 11px;
    color: var(--nrc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 4px;
}
.nrc3 .nrc3-hero__price-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--nrc-primary);
    line-height: 1;
}
.nrc3 .nrc3-hero__price-cycle {
    font-size: 12px;
    color: var(--nrc-text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* ----- Product picker (category landing) ---------------------------------- */
.nrc3 .nrc3-product-picker { margin-bottom: 32px; }
.nrc3 .nrc3-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.nrc3 .nrc3-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--nrc-card);
    border: 1.5px solid var(--nrc-border);
    border-radius: var(--nrc-radius);
    padding: 16px;
    cursor: pointer;
    transition: all .15s ease;
    min-height: 112px;
}
.nrc3 .nrc3-product-card:hover:not(.is-outofstock) {
    border-color: var(--nrc-primary);
    transform: translateY(-1px);
    box-shadow: var(--nrc-shadow);
}
.nrc3 .nrc3-product-card.is-selected {
    border-color: var(--nrc-primary);
    background: var(--nrc-gradient);
    box-shadow: var(--nrc-shadow-lg), 0 0 0 3px rgba(74, 124, 255, .15);
}
.nrc3 .nrc3-product-card.is-selected * { color: #ffffff !important; }
.nrc3 .nrc3-product-card.is-selected .nrc-tier-badge { background: rgba(255, 255, 255, .18) !important; color: #ffffff !important; }
.nrc3 .nrc3-product-card__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.nrc3 .nrc3-product-card .nrc-tier-badge { align-self: flex-start; margin-bottom: 4px; }
.nrc3 .nrc3-product-card__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--nrc-text);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.nrc3 .nrc3-product-card__price {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.nrc3 .nrc3-product-card__price-amount {
    font-size: 17px;
    font-weight: 800;
    color: var(--nrc-primary);
}
.nrc3 .nrc3-product-card__price-cycle {
    font-size: 11px;
    color: var(--nrc-text-muted);
    font-weight: 500;
}
.nrc3 .nrc3-product-card__ribbon {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--nrc-primary);
    color: #fff;
    border-radius: 100px;
}
.nrc3 .nrc3-product-card__outofstock {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    background: var(--nrc-danger);
    color: #fff;
    border-radius: 100px;
}

/* ----- Group label (HARDWARE, SOFTWARE, NETWORK) -------------------------- */
.nrc3 .nrc3-group {
    margin-bottom: var(--nrc3-group-gap);
}
.nrc3 .nrc3-group:last-child { margin-bottom: 0; }
.nrc3 .nrc3-group__label {
    font-size: var(--nrc3-label-size);
    font-weight: 700;
    color: var(--nrc-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 10px 4px;
}

/* ----- Unified config card shell ------------------------------------------ */
.nrc3 .nrc3-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 16px;
    padding: var(--nrc3-card-padding-y) var(--nrc3-card-padding-x);
    background: var(--nrc-card);
    border: 1.5px solid var(--nrc-border);
    border-radius: var(--nrc-radius);
    margin-bottom: var(--nrc3-card-gap);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.nrc3 .nrc3-card:last-child { margin-bottom: 0; }
.nrc3 .nrc3-card:hover {
    border-color: var(--nrc-border-strong);
}
.nrc3 .nrc3-card.is-active {
    border-color: var(--nrc-primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 255, .08);
}

/* Head column: title + description */
.nrc3 .nrc3-card__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.nrc3 .nrc3-card__title {
    font-size: var(--nrc3-title-size);
    font-weight: 700;
    color: var(--nrc-text);
    margin: 0;
    line-height: 1.35;
}
.nrc3 .nrc3-card__title .nrc3-required {
    color: var(--nrc-danger);
    font-weight: 400;
}
.nrc3 .nrc3-card__description {
    font-size: var(--nrc3-desc-size);
    color: var(--nrc-text-soft);
    line-height: 1.45;
}

/* Control column: whatever HostBill renders (select, radio, input) */
.nrc3 .nrc3-card__control {
    min-width: 180px;
    max-width: 100%;
    justify-self: end;
    align-self: center;
}

/* Checkmark indicator (top-right corner when card is active) */
.nrc3 .nrc3-card__check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--nrc-primary);
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.nrc3 .nrc3-card.is-active .nrc3-card__check { display: flex; }
.nrc3 .nrc3-card__check svg {
    width: 12px !important;
    height: 12px !important;
    display: block;
}

/* When the card has a wide control (OS grid, location grid with many options),
   break to a single-column layout: head on top, control below. */
.nrc3 .nrc3-card.nrc3-card--wide {
    grid-template-columns: 1fr;
}
.nrc3 .nrc3-card.nrc3-card--wide .nrc3-card__control {
    justify-self: stretch;
    min-width: 0;
    width: 100%;
}

/* Hide the old v2 step indicator inside v3 cards */
.nrc3 .nrc3-card .nrc3-step,
.nrc3 .nrc3-card .nrc-step { display: none; }

/* ----- Customize toggle --------------------------------------------------- */
.nrc3 .nrc3-customize {
    margin: 16px 0;
    padding: 14px 16px;
    background: var(--nrc-card);
    border: 1.5px solid var(--nrc-border);
    border-radius: var(--nrc-radius);
}
.nrc3 .nrc3-customize__toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    margin: 0;
}
.nrc3 .nrc3-customize__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.nrc3 .nrc3-customize__switch {
    position: relative;
    flex-shrink: 0;
    width: 42px;
    height: 24px;
    background: var(--nrc-border-strong);
    border-radius: 100px;
    transition: background .2s ease;
}
.nrc3 .nrc3-customize__switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform .2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.nrc3 .nrc3-customize__input:checked + .nrc3-customize__switch {
    background: var(--nrc-primary);
}
.nrc3 .nrc3-customize__input:checked + .nrc3-customize__switch::after {
    transform: translateX(18px);
}
.nrc3 .nrc3-customize__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nrc3 .nrc3-customize__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--nrc-text);
}
.nrc3 .nrc3-customize__subtitle {
    font-size: 12px;
    color: var(--nrc-text-soft);
    line-height: 1.4;
}
.nrc3 .nrc3-customize__badge {
    flex-shrink: 0;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(123, 95, 231, .12);
    color: var(--nrc-primary-2);
    border-radius: 100px;
}

/* Dimmed state for the customize panel when the toggle is OFF */
.nrc3 .nrc3-customize-panel {
    transition: opacity .2s ease;
}
.nrc3 .nrc3-customize-panel.is-dimmed {
    opacity: 0.4;
    pointer-events: none;
}

/* ----- Control styling: HostBill native widgets inside cards ------------- */
/* The select / radios / pills rendered inside .nrc3-card__control need to sit
   cleanly next to the title. Override v2 rules that stretch full width. */
.nrc3 .nrc3-card__control select {
    height: 36px;
    padding: 0 32px 0 12px;
    font-size: 13px;
    border: 1px solid var(--nrc-border-strong);
    border-radius: var(--nrc-radius-sm);
    background: var(--nrc-card);
    min-width: 180px;
}

/* Grids rendered by JS inside wide cards */
.nrc3 .nrc3-card__control .nrc-location-grid,
.nrc3 .nrc3-card__control .nrc-option-grid,
.nrc3 .nrc3-card__control .nrc-icon-grid,
.nrc3 .nrc3-card__control .nrc-pill-row {
    width: 100%;
    margin: 0;
}

/* ----- Addons zone inside the v3 layout ---------------------------------- */
.nrc3 .nrc3-section.bindcart_js {
    /* Fall-through for sections that don't use the card shell (addons,
       subproducts, hostname). Reuse v2 styling but inside the v3 container. */
}

/* ----- Hide legacy nrc-section__header step numbers in v3 ---------------- */
.nrc3 .nrc3-card .nrc3-section__header,
.nrc3 .nrc3-card .nrc-section__header {
    display: none;
}

/* ----- Responsive: collapse cards on narrow viewports -------------------- */
@media (max-width: 680px) {
    .nrc3 .nrc3-card {
        grid-template-columns: 1fr;
    }
    .nrc3 .nrc3-card__control {
        justify-self: stretch;
        min-width: 0;
        width: 100%;
    }
    .nrc3 .nrc3-card__check {
        top: 10px;
        right: 10px;
    }
    .nrc3 .nrc3-hero {
        flex-direction: column;
    }
    .nrc3 .nrc3-hero__price {
        text-align: left;
        padding-top: 8px;
        border-top: 1px solid var(--nrc-border);
        width: 100%;
    }
}

/* ============================================================================
   v3 round 1.5 — fixes from first live deployment
   ============================================================================
   Issues addressed:
   - Group labels too tight, cards touching
   - Hostname/addons/SSH step numbers leaking through
   - Active card checkmark overlapping visual grids
   - Wide cards not stacking title above control
   - Addons zone needs v3 card styling
   - Summary rail needs basic styling
   - Hero/header spacing
   ============================================================================ */

/* ----- Kill ALL legacy step numbers inside v3 wrapper -------------------- */
.nrc3 .nrc3-step,
.nrc3 .cart-products-scount,
.nrc3 .cart-products-scount_js,
.nrc3 .nrc-step {
    display: none !important;
}

/* Hide legacy section headers that come from v2-copied tpl blocks we didn't convert */
.nrc3 .nrc3-section__header,
.nrc3 .nrc3-section__title:not(.nrc3-card__title) {
    /* Do not hide these outright — some are still used for subproducts and
       domain config. Just strip the step-number space. */
}

/* ----- Group label spacing ------------------------------------------------ */
.nrc3 .nrc3-group {
    margin-bottom: 28px;
}
.nrc3 .nrc3-group__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--nrc-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 12px 2px;
    padding: 0;
}

/* ----- Card shell refinements -------------------------------------------- */
.nrc3 .nrc3-card {
    /* Stronger visible border so the card outline is obvious */
    border-width: 1.5px;
    padding: 16px 18px;
    margin-bottom: 10px;
}
.nrc3 .nrc3-card.is-active {
    border-color: var(--nrc-primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 255, .12);
}

/* ----- Checkmark corner — only on narrow (title+control) layout --------- */
/* When the card is wide (grid inside), the grid has its own selection indicator.
   A second top-right checkmark is redundant and visually clashes. */
.nrc3 .nrc3-card.nrc3-card--wide .nrc3-card__check {
    display: none !important;
}
.nrc3 .nrc3-card__check {
    top: 14px;
    right: 14px;
    width: 22px;
    height: 22px;
}

/* ----- Wide card: title on top, visual grid below ----------------------- */
.nrc3 .nrc3-card--wide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
}
.nrc3 .nrc3-card--wide .nrc3-card__head {
    margin-bottom: 14px;
}
.nrc3 .nrc3-card--wide .nrc3-card__control {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
}
/* Grids injected by v2 JS inside wide cards must use full control width */
.nrc3 .nrc3-card--wide .nrc-location-grid,
.nrc3 .nrc3-card--wide .nrc-option-grid,
.nrc3 .nrc3-card--wide .nrc-icon-grid,
.nrc3 .nrc3-card--wide .nrc-pill-row,
.nrc3 .nrc3-card--wide .nrc-static-info {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Fallback: auto-detect wide layout by looking for grid children inside the
   control column. This runs WITHOUT needing my JS classifier and fixes the
   overlap visible in the first screenshot. */
.nrc3 .nrc3-card:has(.nrc3-card__control .nrc-location-grid),
.nrc3 .nrc3-card:has(.nrc3-card__control .nrc-option-grid),
.nrc3 .nrc3-card:has(.nrc3-card__control .nrc-icon-grid),
.nrc3 .nrc3-card:has(.nrc3-card__control .nrc-pill-row) {
    grid-template-columns: 1fr;
}
.nrc3 .nrc3-card:has(.nrc3-card__control .nrc-location-grid) .nrc3-card__head,
.nrc3 .nrc3-card:has(.nrc3-card__control .nrc-option-grid) .nrc3-card__head,
.nrc3 .nrc3-card:has(.nrc3-card__control .nrc-icon-grid) .nrc3-card__head,
.nrc3 .nrc3-card:has(.nrc3-card__control .nrc-pill-row) .nrc3-card__head {
    margin-bottom: 14px;
}
.nrc3 .nrc3-card:has(.nrc3-card__control .nrc-location-grid) .nrc3-card__control,
.nrc3 .nrc3-card:has(.nrc3-card__control .nrc-option-grid) .nrc3-card__control,
.nrc3 .nrc3-card:has(.nrc3-card__control .nrc-icon-grid) .nrc3-card__control,
.nrc3 .nrc3-card:has(.nrc3-card__control .nrc-pill-row) .nrc3-card__control {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
}
/* Hide the redundant check corner when grid is inside */
.nrc3 .nrc3-card:has(.nrc3-card__control .nrc-location-grid) .nrc3-card__check,
.nrc3 .nrc3-card:has(.nrc3-card__control .nrc-option-grid) .nrc3-card__check,
.nrc3 .nrc3-card:has(.nrc3-card__control .nrc-icon-grid) .nrc3-card__check,
.nrc3 .nrc3-card:has(.nrc3-card__control .nrc-pill-row) .nrc3-card__check {
    display: none;
}

/* ----- Hostname input card ----------------------------------------------- */
.nrc3 .nrc3-input {
    height: 38px;
    padding: 0 14px;
    font-size: 14px;
    border: 1.5px solid var(--nrc-border-strong);
    border-radius: var(--nrc-radius-sm);
    background: var(--nrc-card);
    color: var(--nrc-text);
    min-width: 280px;
    width: 100%;
    max-width: 380px;
}
.nrc3 .nrc3-input:focus {
    outline: none;
    border-color: var(--nrc-primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 255, .12);
}

/* ----- Addons — card styling --------------------------------------------- */
.nrc3 .nrc3-addons-zone {
    margin-top: 32px;
}
.nrc3 .nrc3-addons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 10px;
}
.nrc3 .nrc3-card--addon {
    padding: 14px 16px;
    margin-bottom: 0;
    cursor: pointer;
}
.nrc3 .nrc3-card--addon:hover {
    border-color: var(--nrc-primary);
}
.nrc3 .nrc3-card--addon.is-active {
    background: rgba(74, 124, 255, .04);
}
.nrc3 .nrc3-addon__label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}
.nrc3 .nrc3-addon__checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--nrc-primary);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}
.nrc3 .nrc3-card--addon .nrc3-card__title {
    font-size: 14px;
    font-weight: 600;
}
.nrc3 .nrc3-card--addon .nrc3-card__description {
    margin-top: 4px;
    margin-left: 28px;
    font-size: 12px;
}
.nrc3 .nrc3-addon__pricing {
    text-align: right;
    min-width: 0;
}
.nrc3 .nrc3-addon__price-free {
    color: var(--nrc-success);
    font-weight: 700;
    font-size: 13px;
}
.nrc3 .nrc3-addon__price-once {
    font-weight: 700;
    font-size: 14px;
    color: var(--nrc-text);
}
.nrc3 .nrc3-addon__price-cycle,
.nrc3 .nrc3-addon__price-setup {
    font-size: 11px;
    color: var(--nrc-text-muted);
    display: block;
}
.nrc3 .nrc3-addon__cycle-select {
    height: 32px;
    padding: 0 28px 0 10px;
    font-size: 12px;
    border: 1px solid var(--nrc-border-strong);
    border-radius: var(--nrc-radius-sm);
    min-width: 140px;
}

/* ----- Summary rail — basic styling inside v3 --------------------------- */
.nrc3 .nrc3-summary {
    margin-top: 32px;
    padding: 20px 24px;
    background: var(--nrc-card);
    border: 1.5px solid var(--nrc-border);
    border-radius: var(--nrc-radius);
}
.nrc3 .nrc3-summary__header {
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--nrc-border);
}
.nrc3 .nrc3-summary__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--nrc-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}
.nrc3 .nrc3-summary__product {
    margin-bottom: 12px;
}
.nrc3 .nrc3-summary__product-category {
    font-size: 11px;
    color: var(--nrc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.nrc3 .nrc3-summary__product-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--nrc-text);
    margin-top: 2px;
}
.nrc3 .nrc3-summary__lines {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}
.nrc3 .nrc3-summary__line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
    color: var(--nrc-text-soft);
}
.nrc3 .nrc3-summary__line-value {
    font-weight: 600;
    color: var(--nrc-text);
}
.nrc3 .nrc3-summary__line--option {
    font-size: 12px;
    color: var(--nrc-text-muted);
    padding: 2px 0;
}
.nrc3 .nrc3-summary__divider {
    border: 0;
    border-top: 1px solid var(--nrc-border);
    margin: 12px 0;
}
.nrc3 .nrc3-summary__total {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 2px solid var(--nrc-border);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.nrc3 .nrc3-summary__total .label {
    font-size: 13px;
    font-weight: 600;
    color: var(--nrc-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.nrc3 .nrc3-summary__total .amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--nrc-primary);
}
.nrc3 .nrc3-summary__submit {
    margin-top: 16px;
}
.nrc3 .nrc3-summary__submit button,
.nrc3 .nrc3-summary__submit .btn,
.nrc3 .nrc3-summary__submit .btn-success {
    width: 100%;
    padding: 12px 20px;
    background: var(--nrc-success);
    color: #ffffff;
    border: 0;
    border-radius: var(--nrc-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}
.nrc3 .nrc3-summary__submit button:hover,
.nrc3 .nrc3-summary__submit .btn:hover,
.nrc3 .nrc3-summary__submit .btn-success:hover {
    background: var(--nrc-success-hover);
}

/* ----- SSH Public Key card — let it breathe as a wide card ------------- */
.nrc3 .nrc3-card.cf-sshkeyselect {
    grid-template-columns: 1fr;
}
.nrc3 .nrc3-card.cf-sshkeyselect .nrc3-card__head {
    margin-bottom: 12px;
}
.nrc3 .nrc3-card.cf-sshkeyselect .nrc3-card__control {
    justify-self: stretch;
    width: 100%;
}
.nrc3 .nrc3-card.cf-sshkeyselect textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    border: 1.5px solid var(--nrc-border-strong);
    border-radius: var(--nrc-radius-sm);
    resize: vertical;
}

/* ----- Customize panel dim state needs more specificity --------------- */
/* Use !important because .nrc3-card and .nrc3-group descendants have their
   own opacity/transition rules that would otherwise win. */
.nrc3 .nrc3-customize-panel.is-dimmed {
    opacity: 0.4 !important;
    pointer-events: none !important;
    filter: saturate(0.5);
    transition: opacity .2s ease, filter .2s ease;
}
.nrc3 .nrc3-customize-panel.is-dimmed .nrc3-card,
.nrc3 .nrc3-customize-panel.is-dimmed .nrc3-group,
.nrc3 .nrc3-customize-panel.is-dimmed .nrc3-group__label {
    opacity: 1 !important;  /* they inherit the parent's 0.4 visually */
    pointer-events: none !important;
}

/* ----- Hero strip spacing fix ---------------------------------------- */
.nrc3 .nrc3-header {
    padding-top: 12px;
}

/* ============================================================================
   v3 round 1.6 — final polish
   ============================================================================
   - Addon cards: flip layout so head takes priority, pricing gets fixed width
   - Addon pricing: when active, the dropdown/price block goes BELOW the title
     (cleaner than fighting for horizontal space with long addon names)
   - Option cards: fix vertical centering of label + price chip
   - Location cards: fix flag size so NL/DE/RO/SE subtitles don't clip
   - Hide mobile summary toggle on desktop
   ============================================================================ */

/* ----- Addon card: stack head above pricing (no more narrow-column wrap) */
.nrc3 .nrc3-card--addon {
    display: block;
    padding: 14px 16px;
}
.nrc3 .nrc3-card--addon .nrc3-card__head {
    width: 100%;
}
.nrc3 .nrc3-card--addon .nrc3-card__title {
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.35;
}
.nrc3 .nrc3-card--addon .nrc3-addon__label {
    align-items: flex-start;
}
.nrc3 .nrc3-card--addon .nrc3-card__description {
    margin-left: 28px;
    margin-top: 4px;
    line-height: 1.45;
}
/* Pricing block: sits below the head section when addon is active,
   inherits the description indent so it aligns under the title */
.nrc3 .nrc3-card--addon .nrc3-card__control {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 0;
    padding-left: 28px;
    justify-self: stretch;
    align-self: stretch;
    text-align: left;
}
.nrc3 .nrc3-card--addon .nrc3-addon__pricing {
    display: block;
    width: 100%;
    text-align: left;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--nrc-border);
}
.nrc3 .nrc3-card--addon:not(.is-active) .nrc3-addon__pricing {
    display: none !important;
}
.nrc3 .nrc3-card--addon.is-active .nrc3-addon__pricing {
    display: block !important;
}
.nrc3 .nrc3-card--addon .nrc3-addon__cycle-select {
    width: 100%;
    max-width: 360px;
    min-width: 0;
}
.nrc3 .nrc3-card--addon .nrc3-addon__price-free,
.nrc3 .nrc3-card--addon .nrc3-addon__price-once,
.nrc3 .nrc3-card--addon .nrc3-addon__price-cycle,
.nrc3 .nrc3-card--addon .nrc3-addon__price-setup {
    display: inline-block;
    margin-right: 6px;
}

/* ----- Option cards (Memory 128GB, Storage 2×1TB, Bandwidth 10G, etc.)
   The v2 JS injects these as .nrc-option-card elements with label + price.
   Fix vertical centering and ensure the "Included" chip sits on the baseline
   rather than anchored to a card corner. */
.nrc3 .nrc-option-card,
.nrc3 .nrc-icon-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 12px 14px !important;
    min-height: 64px !important;
}
.nrc3 .nrc-option-card__label,
.nrc3 .nrc-icon-card__label {
    margin: 0 !important;
    line-height: 1.3 !important;
}
.nrc3 .nrc-option-card__price,
.nrc3 .nrc-option-card__sub {
    margin: 0 !important;
    line-height: 1.3 !important;
}
/* Selected option card: text stays dark on the light gradient-soft background.
   Label gets primary blue emphasis, price gets muted color. */
.nrc3 .nrc-option-card.is-selected .nrc-option-card__price,
.nrc3 .nrc-option-card.is-selected .nrc-option-card__sub {
    color: var(--nrc-primary) !important;
    opacity: 0.7;
}

/* ----- Location cards: flag sized correctly, body flex-aligned ---------- */
.nrc3 .nrc-location-card {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    min-height: 56px !important;
}
.nrc3 .nrc-location-card__flag {
    width: 32px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    border-radius: 3px !important;
    overflow: hidden !important;
    border: 0.5px solid var(--nrc-border) !important;
}
.nrc3 .nrc-location-card__flag svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}
.nrc3 .nrc-location-card__body {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}
.nrc3 .nrc-location-card__name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--nrc-text) !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.nrc3 .nrc-location-card__country {
    font-size: 10px !important;
    font-weight: 500 !important;
    color: var(--nrc-text-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    line-height: 1.25 !important;
}
.nrc3 .nrc-location-card.is-selected .nrc-location-card__name,
.nrc3 .nrc-location-card.is-selected .nrc-location-card__country {
    color: var(--nrc-primary) !important;
}

/* ----- Hide mobile summary toggle on desktop ---------------------------- */
@media (min-width: 881px) {
    .nrc3 .nrc3-summary-mobile-toggle,
    .nrc3 .nrc-summary-mobile-toggle,
    #nrc3-summary-mobile-toggle,
    #nrc-summary-mobile-toggle {
        display: none !important;
    }
}

/* ============================================================================
   v3 round 2 — final polish batch
   ============================================================================ */

/* ----- Per-card dimming (replaces panel-level dim) ----------------------- */
.nrc3 .nrc3-card--dimmed {
    opacity: 0.35 !important;
    pointer-events: none !important;
    filter: saturate(0.3);
    transition: opacity .25s ease, filter .25s ease;
}
.nrc3 .nrc3-addons-zone.nrc3-card--dimmed {
    opacity: 0.35 !important;
    pointer-events: none !important;
    filter: saturate(0.3);
}

/* ----- Selected option card text readability ----------------------------- */
/* The selected card uses --nrc-gradient-soft (very light tint). Text should
   stay dark — only the label gets a slight primary-color boost. */
.nrc3 .nrc-option-card.is-selected .nrc-option-card__label {
    color: var(--nrc-primary) !important;
    font-weight: 800 !important;
}
.nrc3 .nrc-option-card.is-selected .nrc-option-card__price--zero {
    color: var(--nrc-primary) !important;
    opacity: 0.7;
}
.nrc3 .nrc-option-card.is-selected .nrc-option-card__icon {
    color: var(--nrc-primary) !important;
}

/* ----- Cart summary — constrained widths --------------------------------- */
.nrc3 .nrc3-summary .orderpage-summary_bcycle,
.nrc3 .nrc3-summary .orderpage-summary_bcycle select,
.nrc3 .nrc3-summary__bcycle,
.nrc3 .nrc3-summary__bcycle select {
    max-width: 380px;
}
.nrc3 .nrc3-summary .orderpage-summary_bcycle select,
.nrc3 .nrc3-summary__bcycle select {
    height: 40px;
    padding: 0 36px 0 14px;
    font-size: 14px;
    border: 1.5px solid var(--nrc-border-strong);
    border-radius: var(--nrc-radius-sm);
    margin-bottom: 12px;
}
.nrc3 .nrc3-summary__content input[type="text"],
.nrc3 .nrc3-summary .promo-input,
.nrc3 .orderpage-summary-content input[type="text"] {
    max-width: 380px;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    border: 1.5px solid var(--nrc-border);
    border-radius: var(--nrc-radius-sm);
    margin-bottom: 12px;
}
.nrc3 .nrc3-summary__submit,
.nrc3 .orderpage-summary_submit {
    margin-top: 20px;
}
.nrc3 .nrc3-summary__submit button,
.nrc3 .nrc3-summary__submit .btn,
.nrc3 .nrc3-summary__submit .btn-success,
.nrc3 .orderpage-summary_submit button,
.nrc3 .orderpage-summary_submit .btn,
.nrc3 .orderpage-summary_submit .btn-success {
    max-width: 380px;
    width: 100%;
    padding: 14px 24px;
    background: var(--nrc-success) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: var(--nrc-radius-sm) !important;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.nrc3 .nrc3-summary__submit button:hover,
.nrc3 .nrc3-summary__submit .btn:hover,
.nrc3 .nrc3-summary__submit .btn-success:hover,
.nrc3 .orderpage-summary_submit button:hover,
.nrc3 .orderpage-summary_submit .btn:hover,
.nrc3 .orderpage-summary_submit .btn-success:hover {
    background: var(--nrc-success-hover) !important;
}
/* Total line */
.nrc3 .nrc3-summary__total,
.nrc3 .orderpage-summary_total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0 8px;
    border-top: 2px solid var(--nrc-border);
    margin-top: 12px;
    font-size: 16px;
    font-weight: 800;
    color: var(--nrc-text);
}

/* ----- Hostname FQDN validation ----------------------------------------- */
.nrc3 .nrc3-hostname-error {
    margin-top: 6px;
    font-size: 12px;
    color: var(--nrc-danger);
    font-weight: 500;
}
.nrc3 .nrc3-input--error {
    border-color: var(--nrc-danger) !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, .12) !important;
}

/* ----- Mobile summary improvements -------------------------------------- */
@media (max-width: 880px) {
    .nrc3 .nrc3-summary {
        margin-top: 24px;
        padding: 16px;
    }
    .nrc3 .nrc3-summary .orderpage-summary_bcycle select,
    .nrc3 .nrc3-summary__bcycle select,
    .nrc3 .nrc3-summary__content input[type="text"],
    .nrc3 .orderpage-summary-content input[type="text"],
    .nrc3 .nrc3-summary__submit button,
    .nrc3 .orderpage-summary_submit button {
        max-width: 100%;
        width: 100%;
    }
    .nrc3 .nrc3-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 8px;
    }
    .nrc3 .nrc3-product-card {
        padding: 12px;
        min-height: 90px;
    }
    .nrc3 .nrc3-product-card__name {
        font-size: 13px;
    }
    .nrc3 .nrc3-product-card__price-amount {
        font-size: 14px;
    }
    .nrc3 .nrc3-card {
        padding: 12px 14px;
    }
    .nrc3 .nrc3-card__title {
        font-size: 13px;
    }
    .nrc3 .nrc3-addons {
        grid-template-columns: 1fr;
    }
    /* Mobile summary toggle styling */
    .nrc3 .nrc3-summary-mobile-toggle,
    .nrc3 .nrc-summary-mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        background: var(--nrc-card);
        border: 1.5px solid var(--nrc-border);
        border-radius: var(--nrc-radius);
        margin-top: 16px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 700;
        color: var(--nrc-text);
    }
}

/* ----- Customize badge visual states ------------------------------------- */
.nrc3 .nrc3-customize__badge {
    flex-shrink: 0;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    transition: background .2s ease, color .2s ease;
}

/* ============================================================================
   v3 round 2.1 — OS collapse + mobile summary
   ============================================================================ */

/* ----- OS icon grid: collapsed cards hidden ------------------------------ */
.nrc3 .nrc-icon-card--collapsed {
    display: none !important;
}
.nrc3 .nrc-os-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: var(--nrc-bg);
    border: 1.5px dashed var(--nrc-border-strong);
    border-radius: var(--nrc-radius);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--nrc-primary);
    transition: all .15s ease;
    min-height: 80px;
}
.nrc3 .nrc-os-expand:hover {
    background: var(--nrc-primary-soft);
    border-color: var(--nrc-primary);
    border-style: solid;
}
.nrc3 .nrc-os-expand__count {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nrc3 .nrc-os-expand__count::before {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--nrc-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

/* ----- Mobile: always show summary expanded, hide toggle ----------------- */
.nrc3 .nrc3-summary-mobile-toggle,
.nrc3 .nrc-summary-mobile-toggle,
#nrc3-summary-mobile-toggle,
#nrc-summary-mobile-toggle {
    display: none !important;
}

/* ----- Account type selector (signup form) ------------------------------ */
.nrc3-signup-type {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--nrc-border, #e4e8f0);
}
.nrc3-signup-type__label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--nrc-text-muted, #9ba0b3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.nrc3-signup-type__options {
    display: flex;
    gap: 12px;
}
.nrc3-signup-type__option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--nrc-card, #ffffff);
    border: 1.5px solid var(--nrc-border, #e4e8f0);
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s ease;
    margin: 0;
}
.nrc3-signup-type__option:hover {
    border-color: var(--nrc-primary, #4A7CFF);
}
.nrc3-signup-type__option.is-selected {
    border-color: var(--nrc-primary, #4A7CFF);
    background: rgba(74, 124, 255, .06);
    box-shadow: 0 0 0 3px rgba(74, 124, 255, .1);
}
.nrc3-signup-type__option input[type="radio"] {
    display: none;
}
.nrc3-signup-type__icon {
    flex-shrink: 0;
    color: var(--nrc-text-muted, #9ba0b3);
}
.nrc3-signup-type__option.is-selected .nrc3-signup-type__icon {
    color: var(--nrc-primary, #4A7CFF);
}
.nrc3-signup-type__text {
    font-size: 15px;
    font-weight: 700;
    color: var(--nrc-text, #1a2540);
}
.nrc3-signup-type__option.is-selected .nrc3-signup-type__text {
    color: var(--nrc-primary, #4A7CFF);
}
@media (max-width: 480px) {
    .nrc3-signup-type__options {
        flex-direction: column;
    }
}

/* ----- Hidden config options (Deployment Type driven by toggle) --------- */
.nrc3 .nrc3-card--hidden,
.nrc3 .nrc3-card[data-nrc-field*="deployment"] {
    display: none !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
