:root {
    --cl-primary: #0d9488;
    --cl-primary-dark: #0f766e;
    --cl-primary-light: #14b8a6;
    --cl-accent: #f59e0b;
    --cl-bg: #f8fafc;
    --cl-surface: #ffffff;
    --cl-text: #0f172a;
    --cl-text-muted: #64748b;
    --cl-border: #e2e8f0;
    --cl-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --cl-radius: 16px;
    --cl-radius-sm: 12px;
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--cl-text);
    background: var(--cl-bg);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ===== App Layout ===== */
.app-body {
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cl-border);
}

.app-header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--cl-text);
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.app-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cl-primary), var(--cl-primary-light));
    color: #fff;
    font-size: 1.1rem;
}

.app-brand-text {
    line-height: 1.15;
}

@media (max-width: 575px) {
    .app-brand {
        font-size: 0.92rem;
        max-width: 58vw;
    }

    .app-brand-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.app-header-location {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
    padding: 0.4rem 0.85rem;
    background: var(--cl-bg);
    border-radius: 999px;
    border: 1px solid var(--cl-border);
}

.app-header-location > i {
    color: var(--cl-primary);
    font-size: 1.1rem;
}

.app-header-location .location-label {
    display: block;
    font-size: 0.7rem;
    color: var(--cl-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.app-header-location .location-value {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.app-header-actions {
    margin-left: auto;
}

.auth-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--cl-border);
    background: var(--cl-surface);
    border-radius: 999px;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cl-text);
}

.user-menu-toggle::after {
    margin-left: 0.25rem;
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cl-primary), var(--cl-primary-light));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

.app-main {
    min-height: calc(100vh - 64px);
    padding-bottom: 80px;
}

.app-main:has(.home-page) {
    background: #f3f0ea;
}

@media (max-width: 767px) {
    .app-main:has(.home-page) {
        padding-bottom: 80px;
    }
}

@media (min-width: 768px) {
    .app-main {
        padding-bottom: 0;
    }
}

/* Bottom nav (mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: var(--cl-surface);
    border-top: 1px solid var(--cl-border);
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
    z-index: 1030;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem 0.75rem;
    text-decoration: none;
    color: var(--cl-text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
    transition: color 0.2s;
}

.bottom-nav-item i {
    font-size: 1.25rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--cl-primary);
}

/* ===== Buttons ===== */
.btn-primary {
    --bs-btn-bg: var(--cl-primary);
    --bs-btn-border-color: var(--cl-primary);
    --bs-btn-hover-bg: var(--cl-primary-dark);
    --bs-btn-hover-border-color: var(--cl-primary-dark);
    --bs-btn-active-bg: var(--cl-primary-dark);
    --bs-btn-active-border-color: var(--cl-primary-dark);
    --bs-btn-disabled-bg: var(--cl-primary);
    --bs-btn-disabled-border-color: var(--cl-primary);
    font-weight: 600;
    border-radius: 12px;
    padding: 0.6rem 1.25rem;
}

.btn-outline-primary {
    --bs-btn-color: var(--cl-primary);
    --bs-btn-border-color: var(--cl-primary);
    --bs-btn-hover-bg: var(--cl-primary);
    --bs-btn-hover-border-color: var(--cl-primary);
    --bs-btn-active-bg: var(--cl-primary-dark);
    --bs-btn-active-border-color: var(--cl-primary-dark);
    font-weight: 600;
    border-radius: 12px;
}

/* ===== Hero ===== */
.hero-section {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 40%, #14b8a6 100%);
    color: #fff;
    padding: 3rem 0 4rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-cta {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-phone {
    width: 260px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    padding: 1rem;
    backdrop-filter: blur(8px);
}

.hero-phone-screen {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.25rem;
    color: var(--cl-text);
}

.mini-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cl-primary);
    margin-bottom: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    background: var(--cl-bg);
    border-radius: 12px;
    margin-bottom: 0.65rem;
}

.mini-card:last-child {
    margin-bottom: 0;
}

.mini-card i {
    font-size: 1.4rem;
    color: var(--cl-primary);
}

.mini-card strong {
    display: block;
    font-size: 0.85rem;
}

.mini-card small {
    color: var(--cl-text-muted);
    font-size: 0.75rem;
}

/* ===== Sections ===== */
.services-section,
.steps-section,
.cta-section {
    padding: 3.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--cl-text-muted);
    margin: 0;
}

.service-card {
    background: var(--cl-surface);
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cl-shadow);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-icon.wash { background: #ccfbf1; color: #0d9488; }
.service-icon.dry { background: #fef3c7; color: #d97706; }
.service-icon.press { background: #ede9fe; color: #7c3aed; }

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--cl-text-muted);
    margin: 0;
    font-size: 0.925rem;
    line-height: 1.5;
}

.steps-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .steps-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-item {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cl-primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.step-item h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-item p {
    color: var(--cl-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.cta-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--cl-primary-dark), var(--cl-primary));
    color: #fff;
    border-radius: var(--cl-radius);
    padding: 2rem;
}

@media (min-width: 768px) {
    .cta-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 2.5rem 3rem;
    }
}

.cta-card h2 {
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.cta-card p {
    opacity: 0.9;
    margin: 0;
}

/* ===== Auth Layout ===== */
.auth-body {
    min-height: 100vh;
    background: var(--cl-bg);
}

.auth-shell {
    display: grid;
    min-height: 100vh;
}

@media (min-width: 992px) {
    .auth-shell {
        grid-template-columns: 1fr 1fr;
    }
}

.auth-hero {
    background: linear-gradient(160deg, #0f766e, #0d9488 50%, #2dd4bf);
    color: #fff;
    padding: 3rem;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-hero-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
}

.auth-hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.auth-hero h2 {
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.auth-hero p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.auth-hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-hero-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-weight: 500;
}

.auth-hero-features i {
    font-size: 1.2rem;
    opacity: 0.9;
}

.auth-hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.hero-bubble-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -80px;
}

.hero-bubble-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -40px;
}

.hero-card {
    position: absolute;
    bottom: 15%;
    right: 10%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-card i {
    font-size: 2.5rem;
}

.auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.auth-main-top {
    width: 100%;
    max-width: 480px;
    margin-bottom: 1rem;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--cl-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-back-link:hover {
    color: var(--cl-primary);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--cl-surface);
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    padding: 2rem;
    box-shadow: var(--cl-shadow);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #ccfbf1;
    color: var(--cl-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.auth-card-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.auth-card-header p {
    color: var(--cl-text-muted);
    font-size: 0.925rem;
    margin: 0;
    line-height: 1.5;
}

.auth-form .form-control {
    border-radius: 12px;
    border-color: var(--cl-border);
    padding: 0.85rem 1rem;
}

.auth-form .form-control:focus {
    border-color: var(--cl-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.auth-form .form-floating > label {
    color: var(--cl-text-muted);
}

.auth-submit {
    border-radius: 12px;
    font-weight: 700;
    padding: 0.85rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--cl-text-muted);
}

.auth-switch a {
    color: var(--cl-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-forgot-wrap {
    text-align: right;
    margin-bottom: 1rem;
}

.auth-forgot-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cl-primary);
    text-decoration: none;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

.auth-page-shell--narrow {
    max-width: 520px;
    margin: 0 auto;
}

.auth-panel--centered {
    min-height: calc(100vh - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-confirm-card {
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}

.auth-confirm-card h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.auth-confirm-card p {
    color: var(--cl-text-muted);
    line-height: 1.5;
}

.auth-confirm-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.auth-confirm-icon--mail {
    background: #ecfdf5;
    color: var(--cl-primary);
}

.auth-confirm-icon--success {
    background: #ecfdf5;
    color: #16a34a;
}

.auth-dev-link-card {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 16px;
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    text-align: left;
    font-size: 0.85rem;
}

.auth-dev-link-card strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #b45309;
}

.auth-dev-link-card p {
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
}

/* ===== Auth pages (login & signup) ===== */
.auth-body--modern {
    background: #f3f0ea;
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-body--modern::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.08), transparent 35%),
        radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.06), transparent 30%);
    pointer-events: none;
}

.auth-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.auth-page-shell {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.register-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    color: var(--cl-text);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.register-brand-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--cl-text);
}

.register-brand-mini .app-brand-icon {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
}

.register-top-spacer {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* ----- Mobile: Sign up ----- */
.auth-page--signup .auth-visual {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.auth-page--signup .auth-visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem 0.75rem;
    position: relative;
    z-index: 5;
    min-height: 56px;
}

.auth-page--signup .auth-visual-top .register-brand-mini {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.auth-page--signup .auth-visual-hero {
    position: relative;
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 1rem 1rem;
    z-index: 1;
}

.auth-page--signup .register-hero-circle {
    width: 148px;
    height: 148px;
}

.auth-page--signup .register-hero-photo {
    width: 118px;
    height: 118px;
    border-width: 4px;
}

.auth-page--signup .auth-visual-copy--desktop {
    display: none;
}

.auth-page--signup .auth-panel {
    margin-top: 0;
    padding: 0 0.85rem 2rem;
    position: relative;
    z-index: 2;
}

.auth-page--signup .auth-panel-inner {
    background: #faf8f4;
    border-radius: 28px 28px 24px 24px;
    padding: 1.1rem 1.15rem 1.5rem;
    box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.auth-page--signup .auth-panel-inner::before {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: #d6d3d1;
    margin: 0 auto 1rem;
}

/* ----- Mobile: Login ----- */
.auth-page--login .auth-visual-top--login {
    padding: 1rem 1.1rem 0;
}

.auth-page--login .auth-login-showcase--desktop {
    display: none;
}

.auth-page--login .auth-login-showcase--mobile {
    position: relative;
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 1rem 1rem;
}

.auth-page--login .auth-login-showcase--mobile .register-hero-circle {
    width: 148px;
    height: 148px;
}

.auth-page--login .auth-login-showcase--mobile .register-hero-photo {
    width: 118px;
    height: 118px;
    border-width: 4px;
}

.auth-page--login .auth-panel {
    padding: 0 0.85rem 2rem;
    margin-top: 0;
}

.auth-page--login .auth-panel-inner {
    background: #faf8f4;
    border-radius: 28px;
    padding: 1.25rem 1.15rem 1.5rem;
    box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.auth-page--login .auth-panel-inner::before {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: #d6d3d1;
    margin: 0 auto 1rem;
}

.auth-panel-brand--mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

/* Shared hero visuals */
.register-hero-circle {
    position: absolute;
    width: min(72vw, 290px);
    height: min(72vw, 290px);
    border-radius: 50%;
    background: linear-gradient(145deg, #0f766e, #14b8a6 55%, #5eead4);
    box-shadow: 0 24px 50px rgba(13, 148, 136, 0.28);
}

.register-hero-photo {
    position: relative;
    z-index: 2;
    width: min(58vw, 220px);
    height: min(58vw, 220px);
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    transition: opacity 0.35s ease;
}

.register-sheet-header {
    text-align: center;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.register-sheet-header h1 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.register-sheet-header p {
    color: var(--cl-text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.register-step-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.register-step-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    border: none;
    background: transparent;
    padding: 0.35rem 0.75rem;
    border-radius: 16px;
    color: var(--cl-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
}

.register-step-tab-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    padding: 2px;
    transition: all 0.3s ease;
    opacity: 0.55;
    transform: scale(0.92);
}

.register-step-tab.active {
    color: var(--cl-primary-dark);
}

.register-step-tab.active .register-step-tab-icon {
    border-color: var(--cl-primary);
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.22);
}

.register-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.register-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d6d3d1;
    transition: all 0.35s ease;
}

.register-dot.active {
    width: 22px;
    border-radius: 999px;
    background: var(--cl-primary);
}

/* Wizard carousel — overflow fix */
.register-wizard-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.register-steps {
    display: flex;
    width: 200%;
    max-width: 200%;
    transform: translate3d(0, 0, 0);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.register-steps.is-sliding.slide-forward,
.register-steps.is-sliding.slide-back {
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.register-step {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.1rem 0;
    overflow: hidden;
}

.register-step--hidden {
    display: none;
}

.register-form {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.register-field {
    margin-bottom: 0.9rem;
}

.register-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.register-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cl-text-muted);
    margin-bottom: 0.4rem;
}

.register-label i {
    color: var(--cl-primary);
    font-size: 0.85rem;
}

.register-input {
    border: none;
    border-radius: 16px;
    background: #fff;
    padding: 0.9rem 1rem;
    box-shadow: inset 0 0 0 1px #e7e5e4;
    font-weight: 500;
    width: 100%;
    max-width: 100%;
}

.register-input:focus {
    box-shadow: inset 0 0 0 2px var(--cl-primary);
}

.register-textarea {
    resize: none;
    min-height: calc(2 * 1.5em + 1.8rem);
    line-height: 1.5;
}

.register-cta {
    margin-top: 1.25rem;
    border-radius: 999px;
    padding: 0.95rem 1.25rem;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 12px 28px rgba(13, 148, 136, 0.28);
}

.register-cta-grow {
    flex: 1;
    min-width: 0;
}

.register-step-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px #e7e5e4;
    margin-bottom: 1rem;
    animation: stepIntroIn 0.5s ease;
}

.register-step-banner-img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.register-step-banner strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.register-step-banner span {
    display: block;
    font-size: 0.8rem;
    color: var(--cl-text-muted);
}

.register-map-card {
    background: #fff;
    border-radius: 20px;
    padding: 0.85rem;
    box-shadow: inset 0 0 0 1px #e7e5e4;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.map-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.register-map {
    height: 210px;
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    border: none;
    margin-top: 0.5rem;
    overflow: hidden;
}

.register-map-btn {
    border-radius: 999px;
    background: #ecfdf5;
    color: var(--cl-primary-dark);
    border: 1px solid #99f6e4;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    white-space: nowrap;
}

.register-map-btn:hover {
    background: var(--cl-primary);
    color: #fff;
    border-color: var(--cl-primary);
}

.register-step-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    width: 100%;
}

.register-back-step {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e7e5e4;
    color: var(--cl-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.register-step-actions .register-cta {
    margin-top: 0;
    height: 52px;
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.register-switch {
    margin-top: 1.25rem;
    text-align: center;
}

.register-alert {
    border-radius: 14px;
    font-size: 0.875rem;
}

.auth-switch a {
    color: var(--cl-primary);
    font-weight: 600;
    text-decoration: none;
}

@keyframes stepIntroIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----- Desktop layouts ----- */
@media (min-width: 992px) {
    .auth-body--modern {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }

    .auth-page-shell {
        max-width: 1100px;
        min-height: 640px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-radius: 32px;
        overflow: hidden;
        box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
        background: #faf8f4;
        border: 1px solid rgba(255, 255, 255, 0.9);
    }

    .auth-page-shell--login {
        max-width: 980px;
        min-height: 600px;
    }

    /* Sign up desktop: left visual panel */
    .auth-page--signup .auth-visual {
        background: linear-gradient(160deg, #ecfdf5, #f3f0ea 55%, #faf8f4);
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-right: 1px solid #e7e5e4;
    }

    .auth-page--signup .auth-visual-top {
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
        right: 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        z-index: 2;
    }

    .auth-page--signup .auth-visual {
        position: relative;
    }

    .auth-page--signup .auth-visual-hero {
        height: 280px;
        margin-top: 2rem;
    }

    .auth-page--signup .register-hero-circle {
        width: 260px;
        height: 260px;
    }

    .auth-page--signup .register-hero-photo {
        width: 210px;
        height: 210px;
    }

    .auth-page--signup .auth-visual-copy--desktop {
        display: block;
        text-align: center;
        padding: 0 1rem;
    }

    .auth-page--signup .auth-visual-copy--desktop h2 {
        font-size: 1.5rem;
        font-weight: 800;
        margin: 1rem 0 0.5rem;
    }

    .auth-page--signup .auth-visual-copy--desktop p {
        color: var(--cl-text-muted);
        margin-bottom: 1.25rem;
    }

    .auth-feature-list {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: left;
        display: inline-block;
    }

    .auth-feature-list li {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 0.65rem;
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--cl-text);
    }

    .auth-feature-list i {
        color: var(--cl-primary);
    }

    .auth-page--signup .auth-panel {
        margin: 0;
        padding: 2.5rem 2.25rem;
        display: flex;
        align-items: center;
        overflow-y: auto;
    }

    .auth-page--signup .auth-panel-inner {
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .auth-page--signup .auth-panel-inner::before {
        display: none;
    }

    .auth-page--signup .register-sheet-header {
        text-align: left;
    }

    .auth-page--signup .register-step-tabs {
        justify-content: flex-start;
    }

    .auth-page--signup .register-dots {
        justify-content: flex-start;
    }

    /* Desktop wizard: fade between steps, no horizontal slide */
    .auth-page--signup .register-wizard-viewport {
        overflow: visible;
    }

    .auth-page--signup .register-steps {
        display: block;
        width: 100%;
        max-width: 100%;
        transform: none !important;
    }

    .auth-page--signup .register-step {
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    .auth-page--signup .register-map {
        height: 260px;
    }

    /* Login desktop: full-bleed image left */
    .auth-page--login .auth-visual {
        position: relative;
        overflow: hidden;
        min-height: 100%;
    }

    .auth-page--login .auth-visual-top--login {
        position: absolute;
        top: 1.25rem;
        left: 1.25rem;
        z-index: 3;
        padding: 0;
    }

    .auth-page--login .auth-login-showcase--mobile {
        display: none;
    }

    .auth-page--login .auth-login-showcase--desktop {
        display: block;
        height: 100%;
        min-height: 600px;
        position: relative;
    }

    .auth-page--login .auth-login-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .auth-page--login .auth-login-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.25) 50%, rgba(15, 23, 42, 0.15) 100%);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 2.5rem;
        color: #fff;
    }

    .auth-page--login .auth-login-brand {
        color: #fff;
        margin-bottom: 1rem;
    }

    .auth-page--login .auth-login-overlay h2 {
        font-size: 1.75rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
        max-width: 320px;
    }

    .auth-page--login .auth-login-overlay p {
        margin: 0;
        opacity: 0.9;
        max-width: 340px;
    }

    .auth-page--login .auth-panel {
        margin: 0;
        padding: 3rem 2.5rem;
        display: flex;
        align-items: center;
        background: #fff;
    }

    .auth-page--login .auth-panel-inner {
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }

    .auth-page--login .auth-panel-inner::before {
        display: none;
    }

    .auth-page--login .auth-panel-brand--mobile {
        display: none;
    }

    .auth-page--login .register-sheet-header {
        text-align: left;
        margin-bottom: 1.75rem;
    }

    .auth-page--login .register-sheet-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .auth-panel-brand--mobile {
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .register-field-row {
        grid-template-columns: 1fr;
    }

    .auth-page--signup .auth-panel,
    .auth-page--login .auth-panel {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }
}

.form-control:focus,
.btn:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}
