/* ============================================================
           Checkout Configurator — polished step-based layout
           ============================================================ */

        :root {
            --ink: #0a0a0a;
            --ink-soft: #3f3f46;
            --muted: #6b7280;
            --faint: #9ca3af;
            --line: #e4e4e8;
            --surface: #ffffff;
            --surface-alt: #f4f4f6;
            --accent: #f59e0b;
            --accent-deep: #d97706;
            --accent-light: #fbbf24;
            --accent-dark: #92400e;
            --dark-layer: #0c0a06;
        }

        body {
            background: linear-gradient(155deg, #fffbf2 0%, #f5f5f7 40%, #f0f4ff 100%) !important;
            color: var(--ink) !important;
            overflow-x: hidden;
        }
        body::before, body::after { display: none !important; }

        main {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            padding: 48px 0 104px;
        }

        .co-wrap {
            max-width: 1120px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ── Page header ── */
        .co-page-header {
            margin-bottom: 36px;
        }
        .co-breadcrumb {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }
        .co-breadcrumb-item {
            font-size: 12.5px;
            font-weight: 600;
            color: var(--faint);
            text-decoration: none;
            transition: color 0.14s;
            white-space: nowrap;
        }
        .co-breadcrumb-item:hover { color: var(--accent-deep); }
        .co-breadcrumb-sep {
            color: var(--line);
            font-size: 11px;
            flex-shrink: 0;
            line-height: 1;
        }
        .co-breadcrumb-current {
            font-size: 12.5px;
            font-weight: 700;
            color: var(--ink-soft);
            white-space: nowrap;
        }
        .co-page-title {
            font-size: 1.75rem;
            font-weight: 800;
            letter-spacing: -0.025em;
            color: var(--ink);
            margin: 0;
        }

        /* ── Two-column layout ── */
        .co-layout {
            display: grid;
            grid-template-columns: 1fr 360px;
            gap: 24px;
            align-items: start;
        }

        /* ── Left: steps column ── */
        .co-steps { display: flex; flex-direction: column; gap: 14px; }

        /* Product banner */
        .co-product-banner {
            background: var(--dark-layer);
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.07);
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0,0,0,0.20), 0 2px 8px rgba(0,0,0,0.12);
            position: relative;
        }
        .co-product-banner::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent 5%, rgba(245,158,11,0.5) 40%, rgba(217,119,6,0.4) 60%, transparent 95%);
            pointer-events: none;
        }
        .co-product-banner::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(245,158,11,0.06) 0%, transparent 65%);
            pointer-events: none;
        }
        .co-product-inner {
            padding: 22px 28px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            flex-wrap: wrap;
            position: relative;
            z-index: 1;
        }
        .co-product-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .co-product-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(245,158,11,0.22), rgba(217,119,6,0.12));
            border: 1px solid rgba(245,158,11,0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-light);
            flex-shrink: 0;
            box-shadow: 0 0 16px rgba(245,158,11,0.12);
        }
        .co-product-name {
            font-size: 17px;
            font-weight: 800;
            color: #fff;
            letter-spacing: -0.02em;
        }
        .co-product-sub {
            font-size: 11.5px;
            color: rgba(255,255,255,0.4);
            font-weight: 600;
            margin-top: 3px;
        }
        .co-spec-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .co-spec-pill {
            padding: 6px 13px;
            border-radius: 999px;
            background: rgba(255,255,255,0.07);
            border: 1px solid rgba(255,255,255,0.11);
            font-size: 12px;
            font-weight: 700;
            color: rgba(255,255,255,0.65);
            white-space: nowrap;
        }
        .co-spec-pill-accent {
            background: rgba(245,158,11,0.15);
            border-color: rgba(245,158,11,0.3);
            color: var(--accent-light);
        }

        /* Step block */
        .co-step {
            background: rgba(255,255,255,0.88);
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.75);
            padding: 26px 30px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.9);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }
        .co-step-label {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
        }
        .co-step-num {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), var(--accent-deep));
            color: #1a0e00;
            font-size: 13px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 3px 10px rgba(245,158,11,0.30);
        }
        .co-step-title {
            font-size: 15px;
            font-weight: 800;
            color: var(--ink);
            letter-spacing: -0.01em;
        }
        .co-step-optional {
            font-size: 10.5px;
            font-weight: 700;
            color: var(--faint);
            background: var(--surface-alt);
            border: 1px solid var(--line);
            border-radius: 999px;
            padding: 2px 10px;
            letter-spacing: 0.03em;
        }

        /* Region pills */
        .co-region-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 9px;
        }
        .co-region-pill { cursor: pointer; }
        .co-region-pill input {
            position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
        }
        .co-region-face {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            border-radius: 999px;
            border: 1.5px solid var(--line);
            background: rgba(255,255,255,0.7);
            font-size: 13.5px;
            font-weight: 700;
            color: var(--ink-soft);
            cursor: pointer;
            transition: all 0.15s ease;
            user-select: none;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        }
        .co-region-pill input:checked ~ .co-region-face {
            background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(217,119,6,0.08));
            border-color: var(--accent);
            color: var(--accent-dark);
            box-shadow: 0 3px 14px rgba(245,158,11,0.18), inset 0 1px 0 rgba(255,255,255,0.9);
        }
        .co-region-face:hover { border-color: rgba(245,158,11,0.55); background: rgba(255,255,255,0.95); }
        .co-step-note {
            margin-top: 14px;
            font-size: 12px;
            color: var(--faint);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Duration grid */
        .co-duration-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }
        .co-dur-tile { cursor: pointer; position: relative; }
        .co-dur-tile input {
            position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
        }
        .co-dur-face {
            padding: 22px 10px;
            text-align: center;
            border-radius: 14px;
            border: 1.5px solid var(--line);
            background: rgba(255,255,255,0.7);
            cursor: pointer;
            transition: all 0.18s ease;
            user-select: none;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04);
        }
        .co-dur-tile input:checked ~ .co-dur-face {
            background: linear-gradient(rgba(255,255,255,0.96), rgba(255,255,255,0.96)) padding-box,
                        linear-gradient(135deg, var(--accent), var(--accent-deep)) border-box;
            border: 1.5px solid transparent;
            box-shadow: 0 6px 20px rgba(245,158,11,0.18), inset 0 1px 0 rgba(255,255,255,0.95);
        }
        .co-dur-face:hover { background: rgba(255,255,255,0.95); border-color: rgba(245,158,11,0.45); }
        .co-dur-period {
            font-size: 10.5px;
            font-weight: 800;
            color: var(--faint);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 8px;
        }
        .co-dur-tile input:checked ~ .co-dur-face .co-dur-period { color: var(--accent-dark); }
        .co-dur-price {
            font-size: 22px;
            font-weight: 900;
            color: var(--ink);
            line-height: 1;
            letter-spacing: -0.025em;
            margin-bottom: 6px;
        }
        .co-dur-tile input:checked ~ .co-dur-face .co-dur-price {
            background: linear-gradient(135deg, var(--accent), var(--accent-deep));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .co-dur-sub {
            font-size: 10.5px;
            color: var(--faint);
            font-weight: 600;
        }
        .co-dur-badge {
            position: absolute;
            top: -9px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, var(--accent), var(--accent-deep));
            color: #1a0e00;
            font-size: 9px;
            font-weight: 800;
            padding: 3px 10px;
            border-radius: 999px;
            white-space: nowrap;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            box-shadow: 0 2px 8px rgba(245,158,11,0.35);
        }

        /* SSD add-on row */
        .co-addon-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        .co-addon-tile { cursor: pointer; }
        .co-addon-tile input {
            position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
        }
        .co-addon-face {
            padding: 18px 16px;
            border-radius: 14px;
            border: 1.5px solid var(--line);
            background: rgba(255,255,255,0.7);
            cursor: pointer;
            transition: all 0.18s ease;
            user-select: none;
            display: flex;
            flex-direction: column;
            gap: 5px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04);
        }
        .co-addon-tile input:checked ~ .co-addon-face {
            background: linear-gradient(rgba(255,255,255,0.96), rgba(255,255,255,0.96)) padding-box,
                        linear-gradient(135deg, var(--accent), var(--accent-deep)) border-box;
            border: 1.5px solid transparent;
            box-shadow: 0 6px 20px rgba(245,158,11,0.18), inset 0 1px 0 rgba(255,255,255,0.95);
        }
        .co-addon-face:hover { background: rgba(255,255,255,0.95); border-color: rgba(245,158,11,0.45); }
        .co-addon-name {
            font-size: 13.5px;
            font-weight: 800;
            color: var(--ink-soft);
        }
        .co-addon-tile input:checked ~ .co-addon-face .co-addon-name { color: var(--ink); }
        .co-addon-desc {
            font-size: 11.5px;
            color: var(--faint);
            font-weight: 600;
        }
        .co-addon-price {
            font-size: 14px;
            font-weight: 900;
            color: var(--ink-soft);
            margin-top: 6px;
        }
        .co-addon-tile input:checked ~ .co-addon-face .co-addon-price {
            background: linear-gradient(135deg, var(--accent), var(--accent-deep));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        /* TB5 toggle row */
        .co-tb5-label { cursor: pointer; display: block; }
        .co-tb5-label input {
            position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
        }
        .co-tb5-face {
            padding: 18px 22px;
            border-radius: 14px;
            border: 1.5px solid var(--line);
            background: rgba(255,255,255,0.7);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 16px;
            transition: all 0.18s ease;
            user-select: none;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04);
        }
        .co-tb5-label input:checked ~ .co-tb5-face {
            background: linear-gradient(rgba(255,255,255,0.96), rgba(255,255,255,0.96)) padding-box,
                        linear-gradient(135deg, var(--accent), var(--accent-deep)) border-box;
            border: 1.5px solid transparent;
            box-shadow: 0 6px 20px rgba(245,158,11,0.18), inset 0 1px 0 rgba(255,255,255,0.95);
        }
        .co-tb5-face:hover { background: rgba(255,255,255,0.95); border-color: rgba(245,158,11,0.45); }
        .co-tb5-knob {
            width: 40px;
            height: 23px;
            border-radius: 999px;
            background: var(--line);
            border: 1.5px solid rgba(0,0,0,0.07);
            position: relative;
            transition: background 0.2s ease;
            flex-shrink: 0;
        }
        .co-tb5-knob::after {
            content: '';
            position: absolute;
            top: 3px;
            left: 3px;
            width: 13px;
            height: 13px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 1px 4px rgba(0,0,0,0.20);
            transition: transform 0.2s ease;
        }
        .co-tb5-label input:checked ~ .co-tb5-face .co-tb5-knob {
            background: linear-gradient(135deg, var(--accent), var(--accent-deep));
            border-color: rgba(245,158,11,0.4);
        }
        .co-tb5-label input:checked ~ .co-tb5-face .co-tb5-knob::after {
            transform: translateX(17px);
        }
        .co-tb5-info { flex: 1; min-width: 0; }
        .co-tb5-name {
            font-size: 14px;
            font-weight: 800;
            color: var(--ink);
        }
        .co-tb5-desc {
            font-size: 12px;
            color: var(--muted);
            font-weight: 600;
            margin-top: 3px;
        }
        .co-tb5-price {
            font-size: 14px;
            font-weight: 900;
            color: var(--ink-soft);
            flex-shrink: 0;
        }
        .co-tb5-label input:checked ~ .co-tb5-face .co-tb5-price {
            background: linear-gradient(135deg, var(--accent), var(--accent-deep));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        /* ── Right: order summary (dark) ── */
        .co-summary {
            position: sticky;
            top: 84px;
        }
        .co-summary-card {
            background: var(--dark-layer);
            border-radius: 22px;
            border: 1px solid rgba(255,255,255,0.08);
            overflow: hidden;
            box-shadow: 0 20px 56px rgba(0,0,0,0.30), 0 4px 14px rgba(0,0,0,0.18);
            position: relative;
        }
        .co-summary-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent 5%, rgba(245,158,11,0.6) 40%, rgba(217,119,6,0.5) 60%, transparent 95%);
            pointer-events: none;
        }
        .co-summary-card::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse 75% 55% at 50% 0%, rgba(245,158,11,0.07) 0%, transparent 60%);
            pointer-events: none;
        }
        .co-summary-head {
            padding: 22px 24px 18px;
            border-bottom: 1px solid rgba(255,255,255,0.07);
            position: relative;
            z-index: 1;
        }
        .co-summary-title {
            font-size: 10.5px;
            font-weight: 800;
            color: rgba(255,255,255,0.35);
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }
        .co-summary-rows {
            padding: 18px 24px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            position: relative;
            z-index: 1;
        }
        .co-summary-row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
        }
        .co-summary-row-label {
            font-size: 12.5px;
            color: rgba(255,255,255,0.42);
            font-weight: 600;
            line-height: 1.4;
        }
        .co-summary-row-val {
            font-size: 12.5px;
            font-weight: 800;
            color: rgba(255,255,255,0.78);
            white-space: nowrap;
            text-align: right;
        }
        .co-summary-divider {
            height: 1px;
            background: rgba(255,255,255,0.07);
            margin: 2px 0;
        }
        .co-summary-total-row {
            padding: 16px 24px 6px;
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 10px;
            position: relative;
            z-index: 1;
        }
        .co-summary-total-label {
            font-size: 11px;
            font-weight: 700;
            color: rgba(255,255,255,0.38);
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }
        .co-summary-total-price {
            font-size: 36px;
            font-weight: 900;
            letter-spacing: -0.03em;
            line-height: 1;
            background: linear-gradient(135deg, #fde68a 0%, #fbbf24 50%, #d97706 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .co-summary-cta {
            padding: 14px 24px 20px;
            position: relative;
            z-index: 1;
        }
        .co-renewal-text {
            font-size: 11.5px;
            font-weight: 600;
            text-align: center;
            margin-bottom: 14px;
            min-height: 16px;
        }
        .co-btn-pay {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            width: 100%;
            padding: 16px 20px;
            border-radius: 14px;
            background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 55%, #fde68a 100%);
            color: #1a0e00;
            font-size: 15.5px;
            font-weight: 800;
            border: none;
            cursor: pointer;
            letter-spacing: 0.01em;
            box-shadow: 0 6px 24px rgba(245,158,11,0.45), inset 0 1px 0 rgba(255,255,255,0.35);
            transition: transform 0.18s ease, box-shadow 0.18s ease;
        }
        .co-btn-pay:hover {
            transform: translateY(-2px);
            box-shadow: 0 14px 36px rgba(245,158,11,0.55), inset 0 1px 0 rgba(255,255,255,0.4);
        }
        .co-btn-pay:active { transform: translateY(0); }
        .co-btn-pay:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
        .co-summary-trust {
            padding: 16px 24px;
            border-top: 1px solid rgba(255,255,255,0.07);
            display: flex;
            flex-direction: column;
            gap: 9px;
            position: relative;
            z-index: 1;
        }
        .co-trust-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            font-weight: 600;
            color: rgba(255,255,255,0.45);
        }
        .co-trust-item svg { color: #4ade80; flex-shrink: 0; }
        .co-summary-payment {
            padding: 12px 24px 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            flex-wrap: wrap;
            position: relative;
            z-index: 1;
        }
        .co-payment-label {
            font-size: 10.5px;
            color: rgba(255,255,255,0.28);
            font-weight: 600;
        }
        .co-payment-badge {
            font-size: 9.5px;
            font-weight: 700;
            letter-spacing: 0.04em;
            color: rgba(255,255,255,0.32);
            padding: 2px 7px;
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 5px;
            transition: color 0.15s, border-color 0.15s;
        }
        .co-payment-badge:hover { color: var(--accent-light); border-color: rgba(245,158,11,0.35); }

        /* ── Payment modal ── */
        .pm-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 100000;
            background: rgba(0,0,0,0.72);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            align-items: center;
            justify-content: center;
            padding: 16px;
        }
        .pm-card {
            width: 100%;
            max-width: 480px;
            border-radius: 24px;
            overflow: hidden;
            background: var(--dark-layer);
            border: 1px solid rgba(255,255,255,0.10);
            box-shadow: 0 40px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
            position: relative;
        }
        .pm-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(245,158,11,0.6), rgba(217,119,6,0.5), transparent);
        }
        .pm-head { padding: 28px 28px 22px; }
        .pm-topbar {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 20px;
        }
        .pm-topbar-label {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(255,255,255,0.35);
            flex: 1;
        }
        .pm-close-btn {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            background: rgba(255,255,255,0.07);
            border: 1px solid rgba(255,255,255,0.13);
            color: rgba(255,255,255,0.55);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s;
        }
        .pm-close-btn:hover { background: rgba(255,255,255,0.14); }
        .pm-amount-label {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(255,255,255,0.38);
            margin-bottom: 6px;
        }
        .pm-amount-val {
            font-size: 46px;
            font-weight: 900;
            color: #fbbf24;
            line-height: 1;
            letter-spacing: -0.025em;
            margin-bottom: 20px;
        }
        .pm-order-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 14px;
            border-radius: 12px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.09);
        }
        .pm-order-left {
            display: flex;
            align-items: center;
            gap: 11px;
        }
        .pm-order-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: linear-gradient(135deg, rgba(245,158,11,0.22), rgba(217,119,6,0.14));
            border: 1px solid rgba(245,158,11,0.28);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fbbf24;
            flex-shrink: 0;
        }
        .pm-order-name {
            font-size: 13px;
            font-weight: 700;
            color: #fff;
        }
        .pm-order-sub {
            font-size: 11px;
            color: rgba(255,255,255,0.4);
            font-weight: 600;
            margin-top: 2px;
        }
        .pm-invoice-lbl {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(255,255,255,0.3);
            margin-bottom: 2px;
            text-align: right;
        }
        .pm-invoice-num {
            font-family: monospace;
            color: rgba(255,255,255,0.5);
            font-size: 13px;
            font-weight: 700;
        }
        .pm-body { padding: 22px 28px; background: #fff; }
        .pm-method-label {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--ink);
            margin-bottom: 12px;
        }
        .pm-gateways { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
        .gw-option { cursor: pointer; display: block; user-select: none; }
        .gw-option input {
            position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
        }
        .gw-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 13px;
            border-radius: 11px;
            border: 1.5px solid var(--line);
            background: rgba(255,255,255,0.8);
            transition: all 0.12s ease;
        }
        .gw-option input:checked ~ .gw-card {
            background: linear-gradient(rgba(255,255,255,0.96), rgba(255,255,255,0.96)) padding-box,
                        linear-gradient(135deg, var(--accent), var(--accent-deep)) border-box;
            border: 1.5px solid transparent;
            box-shadow: 0 3px 12px rgba(245,158,11,0.14);
        }
        .gw-card:hover { border-color: rgba(245,158,11,0.45); }
        .gw-logo-wrap {
            flex-shrink: 0;
            width: 50px;
            height: 34px;
            border-radius: 7px;
            background: #fff;
            border: 1px solid var(--line);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .gw-logo-wrap img { max-height: 22px; max-width: 42px; object-fit: contain; }
        .gw-title {
            font-size: 13px;
            font-weight: 800;
            color: var(--ink);
            flex: 1;
        }
        .gw-currencies {
            font-size: 11px;
            color: var(--faint);
            font-weight: 600;
            margin-top: 1px;
        }
        .gw-radio {
            flex-shrink: 0;
            width: 17px;
            height: 17px;
            border-radius: 50%;
            border: 1.5px solid var(--line);
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.12s ease;
        }
        .gw-option input:checked ~ .gw-card .gw-radio {
            background: linear-gradient(135deg, var(--accent), var(--accent-deep));
            border-color: var(--accent-deep);
        }
        .gw-radio::after {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #fff;
            opacity: 0;
            transition: opacity 0.12s;
        }
        .gw-option input:checked ~ .gw-card .gw-radio::after { opacity: 1; }
        .pm-actions { display: flex; gap: 8px; }
        .pm-btn-back {
            flex: 1;
            padding: 13px;
            border-radius: 11px;
            background: rgba(0,0,0,0.04);
            color: var(--ink);
            border: 1.5px solid var(--line);
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.15s;
        }
        .pm-btn-back:hover { background: rgba(0,0,0,0.08); }
        .pm-btn-pay {
            flex: 2;
            padding: 13px;
            border-radius: 11px;
            background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 60%, #fde68a 100%);
            color: #1a0e00;
            border: none;
            font-size: 14px;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 16px rgba(245,158,11,0.35);
            transition: transform 0.15s, box-shadow 0.15s;
        }
        .pm-btn-pay:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(245,158,11,0.48); }
        .pm-btn-pay:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
        .pm-security-note {
            margin-top: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 11px;
            color: var(--faint);
            font-weight: 600;
        }

        /* ── Inline payment methods (inside dark summary card) ── */
        .co-payment-inline {
            padding: 0 24px 18px;
            position: relative;
            z-index: 1;
        }
        .co-payment-inline-title {
            font-size: 10.5px;
            font-weight: 800;
            color: rgba(255,255,255,0.35);
            letter-spacing: 0.1em;
            text-transform: uppercase;
            margin-bottom: 10px;
        }
        .co-payment-loading {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 14px;
            border-radius: 10px;
            border: 1.5px solid rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.38);
            font-size: 12px;
            font-weight: 600;
        }
        .co-payment-empty {
            padding: 14px;
            border-radius: 10px;
            border: 1.5px solid rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.35);
            font-size: 12px;
            font-weight: 600;
            text-align: center;
        }
        /* Dark-card overrides for gateway option cards */
        .co-payment-inline .pm-gateways { margin-bottom: 0; }
        .co-payment-inline .gw-card {
            background: rgba(255,255,255,0.07);
            border-color: rgba(255,255,255,0.12);
        }
        .co-payment-inline .gw-card:hover {
            background: rgba(255,255,255,0.12);
            border-color: rgba(245,158,11,0.45);
        }
        .co-payment-inline .gw-option input:checked ~ .gw-card {
            background: linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0.08)) padding-box,
                        linear-gradient(135deg, var(--accent), var(--accent-deep)) border-box;
            border: 1.5px solid transparent;
            box-shadow: 0 3px 12px rgba(245,158,11,0.18);
        }
        .co-payment-inline .gw-title { color: rgba(255,255,255,0.85); }
        .co-payment-inline .gw-currencies { color: rgba(255,255,255,0.4); }
        .co-payment-inline .gw-logo-wrap {
            background: rgba(255,255,255,0.10);
            border-color: rgba(255,255,255,0.15);
        }
        .co-payment-inline .gw-radio {
            border-color: rgba(255,255,255,0.28);
            background: rgba(255,255,255,0.06);
        }
        .co-payment-inline .gw-option input:checked ~ .gw-card .gw-radio {
            background: linear-gradient(135deg, var(--accent), var(--accent-deep));
            border-color: var(--accent-deep);
        }

        /* ── Spinner animation ── */
        @keyframes icon-spin {
            from { transform: rotate(0deg); }
            to   { transform: rotate(360deg); }
        }

        /* ── Responsive ── */
        @media (max-width: 900px) {
            .co-layout { grid-template-columns: 1fr; }
            .co-summary { position: static; }
            .co-duration-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 640px) {
            .co-addon-row { grid-template-columns: 1fr; }
            .co-tb5-face {
                display: grid;
                grid-template-columns: auto auto 1fr;
                grid-template-rows: auto auto;
                gap: 10px 12px;
                padding: 16px 18px;
                align-items: start;
            }
            .co-tb5-knob {
                grid-column: 1;
                grid-row: 1;
                align-self: center;
            }
            .co-tb5-face > svg {
                grid-column: 2;
                grid-row: 1;
                align-self: center;
            }
            .co-tb5-info {
                grid-column: 3;
                grid-row: 1;
                align-self: center;
            }
            .co-tb5-price {
                grid-column: 1 / -1;
                grid-row: 2;
                justify-self: end;
                width: 100%;
                text-align: right;
                padding-top: 10px;
                margin-top: 2px;
                border-top: 1px solid var(--line);
            }
        }
        @media (max-width: 560px) {
            main { padding: 24px 0 72px; }
            .co-wrap { padding: 0 16px; }
            .co-page-title { font-size: 1.35rem; }
            .co-step { padding: 20px 20px; }
            .co-product-inner { padding: 18px 20px; }
            .co-addon-row { gap: 8px; }
            .co-addon-face { padding: 14px 16px; }
        }

        /* Visually hidden */
        .sr-only {
            position: absolute; width: 1px; height: 1px;
            padding: 0; margin: -1px; overflow: hidden;
            clip: rect(0,0,0,0); white-space: nowrap; border: 0;
        }
        /* ── Guest post-pay modal (reused from console design) ── */
        :root {
            --cb-text:    #0a0a0a;
            --cb-text-2:  #3f3f46;
            --cb-text-3:  #6b7280;
            --cb-surface: rgba(255,255,255,0.80);
            --cb-border:  rgba(15,23,42,0.08);
            --cb-border-2:rgba(15,23,42,0.05);
            --cb-bg:      #fffcf5;
            --amber:      #f59e0b;
            --amber-light:#fbbf24;
            --amber-deep: #d97706;
        }
        .gpm-panel {
            background: rgba(255,255,255,0.96);
            border: 1px solid rgba(255,255,255,0.70);
            border-radius: 20px;
            box-shadow: 0 32px 80px rgba(15,23,42,0.18), 0 8px 24px rgba(15,23,42,0.08);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            overflow: hidden;
            width: 100%;
            max-width: 480px;
        }
        .gpm-head {
            background: rgba(15,23,42,0.02);
            padding: 20px 24px;
            display: flex;
            flex-direction: column;
            gap: 14px;
            border-bottom: 1px solid var(--cb-border-2);
        }
        .gpm-head-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .gpm-head-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.90rem;
            font-weight: 700;
            color: var(--amber-deep);
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }
        .gpm-head-icon {
            width: 32px; height: 32px;
            background: rgba(34,197,94,0.12);
            border: 1px solid rgba(34,197,94,0.25);
            border-radius: 9px;
            display: flex; align-items: center; justify-content: center;
            color: #16a34a;
        }
        .gpm-close {
            width: 28px; height: 28px;
            background: rgba(15,23,42,0.04);
            border: 1px solid rgba(15,23,42,0.09);
            border-radius: 7px;
            color: var(--cb-text-3);
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            transition: background 0.15s, color 0.15s;
        }
        .gpm-close:hover {
            background: rgba(245,158,11,0.10);
            color: var(--amber-deep);
            border-color: rgba(245,158,11,0.24);
        }
        .gpm-body { padding: 24px; }
        .gpm-btn-primary {
            width: 100%;
            padding: 13px 22px;
            background: linear-gradient(135deg, var(--amber) 0%, var(--amber-light) 60%, #fde68a 100%);
            color: #1a0e00;
            border: none;
            border-radius: 999px;
            box-shadow: 0 4px 18px rgba(245,158,11,0.28), inset 0 1px 0 rgba(255,255,255,0.28);
            font-weight: 700; font-size: 0.88rem; cursor: pointer;
            display: flex; align-items: center; justify-content: center; gap: 7px;
            text-transform: uppercase; letter-spacing: 0.04em;
            transition: transform 0.2s, box-shadow 0.2s;
            margin-bottom: 10px;
        }
        .gpm-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(245,158,11,0.42), inset 0 1px 0 rgba(255,255,255,0.32);
        }
        .gpm-btn-ghost {
            padding: 5px 13px;
            background: rgba(15,23,42,0.04);
            color: var(--cb-text-2);
            border: 1px solid var(--cb-border);
            border-radius: 999px;
            font-weight: 600; font-size: 0.78rem; cursor: pointer;
            letter-spacing: 0.04em;
            transition: background 0.15s, border-color 0.15s;
            margin-left: 6px;
        }
        .gpm-btn-ghost:hover {
            background: rgba(15,23,42,0.08);
            border-color: rgba(245,158,11,0.24);
        }

/* ============================================================
   Post-payment modal overlays
   ============================================================ */
#loggedin-success-modal,
#guest-postpay-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.72);
}
#loggedin-success-modal {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Logged-in success: panel modifier ── */
.gpm-panel--sm {
    max-width: 420px;
    text-align: center;
}
.gpm-head--success {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
}
.gpm-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gpm-success-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0a0a0a;
    margin-bottom: 6px;
    letter-spacing: -0.015em;
}
.gpm-success-subtitle {
    font-size: 0.83rem;
    color: rgba(15, 23, 42, 0.55);
    line-height: 1.6;
}
.gpm-body--no-top { padding-top: 0; }

/* ── Success info notice ── */
.gpm-notice-success {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: 12px;
    margin-bottom: 20px;
}
.gpm-notice-success-text {
    font-size: 0.78rem;
    color: #166534;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
}

/* ── Logged-in success: footer area ── */
.gpm-lsm-link {
    text-decoration: none;
    margin-bottom: 10px;
}
.gpm-lsm-footer {
    font-size: 0.72rem;
    color: rgba(15, 23, 42, 0.35);
    text-align: center;
}
.gpm-lsm-footer-link {
    color: #d97706;
    font-weight: 700;
    text-decoration: none;
}

/* ── Guest modal: amber banner ── */
.gpm-amber-banner {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 12px;
    padding: 14px 16px;
}
.gpm-amber-banner-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1.4;
    margin-bottom: 5px;
}
.gpm-amber-banner-body {
    font-size: 0.80rem;
    color: rgba(120, 70, 0, 0.70);
    font-weight: 600;
}

/* ── Guest modal: section title ── */
.gpm-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

/* ── Guest modal: progress steps ── */
.gpm-steps {
    display: flex;
    gap: 6px;
    margin-bottom: 22px;
}
.gpm-step {
    flex: 1;
    text-align: center;
    padding: 12px 6px;
    border-radius: 10px;
}
.gpm-step--paid     { background: rgba(34, 197, 94, 0.08);   border: 1px solid rgba(34, 197, 94, 0.22); }
.gpm-step--progress { background: rgba(245, 158, 11, 0.10);  border: 1px solid rgba(245, 158, 11, 0.28); }
.gpm-step--pending  { background: rgba(0, 0, 0, 0.03);       border: 1px solid rgba(0, 0, 0, 0.08); }
.gpm-step-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}
.gpm-step-label {
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.gpm-step--paid .gpm-step-label      { color: #16a34a; }
.gpm-step--progress .gpm-step-label  { color: #d97706; }
.gpm-step--pending .gpm-step-label   { color: rgba(0, 0, 0, 0.28); }

/* ── Guest modal: features grid ── */
.gpm-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}
.gpm-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
}
.gpm-feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gpm-feature-icon--amber {
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.20);
    color: #d97706;
}
.gpm-feature-icon--blue {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: #3b82f6;
}
.gpm-feature-icon--sky {
    background: rgba(147, 197, 253, 0.10);
    border: 1px solid rgba(147, 197, 253, 0.20);
    color: #93c5fd;
}
.gpm-feature-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0a0a0a;
    line-height: 1.3;
}

/* ── Guest modal: footer note ── */
.gpm-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 14px;
    font-size: 0.70rem;
    color: rgba(15, 23, 42, 0.35);
}

/* ── Region flag emoji span ── */
.co-flag {
    font-size: 17px;
    line-height: 1;
}

/* ── Guest modal: "already have account" hint ── */
.gpm-login-hint {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.55);
    font-weight: 600;
}
