.ssai-wrap {
    --ssai-brand: #c9a24d;
    --ssai-text: #222;
    --ssai-muted: #666;
    --ssai-card: #ffffff;
    --ssai-border: rgba(0,0,0,0.08);
    max-width: 980px;
    margin: 0 auto;
    padding: 32px 16px;
    color: var(--ssai-text);
    font-family: inherit;
}

.ssai-card {
    background: var(--ssai-card);
    border: 1px solid var(--ssai-border);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 16px 45px rgba(0,0,0,0.06);
}

.ssai-hero-card {
    background:
        radial-gradient(circle at top left, rgba(201,162,77,0.18), transparent 34%),
        linear-gradient(135deg, #111, #242424);
    color: #fff;
}

.ssai-kicker {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.ssai-card h1,
.ssai-card h2 {
    margin-top: 0;
}

.ssai-card h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.ssai-card h2 {
    font-size: 24px;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.ssai-subtitle {
    font-size: 18px;
    max-width: 650px;
    opacity: 0.9;
    
}

.ssai-muted {
    color: var(--ssai-muted);
}

.ssai-disclaimer {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    font-size: 14px;
    line-height: 1.5;
}

.ssai-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ssai-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ssai-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.ssai-form input[type="text"],
.ssai-form input[type="email"],
.ssai-form input[type="tel"],
.ssai-form input[type="url"],
.ssai-form input[type="file"],
.ssai-form select {
    width: 100%;
    border: 1px solid var(--ssai-border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fff;
    color: var(--ssai-text);
}

.ssai-checkbox {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500 !important;
    margin: 14px 0;
    line-height: 1.45;
}

.ssai-checkbox input {
    margin-top: 4px;
}

.ssai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ssai-btn-primary {
    background: linear-gradient(135deg, var(--ssai-brand), #f1d486);
    color: #111;
}

.ssai-btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.ssai-btn-secondary {
    background: #fff;
    color: #111;
    border-color: var(--ssai-border);
}

.ssai-submit-btn {
    margin-top: 18px;
    width: 100%;
    font-size: 16px;
}

.ssai-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ssai-success-card {
    border-color: rgba(31, 141, 78, 0.25);
    background: #fbfffc;
}

@media (max-width: 720px) {
    .ssai-grid-2,
    .ssai-photo-grid {
        grid-template-columns: 1fr;
    }

    .ssai-card {
        padding: 22px;
        border-radius: 16px;
    }

    .ssai-card h1 {
        font-size: 38px;
    }
}
.ssai-step {
    display: none;
}

.ssai-step-active {
    display: block;
}

.ssai-progress-wrap {
    margin: 0 0 20px;
    background: #fff;
    border: 1px solid var(--ssai-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.ssai-progress-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-weight: 800;
    color: var(--ssai-text);
}

.ssai-progress-bar {
    width: 100%;
    height: 10px;
    background: #ececec;
    border-radius: 999px;
    overflow: hidden;
}

.ssai-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--ssai-brand), #f1d486);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.ssai-alert {
    margin: 16px 0;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff3f3;
    border: 1px solid #f1b8b8;
    color: #8a1f1f;
    font-weight: 700;
}

.ssai-photo-panel {
    margin-top: 18px;
}

.ssai-camera-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #111;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}

.ssai-camera-preview,
.ssai-photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #111;
}

.ssai-camera-preview {
    display: none;
}

.ssai-camera-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssai-mouth-guide {
    width: 68%;
    height: 34%;
    border: 3px solid rgba(255,255,255,0.8);
    border-radius: 999px;
    box-shadow: 0 0 0 999px rgba(0,0,0,0.18);
}

.ssai-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.ssai-upload-label {
    position: relative;
    overflow: hidden;
}

.ssai-upload-status {
    margin-top: 12px;
    min-height: 24px;
    font-weight: 800;
}

.ssai-upload-status-info {
    color: #555;
}

.ssai-upload-status-success {
    color: #1f8d4e;
}

.ssai-upload-status-error {
    color: #b42318;
}

.ssai-nav-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}

.ssai-nav-row .ssai-btn {
    min-width: 140px;
}

.ssai-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
}

@media (max-width: 720px) {
    .ssai-nav-row {
        flex-direction: column;
    }

    .ssai-nav-row .ssai-btn {
        width: 100%;
    }

    .ssai-photo-actions .ssai-btn {
        width: 100%;
    }
}

.ssai-start-camera-btn {
    display: none !important;
}

.ssai-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.ssai-result-card {
    background: #fafafa;
    border: 1px solid var(--ssai-border);
    border-radius: 16px;
    padding: 18px;
}

.ssai-result-label {
    margin: 0 0 6px;
    color: var(--ssai-muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ssai-result-card h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.ssai-result-preview-wrap {
    margin: 24px 0;
    padding: 18px;
    border: 1px solid var(--ssai-border);
    border-radius: 18px;
    background: #fff;
}

.ssai-preview-image {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 18px;
    margin-top: 14px;
    box-shadow: 0 16px 45px rgba(0,0,0,0.12);
}

.ssai-result-summary {
    margin-top: 22px;
    padding: 18px;
    background: #fbfbfb;
    border: 1px solid var(--ssai-border);
    border-radius: 16px;
}

.ssai-result-summary p {
    margin: 0 0 14px;
    line-height: 1.65;
}

.ssai-result-summary p:last-child {
    margin-bottom: 0;
}

.ssai-result-summary h3 {
    margin-top: 0;
}

.ssai-result-caveat {
    margin-top: 14px;
    font-size: 14px;
    color: var(--ssai-muted);
}

@media (max-width: 720px) {
    .ssai-result-grid {
        grid-template-columns: 1fr;
    }
}

.ssai-loading-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid var(--ssai-border);
    border-radius: 16px;
    background: #fafafa;
}

.ssai-loading-orb {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--ssai-brand);
    animation: ssaiPulse 1.4s ease-in-out infinite;
    flex: 0 0 auto;
}

.ssai-loading-box p {
    margin: 0;
    font-weight: 700;
    color: var(--ssai-text);
}

@keyframes ssaiPulse {
    0% {
        transform: scale(0.85);
        opacity: 0.45;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(0.85);
        opacity: 0.45;
    }
}
/* =========================================================
   Smile Scan AI - Premium Patient Flow UI
   Modern form, fixed photo steps, logo intro
   ========================================================= */

.ssai-wrap {
    --ssai-bg: #f7f4ef;
    --ssai-card: #ffffff;
    --ssai-text: #1f2933;
    --ssai-muted: #667085;
    --ssai-border: rgba(31, 41, 51, 0.12);
    --ssai-soft-border: rgba(31, 41, 51, 0.08);
    --ssai-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
    --ssai-soft-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    --ssai-radius-lg: 28px;
    --ssai-radius-md: 18px;
    --ssai-radius-sm: 12px;

    font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ssai-text);
}

/* Logo intro */
.ssai-process-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 22px;
    animation: ssaiFadeUp 700ms ease both;
}

.ssai-process-logo img {
    max-width: 210px;
    width: 54vw;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.08));
}

@keyframes ssaiFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.ssai-card {
    border-radius: var(--ssai-radius-lg);
    border: 1px solid var(--ssai-soft-border);
    background: var(--ssai-card);
    box-shadow: var(--ssai-shadow);
}

.ssai-hero-card {
    overflow: hidden;
    position: relative;
}

.ssai-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(201, 162, 77, 0.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(136, 92, 255, 0.10), transparent 34%);
    pointer-events: none;
}

.ssai-hero-card > * {
    position: relative;
    z-index: 1;
}

.ssai-kicker {
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--ssai-brand);
}

.ssai-hero-card h1 {
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.ssai-subtitle,
.ssai-muted {
    color: var(--ssai-muted);
}

/* Step behaviour */
.ssai-step {
    display: none;
}

.ssai-step.ssai-step-active {
    display: block;
}

/* Premium progress */
.ssai-progress-wrap {
    margin: 24px 0;
    padding: 14px 16px;
    border: 1px solid var(--ssai-soft-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--ssai-soft-shadow);
    backdrop-filter: blur(14px);
}

.ssai-progress-top {
    padding: 0 4px 10px;
}

.ssai-progress-label,
.ssai-progress-percent {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ssai-text);
}

.ssai-progress-bar {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(31, 41, 51, 0.08);
}

.ssai-progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--ssai-brand), #f1d27a);
    transition: width 260ms ease;
}

/* Modern first-page fields */
.ssai-step[data-step="1"] {
    padding: 30px;
}

.ssai-step[data-step="1"] h2 {
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.ssai-grid-2 {
    gap: 18px;
}

.ssai-grid-2 p {
    margin: 0;
}

.ssai-grid-2 label,
.ssai-step label:not(.ssai-checkbox):not(.ssai-upload-label) {
    display: block;
    margin-bottom: 8px;
    font-size: 0.86rem;
    font-weight: 800;
    color: #26313d;
}

.ssai-step input[type="text"],
.ssai-step input[type="email"],
.ssai-step input[type="tel"],
.ssai-step select,
.ssai-step textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(31, 41, 51, 0.14);
    background: #fbfaf8;
    color: var(--ssai-text);
    font: inherit;
    font-weight: 650;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.ssai-step input[type="text"]:focus,
.ssai-step input[type="email"]:focus,
.ssai-step input[type="tel"]:focus,
.ssai-step select:focus,
.ssai-step textarea:focus {
    border-color: var(--ssai-brand);
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(201, 162, 77, 0.14),
        0 8px 24px rgba(15, 23, 42, 0.06);
}

.ssai-step select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #6b7280 50%),
        linear-gradient(135deg, #6b7280 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 22px,
        calc(100% - 16px) 22px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 44px;
}

/* Consent checkboxes as modern cards */
.ssai-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 14px 0;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid rgba(31, 41, 51, 0.10);
    background: #fbfaf8;
    color: var(--ssai-text);
    font-size: 0.92rem;
    line-height: 1.45;
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ssai-checkbox:hover {
    background: #ffffff;
    border-color: rgba(201, 162, 77, 0.45);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ssai-checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--ssai-brand);
    flex: 0 0 auto;
}

/* Buttons */
.ssai-btn {
    min-height: 48px;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 900;
    letter-spacing: -0.01em;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.ssai-btn:hover {
    transform: translateY(-1px);
}

.ssai-btn-primary {
    border: 0;
    background: linear-gradient(135deg, var(--ssai-brand), #f1d27a);
    color: #1f2933;
    box-shadow: 0 14px 28px rgba(201, 162, 77, 0.26);
}

.ssai-btn-secondary {
    background: #ffffff;
    color: var(--ssai-text);
    border: 1px solid rgba(31, 41, 51, 0.12);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ssai-btn:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =========================================================
   Fixed camera/photo steps
   Applies to steps 2-7 only
   ========================================================= */

.ssai-step[data-step="2"].ssai-step-active,
.ssai-step[data-step="3"].ssai-step-active,
.ssai-step[data-step="4"].ssai-step-active,
.ssai-step[data-step="5"].ssai-step-active,
.ssai-step[data-step="6"].ssai-step-active,
.ssai-step[data-step="7"].ssai-step-active {
    min-height: calc(100vh - 120px);
    padding: 18px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    overflow: hidden;
}

/* Hide any excessive spacing in photo steps */
.ssai-step[data-step="2"] > p,
.ssai-step[data-step="3"] > p,
.ssai-step[data-step="4"] > p,
.ssai-step[data-step="5"] > p,
.ssai-step[data-step="6"] > p,
.ssai-step[data-step="7"] > p {
    margin: 0;
}

.ssai-step[data-step="2"] h2,
.ssai-step[data-step="3"] h2,
.ssai-step[data-step="4"] h2,
.ssai-step[data-step="5"] h2,
.ssai-step[data-step="6"] h2,
.ssai-step[data-step="7"] h2 {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.9rem);
    letter-spacing: -0.035em;
}

/* Photo panel fills the screen better */
.ssai-photo-panel {
    min-height: 0;
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 12px;
}

.ssai-camera-shell {
    position: relative;
    min-height: 0;
    height: min(58vh, 620px);
    border-radius: 28px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.ssai-camera-preview,
.ssai-photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ssai-camera-preview {
    display: block;
    background: #111827;
}

.ssai-camera-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, transparent 34%, rgba(0, 0, 0, 0.22) 100%);
}

.ssai-mouth-guide {
    width: min(58vw, 420px);
    height: min(24vw, 155px);
    max-width: 78%;
    max-height: 34%;
    border: 3px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    box-shadow:
        0 0 0 999px rgba(0, 0, 0, 0.08),
        0 0 28px rgba(255, 255, 255, 0.22);
}

.ssai-photo-actions,
.ssai-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ssai-upload-status {
    min-height: 22px;
    text-align: center;
    font-weight: 800;
    color: var(--ssai-muted);
}

/* Instructions should be visible but compact on photo steps */
.ssai-step[data-step="2"] > p:not(.ssai-muted),
.ssai-step[data-step="3"] > p:not(.ssai-muted),
.ssai-step[data-step="4"] > p:not(.ssai-muted),
.ssai-step[data-step="5"] > p:not(.ssai-muted),
.ssai-step[data-step="6"] > p:not(.ssai-muted),
.ssai-step[data-step="7"] > p:not(.ssai-muted) {
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--ssai-muted);
}

/* Final page can scroll normally */
.ssai-step[data-step="8"],
.ssai-step[data-step="9"] {
    padding: 30px;
}

/* Mobile */
@media (max-width: 760px) {
    .ssai-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ssai-process-logo img {
        max-width: 170px;
    }

    .ssai-step[data-step="1"] {
        padding: 22px;
    }

    .ssai-grid-2 {
        grid-template-columns: 1fr;
    }

    .ssai-step[data-step="2"].ssai-step-active,
    .ssai-step[data-step="3"].ssai-step-active,
    .ssai-step[data-step="4"].ssai-step-active,
    .ssai-step[data-step="5"].ssai-step-active,
    .ssai-step[data-step="6"].ssai-step-active,
    .ssai-step[data-step="7"].ssai-step-active {
        min-height: calc(100svh - 92px);
        padding: 14px;
        border-radius: 22px;
        gap: 10px;
    }

    .ssai-camera-shell {
        height: 54svh;
        border-radius: 22px;
    }

    .ssai-photo-actions,
    .ssai-nav-row {
        gap: 8px;
    }

    .ssai-btn {
        min-height: 44px;
        padding: 11px 16px;
        font-size: 0.92rem;
    }
}

@media (max-height: 740px) {
    .ssai-camera-shell {
        height: 48svh;
    }

    .ssai-step[data-step="2"] h2,
    .ssai-step[data-step="3"] h2,
    .ssai-step[data-step="4"] h2,
    .ssai-step[data-step="5"] h2,
    .ssai-step[data-step="6"] h2,
    .ssai-step[data-step="7"] h2 {
        font-size: 1.18rem;
    }

    .ssai-btn {
        min-height: 42px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* =========================================================
   Smile Scan AI - Text colour fixes
   ========================================================= */

.ssai-hero-card h1,
.ssai-hero-card h2 {
    color: #111827;
}

.ssai-hero-card .ssai-subtitle,
.ssai-hero-card .ssai-disclaimer {
    color: #667085;
}

.ssai-disclaimer {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 16px;
    padding: 14px 16px;
}

/* =========================================================
   Smile Scan AI - Prevent form overflow
   ========================================================= */

.ssai-wrap,
.ssai-wrap *,
.ssai-wrap *::before,
.ssai-wrap *::after {
    box-sizing: border-box;
}

.ssai-step[data-step="1"],
.ssai-card,
.ssai-grid-2,
.ssai-grid-2 p {
    max-width: 100%;
}

.ssai-step input[type="text"],
.ssai-step input[type="email"],
.ssai-step input[type="tel"],
.ssai-step select,
.ssai-step textarea {
    max-width: 100%;
    box-sizing: border-box;
}

.ssai-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ssai-grid-2 > * {
    min-width: 0;
}

@media (max-width: 760px) {
    .ssai-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Smile Scan AI - Blue animated hero border
   ========================================================= */

@property --ssai-a {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.ssai-hero-card {
    position: relative;
    border: 2px solid transparent;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        conic-gradient(
            from var(--ssai-a),
            rgba(56, 189, 248, 0) 0deg,
            rgba(56, 189, 248, 0) 8deg,
            rgba(125, 211, 252, 0.9) 18deg,
            rgba(219, 234, 254, 1) 28deg,
            rgba(96, 165, 250, 0.95) 38deg,
            rgba(37, 99, 235, 0) 70deg,
            rgba(37, 99, 235, 0) 360deg
        ) border-box;
    animation: ssaiHeroBorderSpin 3.6s linear infinite;
}

@keyframes ssaiHeroBorderSpin {
    to {
        --ssai-a: 360deg;
    }
}
/* =========================================================
   Smile Scan AI - Unmirror live camera only
   Captured image is already correct, so do not alter canvas.
   ========================================================= */

.ssai-camera-preview {
    transform: scaleX(-1);
}

.ssai-photo-preview {
    transform: none;
}

/* =========================================================
   Smile Scan AI - Full screen capture flash
   ========================================================= */

.ssai-global-flash {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 2147483647;
}

.ssai-global-flash.ssai-global-flash-active {
    animation: ssaiGlobalFlash 520ms ease-out;
}

@keyframes ssaiGlobalFlash {
    0% {
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    55% {
        opacity: 0.72;
    }
    100% {
        opacity: 0;
    }
}