/* JexMac — order / configurator page */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes cfg-spin {
    to { transform: rotate(360deg); }
}

@keyframes cfg-scan {
    0% { transform: translateY(-100%); opacity: 0; }
    15% { opacity: 0.6; }
    85% { opacity: 0.6; }
    100% { transform: translateY(400%); opacity: 0; }
}

@keyframes cfg-orbit {
    to { transform: rotate(360deg); }
}

.or-spin { animation: cfg-spin 1s linear infinite; flex-shrink: 0; }

/* ── Intro hero ── */

.cfg-page section {
    padding: 80px 0;
}

.cfg-intro {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.cfg-intro .container {
    padding-top: 160px;
    padding-bottom: 80px;
}

.cfg-intro-glow {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.14) 0%, transparent 65%);
    filter: blur(70px);
    pointer-events: none;
}

.cfg-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.cfg-crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cfg-crumb a {
    color: rgba(0, 240, 255, 0.75);
    transition: color 0.25s;
}

.cfg-crumb a:hover { color: var(--neon-blue); }

.cfg-crumb-current { color: rgba(255, 255, 255, 0.5); }

.cfg-tag {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    background: rgba(0, 240, 255, 0.06);
    color: var(--neon-blue);
    font-family: var(--font-tech);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
}

.cfg-intro h1 {
    font-family: var(--font-tech);
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.18;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.cfg-intro-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 28px;
}

.cfg-intro-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
}

.cfg-intro-points li {
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(13, 19, 36, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.12);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cfg-intro-points strong {
    color: var(--neon-blue);
    font-family: var(--font-code);
    font-weight: 700;
}

.cfg-intro-points a {
    color: rgba(0, 240, 255, 0.8);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Device preview card */

.cfg-device-card {
    position: relative;
    padding: 28px 28px 24px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(13, 19, 36, 0.92) 0%, rgba(5, 9, 20, 0.96) 100%);
    border: 1px solid rgba(0, 240, 255, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.cfg-device-orbit {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    pointer-events: none;
}

.cfg-device-orbit span {
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-top-color: rgba(0, 240, 255, 0.35);
    border-radius: 50%;
    animation: cfg-orbit 8s linear infinite;
}

.cfg-device-orbit span:nth-child(2) {
    inset: 14px;
    border-top-color: rgba(138, 43, 226, 0.4);
    animation-duration: 12s;
    animation-direction: reverse;
}

.cfg-device-orbit span:nth-child(3) {
    inset: 28px;
    border-top-color: rgba(255, 255, 255, 0.15);
    animation-duration: 16s;
}

.cfg-device-chip {
    display: inline-block;
    margin-bottom: 8px;
    font-family: var(--font-tech);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: var(--neon-purple);
}

.cfg-device-head h2 {
    font-family: var(--font-tech);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
}

.cfg-device-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    margin-bottom: 18px;
}

.cfg-device-specs dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.cfg-device-specs dd {
    font-family: var(--font-code);
    font-size: 0.88rem;
    color: #fff;
}

.cfg-device-note {
    font-size: 0.8rem;
    color: rgba(0, 240, 255, 0.65);
    padding-top: 16px;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
}

/* ── Workspace ── */

.cfg-workspace {
    padding-top: 0;
    padding-bottom: 100px;
}

.cfg-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}

.cfg-stream {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cfg-stage {
    padding: 32px;
    border-radius: 16px;
    background: rgba(13, 19, 36, 0.55);
    border: 1px solid rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(8px);
}

.cfg-stage-head {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}

.cfg-stage-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.22);
    color: var(--neon-blue);
}

.cfg-stage-kicker {
    display: block;
    font-family: var(--font-tech);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    color: rgba(138, 43, 226, 0.85);
    margin-bottom: 6px;
}

.cfg-stage-title {
    font-family: var(--font-tech);
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.cfg-stage-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cfg-stage-foot {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.cfg-stage-foot svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: rgba(0, 240, 255, 0.6);
}

/* Region nodes */

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

.cfg-node-opt { cursor: pointer; }

.cfg-node-face {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px 16px;
    border-radius: 12px;
    background: rgba(5, 9, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    text-align: center;
}

.cfg-node-flag { font-size: 1.6rem; line-height: 1; }

.cfg-node-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}

.cfg-node-zone {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cfg-node-ring {
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    border: 2px solid transparent;
    pointer-events: none;
    transition: border-color 0.25s;
}

.cfg-node-opt:hover .cfg-node-face {
    border-color: rgba(0, 240, 255, 0.25);
    transform: translateY(-2px);
}

.cfg-node-opt input:checked + .cfg-node-face {
    border-color: var(--neon-blue);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.15);
}

.cfg-node-opt input:checked + .cfg-node-face .cfg-node-ring {
    border-color: var(--neon-blue);
}

.cfg-node-opt input:checked + .cfg-node-face .cfg-node-name {
    color: var(--neon-blue);
}

/* Billing cycle track */

.cfg-cycle-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    align-items: stretch;
}

.cfg-cycle-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

.cfg-cycle-opt {
    position: relative;
    z-index: 1;
    cursor: pointer;
    display: flex;
    min-width: 0;
    height: 100%;
}

.cfg-cycle-face {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    width: 100%;
    padding: 28px 10px 18px;
    border-radius: 12px;
    background: rgba(5, 9, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s;
    text-align: center;
    min-height: 132px;
    overflow: visible;
}

.cfg-cycle-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    background: rgba(0, 240, 255, 0.15);
    color: var(--neon-blue);
    border: 1px solid rgba(0, 240, 255, 0.35);
}

.cfg-cycle-badge--hot {
    background: rgba(251, 146, 60, 0.18);
    color: #fdba74;
    border-color: rgba(251, 146, 60, 0.45);
}

.cfg-cycle-badge--save {
    background: rgba(138, 43, 226, 0.2);
    color: #c4b5fd;
    border-color: rgba(138, 43, 226, 0.45);
}

.cfg-cycle-label {
    font-family: var(--font-tech);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    min-height: 1.2em;
}

.cfg-cycle-price {
    font-family: var(--font-code);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    min-height: 1.3em;
}

.cfg-cycle-hint {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.4;
    width: 100%;
    min-height: calc(2 * 1.4 * 0.68rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cfg-cycle-opt:hover .cfg-cycle-face {
    border-color: rgba(0, 240, 255, 0.3);
}

.cfg-cycle-opt input:checked + .cfg-cycle-face {
    border-color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.06);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.12);
}

.cfg-cycle-opt input:checked + .cfg-cycle-face .cfg-cycle-label,
.cfg-cycle-opt input:checked + .cfg-cycle-face .cfg-cycle-price {
    color: var(--neon-blue);
}

/* Storage deck */

.cfg-storage-deck {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.cfg-storage-card { cursor: pointer; }

.cfg-storage-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 20px 16px;
    border-radius: 12px;
    background: rgba(5, 9, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s;
}

.cfg-storage-tier {
    font-family: var(--font-tech);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    color: rgba(138, 43, 226, 0.8);
}

.cfg-storage-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.cfg-storage-detail {
    flex: 1;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.cfg-storage-price {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--neon-blue);
    margin-top: 4px;
}

.cfg-storage-card:hover .cfg-storage-inner {
    border-color: rgba(0, 240, 255, 0.25);
}

.cfg-storage-card input:checked + .cfg-storage-inner {
    border-color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.15);
}

/* TB5 banner */

.cfg-tb5-banner {
    display: block;
    cursor: pointer;
}

.cfg-tb5-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.12) 0%, rgba(5, 9, 20, 0.9) 60%);
    border: 1px solid rgba(138, 43, 226, 0.28);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.cfg-tb5-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(105deg, transparent, rgba(138, 43, 226, 0.15), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}

.cfg-tb5-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cfg-tb5-label {
    font-family: var(--font-tech);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    color: rgba(196, 181, 253, 0.85);
}

.cfg-tb5-copy strong {
    font-size: 1rem;
    color: #fff;
}

.cfg-tb5-copy span:last-child {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cfg-tb5-price {
    font-family: var(--font-code);
    font-size: 0.95rem;
    color: #c4b5fd;
    white-space: nowrap;
}

.cfg-tb5-toggle {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    flex-shrink: 0;
    transition: background 0.25s;
}

.cfg-tb5-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.25s;
}

.cfg-tb5-banner input:checked + .cfg-tb5-inner {
    border-color: var(--neon-purple);
    box-shadow: 0 0 32px rgba(138, 43, 226, 0.2);
}

.cfg-tb5-banner input:checked + .cfg-tb5-inner .cfg-tb5-toggle {
    background: rgba(138, 43, 226, 0.5);
    border-color: var(--neon-purple);
}

.cfg-tb5-banner input:checked + .cfg-tb5-inner .cfg-tb5-toggle::after {
    transform: translateX(20px);
}

/* ── Launch pad (checkout) ── */

.cfg-launchpad {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.cfg-launchpad-shell {
    position: relative;
    padding: 28px 24px 24px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(8, 14, 32, 0.98) 0%, rgba(5, 9, 20, 0.99) 100%);
    border: 1px solid rgba(0, 240, 255, 0.22);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.06);
    overflow: hidden;
}

.cfg-launchpad-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.04) 50%, transparent 100%);
    height: 40%;
    animation: cfg-scan 4s ease-in-out infinite;
    pointer-events: none;
}

.cfg-launchpad-head {
    position: relative;
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

.cfg-launchpad-kicker {
    display: block;
    font-family: var(--font-tech);
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    color: rgba(0, 240, 255, 0.65);
    margin-bottom: 8px;
}

.cfg-launchpad-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.cfg-launchpad-total {
    font-family: var(--font-code);
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--neon-blue);
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.35);
    line-height: 1.1;
}

.cfg-bill-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.cfg-bill-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 0.85rem;
}

.cfg-bill-line dt {
    color: var(--text-muted);
    flex: 1;
    min-width: 0;
}

.cfg-bill-line dd {
    font-family: var(--font-code);
    color: #fff;
    white-space: nowrap;
}

.cfg-launchpad-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
    margin-bottom: 20px;
}

.cfg-pay-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.cfg-pay-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.cfg-pay-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    justify-content: center;
}

/* Gateway cards (rendered by pricing.js) */

.or-pay-option { cursor: pointer; display: block; }

.or-pay-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(5, 9, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s, background 0.2s;
}

.or-pay-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    overflow: hidden;
}

.or-pay-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.or-pay-meta { flex: 1; min-width: 0; }

.or-pay-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}

.or-pay-currencies {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.or-pay-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s;
}

.or-pay-option input:checked + .or-pay-card {
    border-color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.05);
}

.or-pay-option input:checked + .or-pay-card .or-pay-radio {
    border-color: var(--neon-blue);
}

.or-pay-option input:checked + .or-pay-card .or-pay-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--neon-blue);
}

.or-pay-empty {
    padding: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.or-renewal {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.04);
    border-left: 3px solid rgba(0, 240, 255, 0.35);
}

.or-renewal--once {
    border-left-color: rgba(138, 43, 226, 0.5);
    background: rgba(138, 43, 226, 0.06);
}

.cfg-checkout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.cfg-checkout-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cfg-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    justify-content: center;
}

.cfg-trust-strip li {
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Pipeline section ── */

.cfg-pipeline {
    padding-bottom: 120px;
}

.cfg-pipeline-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.cfg-pipeline-head h2 {
    font-family: var(--font-tech);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: #fff;
    margin: 16px 0;
    letter-spacing: 0.02em;
}

.cfg-pipeline-head h2 span {
    color: var(--neon-blue);
}

.cfg-pipeline-head p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.cfg-pipeline-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.cfg-pipeline-steps::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 75px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, var(--neon-blue), rgba(138, 43, 226, 0.5), transparent);
}

.cfg-pipeline-step {
    display: flex;
    gap: 28px;
    padding: 28px 0;
}

.cfg-pipeline-node {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.08);
    border: 2px solid rgba(0, 240, 255, 0.35);
    position: relative;
    z-index: 1;
}

.cfg-pipeline-body h3 {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.cfg-pipeline-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.cfg-pipeline-foot {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cfg-pipeline-foot a {
    color: rgba(0, 240, 255, 0.8);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Modals ── */

.cfg-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 9, 20, 0.88);
    backdrop-filter: blur(10px);
}

.cfg-modal-overlay:not([hidden]) {
    display: flex;
}

.cfg-modal {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(13, 19, 36, 0.98) 0%, rgba(5, 9, 20, 0.99) 100%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.cfg-modal--wide { max-width: 480px; }

.cfg-modal-hero {
    text-align: center;
    padding: 36px 28px 24px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.cfg-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--neon-blue);
}

.cfg-modal-title {
    font-family: var(--font-tech);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 8px;
}

.cfg-modal-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cfg-modal-body {
    padding: 24px 28px 28px;
}

.cfg-modal-body--compact { padding-top: 20px; }

.cfg-modal-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.12);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cfg-modal-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--neon-blue);
}

.cfg-modal-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.cfg-modal-foot {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cfg-modal-foot a {
    color: rgba(0, 240, 255, 0.8);
}

.cfg-modal-head {
    padding: 20px 24px 0;
}

.cfg-modal-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cfg-modal-head-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-tech);
    font-size: 0.95rem;
    color: #fff;
}

.cfg-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s;
}

.cfg-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.cfg-modal-banner {
    padding: 16px 18px;
    border-radius: 10px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.15);
    margin-bottom: 8px;
}

.cfg-modal-banner-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.cfg-modal-banner-body {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cfg-modal-section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.cfg-progress-rail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}

.cfg-progress-rail::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.cfg-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.cfg-progress-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(5, 9, 20, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.cfg-progress-step span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cfg-progress-step--done .cfg-progress-dot {
    border-color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.15);
}

.cfg-progress-step--done span { color: var(--neon-blue); }

.cfg-progress-step--active .cfg-progress-dot {
    border-color: var(--neon-blue);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
    animation: cfg-pulse-dot 1.5s ease infinite;
}

@keyframes cfg-pulse-dot {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 240, 255, 0.3); }
    50% { box-shadow: 0 0 16px rgba(0, 240, 255, 0.6); }
}

.cfg-progress-step--active span { color: #fff; }

.cfg-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.cfg-feature-cell {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cfg-login-hint {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cfg-login-hint button {
    background: none;
    border: none;
    color: var(--neon-blue);
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
    padding: 0;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .cfg-workspace-grid {
        grid-template-columns: 1fr;
    }

    .cfg-stream {
        order: 1;
    }

    .cfg-launchpad {
        position: static;
        order: 2;
        margin-top: 8px;
    }

    .cfg-intro-grid {
        grid-template-columns: 1fr;
    }

    .cfg-device-card {
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .cfg-intro .container {
        padding-top: 130px;
    }

    .cfg-cycle-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .cfg-cycle-track::before { display: none; }

    .cfg-storage-deck {
        grid-template-columns: 1fr;
    }

    .cfg-tb5-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(84px, 0.55fr);
        gap: 12px 12px;
        align-items: center;
    }

    .cfg-tb5-copy {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .cfg-tb5-price {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-self: end;
        text-align: center;
        white-space: normal;
        font-size: 0.88rem;
        line-height: 1.3;
    }

    .cfg-tb5-toggle {
        grid-column: 2;
        grid-row: 2;
        justify-self: center;
        align-self: start;
        margin-top: 6px;
    }

    .cfg-node-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cfg-stage {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .cfg-cycle-track {
        grid-template-columns: 1fr;
    }

    .cfg-intro-points {
        flex-direction: column;
    }
}
