/* ===== Layout Utilities — PropertyOS ===== */
/* Tokens required: tokens.css must load first. */

/* ─── Glassmorphism panels — liquid glass system ─── */

.pos-glass {
    background: var(--pos-glass-bg);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid var(--pos-glass-border);
    box-shadow: var(--pos-glass-shadow);
}

.pos-glass-card {
    background: var(--pos-glass-bg);
    backdrop-filter: blur(40px) saturate(2.4) brightness(1.04);
    -webkit-backdrop-filter: blur(40px) saturate(2.4) brightness(1.04);
    border: 1px solid var(--pos-glass-border);
    box-shadow: var(--pos-glass-shadow);
    border-radius: var(--pos-radius-lg);
    padding: var(--pos-space-6);
    position: relative;
}
.pos-glass-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9) 50%, transparent);
    border-radius: var(--pos-radius-lg) var(--pos-radius-lg) 0 0;
    pointer-events: none;
}
[data-bs-theme="dark"] .pos-glass-card::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22) 50%, transparent);
}

.pos-glass-heavy {
    background: var(--pos-glass-bg-heavy);
    backdrop-filter: blur(32px) saturate(2.0);
    -webkit-backdrop-filter: blur(32px) saturate(2.0);
    border: 1px solid var(--pos-glass-border);
    box-shadow: var(--pos-liquid-shadow);
}

.pos-glass-modal {
    background: var(--pos-glass-bg-heavy);
    backdrop-filter: blur(48px) saturate(2.0);
    -webkit-backdrop-filter: blur(48px) saturate(2.0);
    border: 1px solid var(--pos-glass-border-strong);
    box-shadow: var(--pos-liquid-shadow), var(--pos-shadow-2xl);
    border-radius: var(--pos-radius-xl);
}

.pos-glass-sidebar {
    background: rgba(12, 18, 28, 0.92);
    backdrop-filter: blur(32px) saturate(1.6);
    -webkit-backdrop-filter: blur(32px) saturate(1.6);
    border-right: 1px solid rgba(255, 255, 255, 0.055);
}

/* ─── Elevated surfaces ─── */

.pos-surface-elevated {
    background: var(--pos-card-bg);
    box-shadow: var(--pos-shadow-sm);
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius-md);
}

.pos-surface-floating {
    background: var(--pos-card-bg);
    box-shadow: var(--pos-shadow-lg);
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius-lg);
}

/* ─── Layout primitives ─── */

.pos-stack {
    display: flex;
    flex-direction: column;
}
.pos-stack--xs  { gap: var(--pos-space-1); }
.pos-stack--sm  { gap: var(--pos-space-2); }
.pos-stack--md  { gap: var(--pos-space-4); }
.pos-stack--lg  { gap: var(--pos-space-6); }
.pos-stack--xl  { gap: var(--pos-space-8); }

.pos-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.pos-cluster--xs  { gap: var(--pos-space-1); }
.pos-cluster--sm  { gap: var(--pos-space-2); }
.pos-cluster--md  { gap: var(--pos-space-4); }
.pos-cluster--lg  { gap: var(--pos-space-6); }

.pos-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--pos-space-4);
}
.pos-grid-auto--sm  { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.pos-grid-auto--lg  { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ─── Page wrapper ─── */

.pos-page {
    padding: var(--pos-space-6);
    max-width: 1280px;
}

.pos-page-enter {
    animation: fadeIn var(--pos-duration-base) var(--pos-ease-out) both;
}

@media (max-width: 575.98px) {
    .pos-page {
        padding: var(--pos-space-4);
    }
}

/* ─── Stat card ─── */

.pos-stat-card {
    background: var(--pos-card-bg);
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius-lg);
    padding: var(--pos-space-6);
    box-shadow: var(--pos-shadow-xs);
    transition:
        transform var(--pos-duration-base) var(--pos-ease-out),
        box-shadow var(--pos-duration-base) var(--pos-ease-out);
}
.pos-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--pos-shadow-md);
}

.pos-stat-card__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--pos-ink);
}

.pos-stat-card__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--pos-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pos-stat-card__trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--pos-radius-full);
    padding: 2px 8px;
}
.pos-stat-card__trend--up   { color: #198754; background: rgba(25, 135, 84, 0.10); }
.pos-stat-card__trend--down { color: #dc3545; background: rgba(220, 53, 69, 0.10); }

/* ─── Inline icon badge ─── */

.pos-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--pos-radius-md);
    flex-shrink: 0;
}
.pos-icon-badge--primary { background: var(--pos-primary-subtle); color: var(--pos-primary); }
.pos-icon-badge--accent  { background: var(--pos-accent-subtle);  color: var(--pos-accent); }
.pos-icon-badge--success { background: rgba(25, 135, 84, 0.10);   color: #198754; }
.pos-icon-badge--warning { background: rgba(255, 193, 7, 0.15);   color: #997404; }
.pos-icon-badge--danger  { background: rgba(220, 53, 69, 0.10);   color: #dc3545; }
.pos-icon-badge--muted   { background: var(--pos-surface);        color: var(--pos-muted); }

/* ─── Mobile app shell ─── */

.pos-mobile-layout {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
}

.pos-mobile-header {
    display: flex;
    align-items: center;
    gap: var(--pos-space-3);
    padding: var(--pos-space-3) var(--pos-space-4);
    background: var(--pos-topbar-bg);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-bottom: 1px solid var(--pos-border);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 56px;
    box-shadow: var(--pos-shadow-xs);
}
.pos-mobile-header__title {
    flex: 1;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--pos-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-mobile-main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.pos-mobile-nav {
    display: flex;
    background: var(--pos-topbar-bg);
    backdrop-filter: blur(40px) saturate(2.4) brightness(1.04);
    -webkit-backdrop-filter: blur(40px) saturate(2.4) brightness(1.04);
    border-top: 1px solid var(--pos-glass-border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -1px 0 rgba(255,255,255,0.4) inset, 0 -4px 24px rgba(0,0,0,0.10);
}
.pos-mobile-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: var(--pos-space-2) var(--pos-space-1);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--pos-muted);
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition:
        color var(--pos-duration-fast) var(--pos-ease-out),
        transform var(--pos-duration-fast) var(--pos-ease-spring);
}
.pos-mobile-nav__item i {
    font-size: 1.375rem;
    line-height: 1;
    transition: transform var(--pos-duration-base) var(--pos-ease-spring),
                filter var(--pos-duration-base) var(--pos-ease-out);
}
.pos-mobile-nav__item:active { transform: scale(0.90); }
/* Glowing active pill behind icon */
.pos-mobile-nav__item.active::before {
    content: "";
    position: absolute;
    top: 6px;
    width: 44px; height: 30px;
    border-radius: var(--pos-radius-full);
    background: var(--pos-primary-subtle);
    box-shadow: 0 0 16px rgba(29,110,249,0.30);
    animation: scaleSpringIn 0.35s var(--pos-ease-spring) both;
}
.pos-mobile-nav__item.active i {
    transform: translateY(-1px) scale(1.08);
}
.pos-mobile-nav__item.active,
.pos-mobile-nav__item:focus-visible {
    color: var(--pos-primary);
}
.pos-mobile-nav__item.active i {
    filter: drop-shadow(var(--pos-shadow-glow));
}

/* ─── Gradient accent bar (top of cards/sections) ─── */

.pos-accent-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--pos-primary) 0%, var(--pos-accent) 100%);
    border-radius: var(--pos-radius-full);
}

/* ─── Gradient hero ─── */

.pos-hero-gradient {
    background: linear-gradient(135deg, var(--pos-primary) 0%, var(--pos-accent) 100%);
}

.pos-glass-hero {
    background: linear-gradient(
        135deg,
        rgba(13, 110, 253, 0.15) 0%,
        rgba(102, 16, 242, 0.10) 100%
    );
    backdrop-filter: var(--pos-blur-sm);
    -webkit-backdrop-filter: var(--pos-blur-sm);
}

/* ═══════════════════════════════════════════════════════
   Global component classes — mirrors scoped .razor.css
   files so legacy components and custom markup can use
   the same design-system tokens.
   ═══════════════════════════════════════════════════════ */

/* ─── app-card — Apple Liquid Glass ─── */

.app-card {
    background: var(--pos-glass-bg);
    backdrop-filter: blur(40px) saturate(2.4) brightness(1.04);
    -webkit-backdrop-filter: blur(40px) saturate(2.4) brightness(1.04);
    border: 1px solid var(--pos-glass-border);
    border-radius: var(--pos-radius-lg);
    box-shadow: var(--pos-glass-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition:
        box-shadow   var(--pos-duration-base) var(--pos-ease-out),
        transform    var(--pos-duration-base) var(--pos-ease-out),
        border-color var(--pos-duration-base) var(--pos-ease-out),
        backdrop-filter var(--pos-duration-slow) var(--pos-ease-out);
}
/* Specular top edge — "glass lip" */
.app-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1.5px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.90) 20%,
        rgba(255,255,255,1.00) 50%,
        rgba(255,255,255,0.90) 80%,
        transparent 100%);
    border-radius: var(--pos-radius-lg) var(--pos-radius-lg) 0 0;
    pointer-events: none;
    z-index: 1;
}
/* Shimmer sweep on hover */
.app-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        108deg,
        transparent 20%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 80%
    );
    transform: translateX(-120%);
    pointer-events: none;
    border-radius: inherit;
    transition: transform 0.65s var(--pos-ease-out);
    z-index: 2;
}
.app-card:hover::after { transform: translateX(140%); }

.app-card--clickable { cursor: pointer; }
@media (hover: hover) {
    .app-card--clickable:hover {
        box-shadow: var(--pos-liquid-shadow), var(--pos-glow-md);
        border-color: rgba(29, 110, 253, 0.40);
        transform: translateY(-4px) scale(1.005);
        backdrop-filter: blur(52px) saturate(2.8) brightness(1.06);
        -webkit-backdrop-filter: blur(52px) saturate(2.8) brightness(1.06);
    }
}
.app-card--clickable:active { transform: translateY(0) scale(1); box-shadow: var(--pos-glass-shadow); }
.app-card--glass {
    background: var(--pos-glass-bg-xs);
    backdrop-filter: blur(52px) saturate(2.8) brightness(1.08);
    -webkit-backdrop-filter: blur(52px) saturate(2.8) brightness(1.08);
    border-color: var(--pos-glass-border-strong);
    box-shadow: var(--pos-liquid-shadow);
}
[data-bs-theme="dark"] .app-card::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.16) 20%,
        rgba(255,255,255,0.26) 50%,
        rgba(255,255,255,0.16) 80%,
        transparent 100%);
}
.app-card--flush > .app-card__body { padding: 0; }

.app-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pos-space-4);
    padding: var(--pos-space-5) var(--pos-space-6);
    border-bottom: 1px solid var(--pos-border);
}
.app-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--pos-ink);
    margin: 0;
    line-height: 1.3;
}
.app-card__header-slot {
    display: flex;
    align-items: center;
    gap: var(--pos-space-2);
    flex-shrink: 0;
}
.app-card__body { padding: var(--pos-space-6); flex: 1; }
.app-card__footer {
    padding: var(--pos-space-4) var(--pos-space-6);
    border-top: 1px solid var(--pos-border);
    background: rgba(0,0,0,0.02);
    border-radius: 0 0 var(--pos-radius-lg) var(--pos-radius-lg);
}
[data-bs-theme="dark"] .app-card__footer {
    background: rgba(255,255,255,0.02);
}

/* ─── app-empty-state ─── */

.app-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--pos-space-16) var(--pos-space-8);
    gap: var(--pos-space-3);
}
.app-empty-state__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: var(--pos-radius-2xl);
    background: var(--pos-glass-bg);
    backdrop-filter: blur(12px) saturate(1.5);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    border: 1px solid var(--pos-glass-border);
    box-shadow: var(--pos-glass-shadow);
    margin-bottom: var(--pos-space-2);
    animation: float 4.5s ease-in-out infinite;
}
.app-empty-state__icon { font-size: 2rem; color: var(--pos-muted); opacity: 0.7; }
.app-empty-state__title {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--pos-ink);
    margin: 0;
}
.app-empty-state__desc {
    font-size: 0.9rem;
    color: var(--pos-muted);
    margin: 0;
    max-width: 340px;
    line-height: 1.6;
}
.app-empty-state__action { margin-top: var(--pos-space-2); }

/* ─── skeleton shimmer ─── */

@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}
.skeleton {
    display: block;
    border-radius: var(--pos-radius-sm);
    background: linear-gradient(
        90deg,
        var(--pos-surface) 25%,
        var(--pos-border)  50%,
        var(--pos-surface) 75%
    );
    background-size: 600px 100%;
    animation: shimmer 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

/* ─── app-tabs (global — also used for custom mixed nav strips) ─── */

.app-tabs__nav {
    display: flex;
    gap: 2px;
    border-bottom: 1.5px solid var(--pos-border);
    padding: 0 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.app-tabs__nav::-webkit-scrollbar { display: none; }

.app-tabs__tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    color: var(--pos-muted);
    font-family: var(--pos-font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition:
        color        var(--pos-duration-fast) var(--pos-ease-out),
        border-color var(--pos-duration-fast) var(--pos-ease-out);
}
.app-tabs__tab:hover {
    color: var(--pos-ink);
    background: var(--pos-glass-bg);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    border-radius: var(--pos-radius-md) var(--pos-radius-md) 0 0;
}
.app-tabs__tab:focus-visible {
    outline: 2px solid var(--pos-primary);
    outline-offset: -2px;
    border-radius: 4px 4px 0 0;
}
.app-tabs__tab--active,
.app-tabs__tab.active {
    color: var(--pos-primary);
    border-bottom-color: transparent;
    font-weight: 700;
    position: relative;
}
/* Glowing animated gradient underline on active tab */
.app-tabs__tab--active::after,
.app-tabs__tab.active::after {
    content: "";
    position: absolute;
    left: 8px; right: 8px; bottom: -1.5px;
    height: 2.5px;
    border-radius: var(--pos-radius-full);
    background: var(--pos-gradient-primary);
    background-size: 200% 200%;
    box-shadow: 0 0 10px rgba(29,110,249,0.55);
    animation: gradientShift 3s ease-in-out infinite, tabUnderline 0.35s var(--pos-ease-spring) both;
}
.app-tabs__tab--active i, .app-tabs__tab.active i {
    filter: drop-shadow(0 0 5px rgba(29,110,249,0.5));
}
@keyframes tabUnderline {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}
.app-tabs__content { padding-top: var(--pos-space-5); }

/* ─── Page header ─── */

.pos-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--pos-space-4);
    margin-bottom: var(--pos-space-6);
}
.pos-page-header__title-group { min-width: 0; }
.pos-page-header__title {
    font-size: 1.5625rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--pos-ink);
    margin: 0 0 2px;
    line-height: 1.15;
}
.pos-page-header__title--gradient {
    background: var(--pos-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pos-page-header__subtitle {
    font-size: 0.9rem;
    color: var(--pos-muted);
    margin: 0;
}
.pos-page-header__badge { margin-top: var(--pos-space-1); }
.pos-page-header__actions {
    display: flex;
    align-items: center;
    gap: var(--pos-space-2);
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ─── Definition list (property / info grids) ─── */

.pos-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--pos-space-2) var(--pos-space-6);
    margin: 0;
}
.pos-dl dt {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pos-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 2px;
    white-space: nowrap;
}
.pos-dl dd {
    font-size: 0.9375rem;
    color: var(--pos-ink);
    margin: 0;
}

/* ─── List rows (replaces list-group in detail pages) ─── */

.pos-list { list-style: none; padding: 0; margin: 0; }
.pos-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pos-space-3);
    padding: var(--pos-space-3) 0;
    border-bottom: 1px solid var(--pos-border);
}
.pos-list__item:last-child { border-bottom: none; }
.pos-list__item-main { flex: 1; min-width: 0; }
.pos-list__item-label {
    font-weight: 500;
    color: var(--pos-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pos-list__item-sub { font-size: 0.8125rem; color: var(--pos-muted); margin-top: 1px; }

/* ─── Message thread (TicketDetail / Conversation) ─── */

.pos-thread { display: flex; flex-direction: column; gap: var(--pos-space-5); }
.pos-thread__msg { display: flex; flex-direction: column; gap: var(--pos-space-1); }
.pos-thread__msg-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pos-space-3);
}
.pos-thread__msg-author {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--pos-ink);
}
.pos-thread__msg-time { font-size: 0.8125rem; color: var(--pos-muted); }
.pos-thread__msg-body {
    font-size: 0.9375rem;
    color: var(--pos-ink);
    line-height: 1.65;
    background: var(--pos-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--pos-radius-lg);
    padding: var(--pos-space-4) var(--pos-space-5);
    border: 1px solid var(--pos-glass-border);
    box-shadow: var(--pos-shadow-xs);
}
.pos-thread__msg-body--own {
    background: rgba(29, 110, 249, 0.10);
    border-color: rgba(29, 110, 249, 0.18);
    box-shadow: var(--pos-shadow-xs), var(--pos-glow-sm);
}
.pos-thread__attachments {
    display: flex;
    flex-wrap: wrap;
    gap: var(--pos-space-2);
    margin-top: var(--pos-space-2);
}
.pos-thread__attachment-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--pos-card-bg);
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius-full);
    font-size: 0.8125rem;
    color: var(--pos-muted);
    cursor: pointer;
    transition: border-color var(--pos-duration-fast), color var(--pos-duration-fast);
}
.pos-thread__attachment-btn:hover { border-color: var(--pos-primary); color: var(--pos-primary); }
.pos-thread__divider {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--pos-muted);
    padding: var(--pos-space-2) 0;
    position: relative;
}
.pos-thread__divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--pos-border);
}
.pos-thread__divider span {
    position: relative;
    background: var(--pos-card-bg);
    padding: 0 var(--pos-space-3);
}
.pos-thread__reply {
    display: flex;
    flex-direction: column;
    gap: var(--pos-space-3);
    padding-top: var(--pos-space-5);
    border-top: 1px solid var(--pos-border);
    margin-top: var(--pos-space-2);
}
.pos-thread__textarea {
    width: 100%;
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius-md);
    background: var(--pos-card-bg);
    color: var(--pos-ink);
    font-family: var(--pos-font-sans);
    font-size: 0.9375rem;
    padding: var(--pos-space-3) var(--pos-space-4);
    resize: vertical;
    min-height: 80px;
    transition: border-color var(--pos-duration-fast);
}
.pos-thread__textarea:focus {
    outline: none;
    border-color: var(--pos-primary);
    box-shadow: 0 0 0 3px var(--pos-focus-ring);
}
.pos-thread__reply-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pos-space-3);
    flex-wrap: wrap;
}

/* ─── Status sidebar panel (used in TicketDetail) ─── */

.pos-status-panel { display: flex; flex-direction: column; gap: var(--pos-space-3); }
.pos-status-panel__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pos-muted);
}
.pos-status-panel__select {
    width: 100%;
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius-md);
    background: var(--pos-card-bg);
    color: var(--pos-ink);
    font-family: var(--pos-font-sans);
    font-size: 0.9375rem;
    padding: var(--pos-space-2) var(--pos-space-4);
    appearance: none;
    cursor: pointer;
}
.pos-status-panel__select:focus {
    outline: none;
    border-color: var(--pos-primary);
    box-shadow: 0 0 0 3px var(--pos-focus-ring);
}

/* ─── Invite code callout ─── */

.pos-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pos-space-4);
    padding: var(--pos-space-4) var(--pos-space-5);
    background: var(--pos-primary-subtle);
    border: 1px solid rgba(13, 110, 253, 0.20);
    border-radius: var(--pos-radius-md);
    margin-bottom: var(--pos-space-4);
}
.pos-callout--warning {
    background: rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.30);
}
.pos-callout__code {
    font-family: "Courier New", monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--pos-primary);
}
.pos-callout__sub { font-size: 0.8125rem; color: var(--pos-muted); margin-top: 2px; }

/* ─── app-input / app-input-label (mirrors AppInput.razor.css) ─── */

.app-input-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pos-ink);
    letter-spacing: 0.01em;
    display: block;
    margin-bottom: 5px;
}

.app-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--pos-border);
    border-radius: var(--pos-radius-lg);
    background: var(--pos-glass-bg);
    backdrop-filter: blur(24px) saturate(2.0) brightness(1.02);
    -webkit-backdrop-filter: blur(24px) saturate(2.0) brightness(1.02);
    color: var(--pos-ink);
    font-family: var(--pos-font-sans);
    font-size: 0.9rem;
    line-height: 1.5;
    transition:
        border-color    var(--pos-duration-fast) var(--pos-ease-out),
        box-shadow      var(--pos-duration-base) var(--pos-ease-out),
        background      var(--pos-duration-fast) var(--pos-ease-out),
        backdrop-filter var(--pos-duration-base) var(--pos-ease-out),
        transform       var(--pos-duration-fast) var(--pos-ease-out);
    outline: none;
}
.app-input::placeholder { color: var(--pos-muted); opacity: 1; }
.app-input:hover:not(:disabled):not(:focus) {
    border-color: rgba(29,110,249,0.35);
    box-shadow: var(--pos-glow-xs);
}
.app-input:focus {
    border-color: var(--pos-primary);
    background: var(--pos-glass-bg-heavy);
    backdrop-filter: blur(36px) saturate(2.4);
    -webkit-backdrop-filter: blur(36px) saturate(2.4);
    box-shadow: 0 0 0 3px var(--pos-focus-ring), var(--pos-glow-md);
    transform: translateY(-1px);
}
.app-input:disabled {
    background: var(--pos-surface);
    color: var(--pos-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

/* ─── Legacy: these were the first outline variants; now handled in AppButton block ─── */
/* Keep for backward compat on any page that doesn't have the full AppButton block loaded */

/* ─── Loading spinner ─── */

.pos-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--pos-space-16) var(--pos-space-8);
    gap: var(--pos-space-4);
}
@keyframes spin-ring {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.pos-loading-spinner__ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--pos-border);
    border-top-color: var(--pos-primary);
    animation: spin-ring 0.7s linear infinite;
}
.pos-loading-spinner__msg {
    font-size: 0.9rem;
    color: var(--pos-muted);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL COMPONENT MIRRORS
   These duplicate the scoped .razor.css files so styles work
   whether or not PropertyOS.Client.styles.css loads.
   ═══════════════════════════════════════════════════════════════ */

/* ─── AppButton (full — liquid glass edition) ─── */
a.app-btn { text-decoration: none; color: inherit; }
a.app-btn:visited { color: inherit; }
.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--pos-radius-full);
    border: none;
    font-family: var(--pos-font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    white-space: nowrap;
    min-height: 38px;
    position: relative;
    overflow: hidden;
    user-select: none;
    text-decoration: none;
    transition:
        background-position var(--pos-duration-base) var(--pos-ease-out),
        box-shadow           var(--pos-duration-base) var(--pos-ease-out),
        transform            var(--pos-duration-fast) var(--pos-ease-spring),
        border-color         var(--pos-duration-fast) var(--pos-ease-out),
        opacity              var(--pos-duration-fast) var(--pos-ease-out);
}
/* Shine sweep */
.app-btn::after {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: translateX(-200%);
    pointer-events: none;
    transition: transform 0.4s var(--pos-ease-out);
}
.app-btn:hover:not(:disabled)::after { transform: translateX(350%); }

.app-btn:active:not(:disabled) { transform: scale(0.96); }
.app-btn:focus-visible {
    outline: 2px solid var(--pos-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--pos-focus-ring);
}

/* Primary — gradient */
.app-btn--primary {
    background: var(--pos-gradient-primary);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: #fff;
    box-shadow: 0 2px 8px rgba(29,110,249,0.35), 0 1px 0 rgba(255,255,255,0.18) inset;
}
.app-btn--primary:hover:not(:disabled) {
    background-position: 100% 50%;
    box-shadow: var(--pos-shadow-md), var(--pos-glow-md);
    transform: translateY(-2px);
}

/* Secondary — glass */
.app-btn--secondary {
    background: var(--pos-glass-bg);
    backdrop-filter: blur(12px) saturate(1.5);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    color: var(--pos-ink);
    border: 1.5px solid var(--pos-glass-border);
    box-shadow: var(--pos-glass-shadow);
}
.app-btn--secondary:hover:not(:disabled) {
    background: var(--pos-glass-bg-heavy);
    border-color: rgba(29,110,249,0.32);
    box-shadow: var(--pos-shadow-sm), var(--pos-glow-sm);
    transform: translateY(-2px);
}

/* Outline */
.app-btn--outline {
    background: transparent;
    color: var(--pos-primary);
    border: 1.5px solid var(--pos-primary);
}
.app-btn--outline:hover:not(:disabled) {
    background: var(--pos-primary-subtle);
    box-shadow: var(--pos-glow-sm);
    transform: translateY(-1px);
}

/* Danger outline */
.app-btn--danger-outline {
    background: transparent;
    color: #dc3545;
    border: 1.5px solid #dc3545;
}
.app-btn--danger-outline:hover:not(:disabled) {
    background: rgba(220,53,69,0.07);
    box-shadow: var(--pos-glow-danger);
    transform: translateY(-1px);
}

/* Danger */
.app-btn--danger {
    background: var(--pos-gradient-danger);
    color: #fff;
    box-shadow: 0 2px 8px rgba(220,53,69,0.30);
}
.app-btn--danger:hover:not(:disabled) {
    box-shadow: var(--pos-shadow-md), var(--pos-glow-danger);
    transform: translateY(-2px);
}

/* Success */
.app-btn--success {
    background: var(--pos-gradient-success);
    color: #fff;
    box-shadow: 0 2px 8px rgba(25,135,84,0.30);
}
.app-btn--success:hover:not(:disabled) {
    box-shadow: var(--pos-shadow-md), var(--pos-glow-success);
    transform: translateY(-2px);
}

/* Ghost */
.app-btn--ghost {
    background: transparent;
    color: var(--pos-ink);
    border: 1.5px solid transparent;
}
.app-btn--ghost:hover:not(:disabled) {
    background: var(--pos-glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: var(--pos-glass-border);
}

/* Link */
.app-btn--link {
    background: transparent;
    color: var(--pos-primary);
    padding-left: 0;
    padding-right: 0;
    min-height: auto;
    border-radius: 0;
    font-weight: 500;
}
.app-btn--link::after { display: none; }
.app-btn--link:hover:not(:disabled) {
    color: var(--pos-primary-dark);
    text-decoration: underline;
}

/* Sizes */
.app-btn--sm { font-size: 0.8125rem; padding: 5px 12px; min-height: 30px; gap: 4px; }
.app-btn--lg { font-size: 1rem; padding: 11px 24px; min-height: 46px; gap: 8px; }
.app-btn--full { width: 100%; }
.app-btn--icon-only { padding: 0; width: 38px; height: 38px; border-radius: 50%; }
.app-btn--sm.app-btn--icon-only { width: 30px; height: 30px; }
.app-btn--lg.app-btn--icon-only { width: 46px; height: 46px; }
.app-btn:disabled, .app-btn--loading { opacity: 0.52; cursor: not-allowed; pointer-events: none; }
.app-btn__spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    flex-shrink: 0;
}
.app-btn--sm .app-btn__spinner { width: 11px; height: 11px; }
.app-btn--lg .app-btn__spinner { width: 17px; height: 17px; }

/* ─── AppBadge ─── */
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: var(--pos-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
    vertical-align: middle;
    backdrop-filter: blur(8px) saturate(1.6);
    -webkit-backdrop-filter: blur(8px) saturate(1.6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
    transition: transform var(--pos-duration-fast) var(--pos-ease-spring),
                box-shadow var(--pos-duration-fast) var(--pos-ease-out);
}
.app-badge:hover { transform: translateY(-1px); }
.app-badge--pill { border-radius: var(--pos-radius-full); }
.app-badge--sm { font-size: 0.6875rem; padding: 2px 6px; }
.app-badge--lg { font-size: 0.875rem; padding: 5px 12px; }
.app-badge--primary { background: rgba(13,110,253,0.12); color: var(--pos-primary); }
.app-badge--success { background: rgba(25,135,84,0.12); color: #198754; }
.app-badge--danger  { background: rgba(220,53,69,0.12); color: #dc3545; }
.app-badge--warning { background: rgba(255,193,7,0.15); color: #997404; }
.app-badge--info    { background: rgba(13,202,240,0.12); color: #0dcaf0; }
.app-badge--muted   { background: var(--pos-surface); color: var(--pos-muted); border: 1px solid var(--pos-border); }
.app-badge--accent  { background: rgba(102,16,242,0.10); color: var(--pos-accent); }
[data-bs-theme="dark"] .app-badge--warning { color: #ffc107; }
[data-bs-theme="dark"] .app-badge--info    { color: #84d8e8; }
.app-badge__dismiss {
    background: none; border: none; color: inherit;
    padding: 0; margin: 0; cursor: pointer; opacity: 0.7;
    display: inline-flex; align-items: center;
    font-size: 0.85em; line-height: 1;
    transition: opacity var(--pos-duration-fast) var(--pos-ease-out);
}
.app-badge__dismiss:hover { opacity: 1; }

/* ─── AppStatCard — ultra liquid glass ─── */
.app-stat-card {
    background: var(--pos-glass-bg);
    backdrop-filter: blur(40px) saturate(2.4) brightness(1.04);
    -webkit-backdrop-filter: blur(40px) saturate(2.4) brightness(1.04);
    border: 1px solid var(--pos-glass-border);
    border-radius: var(--pos-radius-xl);
    padding: var(--pos-space-5) var(--pos-space-6);
    box-shadow: var(--pos-glass-shadow);
    display: flex;
    flex-direction: column;
    gap: var(--pos-space-2);
    position: relative;
    overflow: hidden;
    transition:
        box-shadow   var(--pos-duration-base) var(--pos-ease-out),
        transform    var(--pos-duration-base) var(--pos-ease-out),
        border-color var(--pos-duration-base) var(--pos-ease-out);
}
/* Specular top lip */
.app-stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1.5px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.90) 25%,
        rgba(255,255,255,1.0) 50%,
        rgba(255,255,255,0.90) 75%,
        transparent 100%);
    border-radius: var(--pos-radius-xl) var(--pos-radius-xl) 0 0;
    pointer-events: none;
}
/* Shimmer sweep */
.app-stat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(108deg, transparent 20%, rgba(255,255,255,0.18) 50%, transparent 80%);
    transform: translateX(-120%);
    pointer-events: none;
    border-radius: inherit;
    transition: transform 0.65s var(--pos-ease-out);
}
.app-stat-card:hover::after { transform: translateX(140%); }
.app-stat-card--clickable { cursor: pointer; }
@media (hover: hover) {
    .app-stat-card--clickable:hover {
        box-shadow: var(--pos-liquid-shadow), var(--pos-glow-md);
        border-color: rgba(29,110,249,0.40);
        transform: translateY(-4px) scale(1.02);
    }
}
.app-stat-card__header { display: flex; align-items: center; justify-content: space-between; gap: var(--pos-space-3); }
.app-stat-card__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pos-muted); }
.app-stat-card__icon {
    width: 42px; height: 42px; border-radius: var(--pos-radius-lg);
    font-size: 1.05rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--pos-gradient-primary);
    background-size: 200% 200%;
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.25) inset,
        0 3px 12px rgba(29,110,249,0.45),
        0 0 20px rgba(124,58,237,0.28);
    flex-shrink: 0;
    position: relative;
    animation: gradientShift 4s ease-in-out infinite, iconBob 3s ease-in-out infinite;
}
/* Glow ring around icon */
.app-stat-card__icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: calc(var(--pos-radius-lg) + 4px);
    background: transparent;
    box-shadow: 0 0 16px rgba(29,110,249,0.35), 0 0 32px rgba(124,58,237,0.20);
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}
.app-stat-card__value { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; color: var(--pos-ink); line-height: 1.05; }
.app-stat-card__trend {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 0.78rem; font-weight: 700;
    border-radius: var(--pos-radius-full); padding: 3px 9px; width: fit-content;
}
.app-stat-card__trend--up   { color: #059669; background: rgba(5,150,105,0.12); }
.app-stat-card__trend--down { color: #dc2626; background: rgba(220,38,38,0.10); }
.app-stat-card__sub { font-size: 0.8125rem; color: var(--pos-muted); }
[data-bs-theme="dark"] .app-stat-card::before {
    background: linear-gradient(90deg,
        transparent 0%, rgba(255,255,255,0.18) 25%,
        rgba(255,255,255,0.28) 50%, rgba(255,255,255,0.18) 75%, transparent 100%);
}

/* ─── AppModal — ultra liquid glass ─── */
.app-modal {
    position: relative;
    background: var(--pos-glass-bg-heavy);
    backdrop-filter: blur(72px) saturate(3.0) brightness(1.04);
    -webkit-backdrop-filter: blur(72px) saturate(3.0) brightness(1.04);
    border: 1px solid var(--pos-glass-border-strong);
    border-radius: var(--pos-radius-2xl);
    box-shadow:
        var(--pos-specular-strong),
        var(--pos-shadow-2xl),
        var(--pos-glow-lg),
        0 0 0 0.5px rgba(255,255,255,0.60);
    width: 100%; max-width: 540px; max-height: 90dvh;
    display: flex; flex-direction: column; overflow: hidden;
    animation: modalSlideIn var(--pos-duration-slow) var(--pos-ease-spring) both;
}
/* Specular top lip on modal */
.app-modal::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1.5px;
    background: linear-gradient(90deg,
        transparent 0%, rgba(255,255,255,0.95) 20%,
        rgba(255,255,255,1.0) 50%, rgba(255,255,255,0.95) 80%, transparent 100%);
    border-radius: var(--pos-radius-2xl) var(--pos-radius-2xl) 0 0;
    pointer-events: none;
    z-index: 1;
    animation: specularSweep 3.5s ease-in-out infinite;
}
[data-bs-theme="dark"] .app-modal::before {
    background: linear-gradient(90deg,
        transparent 0%, rgba(255,255,255,0.20) 20%,
        rgba(255,255,255,0.32) 50%, rgba(255,255,255,0.20) 80%, transparent 100%);
}
.app-modal--sheet {
    border-radius: var(--pos-radius-2xl) var(--pos-radius-2xl) 0 0;
    max-width: 100%; max-height: 85dvh;
    align-self: flex-end; width: 100%;
    animation: bottomSheetSlideIn var(--pos-duration-slow) var(--pos-ease-decelerate) both;
}
.app-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid var(--pos-border); flex-shrink: 0; }
.app-modal__title { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; color: var(--pos-ink); margin: 0; }
.app-modal__close {
    background: none; border: none; color: var(--pos-muted);
    padding: 6px; border-radius: var(--pos-radius-md);
    cursor: pointer; display: flex; align-items: center;
    transition: color var(--pos-duration-fast) var(--pos-ease-out), background var(--pos-duration-fast) var(--pos-ease-out);
    font-size: 0.9375rem;
}
.app-modal__close:hover { color: var(--pos-ink); background: var(--pos-surface); }
.app-modal__close:focus-visible { outline: 2px solid var(--pos-primary); outline-offset: 2px; }
.app-modal__body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.app-modal__footer { padding: 14px 24px 20px; border-top: 1px solid var(--pos-border); display: flex; gap: var(--pos-space-3); justify-content: flex-end; flex-shrink: 0; }

/* ─── AppPagination ─── */
.app-pagination { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.app-pagination__btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1.5px solid var(--pos-border);
    border-radius: var(--pos-radius-md);
    background: var(--pos-card-bg);
    color: var(--pos-ink);
    font-family: var(--pos-font-sans);
    font-size: 0.875rem; font-weight: 500;
    cursor: pointer;
    transition:
        background  var(--pos-duration-fast) var(--pos-ease-out),
        border-color var(--pos-duration-fast) var(--pos-ease-out),
        color var(--pos-duration-fast) var(--pos-ease-out),
        transform var(--pos-duration-fast) var(--pos-ease-spring);
}
.app-pagination__btn:hover { border-color: var(--pos-primary); color: var(--pos-primary); }
.app-pagination__btn:active { transform: scale(0.94); }
.app-pagination__btn:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.app-pagination__btn:focus-visible { outline: 2px solid var(--pos-primary); outline-offset: 2px; }
.app-pagination__btn--active { background: var(--pos-primary); border-color: var(--pos-primary); color: #fff; font-weight: 700; }
.app-pagination__btn--active:hover { color: #fff; }
.app-pagination__ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; color: var(--pos-muted); font-size: 0.875rem; cursor: default; }

/* ─── AppSkeleton ─── */
.app-skeleton { display: block; border-radius: var(--pos-radius-sm); }

/* ─── AuthLayout — premium hero ─── */
.auth-shell { display: grid; grid-template-columns: 1fr; min-height: 100dvh; }
@media (min-width: 768px)  { .auth-shell { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .auth-shell { grid-template-columns: 58fr 42fr; } }

.auth-shell__hero { display: none; position: relative; overflow: hidden; }
@media (min-width: 768px) { .auth-shell__hero { display: flex; align-items: center; justify-content: center; } }

.auth-hero__bg {
    position: absolute; inset: 0;
    background: var(--pos-gradient-hero);
    background-size: 300% 300%;
    animation: gradientShift 8s ease-in-out infinite;
    z-index: 0;
}
/* Orb 1 — top right, large slow float */
.auth-hero__bg::before {
    content: ""; position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.50) 0%, transparent 70%);
    filter: blur(60px);
    top: -120px; right: -100px;
    animation: floatSlow 9s ease-in-out infinite;
    z-index: 0;
}
/* Orb 2 — bottom left, medium */
.auth-hero__bg::after {
    content: ""; position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,165,233,0.45) 0%, transparent 70%);
    filter: blur(50px);
    bottom: -80px; left: -60px;
    animation: floatSlow 11s ease-in-out infinite;
    animation-delay: -4s;
    z-index: 0;
}
/* Glass grid overlay for depth */
.auth-shell__hero::before {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 100%);
}

.auth-hero__content { position: relative; z-index: 2; padding: 3rem; max-width: 480px; color: #fff; }
.auth-hero__brand {
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px;
    border-radius: var(--pos-radius-xl);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.25);
    margin-bottom: 1.75rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    transition: transform var(--pos-duration-base) var(--pos-ease-spring),
                box-shadow var(--pos-duration-base) var(--pos-ease-out);
}
.auth-hero__brand:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.auth-hero__icon { font-size: 1.875rem; color: #fff; }
.auth-hero__title { font-size: 2.625rem; font-weight: 900; letter-spacing: -0.045em; line-height: 1.05; color: #fff; margin-bottom: 0.875rem; }
.auth-hero__tagline { font-size: 1.0625rem; color: rgba(255,255,255,0.78); margin-bottom: 2.25rem; line-height: 1.65; }
.auth-hero__features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.auth-hero__features li {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.9375rem; color: rgba(255,255,255,0.90);
    animation: staggerFadeIn var(--pos-duration-slow) var(--pos-ease-decelerate) both;
}
.auth-hero__features li:nth-child(1) { animation-delay: 120ms; }
.auth-hero__features li:nth-child(2) { animation-delay: 230ms; }
.auth-hero__features li:nth-child(3) { animation-delay: 340ms; }
.auth-hero__features li:nth-child(4) { animation-delay: 450ms; }
.auth-hero__features li:nth-child(5) { animation-delay: 560ms; }
.auth-hero__features li .bi {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    border-radius: var(--pos-radius-sm);
    background: rgba(255,255,255,0.16);
    color: rgba(14,202,240,0.95);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.auth-shell__form {
    display: flex; align-items: center; justify-content: center;
    background: var(--pos-body-bg);
    padding: 2.5rem 1.5rem;
    position: relative;
}
/* Subtle inner gradient for depth */
.auth-shell__form::before {
    content: "";
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(29,110,249,0.04) 0%, transparent 100%);
    pointer-events: none;
}
.auth-form-wrap {
    width: 100%; max-width: 410px;
    position: relative; z-index: 1;
    animation: slideInRight var(--pos-duration-slow) var(--pos-ease-decelerate) both;
}
.auth-logo-mobile { display: flex; align-items: center; margin-bottom: 2rem; text-decoration: none; }
.auth-logo-mobile a { display: flex; align-items: center; text-decoration: none; color: var(--pos-ink); }
@media (min-width: 768px) { .auth-logo-mobile { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .auth-hero__bg { animation: none; }
    .auth-hero__bg::before, .auth-hero__bg::after { animation: none; }
    .auth-hero__features li { animation: none; }
    .auth-form-wrap { animation: none; }
}

/* ─── Login card — liquid glass ─── */
.login-card {
    width: 100%;
    padding: 2.25rem 2rem;
    border-radius: var(--pos-radius-2xl);
    background: var(--pos-glass-bg-heavy);
    backdrop-filter: blur(32px) saturate(1.8);
    -webkit-backdrop-filter: blur(32px) saturate(1.8);
    border: 1px solid var(--pos-glass-border);
    box-shadow: var(--pos-liquid-shadow);
}
.login-card__title { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.04em; color: var(--pos-ink); margin-bottom: 4px; line-height: 1.1; }
.login-card__sub { font-size: 0.9rem; color: var(--pos-muted); margin-bottom: 1.875rem; line-height: 1.5; }
.login-card__forgot { display: flex; justify-content: flex-end; margin-bottom: 1.25rem; }
.login-card__forgot a { font-size: 0.8125rem; color: var(--pos-primary); text-decoration: none; font-weight: 500; transition: color var(--pos-duration-fast); }
.login-card__forgot a:hover { color: var(--pos-primary-dark); text-decoration: underline; }
.login-card__resend { margin-top: 1rem; padding: 1rem; border-radius: var(--pos-radius-lg); background: rgba(255,193,7,0.08); border: 1px solid rgba(255,193,7,0.20); }
.login-card__divider { display: flex; align-items: center; gap: 0.75rem; color: var(--pos-muted); font-size: 0.8125rem; margin: 1.375rem 0; }
.login-card__divider::before, .login-card__divider::after { content: ""; flex: 1; height: 1px; background: var(--pos-border); }
.login-card__google {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; width: 100%; padding: 11px 16px;
    border: 1.5px solid var(--pos-glass-border);
    border-radius: var(--pos-radius-full);
    background: var(--pos-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--pos-ink); font-size: 0.9rem; font-weight: 600;
    text-decoration: none;
    box-shadow: var(--pos-shadow-xs);
    transition:
        border-color var(--pos-duration-fast) var(--pos-ease-out),
        box-shadow   var(--pos-duration-base) var(--pos-ease-out),
        transform    var(--pos-duration-fast) var(--pos-ease-spring);
}
.login-card__google:hover {
    border-color: rgba(29,110,249,0.35);
    box-shadow: var(--pos-shadow-sm), var(--pos-glow-sm);
    transform: translateY(-2px);
}
.login-card__footer { text-align: center; margin-top: 1.625rem; margin-bottom: 0; font-size: 0.875rem; color: var(--pos-muted); }
.login-card__footer a { color: var(--pos-primary); font-weight: 700; text-decoration: none; }
.login-card__footer a:hover { text-decoration: underline; }

/* ─── ResponsiveLayout extras ─── */
.rl-brand-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--pos-radius-md);
    background: var(--pos-primary);
    color: #fff; font-size: 1rem; flex-shrink: 0;
    text-decoration: none;
    transition: transform var(--pos-duration-fast) var(--pos-ease-spring);
}
.rl-brand-logo:hover { transform: scale(1.08); }
.rl-mobile-actions { display: flex; align-items: center; gap: var(--pos-space-2); flex-shrink: 0; }

/* ─── Dashboard page ─── */
.dashboard-kpi-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--pos-space-4); }
@media (min-width: 992px) { .dashboard-kpi-grid { grid-template-columns: repeat(4,1fr); } }
.dashboard-kpi-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .dashboard-kpi-grid--3 { grid-template-columns: repeat(3,1fr); } }
.dashboard-kpi-wide { grid-column: 1 / -1; }
@media (min-width: 992px) { .dashboard-kpi-wide { grid-column: 3 / 5; } }
.dashboard-panel-grid { display: grid; gap: var(--pos-space-4); }
@media (min-width: 992px) { .dashboard-panel-grid { grid-template-columns: 1fr 1fr; } }
.dash-sparkline { display: flex; align-items: flex-end; gap: 6px; height: 60px; padding-top: var(--pos-space-2); }
.dash-sparkline__col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; height: 100%; justify-content: flex-end; }
.dash-sparkline__bar { width: 100%; background: var(--pos-primary); border-radius: var(--pos-radius-sm) var(--pos-radius-sm) 0 0; opacity: 0.75; transition: opacity var(--pos-duration-fast) var(--pos-ease-out), height var(--pos-duration-slow) var(--pos-ease-decelerate); min-height: 4px; }
.dash-sparkline__col:hover .dash-sparkline__bar { opacity: 1; }
.dash-sparkline__label { font-size: 0.625rem; color: var(--pos-muted); white-space: nowrap; }
.dash-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.dash-list__item { display: flex; align-items: center; justify-content: space-between; gap: var(--pos-space-3); padding: 10px 0; border-bottom: 1px solid var(--pos-border); }
.dash-list__item:last-child { border-bottom: none; }
.dash-list__label { display: inline-flex; align-items: center; gap: 7px; font-size: 0.875rem; color: var(--pos-ink); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-list__link { color: var(--pos-ink); text-decoration: none; transition: color var(--pos-duration-fast) var(--pos-ease-out); }
.dash-list__link:hover { color: var(--pos-primary); }
.dash-list__meta { display: flex; align-items: center; gap: var(--pos-space-2); flex-shrink: 0; }

/* ─── PropertiesList filters ─── */
.properties-filters { display: flex; gap: var(--pos-space-3); flex-wrap: wrap; }
.properties-filters__search { flex: 1; min-width: 200px; }
.properties-filters__status { min-width: 160px; }

/* ─── Dashboard: Welcome hero ─── */
.dash-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pos-space-4);
    padding: 1.5rem 1.75rem;
    border-radius: var(--pos-radius-2xl);
    background: var(--pos-glass-bg-heavy);
    backdrop-filter: blur(48px) saturate(2.6) brightness(1.06);
    -webkit-backdrop-filter: blur(48px) saturate(2.6) brightness(1.06);
    border: 1px solid var(--pos-glass-border-strong);
    box-shadow: var(--pos-liquid-shadow), var(--pos-glow-sm);
    margin-bottom: var(--pos-space-5);
    position: relative;
    overflow: hidden;
    animation: blurIn var(--pos-duration-slow) var(--pos-ease-decelerate) both;
}
/* Ambient orb behind hero */
.dash-hero::before {
    content: "";
    position: absolute;
    top: -40px; right: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.22) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    animation: liquidWave 10s ease-in-out infinite;
}
/* Specular top lip */
.dash-hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1.5px;
    background: linear-gradient(90deg,
        transparent 0%, rgba(255,255,255,0.80) 20%,
        rgba(255,255,255,1.0) 50%, rgba(255,255,255,0.80) 80%, transparent 100%);
    border-radius: var(--pos-radius-2xl) var(--pos-radius-2xl) 0 0;
    pointer-events: none;
    animation: specularSweep 4s ease-in-out infinite;
}
[data-bs-theme="dark"] .dash-hero::after {
    background: linear-gradient(90deg,
        transparent 0%, rgba(255,255,255,0.14) 20%,
        rgba(255,255,255,0.24) 50%, rgba(255,255,255,0.14) 80%, transparent 100%);
}
.dash-hero__content { display: flex; flex-direction: column; gap: 2px; }
.dash-hero__greeting {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--pos-ink);
    margin: 0;
    background: var(--pos-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dash-hero__sub { font-size: 0.875rem; color: var(--pos-muted); margin: 0; }
.dash-hero__aside { display: flex; align-items: center; gap: var(--pos-space-3); flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.dash-hero__date {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.8125rem; color: var(--pos-muted); font-weight: 500;
}
.dash-hero__pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    border-radius: var(--pos-radius-full);
    font-size: 0.8125rem; font-weight: 600;
}
.dash-hero__pill--success {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.20);
}
.dash-hero__pill--warn {
    background: rgba(234, 179, 8, 0.10);
    color: #a16207;
    border: 1px solid rgba(234, 179, 8, 0.22);
}
@media (max-width: 640px) {
    .dash-hero { flex-direction: column; align-items: flex-start; }
    .dash-hero__aside { justify-content: flex-start; }
}

/* ─── Dashboard: Alert strip ─── */
.dash-alert-strip {
    display: flex;
    gap: var(--pos-space-3);
    flex-wrap: wrap;
    margin-bottom: var(--pos-space-5);
}
.dash-alert-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 18px;
    border-radius: var(--pos-radius-xl);
    font-size: 0.875rem; font-weight: 600;
    text-decoration: none;
    flex: 1; min-width: 200px;
    backdrop-filter: blur(24px) saturate(2.0);
    -webkit-backdrop-filter: blur(24px) saturate(2.0);
    position: relative;
    overflow: hidden;
    transition: transform var(--pos-duration-fast) var(--pos-ease-spring),
                box-shadow var(--pos-duration-base) var(--pos-ease-out);
}
.dash-alert-chip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(108deg, transparent 25%, rgba(255,255,255,0.16) 50%, transparent 75%);
    transform: translateX(-120%);
    pointer-events: none;
    transition: transform 0.55s var(--pos-ease-out);
}
.dash-alert-chip:hover::after { transform: translateX(140%); }
.dash-alert-chip:hover { transform: translateY(-3px); box-shadow: var(--pos-shadow-md), var(--pos-glow-warm); }
.dash-alert-chip--warn {
    background: rgba(234, 179, 8, 0.12);
    color: #92400e;
    border: 1px solid rgba(234, 179, 8, 0.30);
    box-shadow: 0 2px 12px rgba(234,179,8,0.15);
}
.dash-alert-chip--danger {
    background: rgba(239, 68, 68, 0.09);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.28);
    box-shadow: 0 2px 12px rgba(239,68,68,0.12);
}

/* ─── Dashboard: 3-column main grid ─── */
.dashboard-main-grid {
    display: grid;
    gap: var(--pos-space-4);
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .dashboard-main-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .dashboard-main-grid { grid-template-columns: 1.2fr 1fr 1fr; } }

.dash-sparkline {
    display: flex; align-items: flex-end; gap: 6px;
    height: 80px; padding-top: var(--pos-space-2);
}
.dash-sparkline__col {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; flex: 1; height: 100%; justify-content: flex-end;
}
.dash-sparkline__bar {
    width: 100%;
    background: var(--pos-gradient-primary);
    background-size: 200% 200%;
    border-radius: var(--pos-radius-sm) var(--pos-radius-sm) 0 0;
    opacity: 0.75;
    transition: opacity var(--pos-duration-fast) var(--pos-ease-out),
                height var(--pos-duration-slow) var(--pos-ease-decelerate),
                box-shadow var(--pos-duration-base) var(--pos-ease-out);
    min-height: 4px;
    transform-origin: bottom;
    animation: sparklineGrow 0.65s var(--pos-ease-spring) both, gradientShift 4s ease-in-out infinite;
    box-shadow: 0 -2px 8px rgba(29,110,249,0.20);
}
.dash-sparkline__col:hover .dash-sparkline__bar {
    opacity: 1;
    box-shadow: 0 -3px 14px rgba(29,110,249,0.40), 0 -1px 4px rgba(124,58,237,0.25);
}
.dash-sparkline__label { font-size: 0.625rem; color: var(--pos-muted); white-space: nowrap; }
.dash-sparkline-legend {
    display: flex; align-items: center; justify-content: flex-end;
    margin-top: var(--pos-space-2); padding-top: var(--pos-space-2);
    border-top: 1px solid var(--pos-border);
}
.dash-sparkline-legend__total { font-size: 0.8125rem; color: var(--pos-muted); }

/* ─── Dashboard: list items ─── */
.dash-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.dash-list__item {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--pos-space-3); padding: 10px 0;
    border-bottom: 1px solid var(--pos-border);
    transition: background var(--pos-duration-fast) var(--pos-ease-out);
}
.dash-list__item:last-child { border-bottom: none; }
.dash-list__label {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 0.875rem; color: var(--pos-ink);
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-list__link { color: var(--pos-ink); text-decoration: none; transition: color var(--pos-duration-fast); }
.dash-list__link:hover { color: var(--pos-primary); }
.dash-list__meta { display: flex; align-items: center; gap: var(--pos-space-2); flex-shrink: 0; }

/* ─── Dashboard: Quick-nav cards ─── */
.dash-quick-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--pos-space-3);
    margin-top: var(--pos-space-5);
}
@media (min-width: 640px) { .dash-quick-nav { grid-template-columns: repeat(6, 1fr); } }
.dash-quick-nav__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 18px 8px;
    border-radius: var(--pos-radius-xl);
    background: var(--pos-glass-bg);
    backdrop-filter: blur(32px) saturate(2.2) brightness(1.04);
    -webkit-backdrop-filter: blur(32px) saturate(2.2) brightness(1.04);
    border: 1px solid var(--pos-glass-border);
    box-shadow: var(--pos-glass-shadow);
    color: var(--pos-ink);
    font-size: 0.8125rem; font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition:
        transform var(--pos-duration-fast) var(--pos-ease-spring),
        box-shadow var(--pos-duration-base) var(--pos-ease-out),
        border-color var(--pos-duration-slow) var(--pos-ease-out),
        background var(--pos-duration-fast) var(--pos-ease-out),
        backdrop-filter var(--pos-duration-base) var(--pos-ease-out);
}
.dash-quick-nav__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(108deg, transparent 25%, rgba(255,255,255,0.22) 50%, transparent 75%);
    transform: translateX(-120%);
    pointer-events: none;
    transition: transform 0.55s var(--pos-ease-out);
}
.dash-quick-nav__item:hover::after { transform: translateX(140%); }
.dash-quick-nav__item .bi {
    font-size: 1.4rem;
    background: var(--pos-gradient-primary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(29,110,249,0.30));
    animation: gradientShift 4s ease-in-out infinite;
    transition: filter var(--pos-duration-base) var(--pos-ease-out),
                transform var(--pos-duration-fast) var(--pos-ease-spring);
}
.dash-quick-nav__item:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: var(--pos-liquid-shadow), var(--pos-glow-md);
    border-color: rgba(29, 110, 249, 0.50);
    background: var(--pos-glass-bg-heavy);
    animation: iridescent 3s ease-in-out infinite;
}
.dash-quick-nav__item:hover .bi {
    filter: drop-shadow(0 0 14px rgba(29,110,249,0.55));
    transform: scale(1.15) translateY(-2px);
}
.dash-quick-nav__item:active { transform: translateY(0) scale(0.97); }

/* ─── Universal filter bar ─── */
.pos-filter-bar {
    display: flex;
    gap: var(--pos-space-3);
    flex-wrap: wrap;
    align-items: flex-end;
    padding: var(--pos-space-4) var(--pos-space-5);
    border-radius: var(--pos-radius-xl);
    background: var(--pos-glass-bg);
    backdrop-filter: blur(32px) saturate(2.2) brightness(1.04);
    -webkit-backdrop-filter: blur(32px) saturate(2.2) brightness(1.04);
    border: 1px solid var(--pos-glass-border);
    box-shadow: var(--pos-glass-shadow);
    margin-bottom: var(--pos-space-5);
    animation: blurIn var(--pos-duration-slow) var(--pos-ease-decelerate) both;
}
.pos-filter-bar__search { flex: 1; min-width: 220px; }
.pos-filter-bar__selects {
    display: flex; gap: var(--pos-space-2); flex-wrap: wrap;
}
.pos-filter-bar__selects > * { min-width: 150px; }
@media (max-width: 640px) {
    .pos-filter-bar { flex-direction: column; }
    .pos-filter-bar__search,
    .pos-filter-bar__selects { width: 100%; }
    .pos-filter-bar__selects > * { flex: 1; min-width: 0; }
}

/* ─── Inbox — visual conversation list ─── */
.pos-inbox-card .app-card__body { padding: 0; }
.pos-inbox { list-style: none; padding: 0; margin: 0; }
.pos-inbox__item {
    border-bottom: 1px solid var(--pos-border);
    transition:
        background var(--pos-duration-fast) var(--pos-ease-out),
        backdrop-filter var(--pos-duration-base) var(--pos-ease-out);
    position: relative;
}
.pos-inbox__item:last-child { border-bottom: none; }
.pos-inbox__item--unread {
    background: rgba(29, 110, 249, 0.04);
}
.pos-inbox__link {
    display: flex; align-items: flex-start; gap: var(--pos-space-3);
    padding: 16px 20px;
    text-decoration: none; color: inherit;
    position: relative;
}
.pos-inbox__item:hover .pos-inbox__link {
    background: var(--pos-glass-bg);
    backdrop-filter: blur(24px) saturate(2.0);
    -webkit-backdrop-filter: blur(24px) saturate(2.0);
}
.pos-inbox__item--unread .pos-inbox__link::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--pos-gradient-primary);
    border-radius: 0 2px 2px 0;
}
.pos-inbox__avatar {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: var(--pos-radius-full);
    background: var(--pos-gradient-primary);
    background-size: 200% 200%;
    color: #fff;
    font-size: 0.875rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 10px rgba(29,110,249,0.30);
    animation: gradientShift 6s ease-in-out infinite;
}
.pos-inbox__item--unread .pos-inbox__avatar {
    animation: gradientShift 6s ease-in-out infinite, glowPulse 2.5s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(29,110,249,0.35), 0 0 20px rgba(29,110,249,0.20);
}
.pos-inbox__body { flex: 1; min-width: 0; }
.pos-inbox__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.pos-inbox__from {
    font-size: 0.9rem; font-weight: 700; color: var(--pos-ink);
    display: inline-flex; align-items: center; gap: 6px;
}
.pos-inbox__unread-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--pos-primary);
    display: inline-block;
    flex-shrink: 0;
}
.pos-inbox__time { font-size: 0.75rem; color: var(--pos-muted); flex-shrink: 0; }
.pos-inbox__subject { font-size: 0.875rem; font-weight: 500; color: var(--pos-ink); margin-bottom: 2px; }
.pos-inbox__preview {
    font-size: 0.8125rem; color: var(--pos-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 420px;
}
.pos-inbox__property {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.75rem; color: var(--pos-muted); margin-top: 3px;
}
.pos-inbox__badge {
    flex-shrink: 0; align-self: center;
    background: var(--pos-primary);
    color: #fff;
    font-size: 0.6875rem; font-weight: 700;
    min-width: 20px; height: 20px;
    border-radius: var(--pos-radius-full);
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
}
.pos-inbox__item--unread .pos-inbox__subject { font-weight: 700; color: var(--pos-ink); }

/* ─── Avatar ─── */
.pos-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--pos-radius-full);
    background: var(--pos-gradient-primary);
    background-size: 200% 200%;
    color: #fff;
    font-weight: 700; font-size: 0.875rem;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(29,110,249,0.25), 0 0 0 2px rgba(255,255,255,0.60);
    animation: gradientShift 6s ease-in-out infinite;
}
.pos-avatar--sm { width: 30px; height: 30px; font-size: 0.75rem; }
.pos-avatar--md { width: 40px; height: 40px; }
.pos-avatar--lg { width: 56px; height: 56px; font-size: 1.125rem; box-shadow: 0 4px 16px rgba(29,110,249,0.35), 0 0 0 3px rgba(255,255,255,0.70); }

/* ─── Announcements card grid ─── */
.pos-announcement-grid { display: flex; flex-direction: column; gap: var(--pos-space-3); }
.pos-announcement-card__meta {
    display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.pos-announcement-card__toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; background: none; border: none; padding: 0;
    text-align: left; cursor: pointer; gap: var(--pos-space-3);
    margin-top: var(--pos-space-3);
}
.pos-announcement-card__title {
    font-size: 1rem; font-weight: 700; color: var(--pos-ink);
    flex: 1;
}
.pos-announcement-card__chevron {
    color: var(--pos-muted);
    transition: transform var(--pos-duration-fast), color var(--pos-duration-fast);
}
.pos-announcement-card--expanded .pos-announcement-card__chevron {
    color: var(--pos-primary);
    filter: drop-shadow(0 0 6px rgba(29,110,249,0.50));
}
.pos-announcement-card--expanded {
    animation: iridescent 4s ease-in-out infinite;
    box-shadow: var(--pos-liquid-shadow), var(--pos-glow-sm) !important;
}
.pos-announcement-card__body {
    margin-top: var(--pos-space-3);
    padding-top: var(--pos-space-3);
    border-top: 1px solid var(--pos-border);
    font-size: 0.9rem; line-height: 1.7;
    color: var(--pos-ink);
    white-space: pre-wrap;
    animation: blurIn var(--pos-duration-slow) var(--pos-ease-decelerate) both;
}

/* ─── AppCard danger border modifier ─── */
.app-card--danger-border {
    border-color: rgba(239, 68, 68, 0.32) !important;
    box-shadow: var(--pos-glass-shadow), 0 0 20px rgba(239,68,68,0.10) !important;
}
.app-card--danger-border .app-card__header {
    border-bottom-color: rgba(239, 68, 68, 0.14);
}
.app-card--danger-border:hover {
    box-shadow: var(--pos-liquid-shadow), var(--pos-glow-danger) !important;
}

/* ─── Textarea in app-input style ─── */
.app-input-wrap { display: flex; flex-direction: column; gap: 4px; }
.app-input-wrap .app-input__label {
    font-size: 0.8125rem; font-weight: 600; color: var(--pos-ink-secondary);
}
.app-input-wrap .app-input__field {
    display: block; width: 100%;
    padding: 10px 14px;
    border-radius: var(--pos-radius-lg);
    border: 1.5px solid var(--pos-border);
    background: var(--pos-glass-bg);
    backdrop-filter: blur(24px) saturate(2.0) brightness(1.02);
    -webkit-backdrop-filter: blur(24px) saturate(2.0) brightness(1.02);
    color: var(--pos-ink);
    font-size: 0.9rem; font-family: var(--pos-font-sans);
    line-height: 1.6; resize: vertical;
    transition: border-color var(--pos-duration-fast) var(--pos-ease-out),
                box-shadow var(--pos-duration-fast) var(--pos-ease-out),
                backdrop-filter var(--pos-duration-base) var(--pos-ease-out);
}
.app-input-wrap .app-input__field:focus {
    outline: none;
    border-color: var(--pos-primary);
    box-shadow: 0 0 0 3px var(--pos-focus-ring), var(--pos-glow-md);
    backdrop-filter: blur(32px) saturate(2.4);
    -webkit-backdrop-filter: blur(32px) saturate(2.4);
}
.app-input-wrap .app-input__field:hover:not(:focus) {
    border-color: rgba(29,110,249,0.35);
    box-shadow: var(--pos-glow-xs);
}

/* ─── Pagination glass upgrade ─── */
.app-pagination__btn {
    background: var(--pos-glass-bg);
    backdrop-filter: blur(16px) saturate(1.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    border-color: var(--pos-glass-border);
    box-shadow: var(--pos-specular), var(--pos-shadow-xs);
}
.app-pagination__btn:hover {
    border-color: var(--pos-primary);
    color: var(--pos-primary);
    box-shadow: var(--pos-specular), var(--pos-glow-sm);
}
.app-pagination__btn--active {
    background: var(--pos-gradient-primary);
    background-size: 200% 200%;
    border-color: transparent;
    box-shadow: var(--pos-specular), 0 2px 10px rgba(29,110,249,0.40);
    animation: gradientShift 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════
   Property context bar — persistent header + tab row
   ═══════════════════════════════════════════════════════ */
.property-context {
    margin-bottom: var(--pos-space-5);
    animation: blurIn var(--pos-duration-slow) var(--pos-ease-decelerate) both;
}
.property-context__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pos-space-4);
    flex-wrap: wrap;
    margin-bottom: var(--pos-space-3);
}
.property-context__title-link {
    display: inline-flex;
    align-items: center;
    gap: var(--pos-space-3);
    text-decoration: none;
    min-width: 0;
    border-radius: var(--pos-radius-lg);
    transition: transform var(--pos-duration-fast) var(--pos-ease-out);
}
.property-context__title-link:hover { transform: translateX(2px); }
.property-context__icon {
    width: 48px; height: 48px;
    border-radius: var(--pos-radius-lg);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: #fff;
    background: var(--pos-gradient-primary);
    background-size: 200% 200%;
    box-shadow: 0 4px 14px rgba(29,110,249,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    flex-shrink: 0;
    animation: gradientShift 5s ease-in-out infinite;
}
.property-context__title-group { display: flex; flex-direction: column; min-width: 0; }
.property-context__title {
    font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em;
    color: var(--pos-ink); line-height: 1.15;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.property-context__sub { font-size: 0.8125rem; color: var(--pos-muted); }
.property-context__aside { display: flex; align-items: center; gap: var(--pos-space-3); flex-shrink: 0; flex-wrap: wrap; }
.property-context__actions { display: flex; align-items: center; gap: var(--pos-space-2); flex-wrap: wrap; }
/* Tab row sits in a glass tray */
.property-context__tabs {
    background: var(--pos-glass-bg);
    backdrop-filter: blur(32px) saturate(2.2) brightness(1.04);
    -webkit-backdrop-filter: blur(32px) saturate(2.2) brightness(1.04);
    border: 1px solid var(--pos-glass-border);
    box-shadow: var(--pos-glass-shadow);
    border-radius: var(--pos-radius-lg);
    padding: 4px 6px;
    border-bottom: 1px solid var(--pos-glass-border);
}
.property-context__tabs .app-tabs__tab {
    border-radius: var(--pos-radius-md);
    border-bottom: none;
    margin-bottom: 0;
}
/* Active tab = filled glass pill (suits the tray better than an underline) */
.property-context__tabs .app-tabs__tab--active {
    color: #fff;
    background: var(--pos-gradient-primary);
    background-size: 200% 200%;
    box-shadow: 0 2px 10px rgba(29,110,249,0.40), inset 0 1px 0 rgba(255,255,255,0.25);
    animation: gradientShift 4s ease-in-out infinite;
}
.property-context__tabs .app-tabs__tab--active::after { display: none; }
.property-context__tabs .app-tabs__tab--active i { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); }
.property-context__tabs .app-tabs__tab:hover:not(.app-tabs__tab--active) {
    background: var(--pos-primary-subtle);
    color: var(--pos-primary);
}
@media (max-width: 640px) {
    .property-context__title { font-size: 1.125rem; }
    .property-context__icon { width: 40px; height: 40px; font-size: 1.05rem; }
}

/* ═══════════════════════════════════════════════════════
   Property card grid — portfolio centerpiece
   ═══════════════════════════════════════════════════════ */
.pos-property-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--pos-space-4);
}
@media (min-width: 560px)  { .pos-property-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .pos-property-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1400px) { .pos-property-grid { grid-template-columns: repeat(4, 1fr); } }

.pos-property-card {
    display: flex;
    flex-direction: column;
    gap: var(--pos-space-3);
    padding: var(--pos-space-5);
    border-radius: var(--pos-radius-xl);
    background: var(--pos-glass-bg);
    backdrop-filter: blur(40px) saturate(2.4) brightness(1.04);
    -webkit-backdrop-filter: blur(40px) saturate(2.4) brightness(1.04);
    border: 1px solid var(--pos-glass-border);
    box-shadow: var(--pos-glass-shadow);
    text-decoration: none;
    color: var(--pos-ink);
    position: relative;
    overflow: hidden;
    transition:
        transform     var(--pos-duration-base) var(--pos-ease-spring),
        box-shadow    var(--pos-duration-base) var(--pos-ease-out),
        border-color  var(--pos-duration-slow) var(--pos-ease-out);
}
.pos-property-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1.5px;
    background: linear-gradient(90deg,
        transparent 0%, rgba(255,255,255,0.90) 25%,
        rgba(255,255,255,1.0) 50%, rgba(255,255,255,0.90) 75%, transparent 100%);
    pointer-events: none;
}
.pos-property-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(108deg, transparent 25%, rgba(255,255,255,0.16) 50%, transparent 75%);
    transform: translateX(-120%);
    pointer-events: none;
    transition: transform 0.65s var(--pos-ease-out);
}
.pos-property-card:hover::after { transform: translateX(140%); }
.pos-property-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--pos-liquid-shadow), var(--pos-glow-md);
    border-color: rgba(29,110,249,0.40);
}
.pos-property-card:active { transform: translateY(-1px) scale(0.998); }
[data-bs-theme="dark"] .pos-property-card::before {
    background: linear-gradient(90deg,
        transparent 0%, rgba(255,255,255,0.16) 25%,
        rgba(255,255,255,0.26) 50%, rgba(255,255,255,0.16) 75%, transparent 100%);
}

.pos-property-card__top {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: var(--pos-space-2);
}
.pos-property-card__icon {
    width: 44px; height: 44px;
    border-radius: var(--pos-radius-lg);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem; color: #fff;
    background: var(--pos-gradient-primary);
    background-size: 200% 200%;
    box-shadow: 0 2px 10px rgba(29,110,249,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    flex-shrink: 0;
    animation: gradientShift 5s ease-in-out infinite;
}
.pos-property-card__address {
    font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em;
    color: var(--pos-ink); line-height: 1.25;
    margin: 0;
}
.pos-property-card__city {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.8125rem; color: var(--pos-muted); margin-top: 2px;
}
.pos-property-card__divider {
    height: 1px; background: var(--pos-border); margin: var(--pos-space-1) 0;
}
.pos-property-card__foot {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: var(--pos-space-2);
}
.pos-property-card__type {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.75rem; font-weight: 600; color: var(--pos-muted);
    padding: 3px 10px; border-radius: var(--pos-radius-full);
    background: var(--pos-surface); border: 1px solid var(--pos-border);
}
.pos-property-card__rent {
    text-align: right; line-height: 1.1;
}
.pos-property-card__rent-value {
    font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em;
    background: var(--pos-gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pos-property-card__rent-label {
    font-size: 0.6875rem; color: var(--pos-muted); text-transform: uppercase; letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════
   Tenant home hero — the tenant's headline property panel
   ═══════════════════════════════════════════════════════ */
.pos-home-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--pos-space-5);
    padding: var(--pos-space-6) var(--pos-space-6);
    border-radius: var(--pos-radius-2xl);
    overflow: hidden;
    color: #fff;
    background: var(--pos-gradient-hero);
    background-size: 240% 240%;
    box-shadow: var(--pos-liquid-shadow), var(--pos-glow-md);
    margin-bottom: var(--pos-space-4);
    animation: gradientShift 10s ease-in-out infinite, blurIn var(--pos-duration-slow) var(--pos-ease-decelerate) both;
}
/* Floating orbs */
.pos-home-hero::before {
    content: "";
    position: absolute;
    top: -80px; right: -40px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    animation: liquidWave 11s ease-in-out infinite;
}
.pos-home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 80% at 70% 30%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 30%, black 30%, transparent 100%);
    pointer-events: none;
}
.pos-home-hero__icon {
    position: relative; z-index: 1;
    width: 72px; height: 72px;
    border-radius: var(--pos-radius-xl);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.30);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.40), 0 4px 16px rgba(0,0,0,0.18);
    flex-shrink: 0;
    animation: float 5s ease-in-out infinite;
}
.pos-home-hero__body { position: relative; z-index: 1; flex: 1; min-width: 0; }
.pos-home-hero__eyebrow {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: rgba(255,255,255,0.78); margin-bottom: 2px;
}
.pos-home-hero__title {
    font-size: 1.5rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.15;
    color: #fff; margin: 0;
}
.pos-home-hero__sub { font-size: 0.875rem; color: rgba(255,255,255,0.82); margin-top: 4px; }
.pos-home-hero__pills {
    position: relative; z-index: 1;
    display: flex; flex-wrap: wrap; gap: var(--pos-space-2);
    margin-top: var(--pos-space-3);
}
.pos-home-hero__pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px;
    border-radius: var(--pos-radius-full);
    font-size: 0.8125rem; font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.22);
}
.pos-home-hero__pill .bi { opacity: 0.85; }
@media (max-width: 640px) {
    .pos-home-hero { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ═══════════════════════════════════════════════════════
   Certificate / compliance tile grid
   ═══════════════════════════════════════════════════════ */
.pos-cert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--pos-space-4);
}
@media (min-width: 540px) { .pos-cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .pos-cert-grid { grid-template-columns: repeat(4, 1fr); } }

.pos-cert-tile {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: var(--pos-space-2);
    padding: var(--pos-space-6) var(--pos-space-4);
    border-radius: var(--pos-radius-xl);
    background: var(--pos-glass-bg);
    backdrop-filter: blur(40px) saturate(2.4) brightness(1.04);
    -webkit-backdrop-filter: blur(40px) saturate(2.4) brightness(1.04);
    border: 1px solid var(--pos-glass-border);
    box-shadow: var(--pos-glass-shadow);
    position: relative;
    overflow: hidden;
    transition: transform var(--pos-duration-base) var(--pos-ease-spring),
                box-shadow var(--pos-duration-base) var(--pos-ease-out),
                border-color var(--pos-duration-slow) var(--pos-ease-out);
}
.pos-cert-tile::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95) 50%, transparent);
    pointer-events: none;
}
.pos-cert-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--pos-liquid-shadow), var(--pos-glow-sm);
    border-color: rgba(29,110,249,0.30);
}
.pos-cert-tile__icon {
    width: 56px; height: 56px;
    border-radius: var(--pos-radius-xl);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    background: var(--pos-gradient-primary);
    background-size: 200% 200%;
    box-shadow: 0 4px 14px rgba(29,110,249,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    margin-bottom: var(--pos-space-1);
    animation: gradientShift 5s ease-in-out infinite, float 5s ease-in-out infinite;
}
.pos-cert-tile__type { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--pos-ink); }
.pos-cert-tile__expiry { font-size: 0.8125rem; color: var(--pos-muted); }

/* ═══════════════════════════════════════════════════════
   Applicant card grid (rental applications)
   ═══════════════════════════════════════════════════════ */
.pos-applicant-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--pos-space-4);
}
@media (min-width: 768px)  { .pos-applicant-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1400px) { .pos-applicant-grid { grid-template-columns: repeat(3, 1fr); } }

.pos-applicant__head {
    display: flex; align-items: flex-start; gap: var(--pos-space-3);
}
.pos-applicant__name {
    font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--pos-ink);
    line-height: 1.25;
}
.pos-applicant__contact {
    display: flex; flex-direction: column; gap: 3px;
    margin: var(--pos-space-3) 0;
    font-size: 0.8125rem; color: var(--pos-muted);
}
.pos-applicant__contact a { color: var(--pos-muted); text-decoration: none; }
.pos-applicant__contact a:hover { color: var(--pos-primary); }
.pos-applicant__contact-row { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.pos-applicant__contact-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-applicant__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--pos-space-2);
    padding-top: var(--pos-space-3);
    border-top: 1px solid var(--pos-border);
}
.pos-applicant__actions { display: flex; gap: var(--pos-space-2); }

/* ═══════════════════════════════════════════════════════
   Ticket list — visual request rows (tenant + landlord)
   ═══════════════════════════════════════════════════════ */
.pos-ticket-list { list-style: none; padding: 0; margin: 0; }
.pos-ticket-list__item {
    border-bottom: 1px solid var(--pos-border);
    transition: background var(--pos-duration-fast) var(--pos-ease-out),
                backdrop-filter var(--pos-duration-base) var(--pos-ease-out);
}
.pos-ticket-list__item:last-child { border-bottom: none; }
.pos-ticket-list__link {
    display: flex; align-items: center; gap: var(--pos-space-3);
    padding: 14px 20px;
    text-decoration: none; color: inherit;
}
.pos-ticket-list__item:hover .pos-ticket-list__link {
    background: var(--pos-glass-bg);
    backdrop-filter: blur(24px) saturate(2.0);
    -webkit-backdrop-filter: blur(24px) saturate(2.0);
}
.pos-ticket-list__icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: var(--pos-radius-lg);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.05rem; color: #fff;
    background: var(--pos-gradient-primary);
    background-size: 200% 200%;
    box-shadow: 0 2px 10px rgba(29,110,249,0.30), inset 0 1px 0 rgba(255,255,255,0.25);
    animation: gradientShift 6s ease-in-out infinite;
}
.pos-ticket-list__body { flex: 1; min-width: 0; }
.pos-ticket-list__title {
    font-size: 0.9rem; font-weight: 700; color: var(--pos-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pos-ticket-list__meta {
    display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 0.75rem; color: var(--pos-muted); margin-top: 2px;
}
.pos-ticket-list__badges { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
@media (max-width: 560px) {
    .pos-ticket-list__badges { flex-direction: column; align-items: flex-end; gap: 4px; }
}
