:root {
    /* Classic Cdeals blue theme (buttons / accents / footer) */
    --sh-blue: #1565c0;
    --sh-blue-deep: #0d47a1;
    --sh-cyan: #1493b0;
    --sh-green: #2f6a4a;
    --sh-ink: #1c2b24;
    --sh-text: #2a3a32;
    --sh-muted: #5e6e66;
    --sh-line: rgba(28, 43, 36, 0.10);
    --sh-bg: #f3f7fb;
    --sh-surface: #ffffff;
    --sh-header-h: 76px;
    --sh-wrap: 1120px;
    --sh-radius: 12px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html,
body.site-home {
    margin: 0;
    min-height: 100%;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--sh-text);
    background: var(--sh-bg);
    -webkit-font-smoothing: antialiased;
}

.sh-wrap {
    width: min(100% - 2.5rem, var(--sh-wrap));
    margin-inline: auto;
}

/* ── White header so logo colors stay true ── */
.site-home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    height: var(--sh-header-h);
    background: #ffffff;
    border-bottom: 1px solid var(--sh-line);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.site-home-header-inner {
    height: 100%;
    width: min(100% - 2.5rem, var(--sh-wrap));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-home-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-home-logo {
    height: 40px;
    width: auto;
}

.site-home-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-home-nav-link {
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    color: var(--sh-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.15s ease, background 0.15s ease;
}

.site-home-nav-link:hover,
.site-home-nav-link:focus {
    color: var(--sh-blue);
    background: rgba(21, 101, 192, 0.08);
}

.site-home-nav-register {
    margin-left: 0.2rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid rgba(21, 101, 192, 0.28);
    border-radius: 10px;
    background: #fff;
    color: var(--sh-blue);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-home-nav-register:hover,
.site-home-nav-register:focus {
    background: rgba(21, 101, 192, 0.08);
    border-color: rgba(21, 101, 192, 0.45);
}

.site-home-login {
    margin-left: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0 1.1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--sh-blue) 0%, var(--sh-blue-deep) 100%);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 20px rgba(21, 101, 192, 0.28);
}

.site-home-login:hover,
.site-home-login:focus {
    background: linear-gradient(135deg, #1976d2 0%, var(--sh-blue-deep) 100%);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(21, 101, 192, 0.34);
}

.site-home-login i,
.sh-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: 0.85em;
    line-height: 1;
}

/* ── Split hero: copy on the left, framed photo on the right ── */
.sh-hero {
    position: relative;
    min-height: 0;
    display: block;
    padding: calc(var(--sh-header-h) + 2.75rem) 0 2.75rem;
    overflow: visible;
    color: var(--sh-ink);
    background:
        radial-gradient(ellipse 42% 55% at 92% 0%, rgba(20, 147, 176, 0.16), transparent 58%),
        radial-gradient(ellipse 36% 50% at 0% 100%, rgba(21, 101, 192, 0.07), transparent 55%),
        #f3f7fb;
}

.sh-hero-grid {
    width: min(100% - 2.5rem, var(--sh-wrap));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
}

.sh-hero-stage {
    position: relative;
    height: min(520px, 58vh);
    min-height: 380px;
    border-radius: 28px;
    overflow: hidden;
    background: #e7f2f6;
    border: 1px solid rgba(20, 147, 176, 0.22);
    box-shadow: 0 18px 40px rgba(15, 45, 82, 0.12);
}

.sh-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 64% 42%;
}

.sh-hero-content {
    width: auto;
    max-width: 34rem;
    animation: shRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sh-actions-stack {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    max-width: none;
}

.sh-actions-stack .sh-btn {
    width: auto;
    justify-content: center;
}

.sh-wa-demo {
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
}

.sh-wa-demo-lead,
.sh-wa-demo-label {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

.sh-wa-demo-label {
    display: block;
    font-weight: 700;
}

.sh-wa-demo-text {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.6rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    font: inherit;
    font-size: 0.85rem;
    resize: vertical;
}

.sh-wa-demo-error {
    margin: 0 0 0.5rem;
    color: #b91c1c;
    font-size: 0.75rem;
}

.sh-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.35rem 0.75rem 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(21, 101, 192, 0.08);
    border: 1px solid rgba(21, 101, 192, 0.16);
    color: var(--sh-blue-deep);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.sh-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sh-green);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
    animation: shPulseGreen 2s ease-out infinite;
    flex-shrink: 0;
}

.sh-hero-title {
    margin: 0 0 0.85rem;
    font-size: clamp(2.15rem, 4vw, 3.15rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: var(--sh-ink);
    max-width: 12ch;
}

.sh-hero-lead {
    margin: 0 0 1.45rem;
    max-width: 34rem;
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.55;
    color: var(--sh-muted);
    font-weight: 500;
}

.sh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.sh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0 1.3rem;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sh-btn-primary {
    background: linear-gradient(135deg, var(--sh-blue), var(--sh-blue-deep));
    color: #fff;
    box-shadow: 0 12px 28px rgba(21, 101, 192, 0.28);
}

.sh-btn-primary:hover,
.sh-btn-primary:focus {
    background: linear-gradient(135deg, #1976d2, var(--sh-blue-deep));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(21, 101, 192, 0.34);
}

.sh-btn-light {
    background: #fff;
    color: var(--sh-blue-deep);
    box-shadow: 0 14px 32px rgba(6, 24, 58, 0.28);
}

.sh-btn-light:hover,
.sh-btn-light:focus {
    background: #f3f7ff;
    color: var(--sh-blue-deep);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(6, 24, 58, 0.34);
}

.sh-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.sh-btn-ghost:hover,
.sh-btn-ghost:focus {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.sh-hero .sh-btn-ghost {
    background: #fff;
    border-color: rgba(21, 101, 192, 0.28);
    color: var(--sh-blue-deep);
}

.sh-hero .sh-btn-ghost:hover,
.sh-hero .sh-btn-ghost:focus {
    background: #eef4fb;
    border-color: rgba(21, 101, 192, 0.45);
    color: var(--sh-blue-deep);
}

.sh-btn-outline {
    background: transparent;
    border-color: rgba(15, 23, 42, 0.16);
    color: var(--sh-ink);
}

.sh-btn-outline:hover,
.sh-btn-outline:focus {
    border-color: var(--sh-blue);
    color: var(--sh-blue);
}

.sh-btn-block {
    width: 100%;
}

/* ── Sections ── */
.sh-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: #f3f7fb;
}

.sh-kicker {
    margin: 0 0 0.65rem;
    color: var(--sh-blue);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sh-kicker-on-dark { color: #93c5fd; }

.sh-section-head {
    max-width: 34rem;
    margin-bottom: 2.5rem;
}

.sh-section-head h2,
.sh-split-copy h2,
.sh-cta-row h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--sh-ink);
    line-height: 1.25;
}

.sh-section-sub,
.sh-cta-row p,
.sh-points p {
    margin: 0;
    color: var(--sh-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.sh-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.sh-split-copy {
    position: sticky;
    top: calc(var(--sh-header-h) + 1.5rem);
}

.sh-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sh-points li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.35rem 0;
    border-top: 1px solid var(--sh-line);
}

.sh-points li:last-child {
    border-bottom: 1px solid var(--sh-line);
}

.sh-point-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 101, 192, 0.10);
    color: var(--sh-blue);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.sh-points h3 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sh-ink);
    letter-spacing: -0.01em;
}

/* How it works */
.sh-section-dark {
    background:
        radial-gradient(ellipse 70% 80% at 0% 0%, rgba(21, 101, 192, 0.48), transparent 55%),
        radial-gradient(ellipse 50% 60% at 100% 100%, rgba(111, 187, 208, 0.28), transparent 50%),
        #0c2340;
    color: #fff;
}

.sh-section-dark .sh-section-head h2 {
    color: #fff;
}

.sh-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.sh-flow li {
    padding-top: 0.25rem;
}

.sh-flow-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 0.9rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #93c5fd;
    font-size: 1.2rem;
}

.sh-flow-num {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #93c5fd;
}

.sh-flow h3 {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.sh-flow p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.55;
}

/* Closing CTA */
.sh-section-cta {
    background:
        linear-gradient(120deg, rgba(21, 101, 192, 0.08), transparent 40%),
        linear-gradient(180deg, #f4f7fb 0%, #e8eef6 100%);
}

.sh-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* ── Sliding service cards ── */
.sh-services {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0.25rem 0 3.25rem;
    background: #f3f7fb;
}

.sh-services-head {
    width: min(100% - 2.5rem, var(--sh-wrap));
    margin: 0 auto 0.85rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.sh-services-head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--sh-ink);
    line-height: 1.15;
}

.sh-services-nav {
    display: flex;
    gap: 0.45rem;
    flex-shrink: 0;
}

.sh-services-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--sh-blue-deep);
    box-shadow: 0 8px 18px rgba(15, 45, 82, 0.08);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sh-services-arrow:hover,
.sh-services-arrow:focus {
    background: var(--sh-blue);
    color: #fff;
    transform: translateY(-1px);
}

.sh-services-bleed {
    width: min(100% - 2.5rem, var(--sh-wrap));
    margin-inline: auto;
    padding: 0;
}

.sh-services-track {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    padding: 0.35rem 0 1rem;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    user-select: none;
}

.sh-services-track::-webkit-scrollbar { display: none; }

.sh-services-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.sh-service-card {
    flex: 0 0 calc((100% - 2.7rem) / 4);
    min-width: 230px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 236px;
    padding: 1.15rem 1.1rem 1.05rem;
    border: 1px solid rgba(28, 43, 36, 0.08);
    border-radius: 20px;
    background: #fff;
    color: var(--sh-text);
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(15, 45, 82, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sh-service-card:hover,
.sh-service-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(6, 24, 58, 0.28);
    color: var(--sh-text);
    outline: none;
}

.sh-service-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 0.75rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--svc-soft, #e7f0fb);
    color: var(--svc, var(--sh-blue));
    font-size: 1.2rem;
    animation: shIconFloat 3.2s ease-in-out infinite;
}

.sh-service-card:nth-child(2) .sh-service-icon { animation-delay: -0.45s; }
.sh-service-card:nth-child(3) .sh-service-icon { animation-delay: -0.9s; }
.sh-service-card:nth-child(4) .sh-service-icon { animation-delay: -1.35s; }
.sh-service-card:nth-child(5) .sh-service-icon { animation-delay: -1.8s; }
.sh-service-card:nth-child(6) .sh-service-icon { animation-delay: -2.25s; }

.sh-service-kicker {
    margin-bottom: 0.2rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--svc, var(--sh-blue));
}

.sh-service-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--sh-ink);
}

.sh-service-card p {
    margin: 0;
    color: var(--sh-muted);
    font-size: 0.9rem;
    line-height: 1.45;
    font-weight: 500;
}

.sh-service-go {
    margin-top: auto;
    padding-top: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--svc, var(--sh-blue));
}

@keyframes shIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
    .sh-service-icon { animation: none; }
}

/* ── Motion ── */
@keyframes shKenBurns {
    from { transform: scale(1.01) translate3d(0, 0, 0); }
    to { transform: scale(1.05) translate3d(-0.8%, 0.6%, 0); }
}

@keyframes shRise {
    from {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes shPulse {
    0% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0.30); }
    70% { box-shadow: 0 0 0 10px rgba(21, 101, 192, 0); }
    100% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0); }
}

@keyframes shPulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .sh-hero-img,
    .sh-hero-content,
    .sh-points-mark {
        animation: none !important;
    }
    .sh-hero-img { transform: none; }
}

@media (max-height: 860px) and (min-width: 961px) {
    .sh-hero-title { font-size: clamp(1.85rem, 3vw, 2.55rem); }
    .sh-hero-lead { margin-bottom: 1rem; }
    .sh-hero { gap: 0.75rem; padding-bottom: 0.85rem; }
    .sh-service-card { min-height: 210px; }
    .sh-service-icon { width: 44px; height: 44px; margin-bottom: 0.45rem; }
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .sh-split,
    .sh-flow,
    .sh-cta-row {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .sh-split-copy { position: static; }

    .sh-flow {
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-home-nav-link { display: none; }

    .sh-hero-grid {
        grid-template-columns: 1fr;
    }

    .sh-hero-stage {
        height: 280px;
        min-height: 0;
        order: -1;
    }

    .sh-hero-content {
        width: 100%;
        max-width: 40rem;
    }

    .sh-hero-title { max-width: 14ch; }
}

@media (max-width: 640px) {
    :root { --sh-header-h: 66px; }

    .site-home-logo { height: 32px; }
    .site-home-nav-register { display: none; }

    .sh-hero {
        padding-top: calc(var(--sh-header-h) + 1.25rem);
        padding-bottom: 1.5rem;
    }

    .sh-hero-stage {
        height: 220px;
    }

    .sh-hero-title { max-width: none; }
    .sh-services-head h2 { font-size: 1.15rem; }
    .sh-field-row { grid-template-columns: 1fr; }
}

/* Public homepage legal bar — original navy */
body.site-home .app-legal-footer {
    background: linear-gradient(180deg, #1a2744 0%, #0f172a 100%);
    border-top-color: rgba(255, 255, 255, 0.12);
}

/* ── Register modal (kept for flow) ── */
body.sh-modal-open {
    overflow: hidden;
}

/* One full-page dim over hero + footer — same look for login & register */
body.sh-modal-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(8, 14, 28, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.sh-modal[hidden] { display: none !important; }

.sh-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: transparent;
}

.sh-modal-backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.sh-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    min-height: 12rem;
    max-height: min(90vh, 760px);
    overflow: auto;
    padding: 1.5rem 1.35rem 1.35rem;
    border-radius: var(--sh-radius);
    background: #fff;
    box-shadow: 0 24px 64px rgba(36, 48, 42, 0.28);
}

.sh-modal-step[hidden] {
    display: none !important;
}

.sh-modal .sh-btn-ghost {
    background: #fff;
    border-color: rgba(36, 48, 42, 0.18);
    color: var(--sh-ink);
}

.sh-modal .sh-btn-ghost:hover,
.sh-modal .sh-btn-ghost:focus {
    background: #eef4fb;
    color: var(--sh-ink);
}

.sh-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--sh-muted);
    cursor: pointer;
}

.sh-modal-dialog h2 {
    margin: 0 0 0.4rem;
    font-size: 1.55rem;
    color: var(--sh-ink);
}

.sh-modal-lead {
    margin: 0 0 1rem;
    color: var(--sh-muted);
    line-height: 1.5;
}

.sh-field { margin-bottom: 0.85rem; }

.sh-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--sh-ink);
}

.sh-optional {
    font-weight: 500;
    color: var(--sh-muted);
}

.sh-field input,
.sh-field select,
.sh-field textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(36, 48, 42, 0.14);
    border-radius: 10px;
    font: inherit;
    color: var(--sh-text);
    background: #fff;
}

.sh-field input:focus,
.sh-field select:focus,
.sh-field textarea:focus {
    outline: none;
    border-color: rgba(21, 101, 192, 0.45);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.sh-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.sh-bdm-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    max-height: 320px;
    overflow: auto;
}

.sh-bdm-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--sh-line);
    border-radius: 12px;
    background: #faf9f7;
}

.sh-bdm-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--sh-blue), var(--sh-cyan));
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
}

.sh-bdm-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
}

.sh-bdm-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #15803d;
    line-height: 1;
}

.sh-bdm-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sh-green);
    flex-shrink: 0;
}

.sh-bdm-meta {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--sh-muted);
}

.sh-bdm-connect {
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
}

.sh-bdm-empty {
    text-align: center;
    padding: 1.25rem 0.75rem;
    color: var(--sh-muted);
    line-height: 1.55;
}

.sh-bdm-empty p { margin: 0.35rem 0; }
.sh-bdm-empty .sh-btn { margin-top: 0.75rem; }

.sh-bdm-online-count {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #15803d;
}

.sh-bdm-select-wrap select {
    min-height: 48px;
    font-weight: 600;
}

.sh-connect-hero {
    text-align: center;
    margin-bottom: 1rem;
}

.sh-connect-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(21, 101, 192, 0.12);
    color: var(--sh-blue);
    font-size: 1.35rem;
}

.sh-connect-steps {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sh-connect-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(21, 101, 192, 0.05);
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--sh-text);
}

.sh-connect-step-num {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--sh-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.sh-connect-note {
    margin: 0.65rem 0 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--sh-muted);
}

.sh-modal-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border-radius: var(--sh-radius);
    background: rgba(255, 255, 255, 0.88);
    color: var(--sh-blue);
    font-weight: 600;
}

.sh-modal-loading[hidden] { display: none !important; }

/* Login modal */
.sh-modal-dialog--login {
    width: min(100%, 440px);
    transition: width 0.25s ease, padding 0.25s ease;
}

#shLoginStepForm[hidden],
#shLoginStepHolding[hidden] {
    display: none !important;
}

.sh-modal-dialog--login.sh-login-modal-holding {
    width: min(100%, 680px);
    max-height: min(88vh, 640px);
    overflow: hidden;
    padding: 1.5rem 1.75rem 1.35rem;
}

.sh-login-holding {
    text-align: center;
}

.sh-login-holding-logo {
    margin-bottom: 1rem;
}

.sh-login-holding-logo img {
    height: 48px;
    width: auto;
}

.sh-login-legal-body {
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--sh-text);
    max-height: none;
    overflow: visible;
    padding: 0;
    margin-bottom: 0.25rem;
}

.sh-login-legal-body .app-legal-notice-p {
    margin: 0 0 0.85rem;
    color: var(--sh-text);
}

.sh-login-legal-body .app-legal-notice-contact {
    margin: 0;
    color: var(--sh-muted);
}

.sh-login-legal-body .app-legal-notice-contact a {
    color: var(--sh-blue);
}

.sh-login-holding-status {
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--sh-line);
}

.sh-login-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border: 3px solid rgba(21, 101, 192, 0.15);
    border-top-color: var(--sh-blue);
    border-radius: 50%;
    animation: shLoginSpin 0.8s linear infinite;
}

.sh-login-holding-text {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sh-blue-deep);
}

@keyframes shLoginSpin {
    to { transform: rotate(360deg); }
}

.sh-login-error {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.875rem;
    line-height: 1.45;
}

.sh-login-form {
    margin-top: 0.25rem;
}

.sh-login-input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(36, 48, 42, 0.14);
    border-radius: 10px;
    font: inherit;
    color: var(--sh-text);
    background: #fff;
}

.sh-login-input:focus {
    outline: none;
    border-color: rgba(21, 101, 192, 0.45);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.sh-password-wrap {
    position: relative;
}

.sh-password-wrap .sh-login-input {
    padding-right: 2.75rem;
}

.sh-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--sh-muted);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.sh-password-toggle:hover,
.sh-password-toggle:focus {
    color: var(--sh-blue);
}

.sh-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.15rem 0 1rem;
    font-size: 0.86rem;
}

.sh-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--sh-muted);
    cursor: pointer;
    user-select: none;
}

.sh-login-remember input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--sh-blue);
}

.sh-login-forgot {
    color: var(--sh-blue);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.sh-login-forgot:hover,
.sh-login-forgot:focus {
    text-decoration: underline;
}

.sh-login-register-note {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.88rem;
    color: var(--sh-muted);
}

.sh-login-register-link {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 700;
    color: var(--sh-blue);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sh-login-register-link:hover,
.sh-login-register-link:focus {
    color: var(--sh-blue-deep);
}

/* Waiting room page */
.sh-waiting-page {
    min-height: calc(100vh - var(--sh-header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 3rem;
}

.sh-waiting-card {
    width: min(100%, 520px);
    background: var(--sh-surface);
    border: 1px solid var(--sh-line);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.sh-waiting-pulse {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
}

.sh-waiting-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(21, 101, 192, 0.25);
    animation: sh-pulse-ring 2s ease-out infinite;
}

.sh-waiting-pulse-core {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--sh-blue), var(--sh-blue-deep));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 30px rgba(21, 101, 192, 0.35);
}

@keyframes sh-pulse-ring {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.35); opacity: 0; }
}

.sh-waiting-title {
    margin: 0 0 0.65rem;
    font-size: 1.55rem;
    color: var(--sh-ink);
}

.sh-waiting-lead {
    margin: 0 0 1.25rem;
    color: var(--sh-muted);
    line-height: 1.55;
}

.sh-waiting-checklist {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    text-align: left;
    display: grid;
    gap: 0.55rem;
}

.sh-waiting-checklist li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--sh-text);
    font-size: 0.92rem;
}

.sh-waiting-checklist .fa-check-circle { color: var(--sh-green); }
.sh-waiting-checklist .fa-spinner { color: var(--sh-blue); }
.sh-waiting-checklist .fa-circle { color: #cbd5e1; font-size: 0.55rem; }

.sh-waiting-timer {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    color: var(--sh-muted);
}

.sh-waiting-actions {
    display: flex;
    justify-content: center;
}

.sh-connect-icon--muted {
    background: #e2e8f0;
    color: #64748b;
}

.sh-offline-steps {
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .sh-field-row { grid-template-columns: 1fr; }
    .sh-login-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
