:root {
    --bg: #f0f4f3;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --accent: #14b8a6;
    --border: #e2e8f0;
    --success: #15803d;
    --warning: #b45309;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.1);
    --radius: clamp(12px, 3.2vw, 16px);
    --radius-sm: clamp(10px, 2.6vw, 12px);
    --footer-h: clamp(62px, 17vw, 76px);
    --header-h: clamp(50px, 14vw, 56px);
    --page-x: clamp(12px, 3.6vw, 16px);
    --page-y: clamp(10px, 2.8vw, 16px);
    --space-1: clamp(6px, 1.6vw, 8px);
    --space-2: clamp(8px, 2.2vw, 12px);
    --space-3: clamp(12px, 3.2vw, 16px);
    --space-4: clamp(14px, 3.8vw, 20px);
    --text-xs: clamp(0.7rem, 2.6vw, 0.78rem);
    --text-sm: clamp(0.78rem, 2.9vw, 0.88rem);
    --text-base: clamp(0.8125rem, 3vw, 0.9375rem);
    --text-md: clamp(0.875rem, 3.2vw, 1rem);
    --text-lg: clamp(1rem, 3.6vw, 1.15rem);
    --text-xl: clamp(1.1rem, 4vw, 1.35rem);
    --text-2xl: clamp(1.35rem, 5vw, 1.75rem);
    --text-display: clamp(1.6rem, 6.2vw, 2.4rem);
    --btn-h: clamp(44px, 11.5vw, 52px);
    --btn-pad-y: clamp(10px, 2.8vw, 14px);
    --btn-pad-x: clamp(12px, 3.6vw, 18px);
    --btn-font: clamp(0.8125rem, 3vw, 0.9375rem);
    --input-pad: clamp(11px, 3vw, 14px);
    --icon-box: clamp(36px, 9.5vw, 44px);
    --card-pad: clamp(11px, 3.2vw, 16px);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-l: env(safe-area-inset-left, 0px);
    --safe-r: env(safe-area-inset-right, 0px);
    --kb-inset: 0px;
    --vv-offset-top: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--text-base);
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}

.hidden { display: none !important; }

/* ===== APP SHELL (100% mobile) ===== */
.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    height: -webkit-fill-available;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.app__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: var(--page-y) var(--page-x) calc(var(--footer-h) + var(--safe-b) + var(--page-y));
}

/* ===== HERO ===== */
.hero {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    background: linear-gradient(165deg, #0f766e 0%, #0d4f4a 55%, #134e4a 100%);
    color: #fff;
    padding: calc(var(--space-4) + var(--safe-t)) var(--page-x) calc(80px + var(--safe-b));
}

.hero__inner { flex: 1; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
    backdrop-filter: blur(8px);
}

.hero__title {
    font-size: var(--text-2xl);
    line-height: 1.12;
    margin: 0 0 var(--space-2);
    letter-spacing: -0.02em;
}

.hero__subtitle {
    margin: 0 0 var(--space-4);
    opacity: 0.9;
    font-size: var(--text-md);
    line-height: 1.45;
}

.hero__features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-4);
}

.hero__features li {
    padding: 7px 0 7px 24px;
    position: relative;
    font-size: var(--text-base);
}

.hero__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #5eead4;
    font-weight: 700;
    font-size: var(--text-md);
}

.hero__cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--space-2) var(--page-x) calc(var(--space-2) + var(--safe-b));
    background: linear-gradient(transparent, rgba(13,79,74,0.95) 30%);
}

.hero--loading .hero__title,
.hero--loading .hero__subtitle {
    background: rgba(255,255,255,0.15);
    color: transparent;
    border-radius: 8px;
    animation: pulse 1.2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== WIZARD ===== */
.wizard {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    height: -webkit-fill-available;
    width: 100%;
    background: var(--surface);
    overflow: hidden;
}

.wizard__head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: calc(8px + var(--safe-t)) var(--page-x) 8px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 10;
    width: 100%;
}

.wizard__back {
    border: 0;
    background: #f1f5f9;
    width: var(--icon-box);
    height: var(--icon-box);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--text-lg);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.wizard__progress-wrap { flex: 1; }

.wizard__dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 6px;
}

.wizard__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: all .25s ease;
}

.wizard__dot.active { background: var(--primary); width: 22px; }
.wizard__dot.done { background: var(--accent); }

.wizard__step-label {
    display: block;
    text-align: center;
    font-size: var(--text-xs);
    color: var(--muted);
}

.wizard__body {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
    width: 100%;
    background: var(--surface);
}

.step {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: var(--space-3) var(--page-x) calc(var(--footer-h) + var(--safe-b) + var(--kb-inset) + var(--space-3));
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    transform: none !important;
    background: var(--surface);
}

.step.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    z-index: 1;
    animation: stepFade .22s ease;
}

@keyframes stepFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.step h2 {
    margin: 0 0 var(--space-1);
    font-size: var(--text-xl);
    letter-spacing: -0.02em;
}

.step__hint {
    color: var(--muted);
    margin: 0 0 var(--space-3);
    font-size: var(--text-sm);
}

/* ===== FOOTER FIXO (polegar) ===== */
.wizard__footer,
.live-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: var(--space-2) var(--page-x) calc(var(--space-2) + var(--safe-b) + var(--kb-inset));
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 30;
    box-sizing: border-box;
    transition: padding-bottom 0.2s ease;
}

/* Rodapé dentro do fluxo (live track / status) — scroll nativo no mobile */
.live-track .live-footer,
.app--status .status-fixed-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    flex-shrink: 0;
    transform: none;
    width: 100%;
    z-index: 1;
}

.live-footer--minimal {
    padding: var(--space-2) var(--page-x) calc(var(--space-2) + var(--safe-b));
    background: rgba(255,255,255,0.92);
}

.wizard__footer .btn,
.live-footer .btn { flex: 1; min-height: var(--btn-h); }

.live-footer__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: 100%;
    margin-bottom: var(--space-1);
}

.live-footer__wa {
    min-height: var(--btn-h);
    font-size: var(--btn-font);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== BOTÕES ===== */
.btn {
    appearance: none;
    border: 0;
    border-radius: var(--radius-sm);
    padding: var(--btn-pad-y) var(--btn-pad-x);
    font-size: var(--btn-font);
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, opacity .12s ease;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    text-decoration: none;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; pointer-events: none; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--ghost { background: #f1f5f9; color: var(--primary); }
.btn--outline {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--border);
}
.btn--lg { width: 100%; min-height: var(--btn-h); font-size: var(--btn-font); }
.btn--block { display: flex; width: 100%; }
.btn--wa { background: #25d366; color: #fff; }

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .65s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CAMPOS ===== */
.field { display: block; margin-bottom: var(--space-3); }
.field span {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: #334155;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--input-pad);
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.field textarea {
    resize: vertical;
    min-height: clamp(72px, 20vw, 88px);
    line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(20,184,166,0.12);
}

.field--loading input { background-image: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%); background-size: 200% 100%; animation: shimmer 1s infinite; }

@keyframes shimmer { to { background-position: -200% 0; } }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ===== CHIPS / CARDS (touch-friendly) ===== */
.chip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.chip {
    display: block;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-2);
    text-align: center;
    cursor: pointer;
    transition: all .15s ease;
    background: #fff;
    -webkit-tap-highlight-color: transparent;
    min-height: clamp(48px, 13vw, 56px);
}

.chip input { display: none; }
.chip strong { display: block; font-size: var(--text-sm); }
.chip:has(input:checked) {
    border-color: var(--primary);
    background: #ecfdf5;
    box-shadow: 0 0 0 1px var(--primary);
}

.choice-grid { display: grid; gap: 12px; margin-bottom: 16px; }

.choice-card {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-3) var(--card-pad);
    cursor: pointer;
    background: #fff;
    transition: all .15s ease;
    -webkit-tap-highlight-color: transparent;
    min-height: clamp(58px, 16vw, 72px);
}

.choice-card input { display: none; }

.choice-card__icon {
    width: var(--icon-box);
    height: var(--icon-box);
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.choice-card__text strong { display: block; font-size: var(--text-base); margin-bottom: 2px; }
.choice-card__text small { color: var(--muted); font-size: var(--text-sm); }

.choice-card:has(input:checked) {
    border-color: var(--primary);
    background: #ecfdf5;
}

.choice-card:has(input:checked) .choice-card__icon {
    background: var(--primary);
    color: #fff;
}

.service-list { display: grid; gap: 10px; margin-bottom: 16px; }

.service-item {
    display: block;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--card-pad);
    cursor: pointer;
    background: #fff;
    transition: all .15s ease;
}

.service-item input { display: none; }
.service-item strong { display: block; font-size: var(--text-base); }
.service-item small { color: var(--muted); font-size: var(--text-sm); }

.service-item:has(input:checked) {
    border-color: var(--primary);
    background: #ecfdf5;
}

.info-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--card-pad);
    margin-top: var(--space-1);
    animation: fadeUp .25s ease;
}

.info-box p { margin: 4px 0 0; color: #334155; font-size: var(--text-sm); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.estimate-box {
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 0;
    margin-top: 16px;
    overflow: hidden;
    animation: fadeUp .25s ease;
}

.estimate-box__tag {
    display: block;
    background: #f59e0b;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 12px 16px;
    text-align: center;
}

.estimate-box__price {
    display: block;
    font-size: var(--text-display);
    font-weight: 800;
    color: #92400e;
    margin: 0;
    padding: var(--space-3) var(--card-pad) var(--space-1);
    text-align: center;
    letter-spacing: -0.02em;
}

.estimate-box__warn {
    margin: 0;
    padding: 0 16px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #b45309;
    text-align: center;
    line-height: 1.4;
}

.estimate-box--loading .estimate-box__price::after {
    content: '...';
    animation: pulse 1s infinite;
}

.summary-estimate {
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 12px;
}

.summary-estimate__tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: #b45309;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-estimate__price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #92400e;
    margin: 6px 0;
}

.summary-estimate__warn {
    font-size: 0.85rem;
    color: #b45309;
    margin: 0;
    font-weight: 600;
}

/* ===== PHOTO VIEWER (pinch zoom iOS + Android) ===== */
.photo-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.94);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity .2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}

.photo-viewer--open { opacity: 1; }

.photo-viewer__top {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(12px + var(--safe-t)) 16px 12px;
    color: #fff;
}

.photo-viewer__label {
    font-size: 0.92rem;
    font-weight: 600;
    opacity: 0.9;
}

.photo-viewer__close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.photo-viewer__stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.photo-viewer__stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    will-change: transform;
    -webkit-user-drag: none;
    pointer-events: none;
}

.photo-viewer__hint {
    flex-shrink: 0;
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    padding: 12px 16px calc(16px + var(--safe-b));
    margin: 0;
}

/* ===== FOTOS (mobile camera) ===== */
.photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.photo-upload {
    display: block;
    position: relative;
}

.photo-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.photo-upload__box {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: clamp(84px, 24vw, 100px);
    border: 2px dashed #94a3b8;
    border-radius: var(--radius);
    padding: var(--card-pad);
    color: var(--muted);
    background: #fff;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: border-color .15s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    position: relative;
}

.photo-upload__box.has-image {
    border-style: solid;
    border-color: var(--primary);
    min-height: clamp(120px, 38vw, 160px);
    align-items: flex-end;
    padding: 0;
}

.photo-upload__box.has-image::after {
    content: '🔍 Toque para ampliar';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

.photo-upload__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.photo-upload__box.has-image .photo-upload__icon,
.photo-upload__box.has-image .photo-upload__label {
    display: none;
}

.photo-upload__label strong { display: block; color: var(--text); font-size: 1rem; }
.photo-upload__label small { font-size: 0.82rem; }

.photo-upload__actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.photo-upload__zoom,
.photo-upload__change {
    flex: 1;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.photo-upload__zoom {
    background: #ecfdf5;
    color: var(--primary-dark);
}

.photo-upload__change {
    background: #f1f5f9;
    color: var(--text);
}

.photo-upload__actions.hidden { display: none; }

.photo-thumb--zoomable {
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
}

.photo-thumb--zoomable:active { opacity: 0.92; }

/* ===== RESUMO ===== */
.summary {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid var(--border);
}

.summary dl { margin: 0; }
.summary dt { font-size: 0.75rem; color: var(--muted); margin-top: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.summary dt:first-child { margin-top: 0; }
.summary dd { margin: 4px 0 0; font-weight: 600; font-size: 1rem; }

/* ===== SUCESSO + LIVE TRACKING ===== */
.live-track {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    background: var(--bg);
    overflow: hidden;
}

.live-track__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--space-3) var(--page-x);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.status-hero {
    flex-shrink: 0;
    padding: calc(var(--space-3) + var(--safe-t)) var(--page-x) var(--space-3);
    text-align: center;
    animation: fadeUp .3s ease;
}

.status-hero--pending {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    border-bottom: 3px solid #f59e0b;
}

.status-hero--ready {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    border-bottom: 3px solid #22c55e;
}

.status-hero--ready .status-hero__icon { background: #dcfce7; }

.status-hero__icon {
    width: clamp(44px, 12vw, 56px);
    height: clamp(44px, 12vw, 56px);
    margin: 0 auto var(--space-2);
    border-radius: 50%;
    background: #fde68a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    animation: heroPulse 2s ease infinite;
}

@keyframes heroPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
}

.status-hero--ready .status-hero__icon { animation: none; }

.status-hero h2 {
    margin: 0 0 var(--space-1);
    font-size: var(--text-lg);
    font-weight: 800;
    color: #92400e;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.status-hero--ready h2 { color: #166534; }

.status-hero p {
    margin: 0;
    font-size: var(--text-sm);
    color: #b45309;
    font-weight: 600;
    line-height: 1.4;
}

.status-hero--ready p { color: #15803d; }

.status-steps {
    display: grid;
    gap: var(--space-1);
    margin-bottom: var(--space-2);
}

.status-step {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: #fff;
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--card-pad);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--muted);
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.status-step__icon {
    width: clamp(28px, 7.5vw, 32px);
    height: clamp(28px, 7.5vw, 32px);
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.status-step--done {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.status-step--done .status-step__icon {
    background: #22c55e;
    color: #fff;
}

.status-step--active {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
    animation: stepGlow 2s ease infinite;
}

.status-step--active .status-step__icon {
    background: #f59e0b;
    color: #fff;
    animation: liveBlink 1.4s ease infinite;
}

@keyframes stepGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15); }
}

.price-block {
    border-radius: 16px;
    padding: 0;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.price-block--estimate {
    background: #fff;
    border: 2px solid #f59e0b;
}

.price-block--confirmed {
    background: #fff;
    border: 2px solid #22c55e;
    animation: pricePop .4s cubic-bezier(.34, 1.56, .64, 1);
}

.price-block__tag {
    display: block;
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.price-block--estimate .price-block__tag {
    background: #f59e0b;
    color: #fff;
}

.price-block--confirmed .price-block__tag {
    background: #22c55e;
    color: #fff;
}

.price-block__value {
    font-size: var(--text-display);
    font-weight: 800;
    text-align: center;
    padding: var(--space-2) var(--card-pad) var(--space-1);
    letter-spacing: -0.03em;
    line-height: 1;
}

.price-block--estimate .price-block__value { color: #92400e; }
.price-block--confirmed .price-block__value { color: #166534; }

.price-block__note {
    margin: 0;
    padding: var(--space-1) var(--card-pad) var(--card-pad);
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.35;
}

.price-block--estimate .price-block__note { color: #b45309; }
.price-block--confirmed .price-block__note { color: #15803d; }

.live-footer__hint {
    margin: 0;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    line-height: 1.35;
}

.live-footer__hint--ready {
    color: #166534;
}

.live-pulse {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 0.92rem;
    color: #92400e;
}

.live-pulse__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
    animation: liveBlink 1.4s ease infinite;
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.live-card {
    background: #fff;
    border-radius: var(--radius);
    padding: var(--card-pad);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-2);
}

.live-card--price {
    text-align: center;
    border: 2px solid #5eead4;
    animation: pricePop .4s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes pricePop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.live-price {
    font-size: var(--text-display);
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.03em;
}

.live-updated {
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 8px;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(var(--footer-h) + var(--safe-b) + 12px);
    background: #1e293b;
    color: #fff;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.92rem;
    z-index: 200;
    box-shadow: var(--shadow);
    animation: toastIn .25s ease;
    text-align: center;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

/* ===== STATUS PAGE ===== */
.app--status {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app--status .status-hero {
    flex-shrink: 0;
}

.app--status .app__scroll {
    flex: 1;
    min-height: 0;
    padding-bottom: 16px;
}

.app--status .status-fixed-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    flex-shrink: 0;
}

.status-header {
    flex-shrink: 0;
    padding: calc(12px + var(--safe-t)) 16px 12px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.status-header__back {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.status-header h1 {
    margin: 4px 0 0;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.status-card { padding: 0; }

.status-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.status-badge--pending {
    background: #f59e0b;
    color: #fff;
    font-size: 0.88rem;
    padding: 10px 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.status-badge--responded { background: #dcfce7; color: #166534; }
.status-badge--confirmed { background: #dbeafe; color: #1d4ed8; }

.status-meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }

.status-price {
    font-size: var(--text-display);
    font-weight: 800;
    color: var(--primary-dark);
    margin: var(--space-1) 0;
    letter-spacing: -0.03em;
}

.status-slots { margin: 16px 0; padding: 0; }

.status-slots li {
    list-style: none;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    font-weight: 500;
}

.status-location {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 14px;
    padding: 16px;
    margin: 16px 0;
}

.status-location strong { display: block; margin-bottom: 6px; }

.status-fixed-footer {
    padding: var(--space-2) var(--page-x) calc(var(--space-2) + var(--safe-b));
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    z-index: 20;
    box-sizing: border-box;
}

.status-loading {
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
}

.skeleton {
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 10px;
    height: 20px;
    margin-bottom: 10px;
}

.skeleton--lg { height: 48px; }

/* Slot picker (cliente) */
.slot-picker__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slot-option {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--card-pad);
    background: #f8fafc;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.slot-option input { accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; }

.slot-option__label { font-weight: 600; font-size: var(--text-sm); flex: 1; }

.slot-option__check {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.slot-option--selected,
.slot-option:has(input:checked) {
    border-color: var(--primary);
    background: #f0fdfa;
}

.slot-option--saving { opacity: 0.65; }

.slot-picker__hint { margin: 8px 0 12px !important; }

/* Contraproposta */
.counter-box__intro { margin: 6px 0 14px !important; }

.counter-box__sent { margin: 10px 0 4px; font-size: 1.05rem; }

.counter-box__msg {
    color: var(--muted);
    font-style: italic;
    margin: 0 0 8px;
}

.counter-box--sent { background: #fffbeb; border: 1px solid #fde68a; }

/* Confirmar agendamento */
.accept-box {
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
    border: 2px solid #99f6e4;
}

.accept-box__slot,
.accept-box__price {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #334155;
}

.accept-box .btn { margin-top: var(--space-2); min-height: var(--btn-h); font-size: var(--btn-font); }

.accept-box__location {
    margin: 8px 0 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.4;
}

/* WhatsApp só no rodapé — passo final de formalização */
.wa-link-subtle {
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
    margin: 8px 0 20px;
    padding: 0 8px;
}

.wa-link-subtle a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.live-updated {
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
    margin: 8px 0 16px;
}

/* ===== SESSÃO CLIENTE ===== */
body.has-client-bar .app { padding-top: calc(var(--header-h) + var(--safe-t)); }

body.keyboard-open .wizard__footer {
    padding-bottom: calc(var(--space-2) + var(--safe-b) + var(--kb-inset));
}

.client-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--page-x);
    padding-top: calc(var(--space-1) + var(--safe-t));
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    max-width: 430px;
    margin: 0 auto;
}

.client-bar__home {
    width: clamp(34px, 9vw, 40px);
    height: clamp(34px, 9vw, 40px);
    border: 0;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    font-size: var(--text-md);
    cursor: pointer;
    flex-shrink: 0;
}

.client-bar__info { flex: 1; min-width: 0; line-height: 1.25; }

.client-bar__info strong {
    display: block;
    font-size: var(--text-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-bar__info small { color: var(--muted); font-size: var(--text-xs); }

.client-bar__new {
    min-height: clamp(34px, 9vw, 40px) !important;
    padding: 6px 10px !important;
    font-size: var(--text-xs) !important;
    flex-shrink: 0;
    text-decoration: none;
}

.client-home {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: var(--space-3) var(--page-x) calc(var(--space-4) + var(--safe-b) + var(--kb-inset));
}

.client-home__hero {
    background: linear-gradient(165deg, #0f766e 0%, #134e4a 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: var(--space-3) var(--card-pad);
    margin-bottom: var(--space-3);
}

.client-home__biz {
    margin: 0 0 4px;
    font-size: var(--text-xs);
    opacity: 0.88;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.client-home__title {
    margin: 0 0 var(--space-2);
    font-size: var(--text-2xl);
    line-height: 1.2;
}

.client-home__badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: var(--text-xs);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.client-home__address {
    margin: 0;
    font-size: var(--text-sm);
    opacity: 0.9;
    line-height: 1.4;
}

.client-home__section { margin-bottom: var(--space-4); }

.client-home__section-title {
    margin: 0 0 var(--space-2);
    font-size: var(--text-sm);
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.client-service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--card-pad);
    margin-bottom: var(--space-1);
}

.client-service-card strong {
    display: block;
    font-size: 0.98rem;
    color: var(--primary-dark);
}

.client-service-card p {
    margin: 6px 0 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.4;
}

.client-vehicles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.client-vehicle-chip {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
}

.client-home__steps {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.client-home__steps li { margin-bottom: 10px; }
.client-home__steps strong { color: var(--text); }

.client-home__cta { margin-top: 8px; }

.client-home__empty { text-align: center; color: var(--muted); padding: 16px 0; font-size: 0.92rem; }

.client-quote-card__meta {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
}

.hero__services {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hero__services-title {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.hero__services-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero__services-list li {
    margin-bottom: 10px;
    font-size: 0.92rem;
    line-height: 1.35;
}

.hero__services-list li strong { display: block; }
.hero__services-list li span { opacity: 0.85; font-size: 0.85rem; }

.client-quote-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
    margin-bottom: 10px;
    cursor: pointer;
}

.client-quote-card__main strong { display: block; font-size: 0.95rem; }
.client-quote-card__est { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

.client-quote-card__status {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.client-quote-card__status--pending { background: #fef3c7; color: #92400e; }
.client-quote-card__status--responded { background: #dcfce7; color: #166534; }
.client-quote-card__status--counter_offer { background: #ffedd5; color: #c2410c; }
.client-quote-card__status--confirmed { background: #dbeafe; color: #1d4ed8; }

.vehicles-queue__list { margin-bottom: 16px; }

.vehicles-queue__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    margin-bottom: 8px;
}

.vehicles-queue__item small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }

.vehicles-queue__remove {
    width: 36px;
    height: 36px;
    border: 0;
    background: #fff;
    border-radius: 10px;
    color: var(--muted);
    cursor: pointer;
}

.vehicle-form { border-top: 1px solid var(--border); padding-top: 16px; }
#add-vehicle-btn { margin-top: 12px; }

.photo-vehicle-block { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.photo-vehicle-block:last-child { border-bottom: 0; }
.photo-vehicle-block__title { margin: 0 0 12px; font-size: 1rem; }
.photo-vehicle-block__moto { margin: 0; padding: 12px; background: #f8fafc; border-radius: 12px; text-align: center; }

.summary-vehicles { margin: 0; padding-left: 18px; }
.summary-vehicles li { margin-bottom: 6px; }
.summary-vehicles em { color: var(--muted); font-style: normal; font-size: 0.88rem; }

.vehicles-list { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.9rem; }

.counter-details {
    margin: 0 0 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.counter-details summary {
    padding: 14px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    list-style: none;
}

.counter-details summary::-webkit-details-marker { display: none; }
.counter-details__body { padding: 0 var(--card-pad) var(--card-pad); border-top: 1px solid var(--border); }
.counter-details__body .field:first-child { margin-top: var(--space-2); }

/* Telas compactas — iPhone SE, 15, Android pequeno */
@media (max-width: 390px) {
    :root {
        --page-x: 11px;
        --page-y: 9px;
        --card-pad: 10px;
        --space-3: 10px;
        --space-4: 12px;
        --footer-h: 58px;
        --btn-h: 42px;
    }

    .wizard__dots { margin-bottom: 4px; }
    .hero__inner { padding-bottom: var(--space-2); }
    .client-home__section { margin-bottom: var(--space-3); }
    .client-quote-card { padding: 10px 12px; }
    .status-step { padding: 9px 10px; }
    .price-block__tag { padding: 9px 12px; }
}

/* Telas baixas — menos scroll vertical desperdiçado */
@media (max-height: 740px) {
    .hero { padding-bottom: calc(68px + var(--safe-b)); }
    .status-hero { padding-bottom: var(--space-2); }
    .status-hero__icon { margin-bottom: var(--space-1); }
    .step { padding-top: var(--space-2); }
    .client-home__hero { margin-bottom: var(--space-2); }
}

/* Desktop: preview estilo celular */
@media (min-width: 520px) {
    body { background: #dce7e5; }
    .app {
        max-width: 430px;
        box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 20px 60px rgba(0,0,0,0.12);
    }
    .hero__cta,
    .client-bar {
        left: 50%;
        right: auto;
        width: 430px;
        max-width: 100%;
        transform: translateX(-50%);
    }
}
