/* ============================================================
   valo — Vendor Registration  ·  register.css  v6.0 (mobile-first redesign layer at the bottom)
   Goals: professional + creative UI/UX, very fast on mobile,
   no iOS focus-zoom, no backdrop-filter/blur (Safari GPU cost).
   Class names kept 1:1 with the existing markup contract.

   v5.1
     - Inline field errors always visible under the field
     - Logo / main_screen previews same size as media previews
     - "has-error" highlight on the step pill
     - scroll-margin for smooth focus scrolling
   ============================================================ */

/* ── Brand font: ONE file, swap-first, no universal !important ── */
@font-face {
    font-family: 'ValoArabic';
    src: url('/tools/fonts/thmanyahsans-Medium.otf') format('opentype');
    font-display: swap;
    font-weight: 400 800;
}

/* ── Design tokens ── */
:root {
    --brand: #AD1F24;
    --brand-700: #8F191F;
    --brand-500: #C53A3F;
    --brand-50: rgba(173, 31, 36, .08);
    --brand-100: rgba(173, 31, 36, .16);

    --ink: #14161A;
    --ink-2: #333A45;
    --muted: #6B7280;
    --muted-2: #98A0AC;

    --card: #FFFFFF;
    --bg: #F4F5F7;
    --soft: #F6F7F9;
    --line: #E6E8EC;
    --line-2: #D6DAE1;

    --ok: #0F8A4C;
    --ok-bg: rgba(15, 138, 76, .08);
    --warn: #B45309;
    --err: #DC2626;
    --err-bg: rgba(220, 38, 38, .06);
    --info: #1D4ED8;
    --info-bg: rgba(29, 78, 216, .07);

    --r-xs: 8px;
    --r-sm: 12px;
    --r: 14px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-2xl: 32px;
    --pill: 999px;

    --sh-1: 0 1px 2px rgba(16, 18, 27, .05), 0 1px 3px rgba(16, 18, 27, .04);
    --sh-2: 0 6px 18px -10px rgba(16, 18, 27, .18);
    --sh-3: 0 22px 44px -22px rgba(16, 18, 27, .28);
    --ring: 0 0 0 3px var(--brand-50);

    --ff: 'ValoArabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;

    --ease: cubic-bezier(.22, .61, .36, 1);
    --t: .2s var(--ease);

    /* ValoPhone tokens */
    --vp-h: 52px;
    --vp-r: var(--r);
    --vp-line: var(--line);
    --vp-soft: var(--soft);
    --vp-ink: var(--ink);
    --vp-muted: var(--muted);
    --vp-brand: var(--brand);
    --vp-brand-soft: var(--brand-50);
    --vp-card: #fff;
    --vp-bad: var(--err);
}

/* ── Reset / base ── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 84px 16px 48px;
    font-family: var(--ff);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(900px 420px at 108% -8%, rgba(173, 31, 36, .07), transparent 62%),
        radial-gradient(760px 400px at -12% 108%, rgba(173, 31, 36, .05), transparent 60%);
    background-attachment: scroll;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: var(--brand); }

/* Icon system (inline SVG sprite — replaces Font Awesome) */
.ic {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    vertical-align: -.135em;
}
.ic-sm { width: .875em; height: .875em; }
.ic-lg { width: 1.35em; height: 1.35em; }
.ic-2x { width: 2rem; height: 2rem; stroke-width: 1.6; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ══════════════════════════════════════════════════════════
   TOP BAR  (brand · language · back)
   ══════════════════════════════════════════════════════════ */
.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
    @media (min-width: 900px) {
        .topbar { background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px); }
    }
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-inline-end: auto;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    object-fit: cover;
    display: block;
    flex: 0 0 auto;
    box-shadow: var(--sh-2);
    background: var(--soft);
}

.brand-txt { min-width: 0; }
.brand-txt strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: .2px; }
.brand-txt small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; line-height: 1.3; }

.language-selector { position: static; z-index: auto; }
.selector-glass {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--card);
    transition: border-color var(--t), box-shadow var(--t);
}
.selector-glass:hover { border-color: var(--brand); }
.selector-glass .ic { color: var(--brand); font-size: 15px; }
.modern-select {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    font: 700 14px/1 var(--ff);
    color: var(--ink);
    padding: 0 2px;
    cursor: pointer;
    outline: none;
}
.select-arrow { color: var(--brand); font-size: 12px; pointer-events: none; }

.back-to-login { position: static; z-index: auto; }
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--card);
    color: var(--ink);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: border-color var(--t), color var(--t), background var(--t), transform var(--t);
    touch-action: manipulation;
}
.back-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.back-btn:active { transform: scale(.96); }
.back-btn .ic { color: var(--brand); }

/* ══════════════════════════════════════════════════════════
   LINKED BANNER
   ══════════════════════════════════════════════════════════ */
.linked-banner {
    position: fixed;
    top: 74px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    width: min(560px, calc(100% - 32px));
    background: linear-gradient(135deg, var(--brand), var(--brand-700));
    color: #fff;
    border-radius: var(--r-lg);
    padding: 12px 14px;
    box-shadow: var(--sh-3);
    animation: slideDown .28s var(--ease);
}
.linked-banner-inner { display: flex; align-items: center; gap: 11px; }
.linked-banner-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    display: grid;
    place-items: center;
    font-size: 15px;
    flex: 0 0 auto;
}
.linked-banner-text { flex: 1; min-width: 0; }
.linked-banner-text strong { display: block; font-size: 13.5px; font-weight: 800; }
.linked-banner-text small { display: block; font-size: 12px; opacity: .88; }

.linked-banner-close {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    font: 800 13px/1 var(--ff);
    transition: background var(--t), transform var(--t);
}
.linked-banner-close:hover { background: rgba(255, 255, 255, .34); }
.linked-banner-close:active { transform: scale(.94); }
.linked-banner-timer { display: block; line-height: 1; }

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-14px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   CARD SHELL
   ══════════════════════════════════════════════════════════ */
.register-container {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    box-shadow: var(--sh-3);
    animation: fadeUp .35s var(--ease);
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   PROGRESS
   ══════════════════════════════════════════════════════════ */
.registration-progress { margin-bottom: 28px; }
.progress-steps {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}
.step {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    touch-action: manipulation;
}
.step-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid var(--line-2);
    background: var(--card);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.step.done .step-number {
    background: var(--brand-50);
    border-color: transparent;
    color: var(--brand);
}
.step.active .step-number {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 6px 14px -6px var(--brand-100);
}
.step.active .step-label { color: var(--brand); font-weight: 700; }
.step.done:hover .step-number { transform: scale(1.08); }

/* error highlight */
.step.has-error .step-number {
    border-color: var(--err);
    background: var(--err-bg);
    color: var(--err);
}
.step.has-error .step-label { color: var(--err); }

.progress-bar {
    height: 4px;
    border-radius: var(--pill);
    background: var(--line);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 16.66%;
    border-radius: var(--pill);
    background: linear-gradient(90deg, var(--brand), var(--brand-500));
    transition: width .3s var(--ease);
}
.progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
}
.progress-meta b { color: var(--brand); }

/* ══════════════════════════════════════════════════════════
   STEP PANES
   ══════════════════════════════════════════════════════════ */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn .26s var(--ease); }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.step-header { margin-bottom: 24px; }
.step-title { font-size: 1.65rem; }
.step-subtitle { margin-top: 5px; color: var(--muted); font-size: .92rem; }

/* ══════════════════════════════════════════════════════════
   FILTER TABS + VENDOR TYPE GRID
   ══════════════════════════════════════════════════════════ */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.filter-tab {
    padding: 8px 18px;
    border: 1.5px solid var(--line);
    border-radius: var(--pill);
    background: var(--card);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--t);
    touch-action: manipulation;
}
.filter-tab:hover { border-color: var(--brand); color: var(--brand); }
.filter-tab.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px -10px var(--brand-100);
}

.vendor-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
    max-height: 430px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 4px;
}
.vendor-type-grid::-webkit-scrollbar { width: 6px; }
.vendor-type-grid::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: var(--pill); }

.vendor-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    aspect-ratio: 1 / 1;
    padding: 16px 12px;
    text-align: center;
    background: #FFFFFF;
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: var(--t);
    touch-action: manipulation;
    overflow: hidden;
}
.vendor-type-card:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: var(--sh-2);
}
.vendor-type-card.selected {
    border-color: var(--brand);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px var(--brand-50), 0 12px 26px -16px var(--brand-100);
}
.vendor-type-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--soft);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--brand);
    font-size: 22px;
    flex: 0 0 auto;
}
.vendor-type-icon:has(img) {
    border-radius: 0;
    background: #FFFFFF;
    overflow: hidden;
}
.vendor-type-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 0;
    display: block;
}
.vendor-type-name {
    font-size: .93rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.vendor-type-check {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    color: var(--brand);
    font-size: 17px;
    opacity: 0;
    transform: scale(.4);
    transition: var(--t);
}
.vendor-type-card.selected .vendor-type-check { opacity: 1; transform: scale(1); }
.no-types-message {
    grid-column: 1 / -1;
    padding: 38px 16px;
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
}

/* ══════════════════════════════════════════════════════════
   FIELDS
   ══════════════════════════════════════════════════════════ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-row:not(:last-child) { margin-bottom: 4px; }
.form-group { margin-bottom: 16px; min-width: 0; scroll-margin-top: 90px; }
.field-label {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
}
.required-field { color: var(--brand); font-weight: 800; }
.optional-field { color: var(--muted-2); font-size: 11.5px; font-weight: 600; }

.modern-input,
.modern-textarea,
.modern-select-input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
select,
textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    font-family: var(--ff);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    outline: none;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}
.modern-textarea,
textarea { min-height: 104px; line-height: 1.55; resize: vertical; }
select,
.modern-select-input {
    cursor: pointer;
    padding-inline-end: 40px;
}
.modern-input::placeholder,
.modern-textarea::placeholder { color: var(--muted-2); font-weight: 500; }
.modern-input:focus,
.modern-textarea:focus,
.modern-select-input:focus,
select:focus,
input:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: var(--ring);
    background: var(--card);
}
.modern-input[readonly],
input[readonly] {
    background: var(--soft);
    border-color: var(--line);
    color: var(--ink-2);
    cursor: default;
}
.modern-input[readonly]:focus { box-shadow: none; border-color: var(--line); }
.modern-input.error,
.modern-textarea.error,
.modern-select-input.error,
select.error,
input.error,
textarea.error {
    border-color: var(--err);
    background: var(--err-bg);
}
.modern-input.error:focus,
.modern-textarea.error:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .1); }

.field-hint { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }

/* inline field error — always visible under the field */
.field-error {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--err);
    line-height: 1.35;
}
.field-error .ic { margin-top: 1px; flex: 0 0 auto; }

.email-status.ok { color: var(--ok); }
.email-status.bad { color: var(--err); }

.select-wrapper { position: relative; }
.select-arrow-down {
    position: absolute;
    inset-inline-end: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand);
    font-size: 15px;
    pointer-events: none;
}

.password-wrapper { position: relative; }
.password-wrapper .modern-input { padding-inline-end: 52px; }
.password-toggle-input {
    position: absolute;
    inset-inline-end: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: var(--r-xs);
    background: transparent;
    color: var(--muted);
    font-size: 17px;
    cursor: pointer;
    touch-action: manipulation;
}
.password-toggle-input:hover { color: var(--brand); background: var(--soft); }

.phone-mount { position: relative; }
.phone-mount:empty { display: none; }
.phone-mount.error .vp-input,
.phone-mount.vp-bad .vp-input { border-color: var(--err); background: var(--err-bg); }
.phone-mount.error .vp-hint,
.phone-mount.vp-bad .vp-hint { color: var(--err); }

/* ══════════════════════════════════════════════════════════
   HINTS / LINKED CARDS
   ══════════════════════════════════════════════════════════ */
.linked-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 13px 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--info-bg);
    border-inline-start: 3px solid var(--info);
    border-radius: var(--r-sm);
}
.linked-hint .ic { color: var(--info); margin-top: 2px; font-size: 16px; }

.linked-option-card {
    padding: 16px;
    margin-bottom: 20px;
    border: 1.5px dashed var(--brand);
    border-radius: var(--r-lg);
    background: linear-gradient(150deg, var(--brand-50), rgba(173, 31, 36, .02));
}
.linked-option-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.linked-option-header > .ic { color: var(--brand); font-size: 19px; margin-top: 2px; }
.linked-option-header strong { display: block; font-size: 13.5px; font-weight: 800; }
.linked-option-header small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.linked-option-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border: 0;
    border-radius: var(--pill);
    background: var(--brand);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--t);
    touch-action: manipulation;
}
.linked-option-btn:hover { background: var(--brand-700); }

/* ══════════════════════════════════════════════════════════
   LOCATION — method tabs + cards
   ══════════════════════════════════════════════════════════ */
.location-method-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 5px;
    margin-bottom: 18px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--pill);
}
.method-tab {
    flex: 1;
    min-width: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--pill);
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: var(--t);
    touch-action: manipulation;
}
.method-tab:hover { color: var(--brand); background: var(--brand-50); }
.method-tab.active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px -10px var(--brand-100);
}
.method-content { display: none; }
.method-content.active { display: block; animation: fadeIn .24s var(--ease); }

.geolocation-card,
.google-maps-card,
.map-picker-card {
    padding: 22px;
    margin-bottom: 18px;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
    transition: border-color var(--t);
}
.geolocation-card:hover,
.google-maps-card:hover { border-color: var(--brand); }
.geolocation-icon,
.google-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--brand-500), var(--brand-700));
    color: #fff;
    font-size: 24px;
}
.geolocation-card h3,
.google-maps-card h3,
.map-picker-card h3 { font-size: 1.08rem; text-align: center; margin-bottom: 7px; }
.geolocation-card p,
.google-maps-card p {
    margin-bottom: 16px;
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
}
.geolocation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    padding: 13px 24px;
    border: 0;
    border-radius: var(--pill);
    background: linear-gradient(145deg, var(--brand), var(--brand-700));
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px -12px var(--brand-100);
    transition: var(--t);
    touch-action: manipulation;
}
.geolocation-btn:hover { transform: translateY(-2px); }
.geolocation-btn.loading { opacity: .65; pointer-events: none; }
.geolocation-card { text-align: center; }
.geolocation-status { margin-top: 12px; min-height: 20px; font-size: 13px; font-weight: 600; text-align: center; }
.geolocation-status.success { color: var(--ok); }
.geolocation-status.error { color: var(--err); }
.geolocation-status.info { color: var(--brand); }

.link-input-wrapper-enhanced { display: flex; gap: 10px; margin-bottom: 10px; }
.google-link-input { flex: 1; min-width: 0; }
.extract-btn-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    min-height: 52px;
    border: 0;
    border-radius: var(--r);
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--t);
    touch-action: manipulation;
}
.extract-btn-enhanced:hover { background: var(--brand-700); }
.extract-btn-enhanced.loading { opacity: .65; pointer-events: none; }
.link-status { min-height: 22px; padding: 6px 0; font-size: 13px; font-weight: 600; }
.link-status.success { color: var(--ok); }
.link-status.error { color: var(--err); }
.link-status.info { color: var(--brand); }

.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.map-header h3 { margin: 0; text-align: start; }
.map-controls { display: flex; gap: 6px; }
.map-control-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
    transition: var(--t);
    touch-action: manipulation;
}
.map-control-btn:hover { border-color: var(--brand); color: var(--brand); }
.map-container-enhanced {
    position: relative;
    height: 380px;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--soft);
    border: 1px solid var(--line);
}
#hereMap { width: 100%; height: 100%; }
.map-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(150deg, #FAFBFC, #EFF1F4);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
}
.map-loading-spinner,
.upload-spinner,
.loading-spinner,
.spinner {
    width: 40px;
    height: 40px;
    border: 3.5px solid var(--line-2);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}
.spinner-sm { width: 17px; height: 17px; border-width: 2.5px; }
.map-instructions {
    margin-top: 10px;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}
.map-instructions .ic { color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

.location-preview-card {
    padding: 15px 17px;
    margin: 16px 0;
    border: 1.5px solid var(--ok);
    border-radius: var(--r);
    background: var(--ok-bg);
    animation: slideDown .24s var(--ease);
}
.preview-header { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.preview-header .ic { color: var(--ok); font-size: 17px; }
.preview-header span { flex: 1; font-size: 13.5px; font-weight: 800; color: var(--ok); }
.clear-location-btn {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, .1);
    color: var(--err);
    cursor: pointer;
    font-size: 13px;
    touch-action: manipulation;
}
.preview-coordinates {
    margin-bottom: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
    color: var(--ink-2);
}
.coord-label { font-weight: 800; color: var(--ink); margin-inline-end: 4px; }
.preview-address { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; font-weight: 600; }
.preview-address .ic { color: var(--brand); margin-top: 3px; }

.location-fields-visible {
    margin-top: 16px;
    padding: 16px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.hidden-fields { display: none; }

.keywords-input-wrapper { display: flex; gap: 8px; margin-bottom: 10px; }
.keywords-input-wrapper .modern-input { flex: 1; min-width: 0; }
.add-keyword-btn {
    flex: 0 0 auto;
    width: 52px;
    min-height: 52px;
    border: 0;
    border-radius: var(--r);
    background: var(--brand);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: var(--t);
    touch-action: manipulation;
}
.add-keyword-btn:hover { background: var(--brand-700); }
.keywords-tags-container { display: flex; flex-wrap: wrap; gap: 6px; }
.keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px 5px 11px;
    border: 1px solid var(--brand-100);
    border-radius: var(--pill);
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 12.5px;
    font-weight: 700;
}
.keyword-tag .remove-keyword-btn {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(173, 31, 36, .16);
    color: var(--brand-700);
    font-size: 10px;
    cursor: pointer;
}
.keyword-tag .remove-keyword-btn:hover { background: var(--brand); color: #fff; }
.keywords-field-hint { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--muted); }

/* ══════════════════════════════════════════════════════════
   UPLOADS
   ══════════════════════════════════════════════════════════ */
.upload-section { margin-bottom: 26px; }
.section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1.5px solid var(--line);
    font-size: 1.02rem;
    font-weight: 800;
}
.upload-instructions-message,
.document-requirement-message {
    padding: 12px 15px;
    margin-bottom: 16px;
    border-inline-start: 3px solid var(--brand);
    border-radius: var(--r-sm);
    background: var(--brand-50);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
}
.upload-instructions-message:empty,
.document-requirement-message:empty { display: none; }
.upload-area {
    position: relative;
    min-height: 124px;
    padding: 22px 18px;
    text-align: center;
    border: 1.5px dashed var(--line-2);
    border-radius: var(--r-lg);
    background: var(--soft);
    cursor: pointer;
    transition: var(--t);
    touch-action: manipulation;
}
.upload-area:hover,
.upload-area.dragover { border-color: var(--brand); background: var(--brand-50); }
.upload-area.error { border-color: var(--err) !important; background: var(--err-bg); }
.upload-icon { display: block; margin-bottom: 8px; color: var(--brand); font-size: 30px; }
.upload-text { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.upload-count { margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--brand); }
.file-input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.upload-preview,
.upload-preview-grid { position: relative; z-index: 3; }
.upload-preview { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.preview-item {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--line);
    border-radius: var(--r-xs);
    background: var(--card);
    overflow: hidden;
    font-size: 20px;
    color: var(--brand);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.remove-file {
    position: absolute;
    top: 4px;
    inset-inline-end: 4px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, .95);
    color: #fff;
    font-size: 11px;
    cursor: pointer;
}
.upload-waiting {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .9);
}
.error-message { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--err); }

/* ── Logo & main_screen: keep previews small (same size as media) ── */
#logo-preview,
#main_screen-preview {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(78px, 78px)) !important;
    gap: 8px !important;
    justify-content: start !important;
}
#logo-preview .preview-item,
#main_screen-preview .preview-item {
    width: 78px;
    height: 78px;
    max-width: 78px;
    max-height: 78px;
}
#logo-preview .preview-item img,
#main_screen-preview .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ══════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════ */
.form-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
}
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 122px;
    min-height: 52px;
    padding: 13px 24px;
    border: 0;
    border-radius: var(--pill);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--t);
    touch-action: manipulation;
}
.prev-btn { background: var(--soft); border: 1.5px solid var(--line); color: var(--ink-2); }
.prev-btn:hover { background: var(--line); }
.next-btn,
.submit-btn {
    background: linear-gradient(145deg, var(--brand), var(--brand-700));
    color: #fff;
    box-shadow: 0 10px 22px -12px var(--brand-100);
}
.next-btn:hover:not(:disabled),
.submit-btn:hover { transform: translateY(-1px); }
.next-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
html[dir="rtl"] .prev-btn .ic,
html[dir="rtl"] .next-btn .ic,
html[dir="rtl"] .submit-btn .ic { transform: rotate(180deg); }

/* ══════════════════════════════════════════════════════════
   REVIEW
   ══════════════════════════════════════════════════════════ */
.review-container { display: grid; gap: 12px; }
.review-section {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card);
    overflow: hidden;
}
.review-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}
.review-section-header h3 { font-size: .95rem; }
.review-edit-btn {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    color: var(--brand);
    font-size: 13px;
    cursor: pointer;
    touch-action: manipulation;
}
.review-edit-btn:hover { border-color: var(--brand); background: var(--brand-50); }
.review-content { padding: 12px 14px; }
.review-row { display: flex; gap: 10px; margin-bottom: 8px; font-size: 13.5px; }
.review-row:last-child { margin-bottom: 0; }
.review-label { flex: 0 0 158px; font-weight: 700; color: var(--muted); }
.review-value { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); word-break: break-word; }
.review-value img { max-width: 64px; border-radius: var(--r-xs); border: 1px solid var(--line); }

/* ══════════════════════════════════════════════════════════
   TERMS
   ══════════════════════════════════════════════════════════ */
.terms-container {
    margin: 20px 0 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--soft);
}
.terms-container.has-error { border-color: var(--err); background: var(--err-bg); }
.terms-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    cursor: pointer;
    touch-action: manipulation;
}
.terms-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.checkmark {
    position: relative;
    flex: 0 0 auto;
    width: 23px;
    height: 23px;
    border: 2px solid var(--line-2);
    border-radius: 7px;
    background: var(--card);
    transition: var(--t);
}
.terms-checkbox:checked ~ .checkmark { background: var(--brand); border-color: var(--brand); }
.terms-checkbox:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 6.5px;
    top: 2.5px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.terms-checkbox:focus-visible ~ .checkmark { box-shadow: var(--ring); }
.terms-text { font-size: 13.5px; font-weight: 600; }
.terms-link { font-weight: 800; text-decoration: none; }
.terms-link:hover { text-decoration: underline; }
.terms-error {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: var(--r-xs);
    background: rgba(220, 38, 38, .1);
    color: var(--err);
    font-size: 12.5px;
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════════
   OVERLAYS / SUCCESS / TOAST
   ══════════════════════════════════════════════════════════ */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(20, 22, 26, .62);
}
.loading-spinner { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
.loading-text { color: #fff; font-size: 14.5px; font-weight: 700; }

.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(20, 22, 26, .68);
}
.success-overlay.show { display: flex; }
.success-modal {
    width: 100%;
    max-width: 430px;
    padding: 34px 26px;
    border-radius: var(--r-xl);
    background: var(--card);
    text-align: center;
    box-shadow: var(--sh-3);
    animation: popIn .34s var(--ease);
}
@keyframes popIn {
    from { opacity: 0; transform: scale(.93); }
    to { opacity: 1; transform: scale(1); }
}
.success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--brand-500), var(--brand-700));
    color: #fff;
    font-size: 36px;
}
.success-title { font-size: 1.5rem; margin-bottom: 8px; }
.success-email {
    padding: 11px 14px;
    margin: 12px 0;
    border-radius: var(--pill);
    background: var(--soft);
    color: var(--brand);
    font-size: .95rem;
    font-weight: 800;
    word-break: break-all;
}
.success-message { margin-bottom: 20px; font-size: 13.5px; color: var(--muted); }
.success-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border: 0;
    border-radius: var(--pill);
    background: var(--brand);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}
.success-button:hover { background: var(--brand-700); }

.toast-host {
    position: fixed;
    inset-inline: 0;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 10050;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: min(440px, 100%);
    padding: 12px 15px;
    border-radius: var(--r);
    background: #1B1E24;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: var(--sh-3);
    animation: toastIn .22s var(--ease);
}
.toast.err { background: #B91C1C; }
.toast.ok { background: #0F7A45; }
.toast .ic { margin-top: 2px; font-size: 16px; }
.toast ul { margin: 0; padding-inline-start: 16px; }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
    body { padding: 78px 12px 40px; }
    .register-container { padding: 22px 18px; border-radius: var(--r-xl); }
    .step-title { font-size: 1.35rem; }
    .step-label { font-size: 10.5px; }
    .step-number { width: 30px; height: 30px; font-size: 12px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .link-input-wrapper-enhanced { flex-direction: column; }
    .extract-btn-enhanced { width: 100%; min-height: 50px; justify-content: center; }
    .location-method-tabs { flex-direction: column; border-radius: var(--r-lg); }
    .method-tab { min-width: 0; }
    .map-container-enhanced { height: 290px; }
    .vendor-type-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); max-height: 380px; }
    .review-label { flex-basis: 108px; font-size: 12.5px; }
    .linked-banner { top: 70px; }

    .form-navigation {
        position: sticky;
        bottom: 0;
        z-index: 30;
        margin: 24px -18px -22px;
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
        background: var(--card);
        border-top: 1px solid var(--line);
        border-radius: 0 0 var(--r-xl) var(--r-xl);
    }
    .nav-btn { flex: 1; min-width: 0; }
    .toast-host { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 460px) {
    .step-label { display: none; }
    .topbar { height: 58px; padding: 0 12px; }
    .brand-txt small { display: none; }
    .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
    .selector-glass { height: 36px; padding: 0 8px; }
    .modern-select { font-size: 13px; }
    .back-btn { height: 36px; padding: 0 12px; font-size: 12.5px; }
    .back-btn-txt { display: none; }
    body { padding-top: 72px; }
}

/* ══════════════════════════════════════════════════════════
   A11Y / MOTION
   ══════════════════════════════════════════════════════════ */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
/* ── Step pills: always clickable, no dead zones ── */
.step {
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.step .step-number,
.step .step-label {
    pointer-events: none;   /* clicks pass to .step */
}
.step:not(.active):hover .step-number {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}
.step.done:hover .step-number { transform: scale(1.08); }

/* ============================================================
   v6.0 — MOBILE-FIRST REDESIGN LAYER
   Calmer surface, app-like stepper, thumb-friendly controls,
   sticky action bar, auto-growing text areas.
   (Overrides earlier rules; class names unchanged.)
   ============================================================ */
:root {
    --bg: #F7F4F2;
    --soft: #F7F5F4;
    --line: #E9E4E1;
    --line-2: #D9D2CE;
    --brand-50: rgba(173, 31, 36, .07);
    --sh-card: 0 1px 2px rgba(40, 20, 20, .04), 0 18px 40px -24px rgba(60, 20, 20, .25);
    --tap: 52px;
}

body {
    background-image:
        linear-gradient(180deg, rgba(173, 31, 36, .10) 0, rgba(173, 31, 36, 0) 260px),
        radial-gradient(700px 360px at 110% 0, rgba(173, 31, 36, .06), transparent 60%);
    background-repeat: no-repeat;
}

/* ── Top bar ── */
.topbar { height: 60px; background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 var(--line); border-bottom: 0; }
.brand-mark { box-shadow: none; border: 1px solid var(--line); }
.selector-glass, .back-btn { height: 40px; background: #fff; }
.back-btn { background: var(--brand); border-color: var(--brand); color: #fff; }
.back-btn .ic { color: #fff; }
.back-btn:hover { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }

/* ── Card ── */
.register-container { padding: 28px 32px 32px; border: 0; border-radius: 28px; box-shadow: var(--sh-card); }

/* ── Stepper: dots joined by a line, label only for current ── */
.registration-progress { margin-bottom: 26px; }
.progress-steps { position: relative; gap: 0; margin-bottom: 14px; }
.progress-steps::before {
    content: ''; position: absolute; top: 17px; inset-inline: calc(100% / 12); height: 2px;
    background: var(--line); border-radius: 2px;
}
.step { position: relative; z-index: 1; gap: 7px; }
.step-number {
    width: 36px; height: 36px; border-width: 2px; background: #fff;
    font-size: 13px; box-shadow: 0 0 0 4px var(--card);
}
.step.done .step-number { background: var(--brand); border-color: var(--brand); color: transparent; position: relative; }
.step.done .step-number::after {
    content: ''; position: absolute; left: 50%; top: 46%; width: 6px; height: 11px;
    border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translate(-50%, -50%) rotate(45deg);
}
.step.active .step-number { transform: none; box-shadow: 0 0 0 4px var(--card), 0 0 0 7px var(--brand-100); }
.step.has-error .step-number { background: #fff; }
.progress-bar { height: 6px; }
.progress-meta { margin-top: 12px; }

/* ── Step header ── */
.step-header { margin-bottom: 22px; }
.step-title { font-size: 1.55rem; letter-spacing: -.02em; }
.step-subtitle { font-size: .95rem; }

/* ── Filter tabs: single scrollable row ── */
.filter-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 2px 4px 6px; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab { flex: 0 0 auto; padding: 10px 20px; min-height: 42px; display: inline-flex; align-items: center; text-transform: capitalize; }

/* ── Vendor type cards ── */
.vendor-type-grid { gap: 12px; padding: 6px 4px 10px; max-height: none; overflow: visible; }
.vendor-type-card { aspect-ratio: auto; min-height: 148px; border-width: 2px; border-radius: 20px; padding: 18px 12px; }
.vendor-type-card:hover { transform: none; }
.vendor-type-card:active { transform: scale(.97); }
.vendor-type-card.selected { background: var(--brand-50); box-shadow: none; }
.vendor-type-icon { width: 60px; height: 60px; background: #fff; border: 1px solid var(--line); }
.vendor-type-icon:has(img) { border: 0; }

/* ── Fields ── */
.form-group { margin-bottom: 18px; }
.field-label { font-size: 13.5px; margin-bottom: 8px; }
.modern-input, .modern-textarea, .modern-select-input, input[type="text"], input[type="email"],
input[type="tel"], input[type="password"], select, textarea {
    min-height: var(--tap); border-radius: 16px; border-width: 1.5px; background: #fff; font-weight: 500;
}
.modern-input:focus, .modern-textarea:focus, select:focus, input:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }

/* Text areas: Enter = new line, auto-grow, comfortable reading */
.modern-textarea, textarea {
    min-height: 124px; line-height: 1.7; white-space: pre-wrap; resize: none;
    field-sizing: content; max-height: 60vh; overflow-y: auto;
}
textarea:not([name="location_json"]) { display: block; }

/* ── Location ── */
.location-method-tabs { gap: 4px; padding: 4px; border-radius: 18px; flex-wrap: nowrap; background: #EFEAE7; border: 0; }
.method-tab { min-width: 0; min-height: 48px; border-radius: 14px; flex-direction: column; gap: 3px; padding: 7px 4px; font-size: 12px; text-align: center; }
.method-tab .ic { font-size: 18px; }
.method-tab.active { background: #fff; color: var(--brand); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .15); }
.geolocation-card, .google-maps-card, .map-picker-card { border-radius: 20px; padding: 22px 18px; border-width: 1px; }
.geolocation-btn { width: 100%; min-height: var(--tap); border-radius: 16px; }
.extract-btn-enhanced { border-radius: 16px; }
.map-container-enhanced { height: 56vh; min-height: 320px; max-height: 480px; border-radius: 18px; }
.map-control-btn { width: 42px; height: 42px; }
.location-fields-visible { border-radius: 20px; background: var(--soft); }

/* ── Uploads ── */
.upload-area { border-radius: 20px; border-width: 2px; min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; }
.upload-area:active { background: var(--brand-50); }
.upload-icon { width: 2.4rem; height: 2.4rem; }
.upload-preview-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.preview-item { border-radius: 14px; }
.remove-file { width: 28px; height: 28px; top: 5px; }
#logo-preview .preview-item, #main_screen-preview .preview-item { width: 88px; height: 88px; max-width: 88px; max-height: 88px; }
#logo-preview, #main_screen-preview { grid-template-columns: repeat(auto-fill, minmax(88px, 88px)) !important; }

/* ── Navigation: sticky action bar ── */
.form-navigation { margin-top: 28px; }
.nav-btn { min-height: var(--tap); border-radius: 16px; }
.prev-btn { background: #fff; }
.next-btn, .submit-btn { background: var(--brand); box-shadow: 0 8px 20px -10px rgba(173, 31, 36, .6); }
.next-btn:active:not(:disabled), .submit-btn:active { transform: scale(.98); }

/* ── Review ── */
.review-section { border-radius: 18px; }
.review-content { padding: 14px 16px; }
.review-edit-btn { width: 38px; height: 38px; }
.review-value { white-space: pre-line; }

/* ── Terms ── */
.terms-container { border-radius: 18px; padding: 18px; }
.checkmark { width: 26px; height: 26px; border-radius: 8px; }
.terms-checkbox:checked ~ .checkmark::after { left: 8px; top: 3px; }

/* ── Toasts / modals ── */
.toast { border-radius: 16px; }
.success-modal { border-radius: 28px; }

/* ══════════ PHONE (≤ 720px): full-bleed, app-like ══════════ */
@media (max-width: 720px) {
    body { padding: 60px 0 0; background-color: #fff; }
    .register-container {
        padding: 20px 16px 0; border-radius: 0; box-shadow: none; min-height: calc(100vh - 60px);
        min-height: calc(100dvh - 60px); animation: none;
    }
    .step-title { font-size: 1.4rem; }
    .step-label { display: none; }
    .step.active .step-label { display: block; position: absolute; top: 44px; width: 90px; left: 50%; transform: translateX(-50%); font-size: 11.5px; }
    .registration-progress { margin-bottom: 36px; }
    .progress-meta { margin-top: 8px; }
    .step-number { width: 32px; height: 32px; }
    .progress-steps::before { top: 15px; }

    .form-row { grid-template-columns: 1fr; gap: 0; }
    .vendor-type-grid { grid-template-columns: repeat(2, 1fr); }
    .vendor-type-card { min-height: 132px; }
    .link-input-wrapper-enhanced { flex-direction: column; }
    .extract-btn-enhanced { width: 100%; min-height: var(--tap); justify-content: center; }
    .location-method-tabs { flex-direction: row; border-radius: 18px; }
    .map-container-enhanced { height: 52vh; }
    .location-fields-visible { padding: 14px; margin-inline: -4px; }
    .review-row { flex-direction: column; gap: 2px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
    .review-row:last-child { border-bottom: 0; padding-bottom: 0; }
    .review-label { flex-basis: auto; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }

    .form-navigation {
        position: sticky; bottom: 0; z-index: 30; margin: 28px -16px 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); border-radius: 0;
        box-shadow: 0 -8px 20px -14px rgba(0, 0, 0, .18);
    }
    .form-navigation .prev-btn { flex: 0 0 auto; min-width: 0; padding-inline: 18px; }
    .form-navigation .prev-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .form-navigation .next-btn, .form-navigation .submit-btn { flex: 1; }
    .toast-host { bottom: calc(92px + env(safe-area-inset-bottom)); }
    .linked-banner { top: 68px; }
    .success-modal { padding: 30px 20px; }
}

@media (max-width: 380px) {
    .register-container { padding-inline: 12px; }
    .form-navigation { margin-inline: -12px; padding-inline: 12px; }
    .vendor-type-card { padding: 14px 8px; }
}

/* Larger screens: roomier two-column forms stay, but center & breathe */
@media (min-width: 1000px) {
    body { padding-top: 92px; }
    .register-container { max-width: 880px; }
}