/* VDH Grading — /submit multi-step wizard (scoped styles). */

.wizard-page { padding: 40px 0 80px; }

.wizard-intro {
    max-width: 820px;
    margin: 0 auto 28px;
    text-align: center;
    padding: 20px 16px 8px;
}
.wizard-intro h1 {
    margin: 0 0 12px;
    font-family: var(--vdhg-font-display);
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.wizard-intro p {
    margin: 0 auto;
    max-width: 640px;
    color: var(--vdhg-muted);
    font-size: 16px;
}

/* ─── Wizard container ─── */
.vdhg-wiz {
    /* Fill the full column width (matches the header's .container = --vdhg-max)
       instead of the old narrow 800px card. */
    max-width: var(--vdhg-max);
    margin: 0 auto;
    padding: 28px 32px 32px;
    background: linear-gradient(180deg, var(--vdhg-surface) 0%, var(--vdhg-bg-2) 100%);
    border: 1px solid var(--vdhg-border);
    border-radius: var(--vdhg-radius);
    box-shadow:
        0 0 0 1px rgba(56, 37, 90, 0.08),
        0 20px 60px -20px rgba(56, 37, 90, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: var(--vdhg-fg);
    font-family: var(--vdhg-font);
}
.vdhg-wiz h2 {
    margin: 0 0 10px;
    font-family: var(--vdhg-font-display);
    font-size: 22px;
    font-weight: 800;
}
.vdhg-wiz__helper {
    margin: 0 0 18px;
    color: var(--vdhg-muted);
    font-size: 14px;
}

/* ─── Step progress indicator — numbered circles joined by a connector line,
   spanning the full card width. Distinct from body text so it stops reading
   as just another label. ─── */
.vdhg-wiz__progress {
    list-style: none;
    margin: 0 0 28px;
    padding: 6px 0 22px;
    display: flex;
    border-bottom: 1px solid var(--vdhg-border);
}
.vdhg-wiz__progress-item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    font-family: var(--vdhg-font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--vdhg-muted);
    text-align: center;
    transition: color 0.15s ease;
}
/* Connector line drawn from this circle leftward to the previous step's
   circle. Sits behind the (opaque) circles. */
.vdhg-wiz__progress-item::before {
    content: "";
    position: absolute;
    top: 17px;              /* vertical centre of the 34px circle */
    right: 50%;
    left: -50%;
    height: 2px;
    background: var(--vdhg-border);
    z-index: 0;
}
.vdhg-wiz__progress-item:first-child::before { display: none; }
/* The line leading into a reached step turns green. */
.vdhg-wiz__progress-item.is-active::before,
.vdhg-wiz__progress-item.is-done::before { background: var(--vdhg-green); }

.vdhg-wiz__pnum {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--vdhg-surface);
    border: 2px solid var(--vdhg-border);
    color: var(--vdhg-muted);
    font-size: 14px;
    font-weight: 800;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.vdhg-wiz__plabel { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.vdhg-wiz__pstep { font-weight: 800; }
.vdhg-wiz__pname { font-size: 11px; font-weight: 500; color: var(--vdhg-muted); }
.vdhg-wiz__progress-item.is-active .vdhg-wiz__pname,
.vdhg-wiz__progress-item.is-done .vdhg-wiz__pname { color: var(--vdhg-fg); }

.vdhg-wiz__progress-item.is-active { color: var(--vdhg-fg); }
.vdhg-wiz__progress-item.is-active .vdhg-wiz__pnum {
    background: var(--vdhg-green);
    border-color: var(--vdhg-green);
    color: #04210a;
    box-shadow: 0 0 0 4px var(--vdhg-green-soft);
}
.vdhg-wiz__progress-item.is-done { color: var(--vdhg-fg); }
.vdhg-wiz__progress-item.is-done .vdhg-wiz__pnum {
    background: var(--vdhg-green);
    border-color: var(--vdhg-green);
    color: transparent;       /* hide the number; show a check instead */
}
.vdhg-wiz__progress-item.is-done .vdhg-wiz__pnum::after {
    content: "✓";
    position: absolute;
    color: #04210a;
    font-size: 16px;
    font-weight: 800;
}

/* ─── Step visibility + anim ─── */
.vdhg-wiz__step { display: none; }
.vdhg-wiz__step.is-active {
    display: block;
    animation: vdhg-wiz-fade 0.2s ease-out;
}
@keyframes vdhg-wiz-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Shared input styling ─── */
.vdhg-wiz input[type="text"],
.vdhg-wiz input[type="number"],
.vdhg-wiz textarea {
    padding: 9px 11px;
    background: var(--vdhg-bg);
    border: 1px solid var(--vdhg-border);
    border-radius: 8px;
    color: var(--vdhg-fg);
    font-family: var(--vdhg-font);
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vdhg-wiz textarea { min-height: 56px; resize: vertical; }
.vdhg-wiz input[type="text"]:focus,
.vdhg-wiz input[type="number"]:focus,
.vdhg-wiz textarea:focus {
    border-color: var(--vdhg-green);
    outline: none;
    box-shadow: 0 0 0 2px var(--vdhg-green-soft);
}

/* Shared radio/checkbox visual language. */
.vdhg-wiz input[type="radio"],
.vdhg-wiz input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid var(--vdhg-border);
    background: var(--vdhg-bg);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.vdhg-wiz input[type="radio"] { border-radius: 50%; }
.vdhg-wiz input[type="checkbox"] { border-radius: 5px; }
.vdhg-wiz input[type="radio"]:checked {
    border-color: var(--vdhg-green);
    background:
        radial-gradient(circle, var(--vdhg-green) 0 5px, transparent 6px),
        var(--vdhg-bg);
    box-shadow: 0 0 10px -2px var(--vdhg-green-soft);
}
.vdhg-wiz input[type="checkbox"]:checked {
    border-color: var(--vdhg-purple);
    background: var(--vdhg-purple);
    box-shadow: 0 0 10px -2px var(--vdhg-purple-soft);
}
.vdhg-wiz input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

/* ─── Step 1 ─── */
.vdhg-wiz__qty-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 18px;
}
.vdhg-wiz__tier-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 14px 18px;
    background: var(--vdhg-surface-hi);
    border: 1px solid var(--vdhg-border);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.vdhg-wiz__tier-card input[type="radio"] { position: absolute; opacity: 0; inset: 0; }
.vdhg-wiz__tier-label {
    font-family: var(--vdhg-font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--vdhg-fg);
}
.vdhg-wiz__tier-price {
    font-family: var(--vdhg-font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--vdhg-muted);
    font-variant-numeric: tabular-nums;
}
.vdhg-wiz__tier-card:hover { transform: translateY(-2px); border-color: var(--vdhg-green); }
.vdhg-wiz__tier-card:has(input:checked) {
    border-color: var(--vdhg-green);
    background: linear-gradient(180deg, var(--vdhg-surface-hi), rgba(161, 203, 9, 0.05));
    box-shadow: 0 0 0 1px var(--vdhg-green), 0 0 22px -6px var(--vdhg-green-soft);
}
.vdhg-wiz__tier-card:has(input:checked) .vdhg-wiz__tier-price { color: var(--vdhg-green); }

.vdhg-wiz__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    background: #e22ce3;
    color: #fff;
    font-family: var(--vdhg-font-display);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 4px 14px -4px rgba(226, 44, 227, 0.7);
    white-space: nowrap;
}

.vdhg-wiz__count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--vdhg-surface-hi);
    border: 1px solid var(--vdhg-border);
    border-radius: 10px;
}
.vdhg-wiz__count > span { font-size: 14px; color: var(--vdhg-fg); }
.vdhg-wiz__count input[type="number"] {
    width: 90px;
    text-align: center;
    font-family: var(--vdhg-font-display);
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ─── Step 2 ─── */
.vdhg-wiz__games {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.vdhg-wiz__game {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: 12px;
    background: var(--vdhg-surface-hi);
    border: 1px solid var(--vdhg-border);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.vdhg-wiz__game input { position: absolute; opacity: 0; inset: 0; }
.vdhg-wiz__game img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0.3);
    transition: filter 0.15s ease;
}
.vdhg-wiz__game-text {
    font-family: var(--vdhg-font-display);
    font-size: 13px;
    text-align: center;
    color: var(--vdhg-fg);
}
.vdhg-wiz__game:hover { transform: translateY(-1px); border-color: var(--vdhg-green); }
.vdhg-wiz__game:has(input:checked) {
    border-color: var(--vdhg-green);
    box-shadow: 0 0 0 1px var(--vdhg-green), 0 0 22px -6px var(--vdhg-green-soft);
}
.vdhg-wiz__game:has(input:checked) img { filter: grayscale(0); }
.vdhg-wiz__game:has(input:checked)::after {
    content: "✓";
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 12px;
    font-weight: 900;
    color: var(--vdhg-green);
}

/* ─── Step 3 ─── */
.vdhg-wiz__skip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin: 0 0 16px;
    background: var(--vdhg-surface-hi);
    border: 1px solid var(--vdhg-border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--vdhg-fg);
}
.vdhg-wiz__cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.2s ease, filter 0.2s ease;
}
.vdhg-wiz__card-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    padding: 16px 16px 14px 44px;
    background: var(--vdhg-surface-hi);
    border: 1px solid var(--vdhg-border);
    border-radius: 10px;
}
.vdhg-wiz__card-num {
    position: absolute;
    top: 16px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--vdhg-green);
    color: #000;
    font-family: var(--vdhg-font-display);
    font-size: 12px;
    font-weight: 800;
}
.vdhg-wiz__card-row label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: var(--vdhg-muted);
    font-family: var(--vdhg-font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.vdhg-wiz__card-row label:last-of-type { grid-column: 1 / -1; }

/* Skipped state */
.vdhg-wiz__step:has(.vdhg-wiz__skip input:checked) .vdhg-wiz__cards {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(0.5);
}

/* ─── Step 4 ─── */
.vdhg-wiz__fs { border: 0; padding: 0; margin: 0 0 20px; }
.vdhg-wiz__fs legend {
    padding: 0;
    margin-bottom: 10px;
    font-family: var(--vdhg-font-display);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vdhg-fg);
}

.vdhg-wiz__tier-row {
    position: relative;
    display: grid;
    grid-template-columns: 20px 1fr auto auto;
    align-items: center;
    gap: 10px 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: var(--vdhg-surface-hi);
    border: 1px solid var(--vdhg-border);
    border-left: 3px solid var(--tier-color, var(--vdhg-border));
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.vdhg-wiz__tier-row:hover {
    transform: translateY(-1px);
    border-color: var(--vdhg-green);
    border-left-color: var(--tier-color, var(--vdhg-green));
}
.vdhg-wiz__tier-row:has(input:checked) {
    border-color: var(--vdhg-border-green);
    background: linear-gradient(180deg, var(--vdhg-surface-hi), rgba(161, 203, 9, 0.04));
}
.vdhg-wiz__tier-row-name {
    font-family: var(--vdhg-font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--tier-color, var(--vdhg-fg));
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.vdhg-wiz__tier-row-range {
    font-size: 13px;
    color: var(--vdhg-muted);
}
.vdhg-wiz__tier-row-days,
.vdhg-wiz__tier-row-price {
    font-family: var(--vdhg-font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--vdhg-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.vdhg-wiz__tier-row:has(input:checked) .vdhg-wiz__tier-row-price { color: var(--vdhg-green); }

.vdhg-wiz__addon-row {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: var(--vdhg-surface-hi);
    border: 1px solid var(--vdhg-border);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.vdhg-wiz__addon-row:hover { transform: translateY(-1px); border-color: var(--vdhg-green); }
.vdhg-wiz__addon-row:has(input:checked) {
    background: linear-gradient(180deg, var(--vdhg-surface-hi), rgba(56, 37, 90, 0.06));
}
.vdhg-wiz__addon-label { font-size: 14px; color: var(--vdhg-fg); }
.vdhg-wiz__addon-price {
    font-family: var(--vdhg-font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--vdhg-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ─── Step 5 ─── */
.vdhg-wiz__review {
    padding: 20px;
    margin: 0 0 14px;
    background: var(--vdhg-bg);
    border: 1px solid var(--vdhg-border);
    border-radius: 12px;
    box-shadow:
        inset 0 0 0 1px rgba(56, 37, 90, 0.05),
        0 0 40px -10px rgba(56, 37, 90, 0.4);
    font-size: 14px;
    color: var(--vdhg-fg);
}
.vdhg-wiz__review dl,
.vdhg-wiz__review ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.vdhg-wiz__review dt,
.vdhg-wiz__review .vdhg-wiz__review-key {
    color: var(--vdhg-muted);
    font-size: 13px;
}
.vdhg-wiz__review dd,
.vdhg-wiz__review .vdhg-wiz__review-val {
    margin: 0;
    color: var(--vdhg-fg);
    font-family: var(--vdhg-font-display);
    font-variant-numeric: tabular-nums;
}
.vdhg-wiz__review-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--vdhg-border);
}
.vdhg-wiz__review-row:last-child { border-bottom: 0; }
.vdhg-wiz__review-total {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--vdhg-border-green);
    font-family: var(--vdhg-font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--vdhg-fg);
}
.vdhg-wiz__review-total .amount { color: var(--vdhg-green); }

.vdhg-wiz__error {
    margin: 0 0 14px;
    padding: 10px 12px;
    background: rgba(255, 60, 90, 0.08);
    border: 1px solid rgba(255, 60, 90, 0.35);
    border-radius: 8px;
    color: #ff8da3;
    font-size: 13px;
}
.vdhg-wiz__error[hidden] { display: none; }

/* ─── Nav row ─── */
.vdhg-wiz__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--vdhg-border);
}
.vdhg-wiz__nav > span { flex: 0 0 auto; }
.vdhg-wiz__nav .btn { min-width: 130px; text-align: center; }

/* Focus rings */
.vdhg-wiz input:focus-visible,
.vdhg-wiz button:focus-visible,
.vdhg-wiz textarea:focus-visible {
    outline: 2px solid var(--vdhg-green);
    outline-offset: 2px;
}

/* ─── Responsive ─── */
@media (max-width: 780px) {
    .wizard-page { padding: 28px 0 60px; }
    .vdhg-wiz { padding: 20px 18px 22px; border-radius: 12px; }
    .vdhg-wiz h2 { font-size: 20px; }
    .vdhg-wiz__qty-tiers { grid-template-columns: 1fr; }
    .vdhg-wiz__games { grid-template-columns: repeat(2, 1fr); }
    .vdhg-wiz__card-row {
        grid-template-columns: 1fr;
        padding: 16px 14px 14px 40px;
    }
    .vdhg-wiz__card-row label:last-of-type { grid-column: auto; }
    .vdhg-wiz__tier-row {
        grid-template-columns: 20px 1fr auto;
        row-gap: 4px;
    }
    .vdhg-wiz__tier-row-range,
    .vdhg-wiz__tier-row-days { grid-column: 2 / 4; }
    .vdhg-wiz__tier-row-price { grid-column: 2 / 4; color: var(--vdhg-green); }
}

@media (max-width: 420px) {
    .vdhg-wiz__nav {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .vdhg-wiz__nav .btn { width: 100%; }
    .vdhg-wiz__nav > span { display: none; }
}

/* ─── Per-card photo bay ─── */
.vdhg-wiz__card-photos {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px dashed var(--vdhg-border);
}
.vdhg-wiz__card-photos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.vdhg-wiz__card-photo {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--vdhg-border);
    background: var(--vdhg-bg);
}
.vdhg-wiz__card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vdhg-wiz__card-photo-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}
.vdhg-wiz__card-photo-remove:hover,
.vdhg-wiz__card-photo-remove:focus-visible {
    background: #ff3c5a;
    outline: none;
}
.vdhg-wiz__card-photo-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 0 14px;
    border: 1px dashed var(--vdhg-border);
    border-radius: 8px;
    color: var(--vdhg-muted);
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.vdhg-wiz__card-photo-add:hover,
.vdhg-wiz__card-photo-add:focus-within {
    border-color: var(--vdhg-green);
    color: var(--vdhg-green);
    background: rgba(161, 203, 9, 0.05);
}
.vdhg-wiz__card-photo-status {
    flex-basis: 100%;
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--vdhg-muted);
}
.vdhg-wiz__card-row[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
    .vdhg-wiz,
    .vdhg-wiz *,
    .vdhg-wiz *::before,
    .vdhg-wiz *::after {
        transition: none;
        animation: none;
    }
}

/* ─── Phone-handoff trigger button (step 3) ─── */
.vdhg-wiz__phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 14px 0 0;
    padding: 14px 16px;
    background: var(--vdhg-surface-hi);
    border: 1px dashed var(--vdhg-border);
    border-radius: 10px;
    color: var(--vdhg-muted);
    font-family: var(--vdhg-font-display);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.vdhg-wiz__phone-btn:hover,
.vdhg-wiz__phone-btn:focus-visible {
    border-color: var(--vdhg-purple);
    color: var(--vdhg-fg);
    background: rgba(56, 37, 90, 0.06);
    transform: translateY(-1px);
    outline: none;
}
.vdhg-wiz__phone-btn-icon {
    font-size: 18px;
    line-height: 1;
}

/* ─── Phone-handoff modal ─── */
.vdhg-ho-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.vdhg-ho-modal[hidden] { display: none; }

body.vdhg-ho-modal-open {
    overflow: hidden;
    touch-action: none;
}

.vdhg-ho-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 12, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.vdhg-ho-modal__panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 28px 24px 22px;
    background: linear-gradient(180deg, var(--vdhg-surface) 0%, var(--vdhg-bg-2) 100%);
    border: 1px solid var(--vdhg-border);
    border-radius: var(--vdhg-radius);
    box-shadow:
        0 0 0 1px rgba(56, 37, 90, 0.2),
        0 30px 80px -20px rgba(56, 37, 90, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: var(--vdhg-fg);
    font-family: var(--vdhg-font);
    animation: vdhg-ho-modal-in 0.22s ease-out;
}
@keyframes vdhg-ho-modal-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.vdhg-ho-modal__panel h2 {
    margin: 0 0 8px;
    padding-right: 36px;
    font-family: var(--vdhg-font-display);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}
.vdhg-ho-modal__desc {
    margin: 0 0 16px;
    color: var(--vdhg-muted);
    font-size: 13px;
    line-height: 1.45;
}
/* Card-name + target side pill shown under the modal title so the customer
   knows exactly which photo they're about to take. Set visible by JS. */
.vdhg-ho-modal__context {
    display: inline-block;
    margin: 4px 0 14px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--vdhg-green-soft);
    color: var(--vdhg-green);
    border: 1px solid var(--vdhg-border-green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.vdhg-ho-modal__context[hidden] { display: none; }

.vdhg-ho-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--vdhg-border);
    border-radius: 50%;
    background: var(--vdhg-surface-hi);
    color: var(--vdhg-fg);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.vdhg-ho-modal__close:hover,
.vdhg-ho-modal__close:focus-visible {
    border-color: var(--vdhg-purple);
    background: rgba(56, 37, 90, 0.12);
    outline: none;
}

.vdhg-ho-modal__qr {
    width: 256px;
    height: 256px;
    margin: 0 auto 14px;
    padding: 12px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* qrcode-generator emits either <svg> or <img>; force full-fit either way. */
.vdhg-ho-modal__qr svg,
.vdhg-ho-modal__qr img,
.vdhg-ho-modal__qr table {
    width: 100%;
    height: 100%;
    display: block;
}

.vdhg-ho-modal__url {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--vdhg-muted);
    text-align: center;
    word-break: break-all;
    user-select: all;
}
.vdhg-ho-modal__url a {
    color: var(--vdhg-muted);
    text-decoration: underline;
    text-decoration-style: dotted;
}
.vdhg-ho-modal__url a:hover,
.vdhg-ho-modal__url a:focus-visible {
    color: var(--vdhg-fg);
}

.vdhg-ho-modal__status {
    margin: 6px 0 0;
    min-height: 18px;
    font-size: 13px;
    text-align: center;
    color: var(--vdhg-muted);
    transition: color 0.15s ease;
}
.vdhg-ho-modal__status.is-ok    { color: var(--vdhg-green); }
.vdhg-ho-modal__status.is-error { color: #ff8da3; }

@media (max-width: 480px) {
    .vdhg-ho-modal { padding: 12px; }
    .vdhg-ho-modal__panel { padding: 24px 18px 18px; }
    .vdhg-ho-modal__qr { width: 220px; height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
    .vdhg-ho-modal__panel { animation: none; }
    .vdhg-wiz__phone-btn,
    .vdhg-ho-modal__close,
    .vdhg-ho-modal__url a,
    .vdhg-ho-modal__status { transition: none; }
}

/* ═════ Card-name typeahead (step 3) ═════ */
.vdhg-wiz__ta-wrap {
    position: relative;
    display: block;
}
.vdhg-wiz__ta-wrap > input {
    width: 100%;
}

.vdhg-wiz__ta-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: var(--vdhg-surface-hi);
    border: 1px solid var(--vdhg-border);
    border-radius: var(--vdhg-radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    max-height: 320px;
    overflow-y: auto;
}

.vdhg-wiz__ta-notice {
    padding: 8px 10px 6px;
    font-size: 12px;
    font-style: italic;
    color: var(--vdhg-muted);
    border-bottom: 1px dashed var(--vdhg-border);
    margin-bottom: 4px;
}

.vdhg-wiz__ta-empty {
    padding: 10px;
    font-size: 13px;
    color: var(--vdhg-muted);
    text-align: center;
}

.vdhg-wiz__ta-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease;
    border: 1px solid transparent;
}
.vdhg-wiz__ta-item > img,
.vdhg-wiz__ta-item > .vdhg-wiz__ta-thumb-empty {
    grid-row: 1 / span 2;
    width: 36px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--vdhg-surface);
    display: block;
}
.vdhg-wiz__ta-item .name {
    grid-column: 2;
    grid-row: 1;
    color: var(--vdhg-fg);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vdhg-wiz__ta-item .set {
    grid-column: 2;
    grid-row: 2;
    color: var(--vdhg-muted);
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vdhg-wiz__ta-item:hover,
.vdhg-wiz__ta-item.is-highlighted {
    background: var(--vdhg-green-soft);
    border-color: var(--vdhg-border-green);
}
.vdhg-wiz__ta-item.is-highlighted .name {
    color: var(--vdhg-green);
}

@media (prefers-reduced-motion: reduce) {
    .vdhg-wiz__ta-item { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   New batch-builder wizard additions (Phase 1 redesign)
   ═══════════════════════════════════════════════════════════════════════ */

.vdhg-wiz__language {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--vdhg-fg);
}
.vdhg-wiz__language select {
    padding: 8px 12px;
    border: 1px solid var(--vdhg-border);
    background: var(--vdhg-surface-hi);
    color: var(--vdhg-fg);
    border-radius: var(--vdhg-radius);
    font-size: 14px;
    min-width: 200px;
}
.vdhg-wiz__language select:focus {
    outline: none;
    border-color: var(--vdhg-green);
    box-shadow: 0 0 0 3px var(--vdhg-green-soft);
}

/* Step 2 — search box */
.vdhg-wiz__search {
    position: relative;
    margin: 16px 0 20px;
}
.vdhg-wiz__search input[type="search"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid var(--vdhg-border);
    background: var(--vdhg-surface-hi);
    color: var(--vdhg-fg);
    border-radius: var(--vdhg-radius);
}
.vdhg-wiz__search input[type="search"]:focus {
    outline: none;
    border-color: var(--vdhg-green);
    box-shadow: 0 0 0 3px var(--vdhg-green-soft);
}
.vdhg-wiz__search .vdhg-wiz__ta-list {
    margin-top: 4px;
}

/* Step 2 — growing added list */
.vdhg-wiz__added {
    margin-top: 24px;
    border-top: 1px solid var(--vdhg-border);
    padding-top: 16px;
}
.vdhg-wiz__added-title {
    margin: 0 0 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vdhg-wiz__added-count {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    align-items: center;
    justify-content: center;
    background: var(--vdhg-green-soft);
    color: var(--vdhg-green);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.vdhg-wiz__added-list { display: grid; gap: 8px; }
.vdhg-wiz__added-empty {
    color: var(--vdhg-muted);
    font-style: italic;
    font-size: 13px;
    margin: 0;
}

.vdhg-wiz__added-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    align-items: center;
    background: var(--vdhg-surface-hi);
    border: 1px solid var(--vdhg-border);
    border-radius: var(--vdhg-radius);
    padding: 8px 12px;
}
.vdhg-wiz__added-row img {
    width: 40px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--vdhg-surface);
}
.vdhg-wiz__added-row .name {
    font-weight: 600;
    color: var(--vdhg-fg);
    font-size: 14px;
}
.vdhg-wiz__added-row .meta {
    color: var(--vdhg-muted);
    font-size: 12px;
}
.vdhg-wiz__added-row button {
    background: none;
    border: 1px solid var(--vdhg-border);
    color: var(--vdhg-muted);
    border-radius: var(--vdhg-radius);
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}
.vdhg-wiz__added-row button:hover {
    color: #ef6a6a;
    border-color: #ef6a6a;
}

/* Step 3 — per-card service config */
.vdhg-wiz__config-list { display: grid; gap: 12px; margin-top: 8px; }

.vdhg-wiz__config-card {
    background: var(--vdhg-surface-hi);
    border: 1px solid var(--vdhg-border);
    border-radius: var(--vdhg-radius);
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
}
.vdhg-wiz__config-card > img {
    width: 56px;
    height: 78px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--vdhg-surface);
}
.vdhg-wiz__config-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px 10px;
    margin-bottom: 8px;
}
/* Name, set/meta and median market-price stack vertically on the left; the
   Remove + Collapse buttons sit to the right because .config-title grows. */
.vdhg-wiz__config-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}
.vdhg-wiz__config-name { font-weight: 600; color: var(--vdhg-fg); font-size: 15px; }
.vdhg-wiz__config-meta { color: var(--vdhg-muted); font-size: 12px; }
/* Muted, not green — keeps the median from reading as the grading price. */
.vdhg-wiz__config-price {
    color: var(--vdhg-muted);
    font-size: 12px;
    font-weight: 400;
    margin-top: 2px;
}
.vdhg-wiz__price-label { color: var(--vdhg-muted); }
.vdhg-wiz__price-val   { color: var(--vdhg-fg); font-weight: 600; }

.vdhg-wiz__config-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
    margin-bottom: 6px;
}
.vdhg-wiz__config-label {
    color: var(--vdhg-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 70px;
}

.vdhg-wiz__tier-chip,
.vdhg-wiz__addon-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid var(--vdhg-border);
    border-radius: 999px;
    font-size: 12px;
    color: var(--vdhg-fg);
    cursor: pointer;
    background: var(--vdhg-surface);
    transition: border-color .1s, background-color .1s;
}
.vdhg-wiz__tier-chip input,
.vdhg-wiz__addon-chip input { position: absolute; opacity: 0; pointer-events: none; }
.vdhg-wiz__tier-chip.is-selected,
.vdhg-wiz__addon-chip.is-selected {
    background: var(--vdhg-green-soft);
    border-color: var(--vdhg-border-green);
    color: var(--vdhg-green);
    font-weight: 600;
}
.vdhg-wiz__tier-chip .tier-swatch {
    width: 8px; height: 8px; border-radius: 999px; background: currentColor; opacity: .8;
}

/* Remove sits "inside" the row — visible breathing room before the close
   chevron so the two aren't an accidental fat-finger pair. .config-title
   has flex:1 so Remove + Close get pushed to the right edge. */
.vdhg-wiz__config-remove {
    background: rgba(180, 40, 40, 0.18);
    border: 1px solid rgba(180, 40, 40, 0.45);
    color: #c95858;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    margin-right: 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: color .12s, border-color .12s, background .12s;
}
.vdhg-wiz__config-remove:hover {
    color: #ff7575;
    border-color: rgba(255, 90, 90, 0.75);
    background: rgba(255, 70, 70, 0.22);
}

/* Step 4 — review */
.vdhg-wiz__review-meta {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 6px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}
.vdhg-wiz__review-meta dt { color: var(--vdhg-muted); }
.vdhg-wiz__review-meta dd { margin: 0; color: var(--vdhg-fg); }
.vdhg-wiz__review-cards { border-top: 1px solid var(--vdhg-border); padding-top: 12px; }
.vdhg-wiz__review-card {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 6px 0;
    border-bottom: 1px dashed var(--vdhg-border);
    gap: 12px;
    font-size: 13px;
}
.vdhg-wiz__review-card:last-child { border-bottom: 0; }
.vdhg-wiz__review-card-name { color: var(--vdhg-fg); font-weight: 600; }
.vdhg-wiz__review-card-meta { color: var(--vdhg-muted); font-size: 12px; }
.vdhg-wiz__review-card-price { color: var(--vdhg-green); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
    .vdhg-wiz__config-card { grid-template-columns: 40px 1fr; }
    .vdhg-wiz__config-card > img { width: 40px; height: 56px; }
    .vdhg-wiz__config-label { min-width: 0; flex-basis: 100%; margin-bottom: 2px; }
}

/* Continue button disabled state — step-level validity gate */
.vdhg-wiz__nav .btn.is-disabled,
.vdhg-wiz__nav .btn[disabled],
.vdhg-wiz__nav .btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.25);
}

/* Per-card tier selection in Step 3 — compact single-line rows. */
.vdhg-wiz__config-tier-block { margin: 4px 0 12px; }
.vdhg-wiz__config-tier-block .vdhg-wiz__config-label {
    display: block;
    margin-bottom: 6px;
}
.vdhg-wiz__config-tiers { display: grid; gap: 4px; min-width: 0; }
.vdhg-wiz__config-tiers .vdhg-wiz__tier-row {
    grid-template-columns: 16px minmax(0, auto) minmax(0, 1fr) auto auto;
    padding: 6px 12px;
    margin-bottom: 0;
    gap: 2px 10px;
    border-radius: 8px;
    min-width: 0;
}
.vdhg-wiz__config-tiers .vdhg-wiz__tier-row:hover { transform: none; }
.vdhg-wiz__config-tiers .vdhg-wiz__tier-row > input[type="radio"] {
    margin: 0;
    width: 14px;
    height: 14px;
}
/* Tiers below the card's value-required minimum are locked out. The radio
   is `disabled` so the browser blocks the click; the visual cue is a dim
   row with a padlock next to the name. Server enforces the same rule. */
.vdhg-wiz__config-tiers .vdhg-wiz__tier-row.is-locked {
    opacity: 0.42;
    cursor: not-allowed;
    background: transparent !important;
    border-color: rgba(255,255,255,0.06) !important;
}
.vdhg-wiz__config-tiers .vdhg-wiz__tier-row.is-locked:hover {
    background: transparent !important;
    border-color: rgba(255,255,255,0.06) !important;
}
.vdhg-wiz__config-tiers .vdhg-wiz__tier-row.is-locked > input[type="radio"] {
    cursor: not-allowed;
    pointer-events: none;
}
.vdhg-wiz__tier-row-lock {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    color: var(--vdhg-muted);
    vertical-align: -1px;
}
.vdhg-wiz__tier-minnote {
    margin-left: 8px;
    color: var(--vdhg-muted);
    font-size: 10px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}
.vdhg-wiz__config-tiers .vdhg-wiz__tier-row-name {
    font-size: 13px;
    letter-spacing: 0;
}
.vdhg-wiz__config-tiers .vdhg-wiz__tier-row-range,
.vdhg-wiz__config-tiers .vdhg-wiz__tier-row-days,
.vdhg-wiz__config-tiers .vdhg-wiz__tier-row-price {
    font-size: 12px;
}
/* Narrow screens: drop range/days under the name so price has room to breathe.
   Kicks in at most phone widths (≤560px) so "+€149,00 / card" never competes
   with a 4-col layout inside a narrow card body. */
@media (max-width: 560px) {
    .vdhg-wiz__config-tiers .vdhg-wiz__tier-row {
        grid-template-columns: 16px minmax(0, 1fr) auto;
        padding: 6px 10px;
        gap: 2px 8px;
    }
    .vdhg-wiz__config-tiers .vdhg-wiz__tier-row-range {
        grid-column: 2 / 3;
        grid-row: 2;
    }
    .vdhg-wiz__config-tiers .vdhg-wiz__tier-row-days {
        grid-column: 2 / 4;
        grid-row: 2;
        justify-self: end;
    }
    .vdhg-wiz__config-tiers .vdhg-wiz__tier-row-name,
    .vdhg-wiz__config-tiers .vdhg-wiz__tier-row-price {
        white-space: nowrap;
    }
}

/* Step 3 price indicator states */
.vdhg-wiz__price-skel { color: var(--vdhg-muted); font-style: italic; }
.vdhg-wiz__price-err  { color: #e68a00; }

/* ── Per-card Add-ons in Step 3 — richer row layout ───────────────── */
.vdhg-wiz__config-addon-block { margin: 4px 0 0; }
.vdhg-wiz__config-addon-block .vdhg-wiz__config-label {
    display: block;
    margin-bottom: 6px;
}
.vdhg-wiz__config-addons { display: grid; gap: 6px; }

.vdhg-wiz__config-addons .vdhg-wiz__addon-row {
    grid-template-columns: 20px 1fr auto;
    margin-bottom: 0;
    padding: 10px 12px;
    align-items: center;
}
.vdhg-wiz__config-addons .vdhg-wiz__addon-row:has(input:checked) {
    background: linear-gradient(180deg, var(--vdhg-surface-hi), rgba(161, 203, 9, 0.05));
    border-color: var(--vdhg-border-green);
}
.vdhg-wiz__addon-row-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.vdhg-wiz__addon-row-name {
    font-family: var(--vdhg-font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--vdhg-fg);
}
.vdhg-wiz__addon-row-desc {
    font-size: 12px;
    color: var(--vdhg-muted);
    line-height: 1.4;
}
.vdhg-wiz__addon-row-pricewrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: nowrap;
}
.vdhg-wiz__addon-row-price {
    font-family: var(--vdhg-font-display);
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--vdhg-fg);
}
.vdhg-wiz__addon-row:has(input:checked) .vdhg-wiz__addon-row-price {
    color: var(--vdhg-green);
}
.vdhg-wiz__addon-row-note {
    font-size: 11px;
    color: var(--vdhg-muted);
}

@media (max-width: 420px) {
    .vdhg-wiz__config-addons .vdhg-wiz__addon-row {
        grid-template-columns: 20px 1fr;
        row-gap: 4px;
    }
    .vdhg-wiz__addon-row-pricewrap {
        grid-column: 2 / 3;
        align-items: flex-start;
        flex-direction: row;
        gap: 6px;
    }
}

/* ── Density pass: keep Step 3 above the fold on ~1080p desktops ── */
@media (min-width: 640px) {
    .wizard-intro        { padding: 4px 16px 0; margin-bottom: 8px; }
    .wizard-intro h1     { font-size: 28px; margin: 0 0 2px; line-height: 1.15; }
    .wizard-intro p      { font-size: 13px; line-height: 1.4; }

    .vdhg-wiz            { padding: 18px 28px 22px; }
    .vdhg-wiz__progress  { margin: 0 0 18px; padding: 6px 0 18px; }

    .vdhg-wiz__step > h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.2; }
    .vdhg-wiz__step > .vdhg-wiz__helper { margin: 0 0 12px; font-size: 13px; }
}

/* Per-card body stays stacked — head, tiers, then addons underneath. */
.vdhg-wiz__config-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
@media (min-width: 720px) {
    .vdhg-wiz__config-card { padding: 10px 14px; gap: 12px; }
    .vdhg-wiz__config-card > img { width: 48px; height: 68px; }
    .vdhg-wiz__config-body { gap: 6px; }
    .vdhg-wiz__config-head        { margin-bottom: 0; }
    .vdhg-wiz__config-tier-block,
    .vdhg-wiz__config-addon-block { margin: 0; }
    .vdhg-wiz__config-tier-block  .vdhg-wiz__config-label,
    .vdhg-wiz__config-addon-block .vdhg-wiz__config-label { margin-bottom: 4px; }
}

/* Step 3 — Add another card (jumps back to step 2 search) */
.vdhg-wiz__add-more {
    display: block;
    width: 100%;
    padding: 10px 14px;
    margin-top: 8px;
    background: transparent;
    border: 1px dashed var(--vdhg-border);
    border-radius: 10px;
    color: var(--vdhg-muted);
    font-family: var(--vdhg-font-display);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color .12s ease, border-color .12s ease, background .12s ease;
}
.vdhg-wiz__add-more:hover {
    color: var(--vdhg-green);
    border-color: var(--vdhg-border-green);
    background: rgba(161, 203, 9, 0.04);
}

/* ── Lock-in / collapsed card ─────────────────────────────────────── */
.vdhg-wiz__lock-btn {
    background: none;
    border: 1px solid var(--vdhg-border);
    border-radius: 6px;
    padding: 3px 6px;
    color: var(--vdhg-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    line-height: 0;
    transition: color .12s ease, border-color .12s ease, background .12s ease;
}
.vdhg-wiz__lock-btn:hover {
    color: var(--vdhg-green);
    border-color: var(--vdhg-border-green);
    background: rgba(57,255,20,.04);
}
.vdhg-wiz__lock-btn svg { display: block; }

.vdhg-wiz__config-card--locked {
    grid-template-columns: 34px 1fr auto;
    padding: 8px 12px;
    gap: 10px;
    align-items: center;
}
.vdhg-wiz__config-card--locked > img { width: 34px; height: 48px; }
/* Close/chevron pins to the top-right corner — matches the expanded header
   position so the collapse affordance lives in the same spot either way. */
.vdhg-wiz__config-card--locked > .vdhg-wiz__lock-btn { align-self: start; }
.vdhg-wiz__locked-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.vdhg-wiz__locked-name {
    font-family: var(--vdhg-font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--vdhg-fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vdhg-wiz__locked-meta {
    font-size: 11px;
    color: var(--vdhg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vdhg-wiz__locked-tier {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-family: var(--vdhg-font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--vdhg-surface);
    border: 1px solid var(--vdhg-border);
    color: var(--tier-color, var(--vdhg-fg));
    border-left: 3px solid var(--tier-color, var(--vdhg-border));
}
.vdhg-wiz__locked-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.vdhg-wiz__locked-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: rgba(56, 37, 90, 0.12);
    color: var(--vdhg-purple, #38255a);
    border: 1px solid rgba(56, 37, 90, 0.35);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.vdhg-wiz__locked-price {
    font-family: var(--vdhg-font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--vdhg-green);
    font-variant-numeric: tabular-nums;
}
.vdhg-wiz__locked-remove {
    background: none;
    border: none;
    color: var(--vdhg-muted);
    font-size: 16px;
    line-height: 1;
    padding: 2px 6px;
    cursor: pointer;
}
.vdhg-wiz__locked-remove:hover { color: #ef6a6a; }

/* Locked-row summary: Tier — €price per card (+addons). Stacks under meta. */
.vdhg-wiz__locked-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.vdhg-wiz__locked-sep {
    color: var(--vdhg-muted);
    font-size: 13px;
    user-select: none;
}
.vdhg-wiz__locked-price-suffix {
    color: var(--vdhg-muted);
    font-size: 12px;
    font-weight: 500;
    margin-left: 2px;
}
.vdhg-wiz__locked-addons {
    color: var(--vdhg-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.vdhg-wiz__locked-price { margin-left: 0; }

/* Review — readonly locked cards + grand total */
.vdhg-wiz__review-list { margin-bottom: 12px; }
.vdhg-wiz__config-card--readonly { border-style: solid; opacity: 0.95; cursor: default; }

.vdhg-wiz__review-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 14px;
    background: var(--vdhg-surface-hi);
    border: 1px solid var(--vdhg-border-green);
    border-radius: 10px;
    font-family: var(--vdhg-font-display);
}
.vdhg-wiz__review-total > span {
    color: var(--vdhg-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.vdhg-wiz__review-total > strong {
    color: var(--vdhg-green);
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Step-2 inline game + language switchers. Compact — chips hug their
   content so the row takes only as much width as needed. */
.vdhg-wiz__game-switcher,
.vdhg-wiz__language-switcher {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin: 6px 0 12px;
    padding: 6px 8px;
    background: var(--vdhg-surface);
    border: 1px solid var(--vdhg-border);
    border-radius: 10px;
    max-width: 100%;
}
.vdhg-wiz__game-switcher-label {
    color: var(--vdhg-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 2px;
}
.vdhg-wiz__game-chip {
    background: var(--vdhg-surface-hi);
    color: var(--vdhg-muted);
    border: 1px solid var(--vdhg-border);
    border-radius: 999px;
    padding: 2px 8px;
    font-family: var(--vdhg-font-display);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    transition: color .1s, border-color .1s, background .1s;
}
.vdhg-wiz__game-chip:hover { color: var(--vdhg-fg); border-color: var(--vdhg-green); }
.vdhg-wiz__game-chip.is-selected {
    color: var(--vdhg-green);
    border-color: var(--vdhg-border-green);
    background: rgba(57,255,20,0.08);
}

/* Language chip — flag + 2-letter code. Flag uses emoji font stack so it
   stays crisp on every OS without bundling PNG/SVG sprites. */
.vdhg-wiz__lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px 2px 5px;
}
.vdhg-wiz__lang-flag {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
    font-size: 11px;
    line-height: 1;
    display: inline-flex;
}
.vdhg-wiz__lang-code {
    font-size: 10.5px;
    letter-spacing: 0.04em;
}

/* Floating card-image preview on hover (wizard thumbnails) */
.vdhg-wiz__preview {
    position: fixed;
    z-index: 10010;
    pointer-events: none;
    padding: 6px;
    background: var(--vdhg-surface-hi);
    border: 1px solid var(--vdhg-border);
    border-radius: 10px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.14s ease, transform 0.14s ease;
}
.vdhg-wiz__preview.is-open {
    opacity: 1;
    transform: scale(1);
}
.vdhg-wiz__preview img {
    display: block;
    width: 260px;
    height: auto;
    max-height: min(70vh, 360px);
    object-fit: contain;
    border-radius: 6px;
    background: var(--vdhg-surface);
}
@media (prefers-reduced-motion: reduce) {
    .vdhg-wiz__preview { transition: none; transform: none; }
}

/* Per-card photo slots (front + back) */
.vdhg-wiz__config-photo-block { margin-top: 4px; }
.vdhg-wiz__config-label-note {
    color: var(--vdhg-muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    margin-left: 4px;
}
.vdhg-wiz__photo-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}
.vdhg-wiz__photo-slot {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 6px 8px;
    background: var(--vdhg-surface-hi);
    border: 1px dashed var(--vdhg-border);
    border-radius: 8px;
}
.vdhg-wiz__photo-slot.has-photo {
    border-style: solid;
    border-color: var(--vdhg-border-green);
    background: linear-gradient(180deg, var(--vdhg-surface-hi), rgba(57,255,20,0.04));
}
.vdhg-wiz__photo-slot-preview {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--vdhg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vdhg-wiz__photo-slot-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vdhg-wiz__photo-slot-ph {
    color: var(--vdhg-muted);
    font-size: 11px;
    font-family: var(--vdhg-font-display);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.vdhg-wiz__photo-slot-spin::after {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--vdhg-border);
    border-top-color: var(--vdhg-green);
    border-radius: 50%;
    animation: vdhg-spin 0.8s linear infinite;
}
@keyframes vdhg-spin { to { transform: rotate(360deg); } }
.vdhg-wiz__photo-slot-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}
.vdhg-wiz__photo-slot-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--vdhg-fg);
}
.vdhg-wiz__photo-slot-err {
    color: #e68a00;
    font-size: 11px;
}
.vdhg-wiz__photo-slot-actions { display: flex; gap: 4px; }
.vdhg-wiz__photo-btn {
    background: var(--vdhg-surface);
    border: 1px solid var(--vdhg-border);
    border-radius: 6px;
    padding: 4px 6px;
    color: var(--vdhg-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    line-height: 0;
    transition: color .12s, border-color .12s, background .12s;
}
.vdhg-wiz__photo-btn:hover:not([disabled]) {
    color: var(--vdhg-green);
    border-color: var(--vdhg-border-green);
    background: rgba(57,255,20,0.04);
}
.vdhg-wiz__photo-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

@media (max-width: 560px) {
    /* Stack Front + Back slots vertically on phones + small tablets so the
       action buttons inside each slot have room to breathe without
       crashing into the preview/meta columns. */
    .vdhg-wiz__photo-slots { grid-template-columns: 1fr; }
    .vdhg-wiz__photo-slot { grid-template-columns: 56px 1fr auto; gap: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Mobile pass 1: sticky chrome + edge-to-edge wizard + compact progress.
   Scoped to <=640px so desktop is untouched.
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    /* Edge-to-edge container — no rounded corners or side shadows on phones. */
    .wizard-page { padding: 20px 0 40px; }
    .wizard-page > .container { padding: 0; }
    .wizard-intro { padding: 12px 16px 4px; margin-bottom: 12px; }
    .wizard-intro h1 { font-size: 24px; margin: 0 0 2px; }
    .wizard-intro p  { font-size: 13px; }

    .vdhg-wiz {
        max-width: 100%;
        margin: 0;
        padding: 16px 14px 96px;           /* bottom-padding reserves room for sticky nav */
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        box-shadow: none;
    }

    /* Progress: keep the full circles-and-line stepper on mobile (only 2 steps,
       it fits) — just a touch smaller. */
    .vdhg-wiz__progress {
        padding: 4px 0 18px;
        margin: 0 0 18px;
        overflow: visible;
    }
    .vdhg-wiz__progress-item { font-size: 12px; }
    .vdhg-wiz__pnum { width: 30px; height: 30px; font-size: 13px; }
    .vdhg-wiz__progress-item::before { top: 15px; }

    /* Step heading density on mobile. */
    .vdhg-wiz__step > h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.2; }
    .vdhg-wiz__step > .vdhg-wiz__helper { margin: 0 0 14px; font-size: 13px; }

    /* Sticky bottom nav — buttons always thumb-reachable without scrolling. */
    .vdhg-wiz__nav {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        /* Pull out to container edges + restore the horizontal step padding inside. */
        margin: 16px -14px -16px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        background: var(--vdhg-bg-2);
        border-top: 1px solid var(--vdhg-border);
        z-index: 5;
        backdrop-filter: saturate(160%) blur(4px);
    }
    .vdhg-wiz__nav .btn {
        min-height: 48px;
        font-size: 15px;
        padding: 12px 16px;
    }
    /* When the nav has Back + Continue, keep them side-by-side; Continue flexes. */
    .vdhg-wiz__nav > .btn-ghost { flex: 0 0 auto; }
    .vdhg-wiz__nav > .btn-primary,
    .vdhg-wiz__nav > [data-role="submit"] { flex: 1 1 auto; }

    /* Error line above the nav stays visible when sticky. */
    .vdhg-wiz__error { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Mobile pass 2: Step 1 — chip grid, hide-empty added list, sticky count.
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    /* Chips stay as compact bubbles on mobile — no more full-width taps.
       Tap target comes from a modest min-height rather than stretching. */
    .vdhg-wiz__game-switcher,
    .vdhg-wiz__language-switcher {
        padding: 6px 8px;
    }
    .vdhg-wiz__game-chip {
        flex: 0 0 auto;
        min-height: 32px;
        padding: 4px 10px;
        justify-content: center;
        font-size: 12px;
    }
    .vdhg-wiz__lang-chip {
        padding: 4px 9px 4px 6px;
    }
    /* Search input bigger on mobile */
    .vdhg-wiz__search input[type="search"] {
        padding: 14px 14px;
        font-size: 16px;           /* ≥16px prevents iOS zoom-on-focus */
    }
    /* Hide the whole "Cards added" block until the user has at least one.
       Uses :has() — supported in Safari 15.4+, Chrome 105+, FF 121+. */
    .vdhg-wiz__added:has([data-role="added-empty"]:not([hidden])) {
        display: none;
    }

    /* Count pill that lives in the sticky footer (injected by JS into the
       step-1 nav <span>). Invisible when empty string. */
    .vdhg-wiz__nav-count {
        display: inline-flex;
        align-items: center;
        padding: 6px 12px;
        background: var(--vdhg-green-soft);
        color: var(--vdhg-green);
        font-family: var(--vdhg-font-display);
        font-size: 13px;
        font-weight: 700;
        border-radius: 999px;
        white-space: nowrap;
    }
}

@media (max-width: 420px) {
    /* Small phones: hide chip-row labels (Search in / Language) — the chips speak for themselves. */
    .vdhg-wiz__game-switcher-label {
        position: absolute !important;
        width: 1px; height: 1px;
        margin: -1px; padding: 0; overflow: hidden;
        clip: rect(0 0 0 0); clip-path: inset(50%);
        white-space: nowrap; border: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   Mobile pass 3: native camera capture — primary "Take photo" button on touch.
   ═══════════════════════════════════════════════════════════════════════ */

.vdhg-wiz__photo-btn--primary {
    min-height: 44px;
    padding: 8px 12px;
    background: var(--vdhg-surface-hi);
    border-color: var(--vdhg-border-green);
    color: var(--vdhg-green);
    font-weight: 700;
    gap: 6px;
}
.vdhg-wiz__photo-btn--primary:hover:not([disabled]) {
    color: var(--vdhg-fg);
    background: rgba(161, 203, 9, 0.12);
}
.vdhg-wiz__photo-btn-label {
    font-size: 12px;
    font-family: var(--vdhg-font-display);
    letter-spacing: 0.02em;
}
.vdhg-wiz__photo-btn--small {
    min-height: 44px;
    min-width: 36px;
    padding: 8px;
}

@media (max-width: 640px) {
    /* Stretch the primary camera button on mobile so it's the obvious target. */
    .vdhg-wiz__photo-slot-actions { gap: 6px; }
    .vdhg-wiz__photo-btn--primary {
        flex: 1 1 auto;
        justify-content: center;
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   Mobile pass 4: touch-friendly tier rows + tighter config on mobile.
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    /* Larger radio + vertical padding so each tier row is ≥44px tap target. */
    .vdhg-wiz__config-tiers .vdhg-wiz__tier-row {
        padding: 10px 12px;
        grid-template-columns: 20px 1fr auto;
        row-gap: 2px;
    }
    .vdhg-wiz__config-tiers .vdhg-wiz__tier-row > input[type="radio"] {
        width: 20px;
        height: 20px;
    }
    .vdhg-wiz__config-tiers .vdhg-wiz__tier-row-name { font-size: 14px; }
    .vdhg-wiz__config-tiers .vdhg-wiz__tier-row-range {
        grid-column: 2 / 3;
        grid-row: 2;
        font-size: 12px;
    }
    .vdhg-wiz__config-tiers .vdhg-wiz__tier-row-days {
        grid-column: 3 / 4;
        grid-row: 1;
        font-size: 12px;
        justify-self: end;
    }
    .vdhg-wiz__config-tiers .vdhg-wiz__tier-row-price {
        grid-column: 3 / 4;
        grid-row: 2;
        font-size: 12px;
        justify-self: end;
    }

    /* Addon rows: ≥44px min-height */
    .vdhg-wiz__config-addons .vdhg-wiz__addon-row {
        padding: 10px 12px;
        min-height: 44px;
    }

    /* Locked card — add a clearer "edit" affordance on mobile. */
    .vdhg-wiz__config-card--locked { padding: 10px 12px; }
    .vdhg-wiz__config-card--locked .vdhg-wiz__lock-btn {
        min-height: 36px;
        min-width: 36px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   Mobile pass 6: Step 3 review — sticky grand total above nav, 44px taps.
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    /* Sticky total stacks just above the sticky nav, always visible while scrolling. */
    .vdhg-wiz__review-total {
        position: sticky;
        bottom: 72px;              /* ≈ sticky nav height */
        margin: 0 -14px;
        padding: 12px 14px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        background: var(--vdhg-bg-2);
        z-index: 4;
    }
    .vdhg-wiz__review-total > strong { font-size: 22px; }
    .vdhg-wiz__review-card { padding: 10px 0; }
    .vdhg-wiz__review-card button,
    .vdhg-wiz__review-card a {
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }
}

/* ─── Photo slot: hover-to-expand overlay on uploaded thumbs ──────── */
.vdhg-wiz__photo-slot-preview { position: relative; }
.vdhg-wiz__photo-slot-expand {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity .12s ease;
    padding: 0;
    border-radius: inherit;
}
.vdhg-wiz__photo-slot-preview:hover .vdhg-wiz__photo-slot-expand,
.vdhg-wiz__photo-slot-expand:focus-visible { opacity: 1; }
/* Touch devices: show a persistent corner badge instead of a full overlay. */
@media (hover: none) and (pointer: coarse) {
    .vdhg-wiz__photo-slot-expand {
        inset: auto 2px 2px auto;
        width: 22px; height: 22px;
        background: rgba(0,0,0,0.65);
        border-radius: 6px;
        opacity: 1;
    }
    .vdhg-wiz__photo-slot-expand svg { width: 14px; height: 14px; }
}

/* ─── Image modal (full-size photo viewer) ────────────────────────── */
.vdhg-wiz__img-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
}
.vdhg-wiz__img-modal.is-open { display: flex; }
.vdhg-wiz__img-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}
.vdhg-wiz__img-modal-panel {
    position: relative;
    max-width: min(92vw, 900px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}
.vdhg-wiz__img-modal-pic {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    background: var(--vdhg-surface);
}
.vdhg-wiz__img-modal-cap {
    color: #fff;
    font-size: 13px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: 6px;
}
.vdhg-wiz__img-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.vdhg-wiz__img-modal-close:hover { background: rgba(255, 255, 255, 0.24); }

/* ─── Handoff modal: green flash when a photo arrives ─────────────── */
.vdhg-ho-modal.is-received .vdhg-ho-modal__panel {
    animation: vdhg-ho-received 1.8s ease-out;
    border: 2px solid var(--vdhg-green);
}
@keyframes vdhg-ho-received {
    0%   { box-shadow: 0 0 0 0 rgba(161, 203, 9, 0.0); background: var(--vdhg-surface-hi); }
    15%  { box-shadow: 0 0 0 12px rgba(161, 203, 9, 0.35); background: rgba(161, 203, 9, 0.10); }
    45%  { box-shadow: 0 0 0 18px rgba(161, 203, 9, 0.00); background: rgba(161, 203, 9, 0.06); }
    100% { box-shadow: 0 0 0 0 rgba(161, 203, 9, 0.00); background: var(--vdhg-surface-hi); }
}
@media (prefers-reduced-motion: reduce) {
    .vdhg-ho-modal.is-received .vdhg-ho-modal__panel { animation: none; }
}

/* ─── Step 2 nav with inline running total ─────────────────────────── */
.vdhg-wiz__nav--total {
    gap: 8px 16px;
    flex-wrap: wrap;
}
.vdhg-wiz__nav-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1 1 120px;
    min-width: 0;
}
.vdhg-wiz__nav-total-label {
    color: var(--vdhg-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.vdhg-wiz__nav-total-value {
    color: var(--vdhg-green);
    font-family: var(--vdhg-font-display);
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

@media (max-width: 640px) {
    /* Mobile: stack the running total on its own row above the two action
       buttons, so the "Estimated total €123,45" can't collide with the
       Proceed-to-Checkout button. Grid areas keep the HTML order free:
       Back · Total · Proceed in markup; Total · (Back | Proceed) on screen. */
    .vdhg-wiz__nav--total {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "total   total"
            "back    proceed";
        gap: 6px 10px;
        align-items: center;
    }
    .vdhg-wiz__nav--total .vdhg-wiz__nav-total { grid-area: total; flex-direction: row; justify-content: center; gap: 8px; }
    .vdhg-wiz__nav--total > .btn-ghost { grid-area: back; }
    .vdhg-wiz__nav--total > [data-role="submit"],
    .vdhg-wiz__nav--total > .btn-primary { grid-area: proceed; }
    .vdhg-wiz__nav-total-label { font-size: 10px; }
    .vdhg-wiz__nav-total-value { font-size: 18px; }
}

/* ───── Quantity (identical cards on one line) ───── */
.vdhg-wiz__added-qty,
.vdhg-wiz__locked-qty {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--vdhg-green-soft);
    color: var(--vdhg-green);
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}
.vdhg-wiz__locked-linetotal {
    margin-left: 6px;
    color: var(--vdhg-fg);
    font-weight: 700;
}
.vdhg-wiz__config-qty-block { margin: 12px 0; }
.vdhg-wiz__qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--vdhg-border);
    border-radius: var(--vdhg-radius);
    overflow: hidden;
    background: var(--vdhg-surface);
}
.vdhg-wiz__qty-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--vdhg-fg);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}
.vdhg-wiz__qty-btn:hover:not(:disabled) { background: var(--vdhg-surface-hi); }
.vdhg-wiz__qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.vdhg-wiz__qty-input {
    width: 52px;
    height: 40px;
    border: 0;
    border-left: 1px solid var(--vdhg-border);
    border-right: 1px solid var(--vdhg-border);
    background: var(--vdhg-bg-2);
    color: var(--vdhg-fg);
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    -moz-appearance: textfield;
}
.vdhg-wiz__qty-input::-webkit-outer-spin-button,
.vdhg-wiz__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ══════════════════════════════════════════════════════════════════════
   STEP 1 REDESIGN — clearer game/language pick, TCG logos, manual entry,
   two-column layout that fits one screen without scrolling on load.
   ══════════════════════════════════════════════════════════════════════ */

/* Two columns: pick controls on the left, running "Cards added" on the right.
   Collapses to a single column under 900px. */
.vdhg-wiz__s1 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 248px;
    gap: 28px;
    align-items: start;
}
.vdhg-wiz__s1-controls { display: grid; gap: 18px; min-width: 0; }

/* Each labelled field (game / language / search). High-contrast numbered
   label so the instructions stop blending into the background. */
.vdhg-wiz__field { display: block; }
.vdhg-wiz__s1 .vdhg-wiz__field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-family: var(--vdhg-font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--vdhg-fg);
}
.vdhg-wiz__field-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--vdhg-green);
    color: #0a0f00;
    font-size: 12px;
    font-weight: 800;
    flex: none;
}
.vdhg-wiz__field-hint {
    font-weight: 500;
    font-size: 12px;
    color: var(--vdhg-muted);
    margin-left: 2px;
}

/* Neutralise the old pill-box styling now that switchers are full-width
   labelled fields stacked vertically. */
.vdhg-wiz__s1 .vdhg-wiz__game-switcher,
.vdhg-wiz__s1 .vdhg-wiz__language-switcher {
    display: block;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    max-width: none;
}

/* ── 1 · Game — 6-wide grid of tiles (2 rows = up to 11 games + Add Manually) ── */
.vdhg-wiz__game-tiles {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.vdhg-wiz__game-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    height: 84px;
    padding: 10px 12px;
    background: var(--vdhg-surface-hi);
    border: 1.5px solid var(--vdhg-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .12s, background .12s, transform .12s;
}
.vdhg-wiz__game-tile:hover { border-color: var(--vdhg-green); transform: translateY(-1px); }
.vdhg-wiz__game-tile.is-selected {
    border-color: var(--vdhg-green);
    background: rgba(57, 255, 20, 0.08);
    box-shadow: 0 0 0 3px var(--vdhg-green-soft);
}
.vdhg-wiz__game-tile.is-single { cursor: default; }
.vdhg-wiz__game-tile.is-single:hover { transform: none; }

/* "Add Manually" tile — dashed, muted, with a + glyph. Visually distinct from
   the real game tiles so it reads as an action, not a game. */
.vdhg-wiz__game-tile--manual {
    border-style: dashed;
    background: transparent;
    color: var(--vdhg-muted);
}
.vdhg-wiz__game-tile--manual:hover { color: var(--vdhg-green); }
.vdhg-wiz__game-manual-plus {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}
.vdhg-wiz__game-tile--manual .vdhg-wiz__game-tile-name { color: inherit; }
.vdhg-wiz__game-logo {
    max-width: 100%;
    max-height: 42px;
    width: auto;
    object-fit: contain;
}
.vdhg-wiz__game-tile-cap {
    font-size: 11px;
    font-weight: 600;
    color: var(--vdhg-muted);
    line-height: 1;
}
.vdhg-wiz__game-tile.is-selected .vdhg-wiz__game-tile-cap { color: var(--vdhg-fg); }
.vdhg-wiz__game-tile-name {
    font-family: var(--vdhg-font-display);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--vdhg-fg);
    text-align: center;
    /* Long names (e.g. "Riftbound | League of Legends") wrap and clamp to 3
       lines so they never overflow the fixed-height tile. */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.vdhg-wiz__game-tick,
.vdhg-wiz__lang-tick {
    position: absolute;
    top: 5px;
    right: 7px;
    color: var(--vdhg-green);
    font-size: 12px;
    font-weight: 800;
}

/* ── 2 · Language — flag + full name chips, English pre-selected ── */
.vdhg-wiz__s1 .vdhg-wiz__language-switcher .vdhg-wiz__lang-chip {
    position: relative;
    padding: 8px 28px 8px 12px;
    border-radius: 10px;
    border-width: 1.5px;
    font-size: 13px;
    font-weight: 600;
}
.vdhg-wiz__s1 .vdhg-wiz__lang-flag { font-size: 15px; }
.vdhg-wiz__lang-name { font-size: 13px; letter-spacing: 0; }
/* Hide the compact 2-letter code on desktop — the full name carries it now. */
.vdhg-wiz__s1 .vdhg-wiz__lang-chip .vdhg-wiz__lang-code { display: none; }
.vdhg-wiz__s1 .vdhg-wiz__language-switcher .vdhg-wiz__lang-chip.is-selected {
    box-shadow: 0 0 0 3px var(--vdhg-green-soft);
}

/* ── 3 · Search — magnifier icon + manual fallback ── */
.vdhg-wiz__s1 .vdhg-wiz__search { margin: 0; }
.vdhg-wiz__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vdhg-muted);
    pointer-events: none;
}
.vdhg-wiz__s1 .vdhg-wiz__search input[type="search"] { padding-left: 42px; }

.vdhg-wiz__manual-toggle {
    display: inline-block;
    margin-top: 10px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--vdhg-green);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.vdhg-wiz__manual-toggle:hover { filter: brightness(1.15); }

/* Manual-entry option pinned to the bottom of the search dropdown. */
.vdhg-wiz__ta-manual {
    padding: 10px 12px;
    border-top: 1px dashed var(--vdhg-border);
    color: var(--vdhg-green);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.vdhg-wiz__ta-manual:hover { background: var(--vdhg-surface-hi); }

/* Manual entry form */
.vdhg-wiz__manual {
    margin-top: 12px;
    padding: 14px;
    background: var(--vdhg-surface);
    border: 1px solid var(--vdhg-border);
    border-radius: 12px;
}
.vdhg-wiz__manual-note {
    margin: 0 0 12px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--vdhg-muted);
}
.vdhg-wiz__manual-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr;
    gap: 10px;
}
.vdhg-wiz__manual-l { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vdhg-wiz__manual-l > span {
    font-size: 11px;
    font-weight: 600;
    color: var(--vdhg-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.vdhg-wiz__manual-l input {
    width: 100%;
    padding: 9px 11px;
    font-size: 14px;
    border: 1px solid var(--vdhg-border);
    background: var(--vdhg-surface-hi);
    color: var(--vdhg-fg);
    border-radius: 8px;
}
.vdhg-wiz__manual-l input:focus {
    outline: none;
    border-color: var(--vdhg-green);
    box-shadow: 0 0 0 3px var(--vdhg-green-soft);
}
.vdhg-wiz__manual-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}
.vdhg-wiz__manual .btn-sm { padding: 7px 14px; font-size: 13px; }
.vdhg-wiz__manual-err {
    margin: 8px 0 0;
    color: #ff6b6b;
    font-size: 12.5px;
    font-weight: 600;
}

/* ── "Cards added" side panel (right column) ── */
.vdhg-wiz__s1 .vdhg-wiz__added {
    margin: 0;
    border: 1px solid var(--vdhg-border);
    border-radius: 14px;
    padding: 16px;
    background: var(--vdhg-surface);
    position: sticky;
    top: 16px;
}
.vdhg-wiz__s1 .vdhg-wiz__added-list {
    max-height: 44vh;
    overflow-y: auto;
}
.vdhg-wiz__added-manual {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 196, 0, 0.14);
    color: #ffc400;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}
.vdhg-wiz__price-manual { color: #ffc400; font-weight: 600; font-size: 13px; }

/* ── Single-screen fit: tighten the intro so step 1 lands above the fold ── */
.wizard-page .wizard-intro { margin-bottom: 14px; }

/* Stack to one column on narrower viewports. */
@media (max-width: 900px) {
    .vdhg-wiz__s1 { grid-template-columns: 1fr; gap: 18px; }
    .vdhg-wiz__s1 .vdhg-wiz__added { position: static; }
    .vdhg-wiz__s1 .vdhg-wiz__added-list { max-height: none; }
}
/* Game grid steps down its column count so tiles never get too narrow. */
@media (max-width: 720px) {
    .vdhg-wiz__game-tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
    .vdhg-wiz__game-tiles { grid-template-columns: repeat(3, 1fr); }
    .vdhg-wiz__game-tile { height: 76px; }
    .vdhg-wiz__manual-grid { grid-template-columns: 1fr; }
    .vdhg-wiz__s1 .vdhg-wiz__field-label { font-size: 14px; }
}
@media (max-width: 400px) {
    .vdhg-wiz__game-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    /* Keep the numbered instruction labels visible on small phones — in the
       redesign they ARE the instructions, not redundant chrome. Overrides the
       legacy screen-reader-only rule on .vdhg-wiz__game-switcher-label. */
    .vdhg-wiz__s1 .vdhg-wiz__game-switcher-label {
        position: static !important;
        width: auto !important; height: auto !important;
        margin: 0 0 10px !important; padding: 0 !important;
        overflow: visible !important;
        clip: auto !important; clip-path: none !important;
    }
}
