:root {
            --bg: #0a0a0c;
            --bg2: #111114;
            --bg3: #1a1a1f;
            --bg-container: #141418;
            --bg-input: #1a1a1f;
            --border: #2a2a34;
            --border-focus: #059669;
            --text: #f1f1f3;
            --text2: #d1d5db;
            --muted: #9ca3af;
            --placeholder: #555;
            --accent: #059669;
            --accent2: #34d399;
            --accent-hover: #047857;
            --accent-g: linear-gradient(135deg, #059669, #10b981);
            --green: #10b981;
            --green-bg: rgba(16, 185, 129, 0.1);
            --red: #ef4444;
            --red-bg: rgba(239, 68, 68, 0.1);
            --yellow: #f59e0b;
            --yellow-bg: rgba(245, 158, 11, 0.1);
            --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
            --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
        }
        [data-theme="light"] {
            --bg: #e2e8f0;
            --bg2: #cbd5e1;
            --bg3: #f1f5f9;
            --bg-container: #ffffff;
            --bg-input: #f8fafc;
            --border: #cbd5e1;
            --text: #1a1a2e;
            --text2: #334155;
            --muted: #64748b;
            --placeholder: #94a3b8;
            --accent: #059669;
            --accent2: #34d399;
            --accent-hover: #047857;
            --green: #059669;
            --green-bg: rgba(5, 150, 105, 0.08);
            --red: #dc2626;
            --red-bg: rgba(220, 38, 38, 0.06);
            --yellow: #d97706;
            --yellow-bg: rgba(217, 119, 6, 0.08);
            --shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0,0,0,0.04);
            --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0,0,0,0.04);
        }

        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Arial, sans-serif;
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
            line-height: 1.5;
        }

        /* ── Progress Bar ───────────────────────── */
        .progress-wrapper {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 100;
            background: rgba(10,10,12,0.85);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            padding: 16px 24px;
        }
        [data-theme="light"] .progress-wrapper {
            background: rgba(255,255,255,0.9);
        }
        .progress-inner {
            max-width: 640px;
            margin: 0 auto;
        }
        .progress-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        .progress-logo {
            font-size: 18px;
            font-weight: 800;
            color: var(--accent);
            letter-spacing: -0.5px;
        }
        .progress-step-label {
            font-size: 13px;
            color: var(--muted);
            font-weight: 500;
        }
        .progress-track {
            width: 100%;
            height: 4px;
            background: var(--border);
            border-radius: 4px;
            overflow: hidden;
        }
        .progress-fill {
            height: 100%;
            background: var(--accent-g);
            border-radius: 4px;
            transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            width: 0%;
        }

        /* ── Theme Toggle ───────────────────────── */
        .theme-toggle {
            position: fixed;
            top: 16px;
            right: 16px;
            z-index: 200;
            background: var(--bg-container);
            border: 1px solid var(--border);
            color: var(--muted);
            width: 34px;
            height: 34px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            padding: 0;
        }
        .theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

        /* ── Container ──────────────────────────── */
        .wizard {
            max-width: 560px;
            width: 100%;
            margin-top: 80px;
        }

        /* ── Step Panels ────────────────────────── */
        .step {
            display: none;
            opacity: 0;
            transform: translateX(30px);
            transition: opacity 0.35s ease, transform 0.35s ease;
        }
        .step.active {
            display: block;
        }
        .step.visible {
            opacity: 1;
            transform: translateX(0);
        }
        .step.slide-out-left {
            opacity: 0;
            transform: translateX(-30px);
        }

        /* ── Step Header ────────────────────────── */
        .step-header {
            text-align: center;
            margin-bottom: 36px;
        }
        .step-header h2 {
            font-size: 28px;
            font-weight: 800;
            letter-spacing: -0.5px;
            margin-bottom: 8px;
            color: var(--text);
        }
        .step-header p {
            color: var(--muted);
            font-size: 15px;
            max-width: 420px;
            margin: 0 auto;
        }

        /* ── Form Elements ──────────────────────── */
        .form-group {
            margin-bottom: 20px;
        }
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        @media (max-width: 480px) {
            .form-row { grid-template-columns: 1fr; }
        }
        label {
            display: block;
            color: var(--text2);
            font-size: 13px;
            margin-bottom: 6px;
            font-weight: 600;
            letter-spacing: 0.2px;
        }
        input, select, textarea {
            width: 100%;
            padding: 12px 16px;
            background: var(--bg-input);
            border: 1px solid var(--border);
            border-radius: 10px;
            color: var(--text);
            font-size: 15px;
            font-family: inherit;
            transition: border-color 0.2s, box-shadow 0.2s;
            outline: none;
        }
        input:focus, select:focus, textarea:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
        }
        input::placeholder, textarea::placeholder { color: var(--placeholder); }
        select { cursor: pointer; }
        select option { background: var(--bg-container); color: var(--text); }

        /* ── URL Input (Step 0) ─────────────────── */
        .url-input-wrapper {
            position: relative;
        }
        .url-input-wrapper input {
            padding-left: 44px;
            font-size: 16px;
            padding-top: 14px;
            padding-bottom: 14px;
        }
        .url-input-wrapper .url-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--muted);
            pointer-events: none;
        }

        /* ── Skip Link ──────────────────────────── */
        .skip-link {
            display: block;
            text-align: center;
            margin-top: 16px;
            color: var(--muted);
            font-size: 14px;
            cursor: pointer;
            transition: color 0.2s;
            background: none;
            border: none;
            font-family: inherit;
        }
        .skip-link:hover { color: var(--accent2); }

        /* ── Buttons ────────────────────────────── */
        .btn-row {
            display: flex;
            gap: 12px;
            margin-top: 32px;
        }
        .btn {
            padding: 13px 28px;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            font-family: inherit;
        }
        .btn-primary {
            flex: 1;
            background: var(--accent-g);
            color: #fff;
            box-shadow: 0 4px 16px rgba(5,150,105,0.3);
        }
        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 24px rgba(5,150,105,0.4);
        }
        .btn-primary:active { transform: translateY(0); }
        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        .btn-back {
            background: var(--bg3);
            color: var(--muted);
            border: 1px solid var(--border);
            min-width: 90px;
        }
        .btn-back:hover { border-color: var(--accent); color: var(--text); }

        /* ── Loading Spinner ────────────────────── */
        .loader-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(10,10,12,0.8);
            backdrop-filter: blur(8px);
            z-index: 300;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 24px;
        }
        [data-theme="light"] .loader-overlay {
            background: rgba(255,255,255,0.8);
        }
        .loader-overlay.show { display: flex; }
        .spinner {
            width: 48px;
            height: 48px;
            border: 3px solid var(--border);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .loader-text {
            color: var(--text);
            font-size: 16px;
            font-weight: 600;
        }
        .loader-sub {
            color: var(--muted);
            font-size: 13px;
            margin-top: -16px;
        }

        /* ── Tags / Chips ───────────────────────── */
        .chips-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
            min-height: 40px;
        }
        .chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 7px 14px;
            background: rgba(5,150,105,0.1);
            border: 1px solid rgba(5,150,105,0.25);
            border-radius: 20px;
            color: var(--accent2);
            font-size: 13px;
            font-weight: 500;
            animation: chipIn 0.25s ease;
        }
        @keyframes chipIn {
            from { opacity: 0; transform: scale(0.85); }
            to { opacity: 1; transform: scale(1); }
        }
        .chip-remove {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: none;
            background: rgba(5,150,105,0.2);
            color: var(--accent2);
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
            padding: 0;
            line-height: 1;
        }
        .chip-remove:hover { background: rgba(239,68,68,0.3); color: var(--red); }
        .chip-add-row {
            display: flex;
            gap: 8px;
        }
        .chip-add-row input {
            flex: 1;
        }
        .btn-add-chip {
            padding: 10px 18px;
            background: var(--bg3);
            border: 1px solid var(--border);
            border-radius: 10px;
            color: var(--accent2);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .btn-add-chip:hover { border-color: var(--accent); background: rgba(5,150,105,0.08); }

        /* ── Hours Grid ─────────────────────────── */
        .hours-grid {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .hours-row {
            display: grid;
            grid-template-columns: 90px 1fr 1fr 50px;
            gap: 10px;
            align-items: center;
        }
        @media (max-width: 480px) {
            .hours-row {
                grid-template-columns: 70px 1fr 1fr 40px;
                gap: 6px;
            }
        }
        .hours-day {
            font-weight: 600;
            font-size: 14px;
            color: var(--text2);
        }
        .hours-row input[type="time"] {
            padding: 8px 10px;
            font-size: 13px;
            text-align: center;
        }
        .hours-row input[type="time"]:disabled {
            opacity: 0.35;
        }
        .toggle-closed {
            width: 40px;
            height: 22px;
            border-radius: 12px;
            border: none;
            background: var(--green);
            position: relative;
            cursor: pointer;
            transition: background 0.2s;
            flex-shrink: 0;
        }
        .toggle-closed::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            background: #fff;
            border-radius: 50%;
            top: 3px;
            left: 21px;
            transition: left 0.2s;
        }
        .toggle-closed.off {
            background: var(--border);
        }
        .toggle-closed.off::after {
            left: 3px;
        }
        .hours-labels {
            display: grid;
            grid-template-columns: 90px 1fr 1fr 50px;
            gap: 10px;
            margin-bottom: 6px;
        }
        @media (max-width: 480px) {
            .hours-labels {
                grid-template-columns: 70px 1fr 1fr 40px;
                gap: 6px;
            }
        }
        .hours-labels span {
            font-size: 11px;
            color: var(--muted);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* ── Password Strength ──────────────────── */
        .pw-strength {
            display: flex;
            gap: 4px;
            margin-top: 8px;
            margin-bottom: 4px;
        }
        .pw-bar {
            flex: 1;
            height: 4px;
            border-radius: 2px;
            background: var(--border);
            transition: background 0.3s;
        }
        .pw-bar.weak { background: var(--red); }
        .pw-bar.medium { background: var(--yellow); }
        .pw-bar.strong { background: var(--green); }
        .pw-label {
            font-size: 12px;
            font-weight: 500;
            margin-bottom: 8px;
        }
        .pw-label.weak { color: var(--red); }
        .pw-label.medium { color: var(--yellow); }
        .pw-label.strong { color: var(--green); }

        /* ── Plan Cards ─────────────────────────── */
        .plans-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 14px;
            margin-bottom: 24px;
        }
        @media (max-width: 900px) {
            .plans-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 640px) {
            .plans-grid { grid-template-columns: 1fr; }
        }
        .plan-card {
            background: var(--bg3);
            border: 2px solid var(--border);
            border-radius: 14px;
            padding: 24px 20px;
            cursor: pointer;
            transition: all 0.25s;
            position: relative;
        }
        .plan-card:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
            box-shadow: var(--card-shadow);
        }
        .plan-card.selected {
            border-color: var(--accent);
            background: rgba(5,150,105,0.06);
        }
        .plan-card.popular::before {
            content: 'Most Popular';
            position: absolute;
            top: -11px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--accent-g);
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            padding: 3px 14px;
            border-radius: 10px;
            letter-spacing: 0.3px;
        }
        .plan-name {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 4px;
            color: var(--text);
        }
        .plan-price {
            font-size: 32px;
            font-weight: 800;
            color: var(--accent);
            margin-bottom: 2px;
        }
        .plan-price span {
            font-size: 14px;
            font-weight: 500;
            color: var(--muted);
        }
        .plan-features {
            list-style: none;
            margin-top: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .plan-features li {
            font-size: 13px;
            color: var(--text2);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .plan-features li::before {
            content: '';
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--green-bg);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
        }
        .plan-check {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 2px solid var(--border);
            transition: all 0.2s;
        }
        .plan-card.selected .plan-check {
            border-color: var(--accent);
            background: var(--accent);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
        }

        /* ── Error / Alert ──────────────────────── */
        .alert {
            padding: 12px 16px;
            border-radius: 10px;
            font-size: 14px;
            margin-bottom: 20px;
            display: none;
        }
        .alert.show { display: block; }
        .alert-error {
            background: var(--red-bg);
            color: var(--red);
            border: 1px solid rgba(239,68,68,0.2);
        }
        .alert-success {
            background: var(--green-bg);
            color: var(--green);
            border: 1px solid rgba(16,185,129,0.2);
        }

        /* ── Footer Link ────────────────────────── */
        .footer-link {
            text-align: center;
            margin-top: 24px;
            color: var(--muted);
            font-size: 14px;
        }
        .footer-link a {
            color: var(--accent2);
            text-decoration: none;
            font-weight: 500;
        }
        .footer-link a:hover { text-decoration: underline; }

        /* ── Referral Input ──────────────────────── */
        .referral-section {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid var(--border);
        }

        /* ── Postcode hint ──────────────────────── */
        .postcode-hint {
            font-size: 12px;
            color: var(--muted);
            margin-top: 4px;
            min-height: 18px;
        }

        /* ── Scrape results badge ────────────────── */
        .prefilled-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            color: var(--green);
            background: var(--green-bg);
            padding: 2px 10px;
            border-radius: 10px;
            margin-bottom: 8px;
            font-weight: 600;
        }
        .prefilled-badge svg { width: 12px; height: 12px; }
