/* Universal Typography Enforcement: Inter */
*, *::before, *::after, html, body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, span, a, div, table, tr, td, th, label, ul, li {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

html, body {
    display: block !important;
    min-height: 100vh !important;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    width: 100%;
    min-height: 100vh;
}

/* Dashboard screen needs its own layout */
#ownerDashboardScreen.active {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    overflow: hidden !important;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    color: white;
    position: relative;
}



:root {
    --bg-base: #030305;
    --glass-bg: color-mix(in oklab, white 10%, transparent);
    --glass-border: rgba(255, 255, 255, 0.28);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --accent-glow: rgba(168, 85, 247, 0.4);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --radius-pill: 9999px;
    --radius-card: 26px;
    --radius-input: 14px;
    /* APPLE'S EXACT SPRING ANIMATION */
    --transition-spring: all 0.5s cubic-bezier(0.2, 0.9, 0.2, 1);

    /* LIQUID GLASS SYSTEM (User's Exact Refractive Spec) */
    --tint: color-mix(in oklab, white 12%, transparent);
    --lg-tint: var(--tint);
    --lg-border: 1px solid rgba(255, 255, 255, 0.35);
    --lg-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    --lg-shadow-hover: 0 40px 80px -28px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    --lg-blur: blur(18px) saturate(180%);
    --lg-spec: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 46%, transparent 62%);
    --lg-radial: radial-gradient(240px 240px at var(--mx, 30%) var(--my, 20%), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%);
}

/* Light Mode Liquid Glass Variables */
body.light-mode {
    --bg-base: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-highlight: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 8px 32px 0 rgba(0, 0, 0, 0.04);
    --text-main: #0f172a;
    --text-muted: #64748b;
}

body.light-mode .custom-input,
body.light-mode select,
body.light-mode textarea {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

body.light-mode .sidebar {
    background: rgba(255, 255, 255, 0.85);
}

html {
    top: 0 !important;
    scroll-behavior: smooth;
}

/* Universal Outline & Text Box Elimination */
*, *::before, *::after {
    -webkit-tap-highlight-color: transparent;
}

*:focus,
*:focus-visible,
*:active {
    outline: none !important;
}

/* Ensure text elements never display an outline or box on click */
p, span, h1, h2, h3, h4, h5, h6, label, div, a, li, b, strong, em, i, td, th {
    outline: none !important;
}

p:focus, span:focus, h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus,
label:focus, div:focus, a:focus, li:focus, b:focus, strong:focus, td:focus, th:focus,
p:active, span:active, h1:active, h2:active, h3:active, h4:active, h5:active, h6:active,
label:active, div:active, a:active, li:active, b:active, strong:active, td:active, th:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Text Selection: Clean highlight without surrounding bounding box or outline */
::selection {
    background: rgba(168, 85, 247, 0.45);
    color: #ffffff;
    text-shadow: none;
    outline: none !important;
}

::-moz-selection {
    background: rgba(168, 85, 247, 0.45);
    color: #ffffff;
    text-shadow: none;
    outline: none !important;
}

body.light-mode ::selection {
    background: rgba(99, 102, 241, 0.35);
    color: #0f172a;
    text-shadow: none;
    outline: none !important;
}

body.light-mode ::-moz-selection {
    background: rgba(99, 102, 241, 0.35);
    color: #0f172a;
    text-shadow: none;
    outline: none !important;
}

*[style*="-webkit-background-clip: text"] {
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    transition: var(--transition-spring);
    perspective: 1200px;
}

/* Deep Aurora Mesh Gradients */
body::before {
    content: '';
    position: fixed;
    width: 80vw;
    height: 80vw;
    border-radius: 50%;
    filter: blur(140px);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 65%);
    top: -18vw;
    left: -18vw;
    z-index: -2;
    pointer-events: none;
    transition: var(--transition-spring);
}

body::after {
    content: '';
    position: fixed;
    width: 80vw;
    height: 80vw;
    border-radius: 50%;
    filter: blur(140px);
    background: radial-gradient(circle, rgba(236, 72, 153, 0.09) 0%, transparent 70%);
    bottom: -18vw;
    right: -18vw;
    z-index: -2;
    pointer-events: none;
    transition: var(--transition-spring);
    animation: none !important;
}

/* Drifting Stars Layer */
.stars-layer-1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Ccircle cx='40' cy='80' r='1' fill='%23fff' opacity='0.3'/%3E%3Ccircle cx='160' cy='40' r='1.5' fill='%23fff' opacity='0.5'/%3E%3Ccircle cx='280' cy='120' r='1' fill='%23fff' opacity='0.2'/%3E%3Ccircle cx='350' cy='300' r='2' fill='%23fff' opacity='0.4'/%3E%3Ccircle cx='100' cy='350' r='1.2' fill='%23fff' opacity='0.3'/%3E%3Ccircle cx='200' cy='250' r='1' fill='%23fff' opacity='0.6'/%3E%3C/svg%3E");
    animation: drift 30s linear infinite;
}

.stars-layer-2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Ccircle cx='50' cy='150' r='1' fill='%23fff' opacity='0.4'/%3E%3Ccircle cx='180' cy='50' r='1.5' fill='%23fff' opacity='0.2'/%3E%3Ccircle cx='220' cy='200' r='1' fill='%23fff' opacity='0.5'/%3E%3Ccircle cx='100' cy='80' r='2' fill='%23fff' opacity='0.3'/%3E%3C/svg%3E");
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 -1000px;
    }
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    border: none !important;
    animation: none !important;
}

.cta-button:hover {
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4) !important;
    transform: translateY(-2px) !important;
}

@keyframes cta-pulse {
    0%, 100% { opacity: 1; }
}

* {
    box-sizing: border-box;
}

.screen {
    display: none;
    opacity: 0;
    min-height: 100vh;
    flex-direction: column;
    pointer-events: none;
}

.screen.active {
    display: flex !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}

/* Default Homepage: landingScreen is visible by default so the web loads immediately */
#landingScreen {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#landingScreen.hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.center-container {
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 20px;
}

button {
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

button:active {
    transform: scale(0.97) !important;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 20px var(--accent-glow);
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 25px var(--accent-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-danger {
    background: rgba(248, 113, 113, 0.1);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.3);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.btn-danger:hover {
    background: var(--danger);
    color: var(--text-main);
    box-shadow: 0 6px 24px rgba(248, 113, 113, 0.45);
    transform: translateY(-2px);
}

.glass-panel {
    background: var(--glass-bg);
    border-radius: var(--radius-card);
    padding: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-highlight), 0 30px 60px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(30px);
    width: 100%;
    max-width: 600px;
    text-align: left;
    transition: var(--transition-spring);
}

.custom-input,
select {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--radius-input);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 20px;
    transition: var(--transition-spring);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.custom-input:focus,
select:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(168, 85, 247, 0.15);
}

.info-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: translateZ(10px);
}

/* Custom Scrollbar for overflow numbers */
.scrollable-number {
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.scrollable-number::-webkit-scrollbar {
    height: 6px;
}

.scrollable-number::-webkit-scrollbar-track {
    background: transparent;
}

.scrollable-number::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.5);
    border-radius: 10px;
}

/* AI Thinking Animation */
.ai-thinking {
    display: inline-flex;
    gap: 6px;
    padding: 16px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px 16px 16px 2px;
    align-items: center;
    box-shadow: var(--glass-highlight);
    backdrop-filter: blur(10px);
}

.ai-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c084fc;
    animation: aiPulse 1.4s infinite cubic-bezier(0.32, 0.72, 0, 1) both;
}

.ai-dot:nth-child(1) {

    animation-delay: -0.32s;
}

.ai-dot:nth-child(2) {

    animation-delay: -0.16s;
}

@keyframes aiPulse {

    0%,
    80%,
    100% {
        opacity: 0.4;
        transform: scale(0.6);
    }

    40% {
        opacity: 1;
        box-shadow: 0 0 10px #c084fc;
        transform: scale(1.2);
    }
}

/* LANDING PAGE CSS */
/* ==========================================================================
   LIQUID GLASS SYSTEM (Apple / VisionOS Style Refractive Glass)
   ========================================================================== */

/* Universal Liquid Glass Component Styles */
.liquid-glass,
.landing-card,
.price-card,
.glass-panel,
.glass-card,
.stat-card,
.stat-box,
.lg-01__card {
    position: relative;
    isolation: isolate;
    border-radius: 26px;
    transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
    transform-style: preserve-3d;
    background: var(--lg-tint);
    border: var(--lg-border);
    box-shadow: var(--lg-shadow);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.4s, border-color 0.4s;
    cursor: pointer;
    overflow: hidden;
}

.liquid-glass:hover,
.landing-card:hover,
.price-card:hover,
.glass-card:hover,
.lg-01__card:hover {
    box-shadow: var(--lg-shadow-hover);
}

/* Dynamic Radial Gloss Overlay (Tracks mouse cursor) */
.liquid-glass::before,
.landing-card::before,
.price-card::before,
.glass-panel::before,
.glass-card::before,
.stat-card::before,
.stat-box::before,
.lg-01__card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--lg-radial);
    opacity: var(--gloss, 0.45);
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

/* Diagonal Specular Sheen Beam */
.liquid-glass::after,
.landing-card::after,
.price-card::after,
.glass-panel::after,
.glass-card::after,
.stat-card::after,
.stat-box::after,
.lg-01__card::after,
.lg-spec,
.lg-01__spec {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--lg-spec);
    pointer-events: none;
    z-index: 1;
}

/* Inner content elements stay above reflection layers */
.liquid-glass > *,
.landing-card > *,
.price-card > *,
.glass-panel > *,
.glass-card > *,
.stat-card > *,
.stat-box > *,
.lg-01__card > * {
    position: relative;
    z-index: 3;
}

/* Liquid Glass Component Element Classes */
.lg-01__badge {
    position: relative;
    z-index: 3;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.lg-01__title {
    position: relative;
    z-index: 3;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 40px 0 8px;
}

.lg-01__body {
    position: relative;
    z-index: 3;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.lg-01__foot {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.lg-01__price {
    font-size: 22px;
    font-weight: 800;
}

.lg-01__cta {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1330;
}

@media (prefers-reduced-motion: reduce) {
    .liquid-glass,
    .landing-card,
    .price-card,
    .glass-panel,
    .glass-card,
    .lg-01__card {
        transition: box-shadow 0.2s !important;
        transform: none !important;
    }
}

/* ==========================================================================
   BRIGHT WHITE THEME FOR LANDING PAGE (CLEAN, STATIC, NO COLOR SHIFTS)
   ========================================================================== */
body.on-landing {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    --text-main: #0f172a !important;
    --text-muted: #475569 !important;
    --lg-tint: #ffffff !important;
    --lg-border: 1px solid #e2e8f0 !important;
    --lg-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
    --lg-shadow-hover: 0 12px 32px -8px rgba(15, 23, 42, 0.1) !important;
    --lg-blur: none !important;
    --lg-spec: none !important;
    --lg-radial: none !important;
    --gloss: 0 !important;
    animation: none !important;
}

body.on-landing .stars-layer-1,
body.on-landing .stars-layer-2 {
    display: none !important;
    animation: none !important;
    opacity: 0 !important;
}

body.on-landing::before,
body.on-landing::after {
    display: none !important;
    animation: none !important;
    opacity: 0 !important;
    background: none !important;
    content: none !important;
}

/* Landing Navigation */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 100;
}

body.on-landing .landing-nav {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.07) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-radius: 9999px !important;
    margin-top: 18px !important;
    padding: 12px 32px !important;
}

.landing-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 32px;
    display: none;
    transition: var(--transition-spring);
}

@media(min-width: 768px) {
    .landing-nav a {
        display: inline-block;
    }
}

.landing-nav a:hover {
    color: var(--text-main);
    transform: translateY(-2px);
}

body.on-landing .landing-nav .brand-logo-text {
    color: #0f172a !important;
}

body.on-landing .landing-nav a {
    color: #475569 !important;
}

body.on-landing .landing-nav a:hover {
    color: #0f172a !important;
}

body.on-landing .landing-nav .btn-outline {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #0f172a !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.on-landing .landing-nav .btn-outline:hover {
    background: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    color: #4f46e5 !important;
}

/* Landing Hero */
.landing-hero {
    text-align: center;
    padding: 100px 5% 70px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    transform-style: preserve-3d;
}

.landing-title {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    transform: translateZ(30px);
}

.landing-subtitle {
    font-size: 1.25rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    transform: translateZ(15px);
}

body.on-landing .landing-hero .btn-outline {
    background: rgba(255, 255, 255, 0.85) !important;
    color: #0f172a !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}

body.on-landing .landing-hero .btn-outline:hover {
    background: #ffffff !important;
    border-color: #6366f1 !important;
    color: #4f46e5 !important;
}

/* Sections */
.landing-section {
    padding: 90px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

#who {
    max-width: none !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
    padding-bottom: 80px;
    background: rgba(241, 245, 249, 0.55);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    perspective: 1500px;
}

/* Landing Feature Cards */
.landing-card {
    padding: 40px 32px;
}

.landing-card h3 {
    font-size: 1.4rem;
    color: #0f172a;
    margin: 0 0 12px 0;
    font-weight: 700;
    letter-spacing: -0.01em;
    transform: translateZ(20px);
}

.landing-card p {
    font-size: 0.95rem;
    color: #475569;
    margin: 0;
    line-height: 1.6;
    transform: translateZ(10px);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    perspective: 1500px;
}

/* Price Cards */
.price-card {
    padding: 36px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.price-card.free {
    border-top: 3px solid #10b981;
}

.price-card.basic {
    border-top: 3px solid #0284c7;
}

.price-card.plus {
    border-top: 3px solid #8b5cf6;
}

.price-card.premium {
    border-top: 3px solid #f59e0b;
}

.price-card h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin: 0 0 8px 0;
    transform: translateZ(20px);
}

.price-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 16px 0;
    letter-spacing: -0.03em;
    transform: translateZ(30px);
}

.price-card .price span {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: normal;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 26px 0;
    text-align: left;
    flex: 1;
    transform: translateZ(15px);
}

.price-card ul li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-card ul li::before {
    content: '✓';
    font-weight: bold;
}

.price-card.free ul li::before {
    color: #10b981;
}

.price-card.basic ul li::before {
    color: #0284c7;
}

.price-card.plus ul li::before {
    color: #8b5cf6;
}

.price-card.premium ul li::before {
    color: #d97706;
}

.price-card ul li.restricted {
    color: #94a3b8;
    opacity: 0.75;
}

.price-card ul li.restricted::before {
    content: '✕';
    color: #94a3b8;
}

/* Landing Footer */
.landing-footer {
    padding: 60px 5%;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 60px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.landing-footer a {
    color: #475569;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 600;
}

.landing-footer a:hover {
    color: #0f172a;
}

/* OWNER DASHBOARD COLLAPSIBLE SIDEBAR — CarePlus Md Style */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: #0a0c11;
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 16px 0 12px 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    transition: width 0.28s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 2px 0 24px rgba(0,0,0,0.45);
}

.sidebar::-webkit-scrollbar {
    width: 0px;
}

/* Sidebar header branding area */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 8px;
}

.sidebar-logo-badge {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 6px rgba(99,102,241,0.35);
}

.sidebar-brand-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #c9cdd4;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.sidebar-brand-sub {
    font-size: 0.62rem;
    color: #4b5563;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Search item in sidebar */
.sidebar-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    margin: 4px 8px;
    border-radius: 7px;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    background: transparent;
    border: none;
    width: calc(100% - 16px);
    text-align: left;
}

.sidebar-search-item:hover {
    background: rgba(255,255,255,0.04);
    color: #9ca3af;
    transform: none;
}

.sidebar-search-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.sidebar-search-kbd {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.68rem;
    color: #4b5563;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: inherit;
}

.sidebar-link {
    color: #6b7280;
    text-decoration: none;
    padding: 6px 12px;
    margin: 1px 6px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: -0.005em;
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    border: none;
    text-align: left;
    background: transparent;
    width: calc(100% - 12px);
    white-space: nowrap;
    transition: all 0.12s ease;
    position: relative;
    line-height: 1.4;
}

.sidebar-link .icon {
    min-width: 16px;
    width: 16px;
    height: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.65;
}

.sidebar-link .sidebar-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.5;
    transition: transform 0.2s ease;
    line-height: 1;
}

.sidebar-link[data-expanded="true"] .sidebar-chevron {
    transform: rotate(90deg);
}

/* Mac-style sidebar active state */
.sidebar-link:hover {
    background: rgba(255,255,255,0.04);
    color: #c9cdd4;
    transform: none;
}

.sidebar-link.active {
    background: rgba(99, 102, 241, 0.18);
    color: #c7d2fe;
    border-color: transparent;
    transform: none;
}

.sidebar-link.active .icon {
    opacity: 1;
    color: #a5b4fc;
}

/* Bottom section — sticks to bottom of sidebar */
.sidebar-bottom-section {
    margin-top: auto;
    padding: 12px 0 0 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* Sidebar subnav — hidden by default (no sub-tabs) */
.sidebar-subnav {
    display: none;
}

.sidebar-subnav.open {
    display: none; /* sub-tabs fully disabled */
}

.sidebar-subnav-link {
    display: block;
    padding: 5px 14px 5px 38px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4b5563;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.15s ease;
    font-family: inherit;
    white-space: nowrap;
}

.sidebar-subnav-link:hover {
    color: #9ca3af;
    background: rgba(255,255,255,0.03);
}

.sidebar-subnav-link.active {
    color: #d1d5db;
    font-weight: 600;
}

/* Sidebar section divider label */
.sidebar-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 22px 4px;
}

/* SIDEBAR COLLAPSED STATE (Desktop only) */
@media (min-width: 768px) {
    .sidebar.collapsed {
        width: 64px;
        min-width: 64px;
        padding: 16px 0;
    }

    .sidebar.collapsed .sidebar-text,
    .sidebar.collapsed .sidebar-brand-name,
    .sidebar.collapsed .sidebar-brand-sub,
    .sidebar.collapsed .sidebar-chevron,
    .sidebar.collapsed .sidebar-search-kbd,
    .sidebar.collapsed .sidebar-subnav {
        display: none;
        opacity: 0;
    }

    .sidebar.collapsed~.main-content {
        margin-left: 52px;
        width: calc(100% - 52px);
    }

    .sidebar.collapsed .sidebar-link {
        justify-content: center;
        padding: 8px 0;
        margin: 1px 4px;
        width: calc(100% - 8px);
    }

    .sidebar.collapsed .sidebar-link .icon {
        margin-right: 0;
    }

    .sidebar.collapsed .sidebar-header {
        justify-content: center;
        padding: 8px 4px 12px;
    }

    .sidebar.collapsed .sidebar-search-item {
        justify-content: center;
        padding: 8px 0;
        margin: 1px 4px;
        width: calc(100% - 8px);
    }
}

.main-content {
    margin-left: 210px;
    width: calc(100% - 210px);
    min-height: 100vh;
    padding: 32px 40px;
    background: #0c0e13;
    transition: margin-left 0.25s cubic-bezier(0.4,0,0.2,1), width 0.25s cubic-bezier(0.4,0,0.2,1);
    perspective: 1200px;
}

/* ORDERS / TENANT TABLE STYLES */
.orders-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e8eaf0;
    margin: 0 0 24px 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.orders-table-wrapper {
    background: #111318;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 4px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.orders-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}

.orders-search-bar svg {
    flex-shrink: 0;
    stroke: #6b7280;
}

.orders-search-input {
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    outline: none !important;
    color: #e5e7eb !important;
    font-size: 0.88rem !important;
    font-family: inherit !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.orders-search-input::placeholder {
    color: #4b5563 !important;
}

.orders-table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    border: none !important;
}

.orders-table thead {
    display: table-header-group !important;
    width: 100% !important;
}

.orders-table thead tr {
    display: table-row !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.orders-table th {
    display: table-cell !important;
    padding: 12px 20px;
    text-align: left;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.78rem;
    white-space: nowrap;
    background: transparent;
    user-select: none;
    border: none !important;
    letter-spacing: 0.01em;
}

.orders-table th .sort-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.45;
}

.orders-table th .sort-icon span {
    display: block;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
}

.orders-table th .sort-icon .arrow-up {
    border-bottom: 4px solid currentColor;
}

.orders-table th .sort-icon .arrow-down {
    border-top: 4px solid currentColor;
}

/* Explicit column proportions across 100% table width with no gaps */
.orders-table th:nth-child(1),
.orders-table td:nth-child(1) {
    width: 27% !important;
    padding-left: 24px !important;
}

.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
    width: 20% !important;
}

.orders-table th:nth-child(3),
.orders-table td:nth-child(3) {
    width: 14% !important;
}

.orders-table th:nth-child(4),
.orders-table td:nth-child(4) {
    width: 14% !important;
}

.orders-table th:nth-child(5),
.orders-table td:nth-child(5) {
    width: 12% !important;
}

.orders-table th:nth-child(6),
.orders-table td:nth-child(6) {
    width: 13% !important;
    padding-right: 24px !important;
}

/* Table body and row stretching */
#ownerDashboardScreen #tenantList,
#tenantList {
    display: table-row-group !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

#ownerDashboardScreen #tenantList tr,
#tenantList tr,
.orders-table tbody tr {
    display: table-row !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
    transition: background 0.12s ease !important;
}

#ownerDashboardScreen #tenantList tr:hover,
#tenantList tr:hover,
.orders-table tbody tr:hover {
    background: rgba(255,255,255,0.02) !important;
}

#ownerDashboardScreen #tenantList tr:last-child,
#tenantList tr:last-child,
.orders-table tbody tr:last-child {
    border-bottom: none !important;
}

#ownerDashboardScreen #tenantList tr:last-child td,
#tenantList tr:last-child td,
.orders-table tbody tr:last-child td {
    border-bottom: none !important;
}

#ownerDashboardScreen #tenantList td,
#tenantList td,
.orders-table td {
    display: table-cell !important;
    padding: 15px 20px !important;
    color: #9ca3af !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
    vertical-align: middle !important;
    background: transparent !important;
}

.order-patient-name {
    font-weight: 600;
    color: #f3f4f6;
    font-size: 0.88rem;
    line-height: 1.35;
}

.order-patient-dob {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 2px;
    font-weight: 400;
}

/* Dashboard screen: seamless glassmorphic base */
#ownerDashboardScreen {
    background: transparent;
}

#ownerDashboardScreen .main-content {
    background: transparent;
}

.theme-dark {
    --bg-base: rgba(8, 8, 12, 0.98);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    perspective: 1000px;
}

.summary-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 24px;
    backdrop-filter: blur(20px);
    transition: var(--transition-spring);
}

.summary-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--glass-highlight), 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) translateY(-8px) rotateX(5deg) rotateY(-2deg) scale3d(1.02, 1.02, 1.02);
}

.summary-card h3 {
    margin: 0 0 6px 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    transform: translateZ(15px);
}

.summary-card p {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    transform: translateZ(25px);
}

.tenant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    perspective: 1200px;
}

.list-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    transition: var(--transition-spring);
}

.list-item-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: perspective(800px) translateY(-5px) translateZ(20px) rotateX(2deg);
}

.badge {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    transform: translateZ(10px);
}

.badge.paid {
    background: rgba(52, 211, 153, 0.15);
    color: var(--success);
    border-color: rgba(52, 211, 153, 0.4);
}

.badge.pending {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
    border-color: rgba(251, 191, 36, 0.4);
}

.badge.overdue {
    background: rgba(248, 113, 113, 0.15);
    color: var(--danger);
    border-color: rgba(248, 113, 113, 0.4);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-spring);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--bg-base);
    padding: 36px;
    border-radius: var(--radius-card);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-highlight), 0 30px 80px rgba(0, 0, 0, 0.8);
    opacity: 0;
    position: relative;
    transform: perspective(1500px) scale(0.85) translateY(60px) rotateX(-15deg);
    transition: var(--transition-spring);
    transform-style: preserve-3d;
}

.modal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    z-index: -1;
}

.modal-overlay.active .modal {
    opacity: 1;
    transform: perspective(1500px) scale(1) translateY(0) rotateX(0deg);
}

/* Auth Tabs */
.auth-tab {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    transition: var(--transition-spring);
}

.auth-tab.active {
    background: var(--glass-bg);
    color: var(--text-main);
    box-shadow: var(--glass-highlight), 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    transform: translateY(-2px);
}

#appToast {
    position: fixed;
    top: 24px;
    left: 50%;
    opacity: 0;
    z-index: 9999;
    pointer-events: none;
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-highlight);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
    transform: perspective(500px) translate(-50%, -40px) rotateX(10deg);
    transition: var(--transition-spring);
}

#appToast.show {
    opacity: 1;
    transform: perspective(500px) translate(-50%, 0) rotateX(0deg);
}

/* Mobile Responiveness */
@media (max-width: 768px) {
    .sidebar {
        width: 250px;
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px;
    }

    .sidebar.mobile-open {

        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .landing-section {
        padding: 60px 20px !important;
    }

    .landing-hero {
        padding: 100px 20px 60px !important;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr !important;
    }

    .landing-title {
        font-size: 2.5rem !important;
    }

    #who {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* AI Assistant Chat CSS */
.ai-message {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    align-self: flex-start;
    max-width: 85%;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-style: preserve-3d;
}

.ai-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3);
    transform: translateZ(10px);
}

.ai-bubble {
    background: rgba(255, 255, 255, 0.08);
    /* Lighter background for visibility */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    padding: 14px 20px;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    line-height: 1.6;
    transform: translateZ(5px);
    transition: var(--transition-spring);
}

.ai-bubble h2 {
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 800;
}

.ai-bubble h3 {
    font-size: 1.05rem;
    margin-top: 16px;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-weight: 700;
}

.ai-bubble ul {
    margin: 12px 0;
    padding-left: 24px;
    list-style-type: disc;
}

.ai-bubble li {
    margin-bottom: 6px;
}

.ai-bubble p {
    margin-top: 0;
    margin-bottom: 12px;
}

.ai-bubble p:last-child {
    margin-bottom: 0;
}

.ai-bubble strong {
    color: #a855f7;
    font-weight: 700;
}


.ai-greeting .ai-bubble {
    border-left: 2px solid #a855f7;
}

.user-message {
    display: flex;
    justify-content: flex-end;
    align-self: flex-end;
    max-width: 85%;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-style: preserve-3d;
}

.user-bubble {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
    padding: 14px 20px;
    border-radius: 18px 18px 4px 18px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 8px 20px rgba(168, 85, 247, 0.3);
    font-size: 0.95rem;
    line-height: 1.6;
    transform: translateZ(5px);
    transition: var(--transition-spring);
}

.ai-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 8px 16px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02), 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    transform-style: preserve-3d;
}

.ai-input-wrapper:focus-within {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02), 0 4px 20px rgba(168, 85, 247, 0.15);
    transform: perspective(800px) translateZ(15px);
}

.ai-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    padding: 8px 0;
}

.ai-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.ai-input-wrapper button {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3);
    margin-left: 12px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.ai-input-wrapper button:hover {
    box-shadow: 0 6px 15px rgba(168, 85, 247, 0.4);
    transform: scale(1.1) translateZ(10px);
}

.ai-input-wrapper button:active {

    transform: scale(0.9) translateZ(-10px);
}

/* Driver.js Custom PG Engine Theme overrides */
div.driver-popover {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.15) !important;
    color: #e2e8f0 !important;
    padding: 24px !important;
    font-family: inherit !important;
    transform: perspective(1000px) translateZ(30px) !important;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

div.driver-popover-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
}

div.driver-popover-description {
    font-size: 0.95rem !important;
    color: #cbd5e1 !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
}

div.driver-popover-footer button {
    background: linear-gradient(135deg, #a855f7, #9333ea) !important;
    border: none !important;
    color: white !important;
    text-shadow: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

div.driver-popover-footer button:hover {
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4) !important;
    transform: translateY(-3px) scale(1.05) !important;
}

div.driver-popover-footer .driver-popover-close-btn {
    background: transparent !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

div.driver-popover-footer .driver-popover-close-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

/* Make arrow matching */
div.driver-popover-arrow {
    border-color: var(--glass-bg) !important;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    border: none !important;
    animation: none !important;
}

.cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4) !important;
}

@keyframes cta-pulse {
    0%, 100% { opacity: 1; }
}

@keyframes aurora-breathe-1 {
    0% {
        transform: scale(1) translate(0, 0) rotate(0deg);
    }

    100% {
        transform: scale(1.1) translate(3vw, 3vw) rotate(10deg);
    }
}

@keyframes aurora-breathe-2 {
    0% {
        transform: scale(1) translate(0, 0) rotate(0deg);
    }

    100% {
        transform: scale(1.2) translate(-3vw, -3vw) rotate(-10deg);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: perspective(500px) translateZ(-50px) scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: perspective(500px) translateZ(0) scale(1) translateY(0);
    }
}

/* Deep Aurora Mesh Gradients - Static for clean stable background */
body::before {
    transition: var(--transition-spring);
    animation: none !important;
}

/* CTA Button - Stable non-pulsing button */
.cta-button {
    animation: none !important;
    transform-style: preserve-3d;
}

button::after {
    transform: skewX(-20deg);
    transition: 0.5s ease;
}

/* 3D Glass Panels */
.glass-panel {
    transition: var(--transition-spring);
    transform-style: preserve-3d;
}

/* Interactive Inputs */
.custom-input,
select {
    transition: var(--transition-spring);
    transform-style: preserve-3d;
}

.custom-input:focus,
select:focus {
    transform: perspective(500px) translateZ(5px);
}

.landing-nav a::after {
    transition: var(--transition-spring);
}

/* 3D Floating Cards */
.landing-card {
    transition: var(--transition-spring);
    transform-style: preserve-3d;
}

.landing-card::before {
    transition: opacity 0.5s ease;
}

.sidebar-link::before {
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    transform: translateX(6px);
}

.sidebar-link.active::before {
    transform: scaleY(1);
}

.sidebar-link:hover .icon,
.sidebar-link.active .icon {
    transform: scale(1.2);
}

/* 3D Dashboard Cards */
.summary-card {
    transition: var(--transition-spring);
    transform-style: preserve-3d;
}

.summary-card::after {
    transition: opacity 0.4s ease;
    transform: translateZ(1px);
}

/* 3D List Items / Tenant Cards */
.list-item-card {
    transition: var(--transition-spring);
    transform-style: preserve-3d;
}

/* Modals with 3D Pop-in */
.modal-overlay {
    transition: var(--transition-spring);
    perspective: 1500px;
}

.ai-bubble:hover {
    transform: translateZ(15px);
}

.user-bubble:hover {
    transform: translateZ(15px);
}

/* =====================================================
   LIQUID GLASS 2.0: OWNER DASHBOARD & TENANT APP SYSTEM
   Ultra-luxurious, refractive frosted glass design
   ===================================================== */

/* Deep Aurora Mesh for Dashboard and App screens */
body:not(.on-landing) {
    background-color: #07080c !important;
    background: #07080c !important;
    color: #f8fafc;
}

body:not(.on-landing)::before {
    content: '';
    position: fixed;
    width: 65vw;
    height: 65vw;
    border-radius: 50%;
    filter: blur(140px);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 65%);
    top: -15vw;
    left: -15vw;
    z-index: -2;
    pointer-events: none;
    opacity: 1 !important;
    display: block !important;
}

body:not(.on-landing)::after {
    content: '';
    position: fixed;
    width: 65vw;
    height: 65vw;
    border-radius: 50%;
    filter: blur(140px);
    background: radial-gradient(circle, rgba(168, 85, 247, 0.14) 0%, transparent 65%);
    bottom: -15vw;
    right: -15vw;
    z-index: -2;
    pointer-events: none;
    opacity: 1 !important;
    display: block !important;
}

/* =====================================================
   OWNER DASHBOARD: GLASSMORPHIC ARCHITECTURE
   ===================================================== */

#ownerDashboardScreen {
    background: transparent !important;
    min-height: 100vh;
    position: relative;
}

#ownerDashboardScreen.active {
    display: flex !important;
}

/* Mobile Sidebar Backdrop Overlay */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Glass Sidebar */
#ownerDashboardScreen .sidebar,
.sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 240px !important;
    height: 100dvh !important;
    background: linear-gradient(180deg, rgba(16, 18, 28, 0.72) 0%, rgba(10, 12, 18, 0.8) 100%) !important;
    backdrop-filter: blur(30px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(190%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45) !important;
    padding: 20px 12px !important;
    z-index: 50 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Brand header */
#ownerDashboardScreen .sidebar > div:first-child {
    padding: 4px 12px 16px 12px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

#ownerDashboardScreen .sidebar h2.sidebar-text {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* PG Name Pill */
#ownerDashboardScreen .sidebar > div:nth-child(2),
#ownerDashboardScreen .sidebar > div:first-child + div {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    margin: 0 6px 16px 6px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

#ownerDashboardScreen #sidebarPgName {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #e2e8f0 !important;
    letter-spacing: 0.02em !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Sidebar Section Divider */
#ownerDashboardScreen .sidebar-label,
.sidebar-section-label {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.09em !important;
    padding: 12px 14px 6px 14px !important;
    display: block !important;
}

/* Sidebar Links */
#ownerDashboardScreen .sidebar-link,
.sidebar-link {
    color: #94a3b8 !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    padding: 10px 14px !important;
    margin: 2px 4px !important;
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: calc(100% - 8px) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
}

#ownerDashboardScreen .sidebar-link .icon,
.sidebar-link .icon {
    min-width: 20px !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.75 !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

#ownerDashboardScreen .sidebar-link:hover,
.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(3px) !important;
}

#ownerDashboardScreen .sidebar-link:hover .icon,
.sidebar-link:hover .icon {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

#ownerDashboardScreen .sidebar-link.active,
.sidebar-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.16) 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(168, 85, 247, 0.38) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 18px rgba(99, 102, 241, 0.3) !important;
    font-weight: 600 !important;
    transform: none !important;
}

#ownerDashboardScreen .sidebar-link.active .icon,
.sidebar-link.active .icon {
    opacity: 1 !important;
    color: #c084fc !important;
}

/* =====================================================
   DASHBOARD LAYOUT — Fixed sidebar + dynamic margin offset
   ===================================================== */

:root {
    --dash-sidebar-width: 240px;
    --dash-sidebar-collapsed: 68px;
}

#dashLayout {
    display: block !important;
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Glass Sidebar Default (Expanded) */
#ownerDashboardScreen .sidebar,
.sidebar,
#appSidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: var(--dash-sidebar-width) !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: linear-gradient(180deg, rgba(16, 18, 28, 0.78) 0%, rgba(10, 12, 18, 0.88) 100%) !important;
    backdrop-filter: blur(30px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(190%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45) !important;
    padding: 20px 12px !important;
    z-index: 50 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Main scrollable content panel — reacts precisely to sidebar */
#dashMainContent {
    margin-left: var(--dash-sidebar-width) !important;
    width: calc(100% - var(--dash-sidebar-width)) !important;
    height: 100vh !important;
    overflow-y: auto !important;
    padding: 28px 36px 60px 36px !important;
    background: #0c0e13 !important;
    box-sizing: border-box !important;
    transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Sidebar Collapsed State (Desktop) */
@media (min-width: 769px) {
    #appSidebar.collapsed,
    #ownerDashboardScreen .sidebar.collapsed,
    .sidebar.collapsed {
        width: var(--dash-sidebar-collapsed) !important;
        padding: 20px 8px !important;
    }

    #appSidebar.collapsed ~ #dashMainContent,
    #ownerDashboardScreen .sidebar.collapsed ~ #dashMainContent,
    .sidebar.collapsed ~ #dashMainContent {
        margin-left: var(--dash-sidebar-collapsed) !important;
        width: calc(100% - var(--dash-sidebar-collapsed)) !important;
    }

    #ownerDashboardScreen .sidebar.collapsed .sidebar-text,
    .sidebar.collapsed .sidebar-text,
    #ownerDashboardScreen .sidebar.collapsed .sidebar-brand-sub,
    #ownerDashboardScreen .sidebar.collapsed .sidebar-chevron,
    #ownerDashboardScreen .sidebar.collapsed #sidebarPgName,
    #ownerDashboardScreen .sidebar.collapsed .sidebar-label,
    #ownerDashboardScreen .sidebar.collapsed .sidebar-search-kbd {
        display: none !important;
    }

    #ownerDashboardScreen .sidebar.collapsed .sidebar-header,
    .sidebar.collapsed .sidebar-header {
        justify-content: center !important;
        padding: 0 0 16px 0 !important;
        gap: 0 !important;
    }

    #ownerDashboardScreen .sidebar.collapsed .sidebar-link,
    .sidebar.collapsed .sidebar-link {
        justify-content: center !important;
        padding: 12px 0 !important;
        margin: 4px 0 !important;
        width: 100% !important;
    }

    #ownerDashboardScreen .sidebar.collapsed .sidebar-link .icon,
    .sidebar.collapsed .sidebar-link .icon {
        margin: 0 !important;
    }

    #ownerDashboardScreen .sidebar.collapsed .sidebar-search-item,
    .sidebar.collapsed .sidebar-search-item {
        justify-content: center !important;
        padding: 10px 0 !important;
    }

    #ownerDashboardScreen .sidebar.collapsed .sidebar-toggle-btn,
    .sidebar.collapsed .sidebar-toggle-btn {
        margin: 8px auto 0 auto !important;
    }
}

/* Header Sidebar Toggle (Open/Close option on Dashboard Header) */
.header-sidebar-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    flex-shrink: 0 !important;
}

.header-sidebar-toggle:hover {
    background: rgba(99, 102, 241, 0.18) !important;
    border-color: rgba(168, 85, 247, 0.45) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.header-sidebar-toggle.sidebar-is-collapsed {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%) !important;
    border-color: rgba(168, 85, 247, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.35) !important;
}

/* Inside Sidebar Header Toggle Button */
.sidebar-toggle-btn {
    margin-left: auto !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
}

#ownerDashboardScreen .main-content,
.main-content,
#ownerDashboardScreen #ownerDashHeader,
#ownerDashboardScreen .dash-top-header,
#ownerDashboardScreen [id^="tab_"] {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Dashboard Top Header — sticky frosted bar */
#ownerDashboardScreen .dash-top-header,
#ownerDashboardScreen #ownerDashHeader,
.dash-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 32px !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    width: 100% !important;
    padding-bottom: 24px !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.dash-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-header-sub {
    font-size: 0.88rem !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

#ownerDashboardScreen #ownerDashTitle {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.03em !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.dash-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

/* Action Buttons */
.btn-dash-action {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(16, 18, 28, 0.6) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    color: #e2e8f0 !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-dash-action:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(20, 22, 34, 0.75) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 25px rgba(99, 102, 241, 0.3) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.btn-dash-subtle {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #94a3b8 !important;
}

/* Toolbar row & quick chips */
.dash-toolbar-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    margin-bottom: 22px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

.dash-quick-chips {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

/* Quick Dock */
.dash-quick-dock {
    display: flex !important;
    gap: 12px !important;
    margin: 20px 0 28px 0 !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

.dock-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 18px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(16, 18, 28, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    color: #e2e8f0 !important;
    font-weight: 600 !important;
    font-size: 0.86rem !important;
    cursor: pointer !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dock-action-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(20, 22, 36, 0.75) !important;
    border-color: rgba(168, 85, 247, 0.45) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 28px rgba(99, 102, 241, 0.35) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

.dock-btn-icon {
    font-size: 1.15rem !important;
}

.dock-btn-label {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

/* =====================================================
   GLASS KPI SUMMARY CARDS
   ===================================================== */

#ownerDashboardScreen .summary-cards,
.summary-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 18px !important;
    margin-bottom: 28px !important;
}

#ownerDashboardScreen .summary-card,
.summary-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(14, 16, 26, 0.68) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 22px !important;
    padding: 24px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 20px 45px -12px rgba(0, 0, 0, 0.55) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

#ownerDashboardScreen .summary-card:hover,
.summary-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(168, 85, 247, 0.45) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 25px 60px -10px rgba(99, 102, 241, 0.32) !important;
}

#ownerDashboardScreen .summary-card h3,
.summary-card h3 {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    margin: 0 0 10px 0 !important;
}

#ownerDashboardScreen .summary-card p,
.summary-card p {
    font-size: 2.1rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.03em !important;
    margin: 0 !important;
    line-height: 1.15 !important;
}

/* Progress bar inside KPI Card */
.progress-bar-bg {
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 9999px !important;
    height: 8px !important;
    overflow: hidden !important;
    display: flex !important;
    margin-top: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

#ownerDashboardScreen #rentProgressBar {
    background: linear-gradient(90deg, #10b981, #34d399) !important;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.45) !important;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#ownerDashboardScreen #pendingProgressBar {
    background: linear-gradient(90deg, #f59e0b, #fbbf24) !important;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.45) !important;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 4px 10px !important;
    border-radius: 9999px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
}

.card-kpi-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}

.card-kpi-icon {
    font-size: 1.3rem !important;
    opacity: 0.85 !important;
}

.card-kpi-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 14px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.card-action-hint {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.summary-card:hover .card-action-hint {
    color: #c084fc !important;
    transform: translateX(3px) !important;
}

.kpi-metric-green {
    font-size: 2.1rem !important;
    font-weight: 800 !important;
    color: #34d399 !important;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.35) !important;
    letter-spacing: -0.02em !important;
}

.kpi-metric-red {
    font-size: 2.1rem !important;
    font-weight: 800 !important;
    color: #f87171 !important;
    text-shadow: 0 0 20px rgba(248, 113, 113, 0.35) !important;
    letter-spacing: -0.02em !important;
}

.kpi-metric-amber {
    font-size: 2.1rem !important;
    font-weight: 800 !important;
    color: #fbbf24 !important;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.35) !important;
    letter-spacing: -0.02em !important;
}

.kpi-metric-profit {
    font-size: 2.1rem !important;
    font-weight: 800 !important;
    color: #38bdf8 !important;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.35) !important;
    letter-spacing: -0.02em !important;
}

/* =====================================================
   GLASS ORDERS / TENANTS TABLE
   ===================================================== */

.orders-table-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(14, 16, 26, 0.7) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 24px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 24px 60px -15px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden !important;
    margin-top: 8px !important;
}

.orders-search-bar {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 18px 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.orders-search-input {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    width: 100% !important;
    outline: none !important;
}

.orders-search-input::placeholder {
    color: #64748b !important;
}

.orders-table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}

.orders-table th {
    padding: 16px 20px !important;
    color: #64748b !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.015) !important;
}

.orders-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: background 0.15s ease !important;
}

.orders-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

.orders-table tbody tr:last-child {
    border-bottom: none !important;
}

.orders-table td {
    padding: 16px 20px !important;
    vertical-align: middle !important;
    font-size: 0.88rem !important;
}

.order-patient-name {
    font-weight: 700 !important;
    color: #ffffff !important;
    font-size: 0.94rem !important;
    letter-spacing: -0.01em !important;
}

.order-patient-dob {
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
    margin-top: 3px !important;
}

/* Status Badges */
#ownerDashboardScreen .badge,
.badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 12px !important;
    border-radius: 9999px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

#ownerDashboardScreen .badge.paid,
.badge.paid {
    background: rgba(52, 211, 153, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.35) !important;
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.2) !important;
}

#ownerDashboardScreen .badge.pending,
.badge.pending {
    background: rgba(251, 191, 36, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.35) !important;
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.2) !important;
}

#ownerDashboardScreen .badge.overdue,
.badge.overdue {
    background: rgba(248, 113, 113, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(248, 113, 113, 0.35) !important;
    box-shadow: 0 0 14px rgba(248, 113, 113, 0.2) !important;
}

/* Search bar & filter pills in tenants tab */
#ownerDashboardScreen #roomSearch,
#ownerDashboardScreen #statusFilter,
#ownerDashboardScreen #globalSearchInput {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 9999px !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    font-size: 0.88rem !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(16px) !important;
    transition: all 0.2s ease !important;
}

#ownerDashboardScreen #roomSearch:focus,
#ownerDashboardScreen #statusFilter:focus,
#ownerDashboardScreen #globalSearchInput:focus {
    border-color: #a855f7 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 4px rgba(168, 85, 247, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    outline: none !important;
}

/* Analytics Cards */
.dash-analytics-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 1024px) {
    .dash-analytics-grid {
        grid-template-columns: 1fr;
    }
}

.analytics-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(14, 16, 26, 0.68) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 24px !important;
    padding: 26px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 20px 50px -15px rgba(0, 0, 0, 0.6) !important;
}

/* =====================================================
   SAAS ONBOARDING & LOGIN GLASS POLISH
   ===================================================== */

/* Completely hide obsolete password & on-hold blocks */
#regBusinessEmail,
#regBusinessEmailPwd,
#regEmailPwd,
#engineSetupModalOverlay,
#verifyMsg,
#helloScreenOverlay,
#upgradeModalOverlay:not(.active),
#expirationOverlay:not(.active) {
    display: none !important;
    pointer-events: none !important;
}

#signupScreen .glass-panel {
    max-width: 480px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(16, 18, 28, 0.88) !important;
    backdrop-filter: blur(35px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(35px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 28px !important;
    padding: 38px 34px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 35px 85px rgba(0, 0, 0, 0.8) !important;
    text-align: center !important;
}

#signupScreen .custom-input,
#loginScreen .custom-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.2s ease !important;
}

#signupScreen .custom-input:focus,
#loginScreen .custom-input:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    outline: none !important;
}

#loginScreen .glass-panel {
    max-width: 440px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(16, 18, 28, 0.88) !important;
    backdrop-filter: blur(35px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(35px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 28px !important;
    padding: 38px 34px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 35px 85px rgba(0, 0, 0, 0.8) !important;
    text-align: center !important;
}

/* =====================================================
   TENANT APP & PORTAL: GLASSMORPHIC REDESIGN
   ===================================================== */

/* Tenant Login Screen */
#tenantLoginScreen .glass-panel {
    max-width: 440px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(14, 16, 26, 0.75) !important;
    backdrop-filter: blur(32px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 28px !important;
    padding: 44px 36px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 35px 85px rgba(0, 0, 0, 0.75) !important;
    text-align: center !important;
}

#tenantLoginScreen .custom-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.2s ease !important;
}

#tenantLoginScreen .custom-input:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Tenant App Dashboard Container */
#tenantDashboardScreen {
    background: transparent !important;
    min-height: 100vh;
    padding: 24px 16px 60px 16px !important;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Tenant Top Header Bar */
.tenant-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(14, 16, 26, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 14px 20px;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Tenant Hero Dues Glass Card */
.tenant-hero-card {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.1) 50%, rgba(16, 18, 30, 0.75) 100%) !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 28px !important;
    padding: 32px 24px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 30px 65px -12px rgba(99, 102, 241, 0.35) !important;
    margin-bottom: 20px !important;
}

.tenant-hero-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    top: -80px;
    right: -80px;
    pointer-events: none;
}

.tenant-amount-large {
    font-size: 3.2rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em !important;
    color: #ffffff !important;
    margin: 12px 0 !important;
    line-height: 1 !important;
    text-shadow: 0 4px 25px rgba(255, 255, 255, 0.2) !important;
}

/* Tenant App Pay Button */
#t_payBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 16px 28px !important;
    border-radius: 18px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 30px rgba(99, 102, 241, 0.45) !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#t_payBtn:not(:disabled):hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 16px 36px rgba(168, 85, 247, 0.55) !important;
}

#t_payBtn:disabled {
    opacity: 0.7 !important;
    cursor: default !important;
    box-shadow: none !important;
}

/* Tenant Metric Sub-Cards */
.tenant-metrics-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    margin-bottom: 22px !important;
}

.tenant-subcard {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(14, 16, 26, 0.65) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    padding: 18px 20px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Tenant Global Notices Board */
.tenant-notices-board {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(14, 16, 26, 0.65) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 24px !important;
    padding: 24px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 40px rgba(0, 0, 0, 0.4) !important;
    margin-bottom: 24px !important;
}

/* Tenant Profile Screen */
#t_profileScreen {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    padding: 24px 16px 60px 16px;
    box-sizing: border-box;
}

#t_profileScreen .glass-card,
#t_profileScreen .glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(14, 16, 26, 0.68) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 24px !important;
    padding: 26px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 18px 45px rgba(0, 0, 0, 0.45) !important;
    margin-bottom: 20px !important;
}

#t_profileScreen .custom-input,
#t_profileScreen select,
#t_profileScreen textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    color: #ffffff !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    margin-bottom: 12px !important;
}

#t_profileScreen .custom-input:focus,
#t_profileScreen textarea:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* =====================================================
   GLASS MODALS & TOAST NOTIFICATIONS
   ===================================================== */

body.modal-open,
html.modal-open {
    overflow: hidden !important;
}

.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.78) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    z-index: 99999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

.modal-overlay.active {
    display: flex !important;
}

.modal-overlay .modal,
.modal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(16, 18, 28, 0.94) !important;
    backdrop-filter: blur(35px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(35px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 28px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 35px 85px rgba(0, 0, 0, 0.8) !important;
    padding: 36px !important;
    max-width: 580px !important;
    width: 100% !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    margin: auto !important;
    position: relative !important;
    transform: scale(0.96) translateY(10px) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#modalOverlay .modal {
    max-width: 780px !important;
}

@media (max-width: 680px) {
    #modalOverlay .modal {
        padding: 24px 18px !important;
        max-width: 96vw !important;
    }
    #modalOverlay .modal div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0) !important;
}

/* Glass Inputs in Modals */
.modal .custom-input,
.modal select,
.modal textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    padding: 13px 18px !important;
    color: #ffffff !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.modal .custom-input:focus,
.modal select:focus,
.modal textarea:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Toast with Glassmorphism */
#appToast {
    position: fixed !important;
    top: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-20px) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(16, 18, 28, 0.88) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    padding: 14px 24px !important;
    border-radius: 18px !important;
    z-index: 100000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#appToast.show {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
}

/* =====================================================
   ROOMS, EXPENSES & SETTINGS GLASS CARDS
   ===================================================== */

.list-item-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(14, 16, 26, 0.68) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    padding: 18px 22px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 28px rgba(0, 0, 0, 0.35) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.list-item-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(20, 22, 36, 0.78) !important;
    border-color: rgba(168, 85, 247, 0.45) !important;
    transform: translateY(-2px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 16px 36px rgba(99, 102, 241, 0.3) !important;
}

#tab_settings .glass-panel,
#tab_settings .glass-card,
#tab_settings > div > div,
#tab_settings form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(14, 16, 26, 0.7) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 24px !important;
    padding: 28px !important;
    margin-bottom: 22px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 20px 50px rgba(0, 0, 0, 0.45) !important;
}

/* AI Assistant Glass View */
#tab_ai .glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(12, 14, 22, 0.8) !important;
    backdrop-filter: blur(32px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 26px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 30px 70px rgba(0, 0, 0, 0.6) !important;
}

/* =====================================================
   MOBILE RESPONSIVENESS (< 768px)
   ===================================================== */

@media (max-width: 768px) {
    #ownerDashboardScreen .sidebar,
    .sidebar {
        transform: translateX(-100%);
        width: 270px !important;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.8) !important;
    }

    #ownerDashboardScreen .sidebar.mobile-open,
    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }

    #dashMainContent {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px 16px 60px 16px !important;
    }

    #mobileMenuBtn {
        display: inline-flex !important;
    }

    #ownerDashboardScreen .main-content,
    .main-content,
    #ownerDashboardScreen #ownerDashHeader,
    #ownerDashboardScreen .dash-top-header,
    #ownerDashboardScreen [id^="tab_"] {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .dash-header,
    #ownerDashboardScreen .dash-top-header,
    #ownerDashboardScreen #ownerDashHeader {
        margin-bottom: 20px !important;
    }

    #ownerDashboardScreen #ownerDashTitle {
        font-size: 1.45rem !important;
    }

    #ownerDashboardScreen .summary-cards,
    .summary-cards {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    #ownerDashboardScreen .summary-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    .orders-table-wrapper {
        border-radius: 18px !important;
    }

    .orders-table {
        display: block !important;
        overflow-x: auto !important;
    }

    .dash-analytics-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   ENHANCED INTERACTIVE LANDING PAGE & AI SUPPORT CHATBOT
   ========================================================= */

/* Hero badge */
.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #ede9fe !important;
    border: 1px solid #c4b5fd !important;
    border-radius: var(--radius-pill);
    color: #6d28d9 !important;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.08);
    letter-spacing: 0.02em;
    animation: none !important;
}

/* Live Stats Bar */
.landing-stats-bar {
    max-width: 1100px;
    margin: 40px auto 0 auto;
    padding: 24px 30px;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04) !important;
}

.stat-metric-item {
    text-align: center;
    padding: 10px;
    transition: transform 0.2s ease;
}

.stat-metric-item:hover {
    transform: translateY(-2px);
}

.stat-metric-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    background: none !important;
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-metric-label {
    font-size: 0.85rem;
    color: #475569 !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .landing-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 20px 16px;
    }
    .stat-metric-num {
        font-size: 1.7rem;
    }
}

/* Interactive Tabs Showcase */
.showcase-tabs-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.showcase-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.showcase-tab-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

.showcase-tab-btn.active {
    background: #6366f1 !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
}

.showcase-mockup-frame {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px;
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.mockup-window-header {
    background: #f8fafc !important;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0 !important;
}

.window-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-body {
    padding: 24px;
    min-height: 380px;
    background: #ffffff !important;
    color: #0f172a !important;
}

/* Interactive ROI Calculator */
.roi-card-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--radius-card);
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.08) !important;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    color: #0f172a !important;
}

@media (max-width: 860px) {
    .roi-card-container {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 30px;
    }
}

.roi-slider-group {
    margin-bottom: 28px;
}

.roi-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.roi-slider-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a !important;
}

.roi-slider-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #6d28d9 !important;
    background: #ede9fe !important;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid #ddd6fe !important;
}

.custom-range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: #e2e8f0 !important;
    outline: none;
}

.custom-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.5);
    border: 2px solid #ffffff;
    transition: transform 0.15s ease;
}

.custom-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.roi-results-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px;
    padding: 30px;
    box-shadow: none !important;
}

.roi-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0 !important;
}

.roi-stat-row:last-child {
    border-bottom: none !important;
}

/* Tenant App Mobile Mockup Preview */
.mobile-preview-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1050px;
    margin: 0 auto;
}

.phone-mockup-frame {
    width: 290px;
    height: 570px;
    background: #0f172a;
    border-radius: 44px;
    border: 8px solid #1e293b;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.phone-notch {
    width: 110px;
    height: 20px;
    background: #1e293b;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.phone-screen-content {
    flex: 1;
    background: #f8fafc !important;
    padding: 16px;
    color: #0f172a !important;
    font-size: 0.85rem;
    overflow-y: auto;
}

/* Testimonials section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.1) !important;
    border-color: #cbd5e1 !important;
}

.review-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.review-text {
    color: #334155 !important;
    line-height: 1.65;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

/* FAQ Accordion */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.faq-item.active {
    border-color: #a855f7 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 20px -6px rgba(168, 85, 247, 0.12) !important;
}

.faq-question-btn {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 24px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a !important;
}

.faq-chevron {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: #7c3aed !important;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    color: #475569 !important;
    font-size: 0.95rem;
    line-height: 1.65;
    padding: 0 24px;
}

.faq-item.active .faq-answer-panel {
    max-height: 250px;
    padding-bottom: 20px;
}

/* =========================================================
   FLOATING AI SUPPORT CHATBOT (GEMINI 3.5 FLASH LITE)
   ========================================================= */

.support-chat-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: inherit;
}

/* Launcher Button */
.support-chat-launcher {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.7rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    position: relative;
}

.support-chat-launcher:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.55);
}

.support-chat-launcher:active {
    transform: scale(0.95);
}

/* Online Pulse Dot */
.support-online-pulse {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 6px #10b981;
}

/* Teaser Notification Badge */
.support-teaser-badge {
    position: absolute;
    right: 72px;
    bottom: 12px;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    color: #0f172a !important;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    animation: none !important;
    transition: transform 0.2s ease;
}

.support-teaser-badge:hover {
    transform: translateX(-3px);
}

/* Chat Dialog Window */
.support-chat-window {
    position: absolute;
    bottom: 74px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 110px);
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.support-chat-window.active {
    display: flex;
}

/* Header */
.support-chat-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.support-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.support-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.support-header-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a !important;
    line-height: 1.2;
}

.support-header-sub {
    font-size: 0.75rem;
    color: #059669 !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.support-header-sub::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #059669;
    border-radius: 50%;
}

.support-close-btn {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.15s, color 0.15s;
}

.support-close-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Quick Suggestion Chips */
.support-chips-bar {
    padding: 10px 14px;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.support-chips-bar::-webkit-scrollbar {
    display: none;
}

.support-chip {
    flex-shrink: 0;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155 !important;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.support-chip:hover {
    background: #ede9fe !important;
    border-color: #a855f7 !important;
    color: #6d28d9 !important;
}

/* Messages area */
.support-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff !important;
}

.support-msg {
    max-width: 86%;
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
}

.support-msg.bot {
    align-self: flex-start;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    border-bottom-left-radius: 4px;
}

.support-msg.bot a {
    color: #6366f1 !important;
    text-decoration: underline;
}

.support-msg.bot strong {
    color: #0f172a !important;
}

.support-msg.user {
    align-self: flex-end;
    background: #6366f1 !important;
    color: #ffffff !important;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.support-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: 14px;
    align-self: flex-start;
    border: 1px solid #e2e8f0;
}

.support-typing-dot {
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
    animation: typingPulse 1.4s infinite ease-in-out;
}

.support-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.support-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.1); opacity: 1; }
}

/* Chat Input Bar */
.support-input-bar {
    padding: 12px 14px;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex;
    gap: 8px;
    align-items: center;
}

.support-input-field {
    flex: 1;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--radius-pill);
    padding: 10px 16px;
    color: #0f172a !important;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}

.support-input-field:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.support-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    transition: transform 0.15s;
}

.support-send-btn:hover {
    transform: scale(1.06);
}

.support-send-btn:active {
    transform: scale(0.94);
}

/* Global Font Family & Text Contrast Guarantee */
*, *::before, *::after, html, body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, span, a, div, table, tr, td, th, label, ul, li {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

body.on-landing #landingScreen p,
body.on-landing #landingScreen .section-subtitle,
body.on-landing #landingScreen .landing-subtitle {
    color: #475569 !important;
}

body.on-landing #landingScreen h1,
body.on-landing #landingScreen h2,
body.on-landing #landingScreen h3,
body.on-landing #landingScreen h4,
body.on-landing #landingScreen .section-title {
    color: #0f172a !important;
}

/* Dashboard Core Layout */
.sidebar {
    width: 260px;
    height: 100vh;
    background: #0b0f19;
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    position: sticky;
    top: 0;
    transition: width 0.3s ease;
    z-index: 50;
}

.sidebar.collapsed {
    width: 76px;
}

.sidebar.collapsed .sidebar-text {
    display: none;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-logo-badge {
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}

.sidebar-brand-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
}

.sidebar-brand-sub {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.sidebar-search-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    cursor: text;
    transition: all 0.2s;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.sidebar-search-item:hover {
    background: rgba(255,255,255,0.05);
}

.sidebar-search-kbd {
    margin-left: auto;
    font-size: 0.7rem;
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #cbd5e1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.04);
    color: white;
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(99,102,241,0.15) 0%, rgba(99,102,241,0.05) 100%);
    color: #a5b4fc;
    border-left: 3px solid #6366f1;
}

.sidebar-link .icon {
    min-width: 20px;
    display: flex;
    justify-content: center;
}

#tab_overview, #tab_tenants, #tab_rooms, #tab_expenses {
    flex-grow: 1;
    padding: 32px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Dashboard Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.summary-card {
    background: rgba(20, 25, 40, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

.interactive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(99,102,241,0.3);
    cursor: pointer;
}

.card-kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-kpi-header h3 {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.card-kpi-icon {
    font-size: 1.4rem;
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 12px;
}

.summary-card p {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: white;
    letter-spacing: -0.03em;
}

.kpi-metric-green { color: #34d399 !important; font-size: 1.8rem; font-weight: 800; }
.kpi-metric-red { color: #f87171 !important; font-size: 1.8rem; font-weight: 800; }
.kpi-metric-amber { color: #fbbf24 !important; }
.kpi-metric-profit { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.card-kpi-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 16px;
}

.card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-neutral { background: rgba(255,255,255,0.1); color: #e2e8f0; }
.badge-warning { background: rgba(251,191,36,0.15); color: #fbbf24; }

.card-action-hint {
    font-size: 0.8rem;
    color: #6366f1;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateX(-10px);
}

.interactive-card:hover .card-action-hint {
    opacity: 1;
    transform: translateX(0);
}

.dash-toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.dash-quick-chips {
    display: flex;
    gap: 12px;
}

.quick-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #e2e8f0;
    font-weight: 500;
}

.quick-chip strong {
    color: white;
}

.rent-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    display: flex;
    overflow: hidden;
}

.progress-fill-green { background: #34d399; }
.progress-fill-red { background: #f87171; }

.btn-dash-action {
    background: white;
    color: #0f172a;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(255,255,255,0.15);
}

.btn-dash-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.25);
}

.btn-dash-subtle {
    background: rgba(255,255,255,0.08);
    color: white;
    box-shadow: none;
}

.btn-dash-subtle:hover {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Tenant Directory Table */
.data-table-container {
    background: rgba(20, 25, 40, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dash-table th {
    background: rgba(0,0,0,0.2);
    padding: 16px 24px;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dash-table td {
    padding: 16px 24px;
    color: #e2e8f0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dash-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* Specific interactive text that caused user confusion */
.broken-text-fix {
    display: none !important;
}

/* Mobile Sidebar Overrides */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        z-index: 200;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    #mobileMenuBtn {
        display: inline-flex !important;
    }
}

/* =====================================================
   DASHBOARD PREMIUM POLISH
   ===================================================== */

/* Sidebar — refined gradient logo badge */
.sidebar-logo-badge {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #a855f7 100%) !important;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.5) !important;
    border-radius: 10px !important;
    width: 32px !important;
    height: 32px !important;
}

/* Sidebar brand name — more visible */
.sidebar-brand-name {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #e2e8f0 !important;
    letter-spacing: -0.025em !important;
}

.sidebar-brand-sub {
    font-size: 0.67rem !important;
    color: #4b5563 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

/* Sidebar links — tighter active pill */
.sidebar-link {
    font-size: 0.84rem !important;
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(168, 85, 247, 0.12) 100%) !important;
    color: #c084fc !important;
    border-left: 2px solid #a855f7 !important;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.04) !important;
    color: #cbd5e1 !important;
}

/* Main content scrollbar — thin and subtle */
#ownerDashboardScreen > div > div:last-child::-webkit-scrollbar {
    width: 5px;
}
#ownerDashboardScreen > div > div:last-child::-webkit-scrollbar-track {
    background: transparent;
}
#ownerDashboardScreen > div > div:last-child::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
}
#ownerDashboardScreen > div > div:last-child::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.35);
}

/* KPI Cards — colored top accent line */
.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(99,102,241,0.6), rgba(168,85,247,0.6));
    border-radius: 22px 22px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.summary-card:hover::before {
    opacity: 1;
}

/* Dashboard title — crisp gradient */
#ownerDashboardScreen #ownerDashTitle {
    background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-size: 1.65rem !important;
}

/* Header action buttons — slightly more vibrant hover */
.btn-dash-action {
    font-size: 0.82rem !important;
    padding: 9px 16px !important;
    border-radius: 10px !important;
}

/* Quick chips — polished pill style */
.quick-chip {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 999px !important;
    padding: 5px 14px !important;
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

.quick-chip strong {
    color: #e2e8f0 !important;
    font-weight: 700 !important;
}

/* Toolbar row — better spacing */
.dash-toolbar-row {
    margin-bottom: 24px !important;
}

/* Inline add-tenant row highlight */
#inline-add-tenant-row td {
    vertical-align: middle;
}

/* Tenant table row hover */
.orders-table-row:hover td {
    background: rgba(255,255,255,0.025) !important;
}

/* Fade-in animation for newly added rows */
@keyframes fadeInRow {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.orders-table-row {
    animation: fadeInRow 0.3s ease;
}