:root { --demo-shell-width: 1200px; --demo-shell-gutter: 26px; --demo-header-height: 82px; }
.unified-demo-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--demo-header-height);
    z-index: 1050;
    pointer-events: none;
    transition: background-color 180ms ease, backdrop-filter 180ms ease, border-color 180ms ease;
}
.unified-demo-header.scrolled {
    background: rgba(8, 11, 16, .72);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: blur(16px);
}
.stambio-demo-page .unified-demo-header.scrolled { background: rgba(3, 20, 36, .72); }
.unified-demo-header-inner {
    width: 100%;
    max-width: var(--demo-shell-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--demo-shell-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.unified-demo-brand, .unified-demo-actions { pointer-events: auto; }
.unified-demo-brand {
    position: fixed;
    top: 21px;
    left: max(var(--demo-shell-gutter), calc((100vw - var(--demo-shell-width)) / 2 + var(--demo-shell-gutter)));
    display: inline-flex;
    align-items: center;
}
.unified-demo-brand img { display: block; width: auto; height: 40px; margin: 0; }
.unified-demo-actions {
    position: fixed;
    top: 21px;
    right: max(var(--demo-shell-gutter), calc((100vw - var(--demo-shell-width)) / 2 + var(--demo-shell-gutter)));
    display: flex;
    align-items: center;
    gap: 12px;
}
.unified-demo-actions .landing-language { position: static; }
.unified-demo-actions .landing-language-toggle {
    width: 46px;
    height: 40px;
    border-radius: 24px;
    background: rgba(17, 24, 33, .82);
    border-color: rgba(255,255,255,.20);
}
.unified-demo-login {
    height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 24px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    background: rgba(17,24,33,.82);
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.unified-demo-login:hover {
    color: #fff;
    border-color: rgba(255,255,255,.38);
    background: rgba(255,255,255,.06);
    transform: translateY(-1px);
}
.stambio-demo-page .container {
    max-width: var(--demo-shell-width);
    padding-left: var(--demo-shell-gutter);
    padding-right: var(--demo-shell-gutter);
}
@media (max-width: 580px) {
    :root { --demo-shell-gutter: 18px; --demo-header-height: 70px; }
    .unified-demo-brand img { height: 34px; }
    .unified-demo-actions { gap: 7px; }
    .unified-demo-brand, .unified-demo-actions { top: 18px; }
    .unified-demo-login { min-width: 76px; padding: 0 13px; justify-content: center; font-size: 12px; white-space: nowrap; }
    .unified-demo-login i { font-size: 12px; }
}

@media (max-width: 480px) {
    :root { --demo-shell-gutter: 12px; }
    .unified-demo-brand { width: min(250px, calc(100vw - 167px)); max-width: none; }
    .unified-demo-brand img { width: 100%; height: auto; max-height: 32px; object-fit: contain; object-position: left center; }
    .unified-demo-actions { gap: 5px; }
    .unified-demo-login { min-width: 70px; padding-inline: 11px; }
    .unified-demo-header .landing-language-toggle { min-width: 44px; padding-inline: 10px; }
}

html.iphone { --demo-shell-gutter: 12px; }
html.iphone .unified-demo-brand { width: min(250px, calc(100vw - 167px)); max-width: none; }
html.iphone .unified-demo-brand img { width: 100%; height: auto; max-height: 32px; object-fit: contain; object-position: left center; }
html.iphone .unified-demo-actions { gap: 5px; }
html.iphone .unified-demo-login { min-width: 70px; padding-inline: 11px; justify-content: center; font-size: 12px; white-space: nowrap; }
html.iphone .unified-demo-login i { font-size: 12px; }
html.iphone .unified-demo-header .landing-language-toggle { min-width: 44px; padding-inline: 10px; }

/* Login concept previews. Kept here because the shared demo header is present in all three. */
.login-demo .login-story h1 em,
.login-demo .panel-hero h1 em,
.login-demo .transform-copy h1 em { color: var(--mint); }
.login-demo .pd-grid { gap: 12px; }
.login-demo.panel-open .login-drawer { transform: none; }
.login-demo .login-drawer > img { display: block; }
.login-demo .login-support-links {
    display: grid;
    gap: 2px;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.login-demo .login-support-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 2px;
    color: #91a1af;
    font-size: 11px;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}
.login-demo .login-support-links a:hover { color: #fff; transform: translateX(3px); }
.login-demo .login-support-links i { width: 15px; color: var(--mint); text-align: center; }
.login-demo .login-validation { display: block; margin-top: 6px; color: #fb7185; font-size: 11px; }
.login-demo .login-validation:empty { display: none; }
.login-demo .external-login { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.login-demo .external-login > small { color: #7f919f; }
.login-demo .external-login > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.login-demo .external-login button { min-height: 38px; padding: 0 14px; border: 1px solid #314453; border-radius: 9px; background: #071522; color: #fff; }
.login-demo .auth-card { max-width: 460px; }
.login-demo .auth-card-compact { max-width: 430px; }
.login-demo .auth-readonly { margin: 17px 0; padding: 13px 14px; border: 1px solid rgba(19,184,176,.25); border-radius: 10px; background: rgba(19,184,176,.07); }
.login-demo .auth-readonly > label,.login-demo .auth-readonly > strong,.login-demo .auth-readonly > small { display: block; }
.login-demo .auth-readonly > label { margin: 0 0 7px; color: #91a1af; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.login-demo .auth-readonly > strong { font-size: 13px; }
.login-demo .auth-readonly > strong i { margin-right: 8px; color: var(--mint); }
.login-demo .auth-readonly > small { margin-top: 5px; color: #718492; font-size: 10px; }
.root-login-validation { display: block; min-height: 15px; margin-top: 5px; color: #fb7185; font-size: 11px; }
.root-login-validation:empty { min-height: 0; }
.root-login-panel .input-validation-error { border-color: #fb7185 !important; box-shadow: 0 0 0 3px rgba(251,113,133,.08) !important; }
.tenant-account-landing .unified-demo-brand { left: 26px !important; right: auto !important; transform: none !important; }
.tenant-account-landing .unified-demo-actions { right: 26px !important; left: auto !important; transform: none !important; }
.tenant-account-landing .back-link {
    min-height: 32px;
    padding: 6px 14px;
    border: 1px solid #00c8ff;
    border-radius: 18px;
    color: #00c8ff;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.tenant-account-landing .back-link:hover { color: #031424; background: #00c8ff; box-shadow: 0 0 20px rgba(0,200,255,.18); }
.tenant-account-landing .landing-language-toggle .fi,
.tenant-account-landing .landing-language-menu .fi { display: inline-block; width: 1.3em; line-height: 1em; background-size: contain; background-position: 50%; background-repeat: no-repeat; }
.tenant-account-landing .landing-language-toggle {
    width: auto;
    min-width: 48px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #00c8ff;
    border-radius: 18px;
    background: transparent;
    color: #00c8ff;
    box-shadow: none;
    gap: 7px;
}
.tenant-account-landing .landing-language-toggle:hover,
.tenant-account-landing .landing-language-toggle[aria-expanded="true"] {
    color: #031424;
    background: #00c8ff;
    box-shadow: 0 0 20px rgba(0,200,255,.18);
}
.tenant-account-landing .landing-language-toggle::after { margin-left: 0; border-top-width: 4px; border-right-width: 4px; border-left-width: 4px; }
.tenant-entry-landing .landing-language-toggle {
    width: auto;
    min-width: 48px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #00c8ff;
    border-radius: 18px;
    background: transparent;
    color: #00c8ff;
    box-shadow: none;
    gap: 7px;
}
.tenant-entry-landing .landing-language-toggle:hover,
.tenant-entry-landing .landing-language-toggle[aria-expanded="true"] { color: #031424; background: #00c8ff; box-shadow: 0 0 20px rgba(0,200,255,.18); }
.tenant-entry-landing .landing-language-toggle .fi,
.tenant-entry-landing .landing-language-menu .fi { display: inline-block; width: 1.3em; line-height: 1em; background-size: contain; background-position: 50%; background-repeat: no-repeat; }
.tenant-entry-landing .landing-language-toggle::after { margin-left: 0; border-top-width: 4px; border-right-width: 4px; border-left-width: 4px; }

/* One language control across every landing/demo/auth header. */
.unified-demo-header .landing-language {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 0;
    align-self: center;
}
.unified-demo-header .landing-language-toggle {
    width: auto;
    min-width: 48px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #00c8ff;
    border-radius: 18px;
    background: transparent;
    color: #00c8ff;
    box-shadow: none;
    gap: 7px;
}
.unified-demo-header .landing-language-toggle:hover,
.unified-demo-header .landing-language-toggle[aria-expanded="true"] {
    color: #031424;
    background: #00c8ff;
    box-shadow: 0 0 20px rgba(0,200,255,.18);
}
.unified-demo-header .landing-language-toggle::after {
    margin-left: 0;
    border-top-width: 4px;
    border-right-width: 4px;
    border-left-width: 4px;
}
.unified-demo-header .landing-language-toggle .fi,
.unified-demo-header .landing-language-menu .fi {
    display: inline-block;
    width: 1.3em;
    line-height: 1em;
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
}
.unified-demo-header .landing-language-menu.show {
    display: block;
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: auto;
    z-index: 1080;
}

.tenant-entry-landing .tenant-entry-main h1 {
    font-size: clamp(38px, 4.9vw, 62px);
    letter-spacing: -3px;
}
@media (max-width: 700px) {
    .tenant-entry-landing .tenant-entry-main h1 { font-size: 35px; letter-spacing: -2px; }
}
.tenant-account-landing .tenant-auth-card #account > div:last-child { display: grid; gap: 7px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.tenant-account-landing .tenant-auth-card #account > div:last-child p { margin: 0; }
.tenant-account-landing .tenant-auth-card #account > div:last-child a { display: flex; align-items: center; min-height: 30px; color: var(--mint); font-weight: 650; text-decoration: underline; text-decoration-color: rgba(19,184,176,.35); text-underline-offset: 3px; }
.tenant-account-landing .stambio-footer { position: relative; z-index: 2; margin-top: 0; padding: 0 26px 28px; color: #718391; }
.tenant-account-landing .stambio-footer-inner { width: 100%; max-width: 760px; margin: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tenant-account-landing .stambio-footer-brand { display: flex; align-items: center; gap: 10px; }
.tenant-account-landing .stambio-footer-logo { width: auto; height: 25px; opacity: .78; }
.tenant-account-landing .stambio-footer-copy,.tenant-account-landing .stambio-footer-tagline { font-size: 11px; }
.tenant-account-landing .stambio-footer-links { display: flex; gap: 20px; }
.tenant-account-landing .stambio-footer-links a { color: #8193a0; font-size: 11px; text-decoration: none; }
.tenant-account-landing .stambio-footer-links a:hover { color: #fff; }
.tenant-entry-landing .stambio-footer { position: relative; z-index: 2; padding: 0 26px 28px; color: #718391; }
.tenant-entry-landing .stambio-footer-inner { width: 100%; max-width: 760px; margin: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tenant-entry-landing .stambio-footer-brand { display: flex; align-items: center; gap: 10px; }
.tenant-entry-landing .stambio-footer-logo { width: auto; height: 25px; opacity: .78; }
.tenant-entry-landing .stambio-footer-copy,.tenant-entry-landing .stambio-footer-tagline { color: #8193a0; font-size: 11px; }
.tenant-entry-landing .stambio-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.tenant-entry-landing .stambio-footer-links a { color: #8193a0; font-size: 11px; text-decoration: none; }
.tenant-entry-landing .stambio-footer-links a:hover { color: #fff; }
.tenant-account-landing .tenant-auth-stage { min-height: calc(100vh - 94px); }
.tenant-account-landing .landing-language-menu.show { display: block; position: absolute; right: 0; top: 100%; z-index: 1080; }
@media (max-width: 580px) {
    .tenant-account-landing .unified-demo-brand { left: 18px !important; }
    .tenant-account-landing .unified-demo-actions { right: 18px !important; }
    .tenant-account-landing .stambio-footer-inner,.tenant-account-landing .stambio-footer-brand { align-items: flex-start; flex-direction: column; }
    .tenant-account-landing .stambio-footer-links { flex-wrap: wrap; gap: 10px 16px; }
    .tenant-entry-landing .stambio-footer-inner,.tenant-entry-landing .stambio-footer-brand { align-items: flex-start; flex-direction: column; }
    .tenant-account-landing .tenant-auth-stage { min-height: auto; }
}
.login-demo input[readonly] { color: #8fa0ad; cursor: not-allowed; }
.login-demo .alert { margin-bottom: 16px; padding: 11px 13px; border: 1px solid #ffffff17; border-radius: 9px; color: #d6e0e7; background: #ffffff08; font-size: 11px; }
.tenant-account-landing .registration-instructions { margin-top: 28px !important; padding: 22px 20px; border: 1px solid #293c4b; border-radius: 14px; background: #0b1a27; }
.tenant-account-landing .registration-instructions h4 { margin: 0 0 14px; color: var(--mint); font-size: 11px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.tenant-account-landing .registration-instructions ol { margin: 0; padding-left: 18px; color: #aeb9c3; font-size: 12px; line-height: 1.75; }
