:root {
    --brand: #082B73;
    --sun: #FFC928;
    --cloud: #F7F9FC;
    --ink: #1A1A1A;
    --muted: #667085;
    --card: #FFFFFF;
    --success: #1DB954;
    --error: #E53935;
    --line: rgba(8, 43, 115, .12);
    --shadow: 0 22px 70px rgba(8, 43, 115, .14);
    --radius: 24px;
    --container-wide: min(1640px, calc(100% - clamp(28px, 4vw, 72px)));
    --container-page: min(1500px, calc(100% - clamp(28px, 4vw, 72px)));
    --container-reading: min(1240px, calc(100% - 28px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; font-family: Inter, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 42%, rgba(255,201,40,.2), transparent 26%),
        linear-gradient(135deg, #061b46, #082B73);
    transition: opacity .42s ease, visibility .42s ease;
}
.site-loader-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 20px;
    text-align: center;
    color: rgba(255,255,255,.78);
}
.site-loader-card img {
    width: min(230px, 64vw);
    border-radius: 24px;
    box-shadow: 0 28px 90px rgba(0,0,0,.26), 0 0 48px rgba(255,201,40,.18);
    animation: loaderFloat 1.65s ease-in-out infinite;
}
.site-loader-pulse {
    width: 86px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,.18), var(--sun), rgba(255,255,255,.18));
    box-shadow: 0 0 34px rgba(255,201,40,.72);
    animation: loaderPulse 1s ease-in-out infinite;
}
body.is-loaded .site-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-shell { min-height: 100vh; overflow-x: hidden; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 14px auto 0;
    width: var(--container-wide);
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 60px rgba(8, 43, 115, .12);
}

.brand-lockup { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; }
.brand-lockup strong { display: block; font-family: Poppins, Inter, sans-serif; color: var(--brand); line-height: 1; }
.brand-lockup small { color: var(--muted); font-size: 11px; }
.brand-lockup.inverse strong, .brand-lockup.inverse small { color: white; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--brand);
    font-weight: 900;
    background: linear-gradient(135deg, var(--sun), #fff2aa);
    box-shadow: inset 0 -8px 18px rgba(8,43,115,.1);
}
.brand-mark-image {
    overflow: hidden;
    padding: 0;
    background: #fffdf5;
    box-shadow: 0 10px 24px rgba(8,43,115,.1);
}
.brand-mark-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.desktop-nav { display: flex; align-items: center; gap: 22px; color: #263b66; font-size: 14px; font-weight: 700; }
.desktop-nav a:hover { color: var(--brand); }
.desktop-nav .avivi-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
    margin-left: 12px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    color: #effff7;
    background: linear-gradient(135deg, #071016, #0a2f23 58%, #063b27);
    border: 1px solid rgba(0,255,158,.28);
    box-shadow: 0 14px 34px rgba(0,120,80,.18);
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.desktop-nav .avivi-nav-link::after {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    width: 1px;
    height: 26px;
    transform: translateY(-50%);
    background: rgba(8,43,115,.16);
}
.desktop-nav .avivi-nav-link::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10ff95;
    box-shadow: 0 0 14px rgba(16,255,149,.82);
}
.desktop-nav .avivi-nav-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(0,120,80,.26);
}
.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
    list-style: none;
    min-height: 40px;
    display: grid;
    place-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(8,43,115,.08);
    color: var(--brand);
    font-weight: 900;
    cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu > div {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    display: grid;
    gap: 6px;
    min-width: 220px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
}
.mobile-menu a { padding: 11px 12px; border-radius: 14px; color: var(--brand); font-weight: 850; }
.mobile-menu a:hover { background: rgba(8,43,115,.06); }
.mobile-menu .avivi-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin: 12px 0 4px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #effff7;
    background: linear-gradient(135deg, #071016, #0a2f23 58%, #063b27);
    border: 1px solid rgba(0,255,158,.28);
    border-top: 1px solid rgba(0,255,158,.28);
    box-shadow: 0 12px 28px rgba(0,120,80,.18);
}
.mobile-menu .avivi-nav-link::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10ff95;
    box-shadow: 0 0 12px rgba(16,255,149,.82);
}
.mobile-menu .avivi-nav-link:hover { background: linear-gradient(135deg, #071016, #0c3a2a 58%, #06482f); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-chat-link,
.header-notification-link { position: relative; gap: 8px; }
.header-chat-link span,
.header-notification-link span {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--sun);
    color: var(--brand);
    font-size: 12px;
    font-weight: 950;
}
.profile-menu { position: relative; }
.profile-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 4px 12px 4px 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.76);
    color: var(--brand);
    font-weight: 900;
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(8,43,115,.06);
}
.profile-menu-trigger:hover,
.profile-menu.open .profile-menu-trigger {
    background: #fff;
    box-shadow: 0 14px 34px rgba(8,43,115,.11);
}
.profile-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--brand);
    color: white;
    font-size: 13px;
    font-weight: 950;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 90;
    width: min(280px, calc(100vw - 24px));
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(22px);
    box-shadow: 0 24px 72px rgba(8,43,115,.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.profile-menu.open .profile-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 46px;
    padding: 11px 13px;
    border-radius: 16px;
    color: var(--brand);
    font-weight: 850;
    line-height: 1.25;
    transition: background .18s ease, transform .18s ease, color .18s ease;
}
.profile-dropdown a span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 10px;
    background: rgba(8,43,115,.08);
    color: var(--brand);
    font-size: 13px;
    font-weight: 950;
}
.profile-dropdown a:hover,
.profile-dropdown a:focus-visible {
    background: rgba(8,43,115,.07);
    transform: translateX(2px);
}

.primary-button, .ghost-button, .icon-button, button {
    border: 0;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), #0c4ab8);
    color: white;
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(8,43,115,.24);
}
.primary-button.small { min-height: 40px; padding: 0 16px; font-size: 13px; }
.primary-button:hover, .ghost-button:hover, .icon-button:hover { transform: translateY(-2px); }
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.72);
    color: var(--brand);
    font-weight: 800;
}
.icon-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--sun);
    color: var(--brand);
    font-weight: 900;
}

.glass-panel {
    border: 1px solid rgba(255,255,255,.76);
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow);
}

.hero {
    position: relative;
    width: var(--container-page);
    min-height: 720px;
    margin: 28px auto 0;
    padding: clamp(34px, 6vw, 76px);
    border-radius: 38px;
    overflow: hidden;
    color: white;
    background:
        linear-gradient(90deg, rgba(8,43,115,.96), rgba(8,43,115,.68) 56%, rgba(8,43,115,.15)),
        url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255,201,40,.82);
    filter: blur(0);
}
.hero-copy { position: relative; z-index: 1; max-width: 650px; }
.eyebrow, .section-heading span, .dashboard-topbar span {
    color: var(--sun);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .12em;
    font-weight: 900;
}
.hero h1, .sharing-hero h1, .detail-summary h1, .auth-card h1, .form-workspace h1, .user-hero h1 {
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(44px, 8vw, 96px);
    line-height: .95;
    margin: 12px 0 20px;
    letter-spacing: 0;
}
.hero p { color: rgba(255,255,255,.86); font-size: clamp(18px, 2vw, 22px); max-width: 580px; }
.hero-search {
    position: relative;
    z-index: 2;
    margin-top: 44px;
    padding: 18px;
    border-radius: 28px;
    color: var(--ink);
}
.segmented-control { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.segmented-control input { display: none; }
.segmented-control span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--brand);
    background: rgba(8,43,115,.06);
    font-weight: 800;
}
.segmented-control input:checked + span { background: var(--sun); }
.search-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr auto; gap: 12px; align-items: end; }
label span { display: block; margin: 0 0 6px 4px; color: var(--muted); font-size: 12px; font-weight: 800; }
input, select, textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: white;
    outline: none;
}
textarea { min-height: 120px; padding-top: 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(8,43,115,.08); }
.suggestions { position: absolute; background: white; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; margin-top: 6px; }
.suggestions button { display: block; width: 100%; padding: 12px 16px; text-align: left; background: white; color: var(--brand); }

.hero-metrics { position: relative; z-index: 2; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-metrics div, .testimonial-band article, .analytics-grid article, .settings-tile, .roommate-card {
    border: 1px solid rgba(255,255,255,.65);
    border-radius: var(--radius);
    padding: 20px;
    background: rgba(255,255,255,.84);
    box-shadow: var(--shadow);
}
.hero-metrics div { min-width: 170px; color: var(--brand); }
.hero-metrics strong { display: block; font-size: 30px; }
.hero-metrics span { color: #53627d; font-size: 13px; font-weight: 700; }

.launch-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    gap: clamp(26px, 5vw, 64px);
    align-items: center;
    width: var(--container-wide);
    min-height: clamp(680px, 78vh, 840px);
    margin: 26px auto 0;
    padding: clamp(30px, 6vw, 76px);
    overflow: hidden;
    border-radius: 42px;
    color: white;
    background:
        radial-gradient(circle at 85% 18%, rgba(255,201,40,.34), transparent 24%),
        linear-gradient(135deg, rgba(8,43,115,.98), rgba(9,55,145,.88)),
        url("https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1900&q=82") center/cover;
    box-shadow: 0 32px 90px rgba(8,43,115,.22);
}
.launch-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,43,115,.94), rgba(8,43,115,.64) 58%, rgba(8,43,115,.18));
}
.launch-hero > * { position: relative; z-index: 1; }
.launch-hero-copy { max-width: 760px; }
.launch-hero h1 {
    margin: 12px 0 20px;
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(44px, 6.8vw, 88px);
    line-height: .96;
    letter-spacing: 0;
    text-wrap: balance;
}
.launch-hero p { max-width: 680px; color: rgba(255,255,255,.84); font-size: clamp(17px, 2vw, 22px); line-height: 1.65; }
.launch-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.launch-hero .ghost-button { background: rgba(255,255,255,.14); color: white; border-color: rgba(255,255,255,.32); }
.launch-search {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 130px 150px 150px auto;
    gap: 10px;
    margin-top: 32px;
    padding: 12px;
    border-radius: 26px;
    color: var(--ink);
}
.launch-search input,
.launch-search select { min-height: 48px; border: 0; background: rgba(255,255,255,.92); }
.launch-hero-visual { min-height: 540px; position: relative; }
.floating-property-card {
    position: absolute;
    border: 1px solid rgba(255,255,255,.54);
    border-radius: 30px;
    background: rgba(255,255,255,.9);
    color: var(--brand);
    box-shadow: 0 26px 80px rgba(0,0,0,.22);
    backdrop-filter: blur(20px);
}
.floating-property-card.main { inset: 64px 20px auto auto; width: min(420px, 100%); overflow: hidden; }
.floating-property-card.main img { width: 100%; height: 260px; object-fit: cover; }
.floating-property-card.main div { padding: 18px; }
.floating-property-card.main span { display: block; color: var(--muted); font-weight: 800; }
.floating-property-card.main strong { display: block; margin: 4px 0; font-size: 30px; font-weight: 950; }
.floating-property-card.mini { padding: 18px; width: 220px; }
.floating-property-card.mini strong { display: block; font-size: 20px; font-weight: 950; }
.floating-property-card.mini span { color: var(--muted); font-weight: 750; }
.floating-property-card.top { top: 0; left: 0; transform: rotate(-3deg); }
.floating-property-card.bottom { right: 0; bottom: 32px; transform: rotate(3deg); }
.launch-hero-slider {
    position: relative;
    width: var(--container-wide);
    min-height: clamp(620px, 72vh, 760px);
    margin: 26px auto 0;
    overflow: hidden;
    border-radius: 38px;
    color: white;
    background: #082b73;
    box-shadow: 0 32px 90px rgba(8,43,115,.22);
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .86fr);
    gap: clamp(24px, 4vw, 54px);
    align-items: center;
    padding: clamp(32px, 5vw, 66px) clamp(44px, 6vw, 86px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(28px) scale(.985);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1), visibility .7s ease;
    background:
        radial-gradient(circle at 85% 18%, rgba(255,201,40,.34), transparent 24%),
        linear-gradient(135deg, rgba(8,43,115,.98), rgba(9,55,145,.88)),
        url("https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1900&q=82") center/cover;
}
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,43,115,.94), rgba(8,43,115,.62) 58%, rgba(8,43,115,.16));
}
.hero-slide > * { position: relative; z-index: 1; }
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}
.hero-slide.is-leaving { transform: translateX(-28px) scale(.985); }
.hero-slide .launch-hero-copy { max-width: 680px; }
.hero-slide h1 {
    margin: 12px 0 20px;
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(36px, 4.8vw, 64px);
    line-height: 1.04;
    letter-spacing: 0;
    text-wrap: balance;
}
.hero-slide p { max-width: 620px; color: rgba(255,255,255,.84); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; }
.hero-slide .ghost-button { background: rgba(255,255,255,.14); color: white; border-color: rgba(255,255,255,.32); }
.homepage-search-band {
    position: relative;
    z-index: 4;
    width: min(100% - 32px, 1180px);
    margin: clamp(28px, 4vw, 52px) auto 0;
}
.homepage-search-band .launch-search {
    margin-top: 0;
    box-shadow: 0 22px 70px rgba(8,43,115,.12);
}
.hero-slider-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    color: white;
    font-size: 34px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(14px);
    transition: transform .2s ease, background .2s ease;
}
.hero-slider-arrow:hover { transform: translateY(-50%) scale(1.06); background: rgba(255,255,255,.25); }
.hero-slider-arrow.prev { left: 18px; }
.hero-slider-arrow.next { right: 18px; }
.hero-slider-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(14px);
}
.hero-slider-dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.48);
    transition: width .25s ease, background .25s ease;
}
.hero-slider-dots button.active { width: 28px; background: var(--sun); }
.avivi-slide {
    cursor: pointer;
    background:
        radial-gradient(circle at 78% 20%, rgba(16,255,149,.22), transparent 26%),
        radial-gradient(circle at 34% 92%, rgba(20,220,150,.16), transparent 32%),
        linear-gradient(135deg, #03070b 0%, #071319 44%, #061d15 100%);
}
.avivi-slide::after {
    background:
        linear-gradient(90deg, rgba(3,7,11,.94), rgba(4,14,16,.68) 55%, rgba(5,55,36,.18)),
        repeating-linear-gradient(115deg, rgba(16,255,149,.07) 0 1px, transparent 1px 72px);
}
.avivi-slide .launch-hero-copy { max-width: 680px; cursor: default; }
.avivi-slide h1 { font-size: clamp(34px, 4.2vw, 58px); max-width: 13ch; line-height: 1.02; }
.avivi-eyebrow { color: #40ff9f; }
.avivi-logo-link {
    display: inline-flex;
    width: min(176px, 44vw);
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 20px 56px rgba(16,255,149,.16);
    transition: transform .22s ease, filter .22s ease;
}
.avivi-logo-link:hover { transform: translateY(-2px); filter: drop-shadow(0 0 20px rgba(16,255,149,.26)); }
.avivi-slide-logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: inherit;
}
.avivi-agreement-callout {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    padding: 11px 15px;
    border-radius: 999px;
    color: #dfffee;
    background: rgba(16,255,149,.11);
    border: 1px solid rgba(16,255,149,.25);
    box-shadow: inset 0 0 24px rgba(16,255,149,.05);
    font-size: 13px;
    font-weight: 900;
}
.avivi-agreement-callout::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #24ff96;
    box-shadow: 0 0 16px rgba(36,255,150,.75);
}
.avivi-feature-cloud,
.hero-feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.avivi-feature-cloud {
    max-height: 90px;
    overflow: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}
.avivi-feature-cloud span,
.hero-feature-row span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.92);
    font-size: 12px;
    font-weight: 850;
}
.avivi-feature-cloud span { background: rgba(0,255,158,.10); border-color: rgba(0,255,158,.24); }
.avivi-product-visual {
    position: relative;
    min-height: 470px;
    display: grid;
    align-items: center;
    justify-items: center;
    isolation: isolate;
    cursor: pointer;
}
.avivi-product-visual::before {
    content: "";
    position: absolute;
    inset: 8% 4% 2%;
    border-radius: 40px;
    background:
        radial-gradient(circle at 48% 52%, rgba(16,255,149,.25), transparent 26%),
        linear-gradient(150deg, rgba(16,255,149,.10), rgba(255,255,255,.03));
    filter: blur(18px);
    opacity: .86;
    z-index: -1;
}
.avivi-dashboard-card {
    position: relative;
    width: min(100%, 610px);
    padding: 20px;
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(9,18,24,.90), rgba(4,12,17,.76));
    border: 1px solid rgba(211,255,234,.16);
    box-shadow: 0 36px 110px rgba(0,0,0,.38), 0 0 70px rgba(16,255,149,.10);
    backdrop-filter: blur(22px);
}
.avivi-dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: #eafff4;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
}
.avivi-dashboard-top i {
    width: min(54%, 260px);
    height: 34px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
}
.avivi-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.avivi-dashboard-grid article,
.avivi-chart-panel,
.avivi-activity-row,
.avivi-orbit-card,
.avivi-phone-card,
.avivi-building-card {
    background: rgba(255,255,255,.065);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 50px rgba(0,0,0,.22);
    backdrop-filter: blur(16px);
}
.avivi-dashboard-grid article {
    min-height: 108px;
    padding: 14px;
    border-radius: 20px;
}
.avivi-dashboard-grid small {
    display: block;
    color: rgba(255,255,255,.66);
    font-weight: 800;
}
.avivi-dashboard-grid strong {
    display: block;
    margin-top: 7px;
    color: #ffffff;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 950;
}
.sparkline {
    display: block;
    height: 22px;
    margin-top: 13px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0 10%, #24ff96 10% 18%, transparent 18% 28%, #24ff96 28% 36%, transparent 36% 48%, #24ff96 48% 58%, transparent 58% 70%, #24ff96 70% 100%);
    filter: drop-shadow(0 0 8px rgba(36,255,150,.50));
    opacity: .92;
}
.sparkline.alt { background: linear-gradient(90deg, #24ff96, rgba(36,255,150,.18)); }
.avivi-chart-panel {
    margin-top: 12px;
    padding: 16px;
    border-radius: 24px;
}
.chart-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255,255,255,.82);
    font-weight: 850;
}
.chart-heading b { color: #40ff9f; }
.avivi-bars {
    display: flex;
    align-items: end;
    gap: 7px;
    height: 136px;
    margin-top: 16px;
    padding: 12px 4px 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
}
.avivi-bars span {
    flex: 1;
    height: var(--h);
    min-height: 20px;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, #31ff86, #149b45);
    box-shadow: 0 0 16px rgba(49,255,134,.22);
}
.avivi-activity-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    padding: 13px 14px;
    border-radius: 18px;
    color: rgba(255,255,255,.74);
    font-weight: 800;
}
.avivi-activity-row strong { color: #ffffff; font-size: 13px; }
.avivi-activity-row em { color: #40ff9f; font-style: normal; font-size: 12px; }
.avivi-orbit-card {
    position: absolute;
    z-index: 2;
    min-width: 142px;
    padding: 14px 16px;
    border-radius: 20px;
    color: #eafff4;
}
.avivi-orbit-card strong { display: block; font-size: 24px; font-weight: 950; }
.avivi-orbit-card span { color: rgba(255,255,255,.68); font-weight: 800; font-size: 12px; }
.avivi-orbit-card.tenant { top: 18px; right: 16px; }
.avivi-orbit-card.ticket { left: 8px; bottom: 64px; }
.avivi-phone-card {
    position: absolute;
    right: 16px;
    bottom: 18px;
    width: 128px;
    min-height: 178px;
    padding: 16px 13px;
    border-radius: 28px;
    color: white;
}
.avivi-phone-card span { display: block; color: rgba(255,255,255,.62); font-size: 12px; font-weight: 850; }
.avivi-phone-card strong { display: block; margin-top: 7px; font-size: 34px; font-weight: 950; }
.mini-bars { display: flex; align-items: end; gap: 5px; height: 74px; margin-top: 22px; }
.mini-bars i { flex: 1; border-radius: 999px; background: #24ff96; box-shadow: 0 0 12px rgba(36,255,150,.36); }
.mini-bars i:nth-child(1) { height: 28%; }
.mini-bars i:nth-child(2) { height: 48%; }
.mini-bars i:nth-child(3) { height: 40%; }
.mini-bars i:nth-child(4) { height: 68%; }
.mini-bars i:nth-child(5) { height: 92%; }
.avivi-building-card {
    position: absolute;
    left: 32px;
    top: 72px;
    display: grid;
    grid-template-columns: repeat(3, 26px);
    gap: 8px;
    align-items: end;
    height: 90px;
    padding: 16px;
    border-radius: 22px;
}
.avivi-building-card span {
    display: block;
    border-radius: 8px 8px 2px 2px;
    background:
        repeating-linear-gradient(180deg, rgba(255,255,255,.20) 0 2px, transparent 2px 12px),
        linear-gradient(180deg, rgba(36,255,150,.78), rgba(36,255,150,.20));
    box-shadow: 0 0 18px rgba(36,255,150,.18);
}
.avivi-building-card span:nth-child(1) { height: 52px; }
.avivi-building-card span:nth-child(2) { height: 76px; }
.avivi-building-card span:nth-child(3) { height: 62px; }
.avivi-reference-slide {
    display: block;
    padding: 0;
    overflow: hidden;
    background: #02080a;
}
.avivi-reference-slide::after {
    background:
        radial-gradient(circle at 52% 90%, rgba(20,255,135,.16), transparent 28%),
        linear-gradient(90deg, rgba(0,0,0,.08), rgba(0,0,0,0) 42%, rgba(0,0,0,.10));
    pointer-events: none;
}
.avivi-reference-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    filter: saturate(1.06) contrast(1.02);
}
.avivi-reference-actions {
    position: absolute;
    z-index: 6;
    top: auto;
    right: auto;
    left: 50%;
    bottom: 58px;
    transform: translateX(-50%);
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}
.avivi-reference-actions .launch-cta-row { margin-top: 0; }
.avivi-reference-actions .primary-button {
    min-height: 46px;
    padding: 0 24px;
    background: linear-gradient(135deg, #32ff80, #12b84f);
    color: #02110b;
    box-shadow: 0 16px 44px rgba(35,255,132,.26);
}
.trust-hero-slide {
    background:
        radial-gradient(circle at 78% 28%, rgba(255,201,40,.24), transparent 26%),
        linear-gradient(135deg, #071f55, #123f95),
        url("https://images.unsplash.com/photo-1554469384-e58fac16e23a?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.living-hero-slide {
    background:
        radial-gradient(circle at 82% 20%, rgba(255,201,40,.36), transparent 26%),
        linear-gradient(135deg, rgba(8,43,115,.96), rgba(34,74,155,.86)),
        url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.trust-visual-stack,
.living-card-grid {
    display: grid;
    gap: 14px;
    align-self: center;
    width: min(100%, 560px);
}
.trust-visual-stack article,
.living-card-grid article {
    padding: 20px 22px;
    border-radius: 24px;
    background: rgba(255,255,255,.88);
    color: var(--brand);
    border: 1px solid rgba(255,255,255,.54);
    box-shadow: 0 24px 70px rgba(0,0,0,.18);
    backdrop-filter: blur(18px);
}
.trust-visual-stack article:nth-child(2),
.living-card-grid article:nth-child(even) { transform: translateX(24px); }
.trust-visual-stack b,
.living-card-grid strong { display: block; font-size: clamp(20px, 2.3vw, 30px); font-weight: 950; line-height: 1.12; }
.trust-visual-stack span,
.living-card-grid span { color: var(--muted); font-weight: 850; }
.launch-section {
    width: var(--container-wide);
    margin: clamp(46px, 7vw, 92px) auto 0;
}
.launch-section-head {
    display: grid;
    gap: 10px;
    max-width: 760px;
    margin-bottom: 24px;
}
.launch-section-head.inline {
    max-width: none;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}
.launch-section-head h2,
.room-sharing-launch h2,
.app-download-section h2,
.final-launch-cta h2 {
    margin: 0;
    color: var(--brand);
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.04;
    text-wrap: balance;
}
.launch-section-head p,
.room-sharing-launch p,
.app-download-section p { margin: 0; color: var(--muted); font-weight: 650; line-height: 1.65; font-size: 17px; }
.trust-grid, .audience-grid, .testimonials-launch {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.trust-grid article,
.audience-grid article,
.testimonials-launch article,
.faq-list details {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 18px 54px rgba(8,43,115,.08);
}
.trust-grid article {
    position: relative;
    min-height: 220px;
    padding: 24px;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.trust-grid article::after {
    content: "";
    position: absolute;
    right: -36px;
    top: -42px;
    width: 118px;
    height: 118px;
    border-radius: 999px;
    background: rgba(255,201,40,.18);
}
.trust-grid article:hover {
    transform: translateY(-5px);
    border-color: rgba(255,201,40,.42);
    box-shadow: 0 28px 70px rgba(8,43,115,.13);
}
.trust-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--sun), #fff1a4);
    color: var(--brand);
    font-size: 22px;
    font-weight: 950;
    box-shadow: 0 14px 32px rgba(255,201,40,.24);
}
.trust-grid h3 { margin: 4px 0 8px; color: var(--brand); font-size: 22px; font-weight: 950; }
.trust-grid p { color: var(--muted); line-height: 1.55; margin: 0; }
.launch-property-grid { align-items: stretch; }
.audience-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.audience-grid article { padding: 28px; }
.audience-grid span { color: var(--sun); text-transform: uppercase; font-size: 12px; letter-spacing: .1em; font-weight: 950; }
.audience-grid h3 { margin: 10px 0; color: var(--brand); font-size: 28px; font-weight: 950; }
.audience-grid p { color: var(--muted); line-height: 1.65; }
.audience-grid a { color: var(--brand); font-weight: 950; }
.room-sharing-launch, .app-download-section, .final-launch-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
    gap: 24px;
    align-items: center;
    padding: clamp(28px, 5vw, 54px);
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.72));
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: var(--shadow);
}
.sharing-stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sharing-stack span {
    min-height: 88px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: var(--brand);
    color: white;
    font-weight: 950;
}
.app-download-section { background: linear-gradient(135deg, var(--brand), #0c4ab8); color: white; overflow: hidden; }
.app-download-section h2 { color: white; }
.app-download-section p { color: rgba(255,255,255,.78); }
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.store-badges a,
.footer-store-row a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: white;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.24);
}
.phone-mockup { justify-self: center; width: 260px; padding: 12px; border-radius: 38px; background: #061b46; box-shadow: 0 30px 70px rgba(0,0,0,.28); }
.phone-screen { min-height: 460px; border-radius: 30px; padding: 24px; background: linear-gradient(180deg, #fff, #edf4ff); color: var(--brand); }
.phone-screen span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: var(--sun); font-weight: 950; }
.phone-screen h3 { margin: 84px 0 10px; font-size: 28px; font-weight: 950; }
.qr-placeholder { display: grid; place-items: center; width: 112px; height: 112px; margin-top: 28px; border-radius: 24px; background: repeating-linear-gradient(45deg, var(--brand), var(--brand) 8px, white 8px, white 16px); color: var(--sun); font-weight: 950; }
.testimonials-launch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.testimonials-launch article { padding: 24px; }
.testimonials-launch p { color: #34405a; font-size: 18px; line-height: 1.65; }
.testimonials-launch strong { color: var(--brand); font-weight: 950; }
.faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.faq-list details {
    padding: 0;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.faq-list details:hover {
    transform: translateY(-2px);
    border-color: rgba(8,43,115,.2);
    box-shadow: 0 22px 58px rgba(8,43,115,.11);
}
.faq-list summary {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 20px 54px 20px 22px;
    color: var(--brand);
    font-size: 17px;
    font-weight: 950;
    cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 22px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(8,43,115,.08);
    color: var(--brand);
    transition: transform .2s ease, background .2s ease;
}
.faq-list details[open] summary::after {
    transform: rotate(45deg);
    background: var(--sun);
}
.faq-list summary span {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255,201,40,.22);
    color: var(--brand);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 950;
}
.faq-list p {
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
    padding: 0 22px 22px;
    animation: faqReveal .22s ease;
}
.final-launch-cta {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    background: radial-gradient(circle at 10% 10%, rgba(255,201,40,.34), transparent 28%), linear-gradient(135deg, #fff, #f2f6ff);
}

.section-block, .category-strip, .split-cta, .testimonial-band, .sharing-hero, .roommate-grid, .detail-content, .user-home, .form-workspace {
    width: var(--container-page);
    margin: 70px auto 0;
}
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.section-heading h2, .dashboard-topbar h1, .chart-panel h2, .table-panel h2, .settings-tile h2 {
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(24px, 3vw, 42px);
    color: var(--brand);
    margin: 4px 0 0;
}
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.property-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.property-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 16px 46px rgba(8,43,115,.09);
    transform: translateZ(0);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.property-card:hover { transform: translateY(-7px); border-color: rgba(8,43,115,.2); box-shadow: var(--shadow); }
.property-media { position: relative; display: block; aspect-ratio: 1.28; overflow: hidden; }
.property-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #edf2fb, #fff, #edf2fb);
    background-size: 220% 100%;
    animation: shimmer 1.25s infinite;
}
.property-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(0deg, rgba(3,13,34,.42), transparent);
    opacity: .85;
    pointer-events: none;
}
.property-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .35s ease; }
.property-card:hover img { transform: scale(1.07); filter: saturate(1.06); }
.badge, .verified-pill {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--sun);
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
}
.badge.floating { position: absolute; left: 14px; top: 14px; }
.badge.success { background: #e8fff1; color: #087a3d; }
.badge.danger { background: #fff1f1; color: #b42318; }
.badge.muted { background: #edf3ff; color: var(--brand); }
.verified-pill { position: absolute; right: 14px; top: 14px; background: rgba(255,255,255,.92); }
.status-ribbon {
    position: absolute;
    z-index: 2;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(8,43,115,.86);
    color: white;
    font-size: 12px;
    font-weight: 900;
    text-transform: capitalize;
    backdrop-filter: blur(12px);
}
.favorite-float {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #e53935;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 14px 26px rgba(3,13,34,.16);
    transition: transform .22s ease, background .22s ease;
}
.favorite-float.active { background: #fff1f1; color: #e53935; }
.property-card:hover .favorite-float { transform: scale(1.08); background: white; }
.featured-tag {
    position: absolute;
    z-index: 2;
    left: 14px;
    top: 52px;
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}
.property-body { padding: 18px; }
.property-topline, .property-actions, .cta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.property-topline { color: var(--muted); font-size: 13px; font-weight: 800; }
.property-topline strong { color: var(--brand); }
.property-body h3 {
    margin: 10px 0 6px;
    color: var(--brand);
    font-size: 20px;
    line-height: 1.18;
    font-weight: 900;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.property-body p { color: #58657c; font-size: 14px; line-height: 1.55; }
.property-specs, .amenity-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.property-specs span, .amenity-row span {
    padding: 8px 10px;
    border-radius: 999px;
    background: #f0f4fb;
    color: #273d6b;
    font-size: 12px;
    font-weight: 800;
}
.property-actions { margin-top: 16px; flex-wrap: wrap; }
.property-actions > span { color: var(--muted); font-size: 12px; font-weight: 900; }
.property-actions strong, .price-line { color: var(--brand); font-size: 22px; line-height: 1.12; font-weight: 900; }
.property-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.property-card-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(8,43,115,.06);
    color: #40506d;
    font-size: 11px;
    font-weight: 850;
}
.property-card.map-active {
    border-color: var(--sun);
    box-shadow: 0 0 0 4px rgba(255,201,40,.22), var(--shadow);
}
.quick-view { min-height: 34px; padding: 0 12px; font-size: 12px; }

.category-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.category-strip a {
    flex: 0 0 auto;
    padding: 16px 22px;
    border-radius: 18px;
    background: white;
    color: var(--brand);
    font-weight: 900;
    box-shadow: 0 12px 34px rgba(8,43,115,.08);
}
.split-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--brand), #0d47a1);
    color: white;
}
.split-cta h2 { max-width: 760px; font-family: Poppins, Inter, sans-serif; font-size: clamp(26px, 4vw, 48px); }
.testimonial-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial-band strong { color: var(--brand); font-size: 26px; }

.listing-layout { width: min(1380px, calc(100% - 28px)); margin: 28px auto 0; display: grid; grid-template-columns: 290px 1fr 300px; gap: 18px; align-items: start; }
.filter-panel { position: sticky; top: 100px; border-radius: 24px; padding: 18px; }
.filter-panel form { display: grid; gap: 12px; }
.filter-panel h1 { color: var(--brand); font-family: Poppins, Inter, sans-serif; font-size: 26px; }
.search-shell { width: min(1440px, calc(100% - 28px)); margin: 28px auto 0; }
.search-shell .listing-layout { width: 100%; }
.search-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    border-radius: 30px;
    padding: clamp(20px, 4vw, 34px);
}
.search-top h1 {
    max-width: 18ch;
    margin: 4px 0 8px;
    color: var(--brand);
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1;
}
.search-top p { color: var(--muted); font-weight: 750; }
.filter-drawer-button { display: none; }
.filter-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.filter-heading h2 { color: var(--brand); font-size: 24px; font-weight: 900; }
.filter-heading a, .active-filter-row a { color: var(--brand); font-weight: 900; font-size: 13px; }
.segmented-control.compact { margin-bottom: 0; }
.segmented-control.compact span { min-height: 34px; padding: 0 12px; font-size: 12px; }
.quick-ranges { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-ranges button {
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    background: #edf3ff;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
}
.premium-checks label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    background: rgba(255,255,255,.74);
    color: #334563;
    font-size: 12px;
    font-weight: 800;
}
.premium-checks label span {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: 1.25;
}
.premium-checks input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    border-radius: 5px;
    accent-color: var(--brand);
}
.toolbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-actions select {
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: white;
    color: var(--brand);
    font-weight: 850;
    padding: 0 14px;
}
.active-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.active-filter-row span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,201,40,.28);
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
}
.search-empty {
    display: grid;
    gap: 6px;
    grid-column: 1 / -1;
    color: var(--brand);
}
.search-empty span { color: var(--muted); font-weight: 650; }
.listing-results .property-grid.list-view { grid-template-columns: 1fr; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.toolbar h2 { color: var(--brand); font-size: 32px; font-family: Poppins, Inter, sans-serif; }
.view-toggle { display: flex; padding: 4px; border-radius: 999px; background: white; }
.view-toggle button { padding: 9px 14px; border-radius: 999px; background: transparent; color: var(--brand); font-weight: 800; }
.map-panel { position: sticky; top: 100px; min-height: 520px; border-radius: 26px; padding: 22px; display: grid; place-items: end start; color: white; background: linear-gradient(rgba(8,43,115,.25), rgba(8,43,115,.82)), url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=900&q=80") center/cover; }
.map-search-panel {
    align-content: start;
    gap: 14px;
    place-items: stretch;
    background:
        linear-gradient(145deg, rgba(8,43,115,.92), rgba(8,43,115,.72)),
        radial-gradient(circle at 20% 20%, rgba(255,201,40,.24), transparent 32%);
}
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.map-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.map-toolbar .ghost-button { min-height: 34px; padding: 0 12px; font-size: 12px; }
.map-canvas {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        rgba(255,255,255,.08);
    background-size: 46px 46px;
}
.map-canvas.google-map-ready {
    background: #eef4ff;
}
.google-map-surface {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: auto !important;
    height: auto !important;
    z-index: 0 !important;
    min-height: inherit !important;
}
.detail-google-map,
.location-google-map {
    top: -18px !important;
    right: -18px !important;
    bottom: -18px !important;
    left: -18px !important;
}
.map-canvas.google-map-ready .google-map-surface {
    z-index: 1;
}
.map-search-area-button {
    position: absolute;
    z-index: 4;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--brand);
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 14px 34px rgba(8,43,115,.18);
    backdrop-filter: blur(12px);
}
.map-search-area-button:disabled { opacity: .76; cursor: wait; }
.google-info-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    max-width: 280px;
    color: var(--brand);
}
.google-info-card img {
    width: 72px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    background: #eef4ff;
}
.google-info-card strong,
.google-info-card small,
.google-info-card b {
    display: block;
}
.google-info-card strong { font-weight: 950; line-height: 1.2; }
.google-info-card small { color: #5f6f89; font-weight: 750; margin-top: 3px; }
.google-info-card b { margin-top: 5px; color: #087a3d; }
.map-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    text-align: center;
    color: rgba(255,255,255,.78);
    font-weight: 850;
}
.map-pin {
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -50%);
}
.map-pin span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--sun);
    color: var(--brand);
    font-size: 12px;
    font-weight: 950;
    box-shadow: 0 14px 32px rgba(0,0,0,.18);
    transition: transform .18s ease, box-shadow .18s ease;
}
.map-pin:hover span, .map-pin.active span { transform: scale(1.08); box-shadow: 0 18px 42px rgba(0,0,0,.28); }
.map-pin.coarse span {
    background: rgba(255,255,255,.86);
    border-color: rgba(255,201,40,.8);
    color: #7a4d00;
}
.map-results { display: grid; gap: 8px; }
.map-results a {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    align-items: center;
    border-radius: 16px;
    padding: 8px;
    background: rgba(255,255,255,.12);
    color: white;
}
.map-results img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.map-results strong { display: block; line-height: 1.25; }
.map-results small { color: rgba(255,255,255,.7); }
.map-note, .map-empty-state {
    margin: 0;
    border-radius: 16px;
    padding: 12px;
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.82);
}
.map-empty-state { display: grid; gap: 4px; }
.map-empty-state strong { color: white; }
.map-empty-state small { line-height: 1.45; }
.map-search-panel.is-fullscreen {
    position: fixed;
    z-index: 140;
    inset: 14px;
    top: 14px;
    min-height: auto;
}
.map-search-panel.is-fullscreen .map-canvas {
    min-height: min(68vh, 720px);
}
.map-search-panel.is-fullscreen .map-results {
    max-height: 22vh;
    overflow: auto;
    padding-right: 2px;
}
body.map-open { overflow: hidden; }
.advanced-suggestions {
    z-index: 25;
    width: min(420px, 90vw);
}
.advanced-suggestions button {
    display: grid;
    gap: 2px;
}
.advanced-suggestions button.active,
.advanced-suggestions button:hover { background: #edf3ff; }
.advanced-suggestions small { color: var(--muted); font-weight: 800; text-transform: capitalize; }
.advanced-suggestions mark { background: rgba(255,201,40,.5); color: inherit; border-radius: 5px; padding: 0 2px; }

.location-picker-card {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(8,43,115,.10);
    border-radius: 24px;
    padding: clamp(14px, 2.5vw, 20px);
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(237,243,255,.72));
    box-shadow: 0 18px 44px rgba(8,43,115,.08);
}
.form-section-heading.compact { margin: 0; }
.form-section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.location-map-preview,
.property-detail-map {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    display: grid;
    align-items: end;
    padding: 18px;
    border: 1px solid rgba(8,43,115,.10);
    border-radius: 22px;
    background:
        linear-gradient(rgba(8,43,115,.12), rgba(8,43,115,.42)),
        radial-gradient(circle at 25% 20%, rgba(255,201,40,.32), transparent 28%),
        linear-gradient(135deg, #eaf1fb, #ffffff);
    color: white;
}
.location-map-preview.google-map-ready,
.property-detail-map.google-map-ready {
    background: #eef4ff;
}
.location-map-preview.google-map-ready .location-map-grid,
.location-map-preview.google-map-ready .location-map-pin,
.property-detail-map.google-map-ready .location-map-grid,
.property-detail-map.google-map-ready .location-map-pin {
    display: none;
}
.location-map-preview.google-map-ready > div:not(.google-map-surface),
.property-detail-map.google-map-ready > div:not(.google-map-surface) {
    align-self: end;
    justify-self: start;
    border: 1px solid rgba(255,255,255,.66);
    border-radius: 12px;
    padding: 8px 12px;
    background: rgba(8,43,115,.78);
    box-shadow: 0 16px 42px rgba(8,43,115,.20);
    backdrop-filter: blur(14px);
    max-width: fit-content;
}
.location-map-grid {
    position: absolute;
    inset: 0;
    opacity: .42;
    background-image:
        linear-gradient(rgba(8,43,115,.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8,43,115,.16) 1px, transparent 1px);
    background-size: 34px 34px;
}
.location-map-pin {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    background: var(--sun);
    border: 3px solid white;
    box-shadow: 0 16px 36px rgba(0,0,0,.25);
    transform: translate(-50%, -50%) rotate(-45deg) scale(.7);
    opacity: .28;
    transition: opacity .25s ease, transform .25s ease;
}
.location-map-pin::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: white;
}
.location-map-preview.has-pin .location-map-pin,
.property-detail-map.has-pin .location-map-pin {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg) scale(1);
}
.location-map-preview > div:not(.google-map-surface),
.property-detail-map > div:not(.google-map-surface) {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2px;
    max-width: 64ch;
    text-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.location-map-preview strong,
.property-detail-map strong { font-size: clamp(14px, 1.4vw, 16px); color: white; }
.location-map-preview small,
.property-detail-map small { font-size: 11px; color: rgba(255,255,255,.9); line-height: 1.3; }
.location-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.location-nearby-suggestions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.location-nearby-suggestions[hidden] { display: none; }
.location-nearby-suggestions span {
    display: grid;
    gap: 3px;
    border: 1px solid rgba(8,43,115,.08);
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(255,255,255,.78);
}
.location-nearby-suggestions strong {
    overflow: hidden;
    color: var(--brand);
    font-size: 13px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.location-nearby-suggestions small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-hero {
    width: var(--container-page);
    margin: clamp(18px, 3vw, 28px) auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
    gap: clamp(16px, 2.2vw, 24px);
    align-items: stretch;
}
.detail-gallery { display: grid; grid-template-columns: 1fr 128px; gap: 14px; min-height: 520px; }
.gallery-main {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 28px;
    background: #edf3ff;
    box-shadow: 0 26px 70px rgba(8,43,115,.16);
    cursor: zoom-in;
}
.gallery-main::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    opacity: .9;
    background: linear-gradient(110deg, #eaf1fb 8%, #f8fbff 18%, #eaf1fb 33%);
    background-size: 220% 100%;
    animation: shimmer 1.25s linear infinite;
    transition: opacity .24s ease;
    pointer-events: none;
}
.gallery-main.is-loaded:not(.is-loading)::before { opacity: 0; }
.gallery-main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    will-change: transform, opacity;
}
.gallery-image-current {
    z-index: 1;
    transition: transform .48s cubic-bezier(.2,.85,.2,1), opacity .32s ease;
}
.gallery-main:hover .gallery-image-current { transform: scale(1.035); }
.gallery-main.is-transitioning .gallery-image-current { transform: scale(1); }
.gallery-image-current.exit-left { opacity: 0; transform: translateX(-7%) scale(.99); }
.gallery-image-current.exit-right { opacity: 0; transform: translateX(7%) scale(.99); }
.gallery-transition-image {
    z-index: 2;
    opacity: 0;
    transition: transform .38s cubic-bezier(.2,.85,.2,1), opacity .32s ease;
}
.gallery-transition-image.enter-right { transform: translateX(8%) scale(1.01); }
.gallery-transition-image.enter-left { transform: translateX(-8%) scale(1.01); }
.gallery-transition-image.is-active { opacity: 1; transform: translateX(0) scale(1); }
.gallery-nav {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 50%;
    background: rgba(255,255,255,.78);
    box-shadow: 0 16px 34px rgba(8,43,115,.18);
    backdrop-filter: blur(14px);
    color: var(--brand);
    font-size: 32px;
    font-weight: 900;
    transform: translateY(-50%);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.gallery-nav:hover { background: rgba(255,255,255,.94); box-shadow: 0 18px 42px rgba(8,43,115,.24); transform: translateY(-50%) scale(1.08); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-main.single-image .gallery-nav { display: none; }
.gallery-thumbs { display: grid; align-content: start; gap: 12px; max-height: 520px; overflow-y: auto; padding: 2px; scroll-behavior: smooth; }
.gallery-thumbs button {
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    background: white;
    box-shadow: 0 12px 30px rgba(8,43,115,.08);
    transform: translateZ(0);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.gallery-thumbs button:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 40px rgba(8,43,115,.13); }
.gallery-thumbs button.active { border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255,201,40,.24), 0 20px 44px rgba(8,43,115,.16); }
.gallery-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .28s ease; }
.gallery-thumbs button:hover img, .gallery-thumbs button.active img { transform: scale(1.08); }
.gallery-lightbox {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(3, 13, 34, .88);
}
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox img {
    max-width: min(1100px, 96vw);
    max-height: 86vh;
    border-radius: 22px;
    object-fit: contain;
    box-shadow: 0 30px 90px rgba(0,0,0,.32);
}
.gallery-lightbox button {
    position: fixed;
    right: 24px;
    top: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: white;
    color: var(--brand);
    font-size: 28px;
    font-weight: 900;
}
body.lightbox-open { overflow: hidden; }
body.modal-open { overflow: hidden; }
.modal-backdrop {
    position: fixed;
    z-index: 130;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(3, 13, 34, .64);
    backdrop-filter: blur(12px);
}
.modal-backdrop[hidden] { display: none; }
.visit-modal {
    position: relative;
    width: min(560px, 100%);
    max-height: min(760px, 92vh);
    overflow: auto;
    border-radius: 28px;
    padding: 26px;
}
.visit-modal h2 {
    margin: 6px 48px 18px 0;
    color: var(--brand);
    font-family: Poppins, Inter, sans-serif;
    font-size: 30px;
}
.visit-form { display: grid; gap: 12px; }
.modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #edf3ff;
    color: var(--brand);
    font-size: 26px;
    font-weight: 900;
}
.detail-summary {
    container: detail-summary / inline-size;
    display: grid;
    align-content: start;
    gap: clamp(12px, 3cqw, 18px);
    min-width: 0;
    border-radius: 28px;
    padding: clamp(20px, 4.4cqw, 30px);
    align-self: stretch;
    position: relative;
}
.detail-summary .verified-pill { position: static; margin-left: 8px; }
.detail-summary .badge {
    justify-self: start;
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    text-wrap: balance;
}
.detail-summary h1 {
    max-width: min(100%, 17ch);
    margin: 0;
    color: var(--brand);
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(30px, 2.6rem, 48px);
    font-size: clamp(30px, 7.2cqw, 48px);
    line-height: 1.06;
    letter-spacing: 0;
    text-wrap: balance;
    overflow-wrap: anywhere;
    hyphens: auto;
}
.detail-summary p {
    max-width: 52ch;
    margin: 0;
    color: #58657c;
    font-size: clamp(14px, 1rem, 16px);
    font-size: clamp(14px, 2.8cqw, 16px);
    line-height: 1.55;
    font-weight: 750;
}
.detail-summary .price-line {
    display: block;
    font-size: clamp(23px, 1.85rem, 34px);
    font-size: clamp(23px, 5.2cqw, 34px);
    line-height: 1.08;
    overflow-wrap: anywhere;
}
.detail-summary .property-specs {
    margin-top: 0;
}
.detail-summary .cta-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: clamp(2px, 1.6cqw, 8px);
}
.detail-summary .cta-row .primary-button,
.detail-summary .cta-row .ghost-button {
    flex: 1 1 132px;
    min-width: min(100%, 128px);
}
.detail-content { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.detail-content h2 { color: var(--brand); font-family: Poppins, Inter, sans-serif; font-size: 28px; margin: 30px 0 12px; }
.detail-content > article {
    min-width: 0;
    max-width: 780px;
}
.detail-content > article > p {
    max-width: 72ch;
    color: #40506d;
    font-size: clamp(15px, 1rem, 17px);
    line-height: 1.72;
    overflow-wrap: anywhere;
}
.amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.amenity-grid span, .virtual-tour, .map-large { border-radius: 18px; background: white; border: 1px solid var(--line); padding: 18px; color: var(--brand); font-weight: 800; }
.virtual-tour, .map-large { min-height: 220px; display: grid; place-items: center; }
.nearby-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.nearby-grid article {
    display: grid;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    background: white;
    box-shadow: 0 12px 32px rgba(8,43,115,.06);
}
.nearby-grid strong { color: var(--brand); font-weight: 900; }
.nearby-grid span { color: var(--muted); font-size: 13px; font-weight: 800; }
.nearby-grid small {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}
.nearby-grid em {
    color: #087a3d;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.35;
}
.nearby-google-place {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.nearby-google-place:hover {
    border-color: rgba(8,43,115,.16);
    box-shadow: 0 18px 42px rgba(8,43,115,.10);
    transform: translateY(-2px);
}
.agent-card { border-radius: 24px; padding: 22px; position: sticky; top: 100px; }
.agent-card .verified-pill { position: static; }
.lead-form { display: grid; gap: 12px; margin-top: 16px; }

.sharing-hero { display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: center; padding: 44px; border-radius: 34px; background: linear-gradient(135deg, var(--brand), #0d47a1); color: white; }
.sharing-card { border-radius: 26px; padding: 20px; display: grid; gap: 12px; }
.roommate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.roommate-card { background: white; }
.roommate-card h2 { color: var(--brand); font-size: 24px; font-weight: 900; margin: 18px 0 8px; }
.occupancy-meter { height: 10px; border-radius: 999px; background: #e8eef8; overflow: hidden; margin: 18px 0; }
.occupancy-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), #ffe78d); }

.agent-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.agent-directory-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 201, 40, .16), transparent 34%),
        linear-gradient(145deg, #fff, #f8fbff);
    box-shadow: 0 18px 48px rgba(8, 43, 115, .09);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.agent-directory-card:hover {
    transform: translateY(-5px);
    border-color: rgba(8, 43, 115, .18);
    box-shadow: 0 26px 70px rgba(8, 43, 115, .14);
}
.agent-card-main {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 16px;
    color: inherit;
    text-decoration: none;
}
.agent-avatar,
.agent-profile-avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--brand), #2250b5);
    color: var(--sun);
    font-family: Poppins, Inter, sans-serif;
    font-weight: 950;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 16px 34px rgba(8,43,115,.18);
}
.agent-avatar { width: 74px; height: 74px; font-size: 30px; }
.agent-avatar img,
.agent-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-card-content { display: grid; min-width: 0; gap: 6px; }
.agent-card-topline {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.agent-card-content strong {
    color: var(--brand);
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.05;
}
.agent-card-content small,
.agent-specialty {
    color: var(--muted);
    font-weight: 750;
    line-height: 1.45;
}
.agent-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.agent-card-stats span {
    display: grid;
    gap: 2px;
    min-height: 72px;
    align-content: center;
    padding: 12px;
    border-radius: 18px;
    background: #f2f6ff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}
.agent-card-stats strong { color: var(--brand); font-size: 18px; }
.agent-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.agent-card-actions a { flex: 1 1 140px; justify-content: center; }

.agent-profile-page {
    width: var(--container-page);
    margin: 52px auto 0;
    display: grid;
    gap: 24px;
}
.agent-profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: clamp(22px, 4vw, 38px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 82% 4%, rgba(255, 201, 40, .24), transparent 30%),
        linear-gradient(135deg, #fff, #f4f7ff);
}
.agent-profile-identity {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}
.agent-profile-avatar {
    width: 118px;
    height: 118px;
    border-radius: 32px;
    font-size: 48px;
}
.agent-profile-identity h1 {
    margin: 6px 0;
    color: var(--brand);
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(34px, 5vw, 64px);
    line-height: .98;
    max-width: 12ch;
}
.agent-profile-identity p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    font-weight: 800;
}
.agent-hero-badges,
.agent-chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.agent-hero-badges span:not(.badge),
.agent-chip-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
}
.agent-profile-actions {
    display: grid;
    min-width: 220px;
    gap: 10px;
}
.agent-profile-actions a { justify-content: center; }
.agent-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}
.agent-stat-grid article {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(8,43,115,.07);
}
.agent-stat-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.agent-stat-grid strong {
    display: block;
    margin-top: 8px;
    color: var(--brand);
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(22px, 2.4vw, 34px);
    line-height: 1.05;
}
.agent-profile-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.agent-profile-sidebar {
    position: sticky;
    top: 105px;
    display: grid;
    gap: 16px;
}
.agent-info-panel,
.agent-section,
.agent-properties-panel,
.agent-review-panel {
    padding: clamp(20px, 3vw, 30px);
    border-radius: 30px;
}
.agent-info-panel h2,
.agent-section h2,
.agent-properties-panel h2,
.agent-review-panel h2 {
    margin: 6px 0 10px;
    color: var(--brand);
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.08;
}
.agent-info-panel p,
.agent-section p,
.agent-review-panel p {
    color: var(--muted);
    font-weight: 750;
    line-height: 1.65;
}
.agent-contact-stack,
.agent-inquiry-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.agent-contact-stack a,
.agent-inquiry-actions a { justify-content: center; }
.agent-check-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}
.agent-check-list li {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f3f7ff;
    color: var(--brand);
    font-weight: 850;
}
.agent-profile-main { display: grid; gap: 18px; }
.agent-detail-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 0;
}
.agent-detail-list div {
    padding: 16px;
    border-radius: 20px;
    background: #f6f9ff;
}
.agent-detail-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.agent-detail-list dd {
    margin: 8px 0 0;
    color: var(--brand);
    font-weight: 900;
}
.agent-listing-filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
    gap: 10px;
}
.agent-listing-filters input,
.agent-listing-filters select {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0 14px;
    background: #fff;
    color: var(--brand);
    font-weight: 800;
}
.section-spacer-sm { margin-top: 18px; }
.agent-review-panel {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}
.agent-empty {
    min-height: 420px;
    display: grid;
    place-items: center;
    text-align: center;
}
.agent-empty-icon {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background: var(--brand);
    color: var(--sun);
    font-family: Poppins, Inter, sans-serif;
    font-weight: 950;
    font-size: 32px;
}

.auth-screen { min-height: 70vh; display: grid; place-items: center; padding: 60px 14px; }
.auth-card { width: min(460px, 100%); border-radius: 28px; padding: 28px; display: grid; gap: 14px; }
.auth-card h1 { color: var(--brand); font-size: 38px; }
.form-error { color: #b42318; }
.form-success { color: #027a48; }
.auth-onboarding { align-items: stretch; }
.auth-layout {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    gap: 18px;
    align-items: stretch;
}
.auth-intro {
    border-radius: 32px;
    padding: clamp(26px, 5vw, 44px);
    display: grid;
    align-content: center;
    gap: 18px;
    background:
        linear-gradient(135deg, rgba(8,43,115,.96), rgba(8,43,115,.78)),
        linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
    color: white;
}
.auth-intro h1 {
    max-width: 13ch;
    margin: 0;
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1;
    letter-spacing: 0;
}
.auth-intro p {
    max-width: 58ch;
    color: rgba(255,255,255,.78);
    line-height: 1.7;
    font-weight: 650;
}
.auth-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.auth-benefit-grid span {
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255,255,255,.1);
    color: white;
    font-weight: 850;
}
.role-card-grid { display: grid; gap: 10px; }
.role-card {
    position: relative;
    display: block;
    cursor: pointer;
}
.role-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
}
.role-card span {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255,255,255,.72);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.role-card strong { color: var(--brand); font-weight: 900; }
.role-card small { color: var(--muted); font-weight: 650; line-height: 1.4; }
.role-card:hover span { transform: translateY(-1px); }
.role-card input:checked + span {
    border-color: rgba(8,43,115,.32);
    background: linear-gradient(135deg, rgba(8,43,115,.08), rgba(255,201,40,.22));
    box-shadow: 0 14px 32px rgba(8,43,115,.12);
}
.auth-secondary {
    margin: 0;
    color: var(--muted);
    text-align: center;
    font-weight: 700;
}
.auth-secondary a { color: var(--brand); font-weight: 900; }
.auth-hint {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 650;
}
.auth-card select {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    color: var(--brand);
    font-weight: 800;
    padding: 0 14px;
}
.property-state-screen .auth-card { width: min(620px, 100%); }
.property-state-card p {
    color: #52627b;
    line-height: 1.7;
    font-weight: 650;
}
.property-state-card .cta-row { margin-top: 4px; }

.dashboard-shell { width: var(--container-wide); margin: 28px auto 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; }
.dashboard-sidebar { min-height: 760px; border-radius: 28px; padding: 20px; background: linear-gradient(180deg, var(--brand), #051b49); color: white; position: sticky; top: 100px; }
.dashboard-sidebar nav { display: grid; gap: 8px; margin-top: 30px; }
.dashboard-sidebar nav a { padding: 13px 14px; border-radius: 14px; color: rgba(255,255,255,.76); font-weight: 800; }
.dashboard-sidebar nav a.active, .dashboard-sidebar nav a:hover { background: rgba(255,255,255,.12); color: white; }
.dashboard-main { min-width: 0; container-type: inline-size; }
.dashboard-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.analytics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.analytics-grid article { background: white; }
.analytics-grid span, .analytics-grid small { color: var(--muted); font-size: 13px; font-weight: 800; }
.analytics-grid strong { display: block; margin: 8px 0; color: var(--brand); font-size: 34px; font-weight: 900; }
.dashboard-panels { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; }
.chart-panel, .table-panel { border-radius: 24px; background: white; border: 1px solid var(--line); padding: 20px; box-shadow: 0 16px 46px rgba(8,43,115,.08); overflow: auto; }
.admin-table-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}
.admin-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fbff;
    color: var(--brand);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.admin-table th,
.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
}
.admin-table tbody tr { transition: background .18s ease, box-shadow .18s ease; }
.admin-table tbody tr:hover { background: #f8fbff; }
.admin-properties-table th:first-child,
.admin-properties-table td:first-child { min-width: 360px; width: 38%; }
.admin-properties-table th:nth-child(4),
.admin-properties-table td:nth-child(4) { min-width: 420px; width: 34%; }
.admin-property-title { display: grid; gap: 8px; }
.admin-property-title strong,
.admin-user-cell strong { color: var(--brand); font-weight: 950; line-height: 1.25; }
.admin-property-title small,
.admin-user-cell small,
.admin-table td small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 750;
    line-height: 1.45;
}
.badge-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge.success { background: rgba(29,185,84,.12); color: #087a35; }
.badge.warning { background: rgba(255,201,40,.22); color: var(--brand); }
.admin-moderation-grid {
    display: grid;
    grid-template-columns: minmax(130px, .8fr) minmax(120px, .75fr) minmax(110px, .65fr) minmax(160px, 1fr) auto;
    gap: 8px;
    align-items: center;
}
.admin-action-stack { display: grid; gap: 8px; min-width: 360px; }
.admin-user-action-form { flex-wrap: wrap; }
.admin-user-action-form.danger-zone { display: inline-flex; }
.admin-user-action-form button.danger,
.inline-form button.danger { background: #fff1f1; color: #b42318; }
.verified-state {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    width: fit-content;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(29,185,84,.12);
    color: #087a35;
    font-weight: 950;
}
.is-soft-deleted { opacity: .58; }
.admin-card-list { display: grid; gap: 12px; }
.admin-support-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fbff;
}
.admin-support-card h3 { margin: 8px 0 6px; color: var(--brand); font-weight: 950; }
.admin-support-card p { margin: 0 0 8px; color: #52617b; line-height: 1.55; }
.settings-management-grid { align-items: start; }
.compact-form { gap: 10px; }
.admin-mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.admin-mini-list span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 11px;
    background: #f8fbff;
    color: var(--brand);
    font-size: 12px;
    font-weight: 850;
}
.admin-confirm-modal { display: none; }
.admin-confirm-modal.open { display: grid; }
.email-queue-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}
.email-queue-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.email-queue-tabs a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--muted);
    font-weight: 900;
    background: #fff;
}
.email-queue-tabs a.active,
.email-queue-tabs a:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.email-queue-search {
    display: flex;
    gap: 8px;
    min-width: min(420px, 100%);
}
.email-queue-search input { min-height: 42px; }
.email-test-panel { margin-bottom: 18px; }
.email-test-grid {
    display: grid;
    grid-template-columns: max-content minmax(280px, 520px);
    gap: 12px;
    align-items: end;
}
.email-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid var(--line);
}
.email-queue-table th:first-child,
.email-queue-table td:first-child { min-width: 48px; width: 48px; text-align: center; }
.email-queue-table th:nth-child(2),
.email-queue-table td:nth-child(2) { min-width: 360px; width: 34%; }
.email-actions { min-width: 340px; grid-template-columns: repeat(4, max-content); align-items: center; }
.pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    color: var(--muted);
    font-weight: 800;
}
.email-body-preview {
    max-height: 420px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    background: #f8fbff;
    color: #263653;
    white-space: pre-wrap;
    word-break: break-word;
    font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.error-text { color: #b42318 !important; }
.badge.danger { background: #fff1f1; color: #b42318; }
.muted-copy { color: var(--muted); line-height: 1.6; font-weight: 700; }
.notification-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.notification-strip article {
    border: 1px solid rgba(255,255,255,.76);
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,248,220,.9));
    box-shadow: 0 12px 34px rgba(8,43,115,.08);
}
.notification-strip strong { display: block; color: var(--brand); font-size: 13px; }
.notification-strip small { color: var(--muted); font-weight: 800; }
.chat-inbox-panel {
    margin: 18px 0;
    overflow: hidden;
}
.chat-inbox-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}
.chat-inbox-controls input {
    flex: 1 1 260px;
    min-height: 42px;
    border-radius: 999px;
}
.chat-filter-tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    background: #edf3ff;
}
.chat-filter-tabs button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
}
.chat-filter-tabs button.active {
    background: white;
    box-shadow: 0 8px 20px rgba(8,43,115,.10);
}
.inbox-count-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,201,40,.25);
    color: var(--brand);
    font-size: 12px;
    font-weight: 950;
}
.lead-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}
.lead-badge-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(8,43,115,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(8,43,115,.06);
}
.lead-badge-row b { color: var(--brand); font-size: 16px; }
.chat-inbox-list { display: grid; gap: 10px; }
.chat-inbox-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,251,255,.86));
    box-shadow: 0 12px 34px rgba(8,43,115,.07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.chat-inbox-card:hover {
    transform: translateY(-2px);
    border-color: rgba(8,43,115,.20);
    box-shadow: 0 18px 42px rgba(8,43,115,.11);
}
.chat-inbox-card > button {
    width: 100%;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
    text-align: left;
}
.conversation-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--brand);
    color: white;
    font-weight: 950;
}
.conversation-copy { min-width: 0; display: grid; gap: 2px; }
.conversation-copy strong { color: var(--brand); font-weight: 950; }
.conversation-copy small, .conversation-copy em, .conversation-meta time {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}
.conversation-copy em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.conversation-meta {
    display: grid;
    justify-items: end;
    gap: 5px;
}
.conversation-meta b {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--sun);
    color: var(--brand);
    font-size: 12px;
}
.conversation-meta i { color: #087a3d; font-size: 11px; font-style: normal; font-weight: 900; }
.conversation-stage-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 0 13px 13px 71px;
}
.lead-stage-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf3ff;
    color: var(--brand);
    font-size: 12px;
    font-weight: 950;
}
.conversation-stage-row a { color: var(--brand); font-size: 12px; font-weight: 900; }
.metric-row {
    display: grid;
    grid-template-columns: 68px 1fr auto;
}
.metric-row img {
    width: 68px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    background: #edf3ff;
}
.bar-chart { height: 260px; display: flex; align-items: end; gap: 16px; padding-top: 28px; }
.bar-chart span { flex: 1; border-radius: 14px 14px 0 0; background: linear-gradient(180deg, var(--sun), var(--brand)); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 14px 10px; border-bottom: 1px solid #edf1f7; text-align: left; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
td { color: #23375f; font-weight: 700; }
td button { border-radius: 999px; padding: 8px 12px; background: #edf3ff; color: var(--brand); font-weight: 900; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-workspace { display: grid; grid-template-columns: .7fr 1fr; gap: 28px; align-items: start; }
.property-form { border-radius: 28px; padding: 22px; display: grid; gap: 12px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-section-heading { display: grid; gap: 2px; margin-top: 8px; }
.form-section-heading h2 { margin: 0; color: var(--brand); font-family: Poppins, Inter, sans-serif; font-size: 24px; }
.check-row { display: flex; gap: 10px; align-items: center; color: var(--brand); font-weight: 800; }
.check-row input[type="checkbox"],
.check-row input[type="radio"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    accent-color: var(--brand);
}
.visually-hidden-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.file-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 18px;
    border: 1px dashed rgba(8,43,115,.28);
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    color: var(--brand);
    font-weight: 900;
    cursor: pointer;
}
.file-pill span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--sun);
}
.media-uploader {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,255,255,.68);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.media-uploader.drag-active { border-color: rgba(255,201,40,.62); box-shadow: 0 20px 48px rgba(8,43,115,.12); transform: translateY(-1px); }
.media-uploader.drag-active .media-dropzone {
    border-color: var(--sun);
    background: rgba(255,201,40,.14);
    transform: translateY(-2px);
}
.media-uploader-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.media-dropzone {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 26px;
    border: 2px dashed rgba(8,43,115,.24);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(8,43,115,.05), rgba(255,255,255,.94));
    color: var(--brand);
    text-align: center;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.media-dropzone:hover { border-color: rgba(8,43,115,.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75); transform: translateY(-1px); }
.media-dropzone-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 10px;
    border-radius: 18px;
    background: var(--sun);
    color: var(--brand);
    font-size: 30px;
    font-weight: 900;
}
.media-dropzone strong { font-size: 18px; font-weight: 900; }
.media-dropzone small { max-width: 520px; color: var(--muted); font-weight: 800; line-height: 1.5; }
.media-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.media-preview-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: white;
    box-shadow: 0 12px 30px rgba(8,43,115,.08);
    transform: translateZ(0);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.media-preview-card:hover { border-color: rgba(8,43,115,.18); box-shadow: 0 18px 44px rgba(8,43,115,.13); transform: translateY(-2px); }
.media-preview-card[data-state="uploading"] { border-color: rgba(8,43,115,.34); }
.media-preview-card[data-state="success"] { border-color: rgba(29,185,84,.38); }
.media-preview-card[data-state="failed"] { border-color: rgba(229,57,53,.42); }
.media-preview-card img, .media-preview-card video, .media-file-fallback {
    width: 100%;
    aspect-ratio: 1.25;
    object-fit: cover;
    background: #eef4ff;
}
.media-preview-card video { cursor: default; }
.media-file-fallback {
    display: grid;
    place-items: center;
    color: var(--brand);
    font-weight: 900;
}
.media-cover-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 999px;
    background: rgba(8,43,115,.82);
    color: white;
    font-size: 11px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}
.media-preview-card.is-cover .media-cover-badge { background: rgba(255,201,40,.92); color: var(--brand); }
.media-card-progress {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 74px;
    z-index: 2;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.74);
    opacity: 0;
    transition: opacity .2s ease;
}
.media-card-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sun), var(--brand));
    transition: width .16s ease;
}
.media-preview-card[data-state="uploading"] .media-card-progress,
.media-preview-card[data-state="success"] .media-card-progress,
.media-preview-card[data-state="failed"] .media-card-progress { opacity: 1; }
.media-preview-card[data-state="failed"] .media-card-progress span { background: var(--error); }
.media-preview-card[data-state="success"] .media-card-progress span { background: var(--success); }
.media-preview-card div:not(.media-preview-actions):not(.media-file-fallback) {
    padding: 10px 12px 0;
}
.media-preview-card strong {
    display: block;
    overflow: hidden;
    color: var(--brand);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.media-preview-card small { color: var(--muted); font-weight: 700; }
.media-preview-actions {
    display: flex;
    gap: 6px;
    padding: 10px 12px 12px;
}
.media-preview-actions button {
    min-width: 34px;
    min-height: 34px;
    border-radius: 999px;
    background: #edf3ff;
    color: var(--brand);
    font-weight: 900;
    transition: transform .18s ease, background .18s ease;
}
.media-preview-actions button:hover { background: var(--sun); transform: translateY(-1px); }
.upload-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eef8;
}
.upload-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sun), var(--brand));
    transition: width .18s ease;
}
.upload-status {
    margin: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: #edf3ff;
    color: var(--brand);
    font-weight: 800;
}
.upload-status[data-state="error"] {
    background: #fff1f1;
    color: #b42318;
}
.upload-status[data-state="info"] {
    background: #f0f6ff;
}
.upload-status[data-state="success"] {
    background: #ecfff4;
    color: #087a3d;
}
.upload-cancel-button, .upload-retry-button {
    justify-self: start;
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
}
.upload-cancel-button[hidden], .upload-retry-button[hidden] { display: none; }
.owner-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}
.owner-side-panel { display: grid; gap: 18px; position: sticky; top: 100px; }
.dashboard-topbar.compact { margin-bottom: 6px; }
.dashboard-topbar.compact h2 { margin: 4px 0 0; color: var(--brand); font-family: Poppins, Inter, sans-serif; font-size: 30px; }
.status-stack { display: grid; gap: 12px; }
.status-stack small { color: var(--muted); font-weight: 800; line-height: 1.5; }
.owner-status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 4px 6px 0;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf3ff;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: capitalize;
}
.action-menu { position: relative; display: inline-block; }
.action-menu summary {
    list-style: none;
    min-width: 100px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #edf3ff;
    color: var(--brand);
    font-weight: 900;
    text-align: center;
    cursor: pointer;
}
.action-menu summary::-webkit-details-marker { display: none; }
.action-menu[open] summary { background: var(--brand); color: white; }
.action-menu > div {
    position: absolute;
    z-index: 20;
    right: 0;
    top: calc(100% + 8px);
    display: grid;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
}
.action-menu a, .action-menu button {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    border-radius: 12px;
    background: transparent;
    color: #23375f;
    text-align: left;
    font-weight: 900;
}
.action-menu a:hover, .action-menu button:hover { background: #f0f4fb; }
.action-menu .danger button { color: #b42318; }
.hidden-form { display: none; }
.media-manager-upload { margin: 12px 0 18px; border: 1px solid var(--line); background: #f8fbff; }
.image-manager-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.image-manager-grid > .ghost-button { grid-column: 1 / -1; justify-self: start; }
.image-manager-card {
    overflow: hidden;
    position: relative;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
    box-shadow: 0 14px 38px rgba(8,43,115,.08);
    transition: transform .24s ease, box-shadow .24s ease;
}
.image-manager-card:hover { transform: translateY(-3px); box-shadow: 0 22px 54px rgba(8,43,115,.13); }
.image-manager-card img {
    width: 100%;
    aspect-ratio: 1.28;
    object-fit: cover;
    background: #eef4ff;
}
.image-manager-card video {
    width: 100%;
    aspect-ratio: 1.28;
    object-fit: cover;
    background: #081b3f;
}
.video-manager-grid { margin-top: 14px; }
.image-cover-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    background: rgba(255,201,40,.94);
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(8,43,115,.12);
    backdrop-filter: blur(10px);
}
.image-manager-card > div:not(.image-actions) { padding: 12px 12px 0; }
.image-manager-card strong { display: block; color: var(--brand); font-weight: 900; }
.image-manager-card small { color: var(--muted); font-weight: 700; }
.image-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 12px;
}
.image-actions button {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf3ff;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
}
.image-actions button:disabled {
    opacity: .58;
    cursor: not-allowed;
    transform: none;
}
.image-actions button.danger { background: #fff1f1; color: #b42318; }
.toast-stack {
    position: fixed;
    z-index: 200;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 36px));
}
.toast {
    transform: translateY(10px);
    opacity: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    color: var(--brand);
    font-weight: 900;
    box-shadow: var(--shadow);
    transition: opacity .22s ease, transform .22s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(29,185,84,.22); color: #087a3d; }
.toast.error { border-color: rgba(229,57,53,.22); color: #b42318; }

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(8,43,115,.06);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.chip:hover,
.chip.active {
    border-color: rgba(255,201,40,.8);
    background: #fff8dc;
    transform: translateY(-1px);
}
.checkbox-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
}
.checkbox-pill input { width: 14px; height: 14px; accent-color: var(--brand); }

.visit-slot-picker {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 2px 4px;
    scrollbar-width: thin;
}
.visit-slot-picker > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.visit-slot-picker button {
    min-width: 118px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px 12px;
    background: rgba(255,255,255,.9);
    color: var(--brand);
    text-align: left;
    box-shadow: 0 10px 24px rgba(8,43,115,.06);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.visit-slot-picker button strong,
.visit-slot-picker button span { display: block; }
.visit-slot-picker button strong { font-size: 12px; }
.visit-slot-picker button span { color: var(--muted); font-weight: 900; margin-top: 3px; }
.visit-slot-picker button:hover,
.visit-slot-picker button.active {
    border-color: rgba(255,201,40,.9);
    background: #fff8dc;
    transform: translateY(-1px);
}
.calendar-sync-card {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.74);
}
.calendar-sync-card strong { color: var(--brand); font-weight: 950; }
.calendar-sync-card small { color: var(--muted); font-weight: 800; }
.calendar-mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}
.calendar-mode-tabs a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: white;
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
}
.calendar-mode-tabs a.active {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
}
.calendar-agenda .assignment-row {
    align-items: flex-start;
}

.notification-panel {
    position: fixed;
    z-index: 145;
    top: 88px;
    right: 22px;
    width: min(390px, calc(100vw - 28px));
    max-height: min(680px, calc(100vh - 120px));
    display: grid;
    grid-template-rows: auto auto minmax(180px, 1fr);
    overflow: hidden;
    border-radius: 26px;
    transform: translateY(-8px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.notification-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.notification-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.notification-panel header span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}
.notification-panel header strong {
    color: var(--brand);
    font-weight: 950;
}
.notification-panel header button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #edf3ff;
    color: var(--brand);
    font-size: 24px;
    font-weight: 900;
}
.notification-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}
.notification-list {
    display: grid;
    gap: 10px;
    overflow: auto;
    padding: 14px;
}
.notification-item {
    display: grid;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 13px 14px;
    background: white;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.notification-item:hover {
    border-color: rgba(8,43,115,.18);
    box-shadow: 0 16px 36px rgba(8,43,115,.10);
    transform: translateY(-1px);
}
.notification-item.unread {
    border-color: rgba(255,201,40,.55);
    background: linear-gradient(135deg, #fffdf4, #ffffff);
}
.notification-item span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}
.notification-item strong { color: var(--brand); font-weight: 950; }
.notification-item p {
    margin: 0;
    color: #475467;
    font-size: 13px;
    line-height: 1.45;
}
.notification-item small { color: var(--muted); font-weight: 800; }

.chat-panel {
    position: fixed;
    z-index: 150;
    right: 22px;
    bottom: 22px;
    width: min(420px, calc(100vw - 28px));
    max-height: min(680px, calc(100vh - 44px));
    display: grid;
    grid-template-rows: auto auto minmax(260px, 1fr) auto;
    overflow: hidden;
    border-radius: 26px;
    transform: translateY(18px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.chat-panel.crm-mode {
    width: min(920px, calc(100vw - 28px));
}
.chat-panel.customer-mode {
    width: min(440px, calc(100vw - 28px));
}
.chat-panel.customer-inbox-mode {
    width: min(940px, calc(100vw - 28px));
}
.chat-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.chat-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.chat-panel header span { display: block; color: var(--muted); font-size: 12px; font-weight: 850; }
.chat-panel header strong { color: var(--brand); font-weight: 950; }
.chat-panel header button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #edf3ff;
    color: var(--brand);
    font-size: 24px;
    font-weight: 900;
}
.chat-property-context {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(247,249,252,.82);
}
.chat-property-context[hidden] { display: none; }
.chat-property-context img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.chat-property-context strong { display: block; color: var(--brand); font-weight: 950; }
.chat-property-context small { color: var(--muted); font-size: 12px; font-weight: 750; }
.chat-body-layout {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}
.chat-panel.crm-mode .chat-body-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
}
.chat-panel.customer-inbox-mode .chat-body-layout {
    grid-template-columns: 320px minmax(0, 1fr);
}
.chat-thread-pane {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}
.customer-thread-bar {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.92);
    color: var(--brand);
    font-size: 13px;
    font-weight: 950;
}
.customer-thread-bar button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf3ff;
    color: var(--brand);
    font-size: 24px;
    line-height: 1;
}
.customer-inbox-pane {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,249,252,.84));
}
.customer-inbox-pane[hidden] { display: none; }
.customer-inbox-head {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
}
.customer-inbox-head span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.customer-inbox-head strong { color: var(--brand); font-size: 20px; font-weight: 950; }
.customer-inbox-head input {
    min-height: 40px;
    border-radius: 999px;
    background: white;
}
.customer-conversation-list {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 8px;
    overflow: auto;
    padding: 10px;
}
.customer-conversation-item {
    width: 100%;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    text-align: left;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.customer-conversation-item:hover,
.customer-conversation-item.active {
    transform: translateY(-1px);
    border-color: rgba(8,43,115,.14);
    background: white;
    box-shadow: 0 14px 34px rgba(8,43,115,.10);
}
.customer-conversation-item.active { box-shadow: inset 3px 0 0 var(--sunshine), 0 14px 34px rgba(8,43,115,.10); }
.customer-conversation-item img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    background: #edf3ff;
}
.customer-conversation-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}
.customer-conversation-copy strong {
    overflow: hidden;
    color: var(--brand);
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.customer-conversation-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.customer-conversation-copy em {
    overflow: hidden;
    color: #52617b;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.customer-conversation-meta {
    display: grid;
    justify-items: end;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}
.customer-conversation-meta b {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--sunshine);
    color: var(--brand);
    font-size: 11px;
}
.customer-conversation-meta i {
    color: var(--success);
    font-style: normal;
}
.chat-messages {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 16px;
    overflow: auto;
    background: rgba(247,249,252,.72);
}
.chat-loading-state {
    align-self: center;
    justify-self: center;
    border-radius: 999px;
    padding: 10px 14px;
    background: white;
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(8,43,115,.08);
}
.chat-customer-state {
    align-self: center;
    justify-self: center;
    max-width: 320px;
}
.chat-customer-state strong { color: var(--brand); font-weight: 950; }
.chat-customer-state p { margin: 6px 0 12px; color: var(--muted); line-height: 1.5; }
.chat-panel.customer-mode .chat-lead-sidebar { display: none; }
.chat-panel.customer-mode .chat-property-context {
    background: linear-gradient(135deg, rgba(247,249,252,.94), rgba(255,255,255,.96));
}
.chat-panel.customer-mode .chat-messages {
    background: linear-gradient(180deg, rgba(247,249,252,.86), rgba(237,243,255,.60));
}
.chat-lead-sidebar {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px;
    border-left: 1px solid var(--line);
    background: white;
}
.chat-lead-sidebar[hidden] { display: none; }
.chat-lead-sidebar > strong { color: var(--brand); font-size: 20px; font-weight: 950; }
.chat-lead-sidebar > small { color: var(--muted); line-height: 1.45; font-weight: 750; }
.chat-lead-sidebar label {
    display: grid;
    gap: 6px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 950;
}
.chat-lead-sidebar select { min-height: 40px; border-radius: 14px; }
.lead-metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lead-metric-grid span {
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: 14px;
    background: #f7f9fc;
    text-align: center;
}
.lead-metric-grid b { color: var(--brand); font-size: 18px; }
.lead-metric-grid small { color: var(--muted); font-size: 11px; font-weight: 850; }
.chat-message {
    width: fit-content;
    max-width: 82%;
    border-radius: 18px 18px 18px 6px;
    padding: 10px 12px;
    background: white;
    box-shadow: 0 10px 26px rgba(8,43,115,.08);
}
.chat-message.mine {
    justify-self: end;
    border-radius: 18px 18px 6px 18px;
    background: linear-gradient(135deg, var(--brand), #0c4ab8);
    color: white;
}
.chat-message strong { display: block; font-size: 12px; margin-bottom: 3px; }
.chat-message p { margin: 0; line-height: 1.45; }
.chat-message small { display: block; margin-top: 5px; color: currentColor; opacity: .65; font-size: 11px; }
.chat-attachments {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}
.chat-attachments img {
    width: min(220px, 100%);
    max-height: 180px;
    border-radius: 14px;
    object-fit: cover;
}
.chat-attachments video {
    width: min(260px, 100%);
    max-height: 220px;
    border-radius: 14px;
    background: #111827;
}
.chat-file-attachment {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    color: currentColor;
    font-size: 12px;
    font-weight: 900;
}
.chat-composer {
    display: grid;
    grid-template-columns: auto auto auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--line);
    background: white;
}
.chat-composer input { min-height: 42px; border-radius: 999px; }
.chat-composer input[name="body"] { grid-column: 4; }
.chat-composer button[type="submit"] { grid-column: 5; }
.chat-attach-button { width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%; font-size: 20px; }
.chat-attachment-clear {
    grid-column: 3;
    width: 34px;
    height: 34px;
    align-self: center;
    min-height: 34px;
    padding: 0;
    border-radius: 50%;
}
.chat-attachment-preview {
    grid-column: 2;
    max-width: 190px;
    display: inline-grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    align-self: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 5px 8px 5px 5px;
    background: #f7f9fc;
}
.chat-attachment-preview[hidden],
.chat-attachment-clear[hidden] { display: none; }
.chat-attachment-preview img,
.chat-attachment-preview video {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    background: #dfe8f8;
}
.chat-attachment-preview span { min-width: 0; display: grid; }
.chat-attachment-preview strong,
.chat-attachment-preview small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-attachment-preview strong { color: var(--brand); font-size: 12px; font-weight: 950; }
.chat-attachment-preview small { color: var(--muted); font-size: 11px; font-weight: 800; }
.chat-upload-state {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}
.user-home { display: grid; gap: 20px; }
.user-hero { border-radius: 32px; padding: 34px; background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.72)); }
.user-hero h1 { color: var(--brand); font-size: clamp(34px, 6vw, 68px); max-width: 850px; }

.site-footer {
    width: var(--container-page);
    margin: 90px auto 90px;
    padding: 28px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #52617b;
}
.site-footer strong { color: var(--brand); font-size: 22px; }
.footer-links { display: flex; gap: 16px; font-weight: 800; color: var(--brand); }
.launch-footer {
    width: var(--container-wide);
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1.9fr);
    gap: clamp(24px, 5vw, 70px);
    align-items: start;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid rgba(255,255,255,.76);
    border-radius: 34px;
    background: linear-gradient(135deg, #061b46, #082B73);
    color: rgba(255,255,255,.72);
    box-shadow: var(--shadow);
}
.launch-footer .brand-lockup strong,
.launch-footer .brand-lockup small { color: white; }
.footer-brand-column p { max-width: 430px; margin: 18px 0; line-height: 1.65; }
.footer-store-row { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.footer-grid nav { display: grid; align-content: start; gap: 9px; }
.footer-grid h3 { margin: 0 0 8px; color: var(--sun); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 950; }
.footer-grid a { color: rgba(255,255,255,.78); font-weight: 750; }
.footer-grid a:hover { color: white; }
.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.62);
    font-weight: 750;
}
.footer-bottom a {
    color: white;
    border-bottom: 1px solid rgba(255,201,40,.65);
}
.footer-bottom a:hover { color: var(--sun); }
.mobile-bottom-nav { display: none; }
.verification-chip {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,201,40,.24);
    color: var(--brand);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}
.verification-chip.verified {
    background: rgba(29,185,84,.12);
    color: #087a35;
}

.skeleton {
    min-height: 260px;
    border-radius: 26px;
    background: linear-gradient(90deg, #edf2fb, #fff, #edf2fb);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}
.empty-state {
    grid-column: 1 / -1;
    border: 1px dashed var(--line);
    border-radius: 22px;
    padding: 28px;
    background: rgba(255,255,255,.78);
    color: var(--brand);
    font-weight: 800;
}
.pagination-row {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.pagination-row a {
    display: grid;
    place-items: center;
    min-width: 40px;
    min-height: 40px;
    border-radius: 999px;
    background: white;
    color: var(--brand);
    font-weight: 900;
}
.pagination-row a.active {
    background: var(--brand);
    color: white;
}
.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.inline-form select {
    min-height: 38px;
    min-width: 130px;
}
.section-spacer { margin-top: 18px; }
.owner-list { display: grid; gap: 12px; }
.assignment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fbff;
}
.assignment-row strong { display: block; color: var(--brand); font-weight: 900; }
.assignment-row small { color: var(--muted); font-weight: 700; }
.assignment-row.metric-row {
    display: grid;
    grid-template-columns: 68px 1fr auto;
    align-items: center;
}
.visit-status-stack {
    display: grid;
    justify-items: end;
    gap: 8px;
}
.visit-action-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.visit-action-list.compact { justify-content: flex-end; max-width: 260px; }
.visit-action-form { margin: 0; }
.visit-action-form button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #edf3ff;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.visit-action-form button:hover { background: var(--sun); box-shadow: 0 10px 24px rgba(8,43,115,.12); transform: translateY(-1px); }
.visit-action-form button.danger { background: #fff1f1; color: #b42318; }
.visit-action-form button.danger:hover { background: #ffe0e0; }
.activity-panel { margin-top: 18px; }
.assignment-manager { margin-top: 18px; }
.assignment-box {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(8,43,115,.05);
    border: 1px solid var(--line);
}
.assignment-box h2 { color: var(--brand); font-family: Poppins, Inter, sans-serif; margin: 2px 0 0; }
.agent-select-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.agent-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 16px;
    background: white;
    border: 1px solid var(--line);
}
.agent-option input { width: 18px; min-height: 18px; margin-top: 2px; }
.agent-option strong { display: block; color: var(--brand); }
.agent-option small { color: var(--muted); font-weight: 700; }
.assigned-agent-list { display: grid; gap: 12px; margin-top: 16px; }
.assigned-agent-card { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.avatar-chip { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: var(--brand); color: white; font-weight: 900; }
.assigned-agent-card strong { display: block; color: var(--brand); }
.assigned-agent-card small { display: block; color: var(--muted); font-weight: 700; margin-top: 2px; }
.cta-row.mini { justify-content: flex-start; margin-top: 10px; }
.cta-row.mini .ghost-button { min-height: 34px; padding: 0 12px; font-size: 12px; }
.virtual-tour video {
    width: 100%;
    border-radius: 18px;
}
.account-shell {
    width: var(--container-wide);
    margin: 28px auto 60px;
    grid-template-columns: minmax(280px, 340px) 1fr;
    align-items: start;
}
.account-sidebar {
    position: sticky;
    top: 108px;
    padding: 24px;
    border-radius: 28px;
    text-align: center;
}
.account-avatar {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin: 0 auto 14px;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(135deg, var(--brand), #0d4db7);
    color: white;
    font-size: 42px;
    font-weight: 950;
    box-shadow: 0 18px 44px rgba(8,43,115,.22);
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-sidebar h1 { margin: 0; color: var(--brand); font-family: Poppins, Inter, sans-serif; font-size: 28px; }
.account-sidebar p { color: var(--muted); font-weight: 750; }
.account-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0; }
.account-tabs { display: grid; gap: 8px; margin-top: 18px; text-align: left; }
.account-tabs a {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(8,43,115,.05);
    color: var(--brand);
    font-weight: 850;
}
.account-main { min-width: 0; }
.account-panel { margin-bottom: 18px; }
.account-panel h2 { color: var(--brand); font-family: Poppins, Inter, sans-serif; margin: 0 0 16px; }
.account-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-form label, .account-form textarea, .account-form button { grid-column: span 2; }
.account-phone-change {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
    margin: 16px 0;
}
.account-phone-change .muted-copy { grid-column: 1 / -1; margin: 0; }
.full-width-panel { width: var(--container-wide); margin: 28px auto 60px; }
.saved-page-shell {
    width: 100%;
    padding: clamp(28px, 5vw, 70px) 0 78px;
}
.saved-page-inner {
    width: min(1180px, calc(100% - clamp(24px, 5vw, 72px)));
    margin: 0 auto;
}
.saved-page-inner .dashboard-topbar {
    align-items: end;
    gap: 20px;
}
.saved-page-inner .dashboard-topbar h1 {
    max-width: 720px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
}
.large-empty, .notification-empty {
    padding: clamp(34px, 5vw, 58px);
    border-radius: 30px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(247,249,252,.92));
    text-align: center;
    box-shadow: 0 20px 60px rgba(8,43,115,.09);
}
.large-empty h2, .notification-empty h2 { color: var(--brand); font-family: Poppins, Inter, sans-serif; margin: 0 0 8px; }
.large-empty p, .notification-empty p { color: var(--muted); margin: 0 auto 18px; max-width: 520px; }
.saved-property-grid { margin-top: 18px; }
.static-hero {
    width: var(--container-page);
    margin: 34px auto 0;
    padding: clamp(34px, 7vw, 82px);
    border-radius: 38px;
    background:
        radial-gradient(circle at 88% 10%, rgba(255,201,40,.28), transparent 28%),
        linear-gradient(135deg, #06245f, var(--brand));
    color: white;
    box-shadow: 0 28px 86px rgba(8,43,115,.18);
}
.static-hero h1 {
    max-width: 980px;
    margin: 12px 0 18px;
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 1;
    text-wrap: balance;
}
.static-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255,255,255,.8);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.65;
    font-weight: 700;
}
.static-card-grid {
    width: var(--container-page);
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.static-card-grid article,
.static-content-panel {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 18px 54px rgba(8,43,115,.08);
}
.static-card-grid article {
    padding: 24px;
    transition: transform .22s ease, box-shadow .22s ease;
}
.static-card-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 68px rgba(8,43,115,.13);
}
.static-card-grid span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: var(--sun);
    color: var(--brand);
    font-size: 14px;
    font-weight: 950;
}
.static-card-grid h2,
.static-content-panel h2 {
    margin: 0 0 10px;
    color: var(--brand);
    font-family: Poppins, Inter, sans-serif;
}
.static-card-grid p,
.static-content-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 650;
}
.static-content-panel {
    width: var(--container-reading);
    margin: 24px auto 0;
    padding: clamp(24px, 4vw, 42px);
    display: grid;
    gap: 24px;
}
.static-content-panel article + article {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.saved-empty-state {
    display: grid;
    justify-items: center;
    width: min(760px, 100%);
    min-height: 430px;
    margin: 34px auto 0;
    padding: clamp(34px, 5vw, 62px);
    border: 1px solid rgba(8,43,115,.12);
    border-radius: 34px;
    background:
        radial-gradient(circle at 80% 10%, rgba(255,201,40,.22), transparent 26%),
        linear-gradient(135deg, rgba(255,255,255,.94), rgba(247,249,252,.92));
    text-align: center;
    box-shadow: 0 24px 70px rgba(8,43,115,.1);
}
.empty-illustration {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--brand), #0b4dbc);
    color: var(--sun);
    font-size: 28px;
    font-weight: 950;
    box-shadow: 0 22px 50px rgba(8,43,115,.22);
}
.saved-empty-state h2 {
    margin: 0 0 10px;
    color: var(--brand);
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    text-wrap: balance;
}
.saved-empty-state p {
    max-width: 560px;
    margin: 0 auto 24px;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.65;
}
.empty-action-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.notifications-page {
    width: 100%;
    padding: clamp(24px, 4vw, 48px) 0 72px;
}
.notifications-container {
    width: min(1160px, calc(100% - clamp(24px, 5vw, 72px)));
    margin: 0 auto;
}
.notifications-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 20px;
    padding: clamp(22px, 4vw, 34px);
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,.76);
    background:
        radial-gradient(circle at 8% 0%, rgba(255,201,40,.24), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.94), rgba(247,249,252,.88));
    box-shadow: var(--shadow);
}
.notifications-hero h1 {
    margin: 8px 0 8px;
    color: var(--brand);
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
}
.notifications-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-weight: 650;
    font-size: 16px;
    line-height: 1.65;
}
.notification-mark-all {
    justify-self: end;
    white-space: nowrap;
}
.notification-mark-all button:disabled {
    opacity: .55;
    cursor: default;
    transform: none;
}
.notification-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0 0 18px;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.76);
    box-shadow: 0 12px 34px rgba(8,43,115,.06);
    scrollbar-width: none;
}
.notification-tabs::-webkit-scrollbar { display: none; }
.notification-tabs a {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 10px 18px;
    border-radius: 999px;
    background: transparent;
    color: var(--brand);
    font-weight: 850;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.notification-tabs a:hover { background: rgba(8,43,115,.06); transform: translateY(-1px); }
.notification-tabs a.active {
    background: var(--brand);
    color: white;
    box-shadow: 0 12px 28px rgba(8,43,115,.2);
}
.notification-center-list {
    display: grid;
    gap: 14px;
    animation: notificationFade .28s ease both;
}
.notification-row {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 118px;
    padding: 20px 22px;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.92);
    box-shadow: 0 14px 42px rgba(8,43,115,.08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.notification-row:hover {
    transform: translateY(-2px);
    border-color: rgba(8,43,115,.2);
    box-shadow: 0 22px 58px rgba(8,43,115,.12);
}
.notification-row.unread {
    border-color: rgba(255,201,40,.78);
    background:
        linear-gradient(135deg, rgba(255,252,238,.96), rgba(255,255,255,.96));
}
.notification-unread-dot {
    position: absolute;
    top: 22px;
    left: 18px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: transparent;
}
.notification-row.unread .notification-unread-dot { background: var(--sun); box-shadow: 0 0 0 5px rgba(255,201,40,.2); }
.notification-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(8,43,115,.08);
    color: var(--brand);
    font-size: 22px;
    font-weight: 950;
}
.notification-row.unread .notification-icon { background: var(--brand); color: var(--sun); }
.notification-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 7px;
}
.notification-meta-line time {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.notification-row h2 {
    color: var(--brand);
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.2;
    margin: 0 0 6px;
}
.notification-row p {
    color: var(--muted);
    margin: 0;
    font-weight: 650;
    line-height: 1.55;
}
.notification-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.notification-empty-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 26px;
    background: var(--sun);
    color: var(--brand);
    font-size: 30px;
    font-weight: 950;
    box-shadow: 0 16px 34px rgba(255,201,40,.28);
}
@keyframes loaderFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes loaderPulse {
    0%, 100% { opacity: .52; transform: scaleX(.72); }
    50% { opacity: 1; transform: scaleX(1); }
}
@keyframes faqReveal {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes menuDrop {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes notificationFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer { to { background-position: -200% 0; } }
[data-animate] { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
[data-animate].in { opacity: 1; transform: translateY(0); }
.mobile-menu[open] > div,
.profile-menu.open .profile-dropdown { animation: menuDrop .18s ease; }
.property-card,
.audience-grid article,
.testimonials-launch article,
.static-card-grid article,
.saved-empty-state {
    will-change: transform;
}
.property-card:hover,
.audience-grid article:hover,
.testimonials-launch article:hover {
    transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
    .site-loader-card img,
    .site-loader-pulse { animation: none !important; }
}

@media (max-width: 1100px) {
    .launch-hero { grid-template-columns: 1fr; min-height: auto; }
    .launch-hero-slider { min-height: 720px; }
    .hero-slide { grid-template-columns: 1fr; align-content: center; padding-inline: clamp(36px, 7vw, 72px); }
    .avivi-slide { grid-template-columns: minmax(0, 1fr) minmax(280px, .78fr); }
    .hero-slide .launch-hero-copy { max-width: 820px; }
    .hero-slide h1 { font-size: clamp(36px, 6.4vw, 58px); }
    .launch-hero-visual { min-height: 420px; }
    .avivi-product-visual { min-height: 410px; justify-items: start; }
    .avivi-dashboard-card { width: min(100%, 620px); }
    .avivi-building-card { display: none; }
    .avivi-orbit-card.tenant { right: 24px; top: 10px; }
    .avivi-orbit-card.ticket { left: auto; right: 170px; bottom: 4px; }
    .avivi-phone-card { right: 16px; bottom: 0; }
    .avivi-reference-slide { min-height: 640px; }
    .avivi-reference-art { object-position: center; }
    .avivi-reference-actions { width: auto; }
    .trust-visual-stack,
    .living-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 720px); }
    .trust-visual-stack article:nth-child(2),
    .living-card-grid article:nth-child(even) { transform: none; }
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .launch-footer { grid-template-columns: 1fr; }
    .listing-layout { grid-template-columns: 260px 1fr; }
    .map-panel { display: none; }
    .map-search-panel { display: grid; position: relative; top: auto; grid-column: 1 / -1; order: 3; min-height: 420px; }
    .property-grid, .testimonial-band, .roommate-grid, .settings-grid, .image-manager-grid, .notification-strip { grid-template-columns: repeat(2, 1fr); }
    .agent-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agent-profile-hero,
    .agent-profile-layout { grid-template-columns: 1fr; }
    .agent-profile-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agent-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .agent-listing-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .analytics-grid { grid-template-columns: repeat(2, 1fr); }
    .advanced-listing { grid-template-columns: 280px 1fr; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-intro h1 { max-width: 18ch; }
    .detail-hero, .detail-content, .sharing-hero, .form-workspace, .owner-edit-grid { grid-template-columns: 1fr; }
    .detail-summary { max-width: 860px; }
    .detail-summary h1 { max-width: 22ch; font-size: clamp(30px, 2.4rem, 44px); font-size: clamp(30px, 6cqw, 44px); }
    .owner-side-panel { position: static; }
    .admin-moderation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-shell { grid-template-columns: 1fr; }
    .account-sidebar { position: static; }
    .notifications-hero { grid-template-columns: 1fr; align-items: start; }
    .faq-list,
    .static-card-grid { grid-template-columns: 1fr; }
    .notification-mark-all { justify-self: start; }
    .notification-row { grid-template-columns: 44px 1fr; align-items: start; }
    .notification-icon { width: 44px; height: 44px; border-radius: 15px; }
    .notification-actions { grid-column: 2; justify-content: flex-start; }
    .notification-meta-line { align-items: flex-start; flex-direction: column; gap: 6px; }
    .admin-moderation-grid button { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    body { padding-bottom: 72px; }
    input,
    select,
    textarea {
        font-size: 16px;
    }
    .site-header { border-radius: 22px; align-items: center; gap: 10px; }
    .brand-lockup small { display: none; }
    .mobile-menu { display: block; margin-left: auto; }
    .desktop-nav, .header-actions .ghost-button, .header-actions .list-property-link, .profile-name { display: none; }
    .profile-dropdown {
        position: fixed;
        top: 76px;
        right: 12px;
        left: 12px;
        width: auto;
        transform-origin: top right;
    }
    .profile-dropdown a {
        min-height: 52px;
        font-size: 16px;
    }
    .header-actions .auth-login-link { display: inline-flex; min-height: 38px; padding: 0 12px; }
    .header-actions .primary-button.small { min-height: 38px; padding: 0 13px; }
    .launch-hero {
        width: min(100% - 20px, 1500px);
        margin-top: 14px;
        padding: 26px;
        border-radius: 28px;
    }
    .launch-hero-slider {
        width: min(100% - 20px, 1500px);
        min-height: auto;
        aspect-ratio: 1774 / 887;
        margin-top: 14px;
        border-radius: 28px;
    }
    .hero-slide {
        grid-template-columns: 1fr;
        padding: 24px 58px 52px;
        gap: 10px;
        align-content: center;
        align-items: center;
    }
    .hero-slide .launch-hero-copy {
        max-width: min(100%, 430px);
        justify-self: start;
    }
    .hero-slide h1 { margin: 4px 0 8px; font-size: clamp(18px, 4.8vw, 27px); line-height: 1.06; max-width: 18ch; }
    .hero-slide p { display: none; }
    .hero-slide:not(.avivi-reference-slide) .hero-feature-row,
    .hero-slide:not(.avivi-reference-slide) .ghost-button { display: none; }
    .hero-feature-row { gap: 5px; margin-top: 8px; max-height: 48px; overflow: hidden; }
    .hero-feature-row span { min-height: 24px; padding: 0 8px; font-size: 10px; }
    .hero-slide .launch-cta-row { margin-top: 10px; gap: 7px; }
    .hero-slide .primary-button,
    .hero-slide .ghost-button { min-height: 31px; padding: 0 10px; font-size: 11px; }
    .hero-slider-arrow { top: 50%; bottom: auto; width: 36px; height: 36px; font-size: 26px; }
    .hero-slider-arrow.prev { left: 10px; }
    .hero-slider-arrow.next { right: 10px; }
    .hero-slider-dots { bottom: 14px; padding: 6px; gap: 7px; }
    .hero-slider-dots button { width: 8px; height: 8px; }
    .hero-slider-dots button.active { width: 24px; }
    .homepage-search-band { width: min(100% - 20px, 1500px); margin-top: 24px; }
    .launch-hero h1 { font-size: clamp(38px, 12vw, 54px); }
    .launch-search { grid-template-columns: 1fr; border-radius: 24px; }
    .launch-hero-visual,
    .trust-visual-stack,
    .living-card-grid { display: none; }
    .trust-hero-slide .launch-hero-copy,
    .living-hero-slide .launch-hero-copy,
    .hero-slide:not(.avivi-reference-slide) .launch-hero-copy {
        max-width: min(100%, 360px);
        justify-self: center;
        text-align: center;
    }
    .hero-slide:not(.avivi-reference-slide) .launch-cta-row { justify-content: center; }
    .launch-hero-visual { min-height: 100%; }
    .floating-property-card.main { inset: 8px 0 auto auto; width: min(100%, 190px); border-radius: 20px; }
    .floating-property-card.main img { height: 96px; }
    .floating-property-card.main div { padding: 8px; }
    .floating-property-card.main strong { font-size: 15px; }
    .floating-property-card.main small { font-size: 10px; }
    .floating-property-card.mini { width: 112px; padding: 8px; border-radius: 16px; }
    .floating-property-card.mini strong { font-size: 12px; }
    .floating-property-card.mini span { font-size: 10px; }
    .floating-property-card.top { top: 0; right: 0; left: auto; }
    .floating-property-card.bottom { bottom: 8px; right: 4px; }
    .avivi-slide h1 { max-width: 13ch; }
    .avivi-logo-link { width: min(154px, 52vw); border-radius: 18px; }
    .avivi-feature-cloud { max-height: 126px; overflow: auto; padding-right: 4px; }
    .avivi-agreement-callout { align-items: flex-start; border-radius: 18px; font-size: 12px; line-height: 1.35; }
    .avivi-product-visual { min-height: 290px; align-items: start; }
    .avivi-dashboard-card {
        width: 100%;
        padding: 14px;
        border-radius: 24px;
    }
    .avivi-dashboard-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .avivi-dashboard-grid article { min-height: 82px; padding: 11px; border-radius: 16px; }
    .avivi-dashboard-grid article:nth-child(3) { display: none; }
    .avivi-dashboard-top i { width: 42%; height: 26px; }
    .avivi-chart-panel { padding: 12px; border-radius: 18px; }
    .avivi-bars { height: 86px; gap: 4px; margin-top: 10px; }
    .avivi-activity-row { grid-template-columns: 1fr; gap: 4px; padding: 10px; }
    .avivi-orbit-card,
    .avivi-phone-card,
    .avivi-building-card { display: none; }
    .avivi-reference-slide { min-height: auto; background: #02080a; }
    .avivi-reference-art {
        object-fit: contain;
        object-position: center;
        transform: scale(1);
    }
    .avivi-reference-actions {
        top: auto;
        right: auto;
        left: 50%;
        bottom: 42px;
        transform: translateX(-50%);
        width: auto;
        padding: 0;
        background: transparent;
    }
    .avivi-reference-actions .launch-cta-row { gap: 8px; }
    .avivi-reference-actions .primary-button {
        min-height: 32px;
        padding: 0 13px;
        font-size: 11px;
        box-shadow: 0 10px 26px rgba(35,255,132,.24);
    }
    .launch-section { width: min(100% - 20px, 1500px); margin-top: 54px; }
    .launch-section-head.inline, .room-sharing-launch, .app-download-section { grid-template-columns: 1fr; }
    .trust-grid, .audience-grid, .testimonials-launch, .footer-grid { grid-template-columns: 1fr; }
    .sharing-stack { grid-template-columns: 1fr; }
    .phone-mockup { width: min(250px, 100%); }
    .phone-screen { min-height: 390px; }
    .hero { min-height: auto; border-radius: 28px; padding: 28px; }
    .hero h1 { font-size: 52px; }
    .search-grid, .listing-layout, .advanced-listing, .property-grid, .property-grid.compact, .testimonial-band, .roommate-grid, .agent-directory-grid, .analytics-grid, .dashboard-shell, .dashboard-panels, .settings-grid, .two-col, .three-col, .check-grid, .agent-select-grid, .media-preview-grid, .image-manager-grid, .notification-strip, .nearby-grid { grid-template-columns: 1fr; }
    .agent-profile-page { width: min(100% - 20px, 1500px); margin-top: 24px; gap: 16px; }
    .agent-profile-hero { padding: 22px; border-radius: 28px; }
    .agent-profile-identity { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
    .agent-profile-avatar { width: 76px; height: 76px; border-radius: 22px; font-size: 32px; }
    .agent-profile-identity h1 { max-width: 100%; font-size: clamp(30px, 10vw, 42px); }
    .agent-profile-actions { grid-template-columns: 1fr 1fr; min-width: 0; }
    .agent-profile-actions a:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .agent-stat-grid,
    .agent-profile-sidebar,
    .agent-detail-list,
    .agent-listing-filters { grid-template-columns: 1fr; }
    .agent-review-panel { align-items: flex-start; flex-direction: column; }
    .agent-card-main { grid-template-columns: 58px minmax(0, 1fr); }
    .agent-avatar { width: 58px; height: 58px; border-radius: 18px; font-size: 24px; }
    .agent-card-topline { align-items: flex-start; flex-direction: column; }
    .agent-card-stats { grid-template-columns: 1fr; }
    .agent-card-stats span { min-height: auto; }
    .hero-search { margin-top: 28px; }
    .hero-metrics { display: grid; grid-template-columns: 1fr; }
    .section-heading, .split-cta, .toolbar { align-items: flex-start; flex-direction: column; }
    .launch-footer { width: min(100% - 20px, 1640px); padding: 26px; }
    .footer-bottom { flex-direction: column; }
    .search-top, .search-toolbar, .toolbar-actions { align-items: flex-start; flex-direction: column; }
    .saved-page-inner .dashboard-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .saved-empty-state {
        min-height: auto;
        padding: 32px 20px;
        border-radius: 28px;
    }
    .empty-action-row {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }
    .empty-action-row .primary-button,
    .empty-action-row .ghost-button {
        width: 100%;
    }
    .chat-inbox-controls { align-items: stretch; flex-direction: column; }
    .chat-filter-tabs { overflow-x: auto; border-radius: 18px; }
    .chat-inbox-card > button { grid-template-columns: 42px minmax(0, 1fr); }
    .conversation-meta { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; }
    .conversation-stage-row { padding-left: 13px; }
    .filter-panel, .dashboard-sidebar, .agent-card { position: static; }
    .filter-panel { order: -1; }
    .filter-drawer-button { display: inline-flex; }
    .filter-panel:not(.open) { display: none; }
    .map-search-panel.is-fullscreen {
        inset: 0;
        border-radius: 0;
        padding: 14px;
        height: 100dvh;
        overflow: auto;
    }
    .map-search-panel.is-fullscreen .map-canvas {
        min-height: calc(100dvh - 230px);
    }
    .detail-hero { width: min(100% - 20px, 1180px); gap: 14px; }
    .detail-summary { border-radius: 24px; padding: 20px; gap: 12px; }
    .detail-summary h1 { max-width: 100%; font-size: clamp(26px, 2rem, 34px); font-size: clamp(26px, 8cqw, 34px); line-height: 1.1; text-wrap: pretty; }
    .detail-summary .price-line { font-size: clamp(22px, 1.6rem, 28px); font-size: clamp(22px, 7cqw, 28px); }
    .detail-summary .cta-row .primary-button,
    .detail-summary .cta-row .ghost-button { flex-basis: calc(50% - 6px); min-width: 0; }
    .detail-gallery { grid-template-columns: 1fr; min-height: auto; }
    .gallery-main, .gallery-main img { min-height: 280px; }
    .gallery-thumbs { grid-template-columns: repeat(5, minmax(72px, 1fr)); max-height: none; overflow-x: auto; }
    .amenity-grid { grid-template-columns: repeat(2, 1fr); }
    .sharing-hero, .split-cta { padding: 26px; }
    .auth-screen { padding: 34px 10px; }
    .auth-card { padding: 22px; border-radius: 24px; }
    .auth-card h1 { font-size: clamp(30px, 9vw, 36px); line-height: 1.05; }
    .auth-intro { border-radius: 26px; padding: 24px; }
    .auth-intro h1 { max-width: 100%; font-size: clamp(32px, 10vw, 44px); }
    .auth-benefit-grid { grid-template-columns: 1fr; }
    .chat-panel {
        inset: 0;
        width: 100vw;
        max-height: none;
        height: 100dvh;
        border-radius: 0;
        overflow: hidden;
    }
    .chat-panel.crm-mode,
    .chat-panel.customer-mode,
    .chat-panel.customer-inbox-mode { width: 100vw; }
    .chat-panel.customer-inbox-mode .chat-body-layout { grid-template-columns: 1fr; }
    .chat-panel.customer-inbox-mode:not(.customer-thread-open) .chat-property-context,
    .chat-panel.customer-inbox-mode:not(.customer-thread-open) .chat-thread-pane,
    .chat-panel.customer-inbox-mode:not(.customer-thread-open) .chat-composer { display: none; }
    .chat-panel.customer-inbox-mode.customer-thread-open .customer-inbox-pane { display: none; }
    .chat-panel.customer-inbox-mode.customer-thread-open .customer-thread-bar { display: flex; }
    .chat-panel.customer-inbox-mode .customer-inbox-pane { border-right: 0; }
    .customer-conversation-list { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
    .notification-panel {
        inset: 0;
        top: 0;
        right: 0;
        width: 100vw;
        max-height: none;
        height: 100dvh;
        border-radius: 0;
    }
    .chat-property-context { grid-template-columns: 46px minmax(0, 1fr); }
    .chat-property-context .ghost-button { grid-column: 1 / -1; justify-self: start; }
    .chat-panel.crm-mode .chat-body-layout { grid-template-columns: 1fr; }
    .chat-lead-sidebar { border-left: 0; border-top: 1px solid var(--line); }
    .chat-composer {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }
    .chat-composer input[name="body"] { grid-column: 2; }
    .chat-composer button[type="submit"] { grid-column: 3; }
    .chat-attachment-preview {
        grid-column: 1 / -2;
        grid-row: 2;
        max-width: none;
    }
    .chat-attachment-clear { grid-column: -2 / -1; grid-row: 2; }
    .dashboard-sidebar { min-height: auto; }
    .dashboard-sidebar nav { grid-template-columns: repeat(3, 1fr); overflow-x: auto; }
    .admin-table { min-width: 0; }
    .admin-table thead { display: none; }
    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }
    .admin-table tr {
        border: 1px solid var(--line);
        border-radius: 20px;
        padding: 12px;
        background: white;
        margin-bottom: 12px;
    }
    .admin-table td {
        border-bottom: 0;
        padding: 10px;
    }
    .admin-properties-table th:first-child,
    .admin-properties-table td:first-child,
    .admin-properties-table th:nth-child(4),
    .admin-properties-table td:nth-child(4) {
        min-width: 0;
        width: 100%;
    }
    .admin-moderation-grid,
    .admin-support-card,
    .email-queue-toolbar,
    .pagination-row {
        grid-template-columns: 1fr;
        display: grid;
    }
    .admin-action-stack { min-width: 0; width: 100%; }
    .email-queue-search,
    .email-actions,
    .email-test-grid { width: 100%; grid-template-columns: 1fr; }
    .email-queue-search { display: grid; }
    .email-queue-table th:first-child,
    .email-queue-table td:first-child,
    .email-queue-table th:nth-child(2),
    .email-queue-table td:nth-child(2) { min-width: 0; width: auto; }
    .calendar-mode-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .calendar-mode-tabs a {
        white-space: nowrap;
        flex: 0 0 auto;
    }
    .assignment-row { align-items: flex-start; flex-direction: column; }
    .visit-status-stack { justify-items: start; width: 100%; }
    .visit-action-list,
    .visit-action-list.compact {
        justify-content: flex-start;
        max-width: none;
        width: 100%;
    }
    .visit-action-form,
    .visit-action-form button,
    .inline-form,
    .inline-form button,
    .inline-form select {
        width: 100%;
    }
    .visit-action-form button,
    .inline-form button {
        min-height: 44px;
    }
    .assignment-row.metric-row { grid-template-columns: 58px 1fr; }
    .metric-row .ghost-button { grid-column: 1 / -1; }
    .action-menu > div { position: fixed; left: 14px; right: 14px; top: auto; bottom: 86px; }
    .toast-stack { bottom: 86px; }
    .site-footer { margin-bottom: 96px; }
    .mobile-bottom-nav {
        position: fixed;
        z-index: 80;
        left: 12px;
        right: 12px;
        bottom: 12px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: 8px;
        border-radius: 24px;
        background: rgba(8,43,115,.92);
        backdrop-filter: blur(20px);
        box-shadow: 0 20px 50px rgba(8,43,115,.28);
    }
    .mobile-bottom-nav a {
        min-height: 44px;
        display: grid;
        place-items: center;
        color: white;
        font-size: 12px;
        font-weight: 900;
        border-radius: 18px;
    }
    .mobile-bottom-nav a:hover { background: rgba(255,255,255,.12); }
}
