:root {
    --qq-navy: #1a3668;
    --qq-navy-dark: #122648;
    --qq-gold: #b8860b;
    --qq-gold-light: #d4a84b;
    --qq-sidebar-width: 260px;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background-color: #f4f6f9;
}

.qq-brand {
    color: var(--qq-gold);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Brand logo */
.qq-logo {
    display: block;
    width: auto;
    object-fit: contain;
}

.qq-logo--sm {
    height: 32px;
    max-width: 160px;
}

.qq-logo--md {
    height: 44px;
    max-width: 220px;
}

.qq-logo--lg {
    height: 56px;
    max-width: 280px;
}

.qq-logo--sidebar {
    height: auto;
    max-height: 72px;
    width: 100%;
    max-width: 100%;
}

.qq-logo-wrap--dark {
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.5rem 0.65rem;
    line-height: 0;
}

.qq-avatar {
    display: inline-block;
    object-fit: cover;
    background: #f2f5fb;
}

.qq-avatar-sm { width: 38px; height: 38px; }
.qq-avatar-md { width: 88px; height: 88px; }
.qq-avatar-lg { width: 96px; height: 96px; }

.qq-topbar .qq-logo-wrap {
    flex-shrink: 0;
}

.qq-sidebar .qq-sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 0 !important;
}

.qq-auth-logo .qq-logo--lg {
    max-width: min(100%, 320px);
    height: auto;
    max-height: 80px;
    margin-left: auto;
    margin-right: auto;
}

.qq-sidebar {
    width: var(--qq-sidebar-width);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, var(--qq-navy) 0%, var(--qq-navy-dark) 100%);
    color: #fff;
    z-index: 1040;
}

.qq-sidebar-brand {
    flex-shrink: 0;
    padding: 1rem 1rem 0.85rem;
}

.qq-sidebar-nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 0.65rem 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 168, 75, 0.55) rgba(255, 255, 255, 0.08);
}

.qq-sidebar-nav-scroll::-webkit-scrollbar {
    width: 7px;
}

.qq-sidebar-nav-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    margin: 4px 0;
}

.qq-sidebar-nav-scroll::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 75, 0.45);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.qq-sidebar-nav-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 75, 0.7);
    background-clip: padding-box;
}

.qq-sidebar-nav {
    padding-bottom: 0.5rem;
}

.qq-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    border-radius: 0.375rem;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
    padding: 0.45rem 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qq-sidebar .text-uppercase.small {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.qq-sidebar .nav-link:hover,
.qq-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.qq-sidebar .nav-link.active {
    border-left: 3px solid var(--qq-gold);
}

.qq-topbar {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}

.qq-stat-card {
    border: none;
    border-top: 3px solid var(--qq-gold);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.qq-auth-card {
    max-width: 420px;
    border-top: 4px solid var(--qq-gold);
}

.qq-auth-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--qq-navy) 0%, var(--qq-navy-dark) 55%, #0d1a33 100%);
}

/* —— Login page (split layout + motion) —— */
.qq-auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background: #0d1a33;
}

.qq-login-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.qq-login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(145deg, var(--qq-navy-dark) 0%, var(--qq-navy) 40%, #1e4a8c 100%);
    overflow: hidden;
}

.qq-login-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 30% 50%, black 20%, transparent 75%);
    animation: qq-login-grid-drift 24s linear infinite;
}

.qq-login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    pointer-events: none;
}

.qq-login-orb--1 {
    width: 420px;
    height: 420px;
    background: var(--qq-gold);
    top: -8%;
    left: -6%;
    animation: qq-login-float-a 14s ease-in-out infinite;
}

.qq-login-orb--2 {
    width: 320px;
    height: 320px;
    background: #3d7dd4;
    bottom: 10%;
    left: 18%;
    animation: qq-login-float-b 18s ease-in-out infinite;
}

.qq-login-orb--3 {
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.15);
    top: 35%;
    right: 5%;
    animation: qq-login-float-c 12s ease-in-out infinite;
}

.qq-login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 1.25rem;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
}

@media (min-width: 992px) {
    .qq-login-shell {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2rem;
    }
}

.qq-login-hero {
    color: #fff;
    padding: 1rem 0 2rem;
}

@media (min-width: 992px) {
    .qq-login-hero {
        padding: 2rem 1.5rem 2rem 0;
    }
}

.qq-login-hero-inner {
    max-width: 440px;
}

.qq-login-hero-logo.qq-logo-wrap--dark {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.65rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.qq-login-kicker {
    color: var(--qq-gold-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    animation: qq-login-shimmer 4s ease-in-out infinite;
}

.qq-login-headline {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.75rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.qq-login-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.qq-login-feature {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
}

.qq-login-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--qq-gold-light);
    flex-shrink: 0;
    transition: transform 0.35s ease, background 0.35s ease;
}

.qq-login-feature:hover .qq-login-feature-icon {
    transform: scale(1.08) rotate(-3deg);
    background: rgba(212, 168, 75, 0.2);
}

.qq-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.qq-login-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: none;
    border-radius: 1rem;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 24px 48px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.qq-login-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--qq-gold), var(--qq-gold-light), var(--qq-gold));
    background-size: 200% 100%;
    animation: qq-login-accent-slide 3s ease infinite;
}

.qq-login-title {
    color: var(--qq-navy);
    font-weight: 700;
}

.qq-login-link {
    color: var(--qq-navy);
}

.qq-login-link:hover {
    color: var(--qq-gold);
}

.qq-login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.qq-login-input-icon {
    position: absolute;
    left: 0.85rem;
    color: #6c757d;
    pointer-events: none;
    z-index: 2;
    transition: color 0.25s ease;
}

.qq-login-input {
    padding-left: 2.65rem;
    padding-right: 2.5rem;
    border-radius: 0.65rem;
    border: 1px solid #dee2e6;
    min-height: 48px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.qq-login-input-wrap.is-focused .qq-login-input {
    border-color: var(--qq-navy);
    box-shadow: 0 0 0 3px rgba(26, 54, 104, 0.12);
}

.qq-login-input-wrap.is-focused .qq-login-input-icon {
    color: var(--qq-navy);
}

.qq-login-toggle-pw {
    position: absolute;
    right: 0.35rem;
    border: none;
    background: transparent;
    color: #6c757d;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: color 0.2s ease, background 0.2s ease;
}

.qq-login-toggle-pw:hover {
    color: var(--qq-navy);
    background: rgba(26, 54, 104, 0.06);
}

.qq-login-submit {
    position: relative;
    min-height: 48px;
    font-weight: 600;
    border-radius: 0.65rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qq-login-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(26, 54, 104, 0.25);
}

.qq-login-submit.is-loading {
    pointer-events: none;
    opacity: 0.92;
}

.qq-login-submit-spinner {
    display: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: qq-login-spin 0.7s linear infinite;
    margin: 0 auto;
}

.qq-login-submit.is-loading .qq-login-submit-text {
    display: none;
}

.qq-login-submit.is-loading .qq-login-submit-spinner {
    display: block;
}

.qq-login-flash .alert {
    border-radius: 0.65rem;
    animation: qq-login-fade-up 0.45s ease backwards;
}

/* Staggered entrance */
.qq-login-animate {
    opacity: 0;
    animation: qq-login-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.qq-login-animate--1 { animation-delay: 0.05s; }
.qq-login-animate--2 { animation-delay: 0.15s; }
.qq-login-animate--3 { animation-delay: 0.22s; }
.qq-login-animate--4 { animation-delay: 0.29s; }
.qq-login-animate--5 { animation-delay: 0.36s; }
.qq-login-animate--6 { animation-delay: 0.12s; }

@keyframes qq-login-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes qq-login-float-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 25px) scale(1.05); }
}

@keyframes qq-login-float-b {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -30px); }
}

@keyframes qq-login-float-c {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 15px) scale(1.08); }
}

@keyframes qq-login-grid-drift {
    from { transform: translateY(0); }
    to { transform: translateY(48px); }
}

@keyframes qq-login-accent-slide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes qq-login-shimmer {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

@keyframes qq-login-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .qq-login-animate,
    .qq-login-orb,
    .qq-login-grid,
    .qq-login-kicker,
    .qq-login-card-accent,
    .qq-login-flash .alert {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .qq-login-feature-icon,
    .qq-login-submit {
        transition: none;
    }
}

/* Login — mobile & small tablets */
@media (max-width: 991.98px) {
    .qq-login-hero,
    .qq-login-headline,
    .qq-login-features,
    .qq-login-kicker {
        display: none !important;
    }

    .qq-auth-page {
        background: linear-gradient(180deg, var(--qq-navy-dark) 0%, var(--qq-navy) 38%, #0d1a33 100%);
    }

    .qq-login-page {
        min-height: 100vh;
        min-height: 100dvh;
        align-items: flex-start;
    }

    .qq-login-bg .qq-login-orb--1 {
        width: 220px;
        height: 220px;
        top: -4%;
        left: -20%;
        opacity: 0.35;
    }

    .qq-login-bg .qq-login-orb--2 {
        width: 180px;
        height: 180px;
        left: auto;
        right: -12%;
        bottom: auto;
        top: 12%;
        opacity: 0.3;
    }

    .qq-login-bg .qq-login-orb--3 {
        width: 140px;
        height: 140px;
        bottom: 8%;
        right: auto;
        left: 10%;
        opacity: 0.25;
    }

    .qq-login-grid {
        background-size: 32px 32px;
        opacity: 0.6;
    }

    .qq-login-shell {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        min-height: auto;
        padding:
            max(0.75rem, env(safe-area-inset-top))
            max(1rem, env(safe-area-inset-right))
            max(1.25rem, env(safe-area-inset-bottom))
            max(1rem, env(safe-area-inset-left));
        align-items: stretch;
        justify-content: flex-start;
        max-width: 100%;
    }

    .qq-login-mobile-top {
        text-align: center;
        color: #fff;
        flex-shrink: 0;
    }

    .qq-login-mobile-top-inner {
        margin-bottom: 0.85rem;
    }

    .qq-login-mobile-logo.qq-logo-wrap--dark {
        display: inline-flex;
        background: rgba(255, 255, 255, 0.96);
        padding: 0.5rem 0.85rem;
        border-radius: 0.65rem;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
        margin: 0 auto;
    }

    .qq-login-mobile-logo .qq-logo--md {
        max-height: 48px;
        width: auto;
    }

    .qq-login-mobile-tagline {
        margin: 0.65rem 0 0;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--qq-gold-light);
    }

    .qq-login-mobile-top-inner {
        margin-bottom: 0;
    }

    .qq-login-panel {
        flex: 1 1 auto;
        width: 100%;
        align-items: stretch;
    }

    .qq-login-card {
        max-width: none;
        width: 100%;
        border-radius: 1.1rem;
        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.06),
            0 16px 40px rgba(0, 0, 0, 0.22);
    }

    .qq-login-card-body {
        padding: 1.25rem 1.15rem 1.35rem !important;
    }

    .qq-login-title {
        font-size: 1.2rem;
    }

    .qq-login-input {
        font-size: 16px;
        min-height: 50px;
    }

    .qq-login-toggle-pw {
        width: 2.75rem;
        height: 2.75rem;
        right: 0.2rem;
    }

    .qq-login-submit {
        min-height: 50px;
        font-size: 1rem;
    }

    .qq-login-footer-links {
        margin-top: 1rem !important;
        padding-top: 1rem !important;
    }

    .qq-login-flash .alert {
        font-size: 0.875rem;
        padding: 0.65rem 0.75rem;
    }
}

@media (max-width: 380px) {
    .qq-login-shell {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

.btn-qq-primary {
    background-color: var(--qq-navy);
    border-color: var(--qq-navy);
    color: #fff;
}

.btn-qq-primary:hover {
    background-color: var(--qq-navy-dark);
    border-color: var(--qq-navy-dark);
    color: #fff;
}

@media (max-width: 991.98px) {
    .qq-sidebar {
        position: fixed;
        z-index: 1040;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    .qq-sidebar.show {
        transform: translateX(0);
    }

    .qq-main {
        margin-left: 0 !important;
    }
}

.qq-main {
    margin-left: var(--qq-sidebar-width);
    min-height: 100vh;
}

/* —— Tenant portal (mobile-first) —— */
.qq-portal-body {
    background: linear-gradient(180deg, #eef2f8 0%, #f4f6f9 120px, #f4f6f9 100%);
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.qq-portal-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 54, 104, 0.08);
    z-index: 1030;
}

.qq-portal-main {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.qq-portal-icon-btn {
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    border-radius: 0.5rem;
}

.qq-portal-icon-btn:hover {
    background: rgba(26, 54, 104, 0.06);
}

.qq-notif-dropdown {
    width: min(320px, 92vw);
    max-height: 360px;
    overflow-y: auto;
}

.qq-notif-pulse {
    animation: qq-pulse 2s ease-in-out infinite;
}

@keyframes qq-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
}

.qq-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #fff;
    border-top: 1px solid #dee2e6;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 1040;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.qq-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    font-size: 0.65rem;
    color: #6c757d;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease;
}

.qq-bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
}

.qq-bottom-nav-item.active {
    color: var(--qq-navy);
    font-weight: 600;
}

.qq-bottom-nav-item.active i {
    transform: scale(1.08);
}

.qq-bottom-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 22px);
    background: #dc3545;
    color: #fff;
    font-style: normal;
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.qq-animate-in {
    animation: qq-fade-up 0.45s ease both;
}

.qq-rent-expiry-pulse {
    animation: qq-rent-pulse 2.2s ease-in-out infinite;
}

@keyframes qq-rent-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.35); }
    50% { opacity: 0.92; box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
}

.badge.bg-success.qq-rent-expiry-pulse,
.badge.bg-info.qq-rent-expiry-pulse {
    animation-name: qq-rent-pulse-info;
}

@keyframes qq-rent-pulse-info {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.25); }
    50% { box-shadow: 0 0 0 5px rgba(13, 110, 253, 0); }
}

@keyframes qq-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qq-hero-card {
    background: linear-gradient(135deg, var(--qq-navy) 0%, var(--qq-navy-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.qq-hero-card::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 55%;
    height: 140%;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.qq-stat-tile {
    border: none;
    border-radius: 0.85rem;
    box-shadow: 0 4px 14px rgba(26, 54, 104, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.qq-stat-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(26, 54, 104, 0.12);
}

.qq-stat-tile .stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.qq-announcement-card {
    border: none;
    border-radius: 0.85rem;
    border-left: 4px solid var(--qq-gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.qq-announcement-card.emergency {
    border-left-color: #dc3545;
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.06), transparent);
}

.qq-announcement-card:hover {
    transform: translateX(4px);
}

.qq-invoice-card {
    border: none;
    border-radius: 0.85rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.qq-profile-chip {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 0.65rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
}

.qq-unit-badge {
    background: rgba(212, 168, 75, 0.2);
    color: var(--qq-gold-light);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.qq-notif-list-item {
    border: none;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    transition: background 0.15s ease;
}

.qq-notif-list-item.unread {
    border-left: 3px solid var(--qq-navy);
    background: #fff;
}

@media (min-width: 992px) {
    .qq-portal-body {
        padding-bottom: 1.5rem;
    }
}

.qq-tenant-nav-scroll {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.qq-tenant-nav-scroll::-webkit-scrollbar {
    display: none;
}

.qq-tenant-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    text-decoration: none;
    white-space: nowrap;
    background: #fff;
    border: 1px solid rgba(26, 54, 104, 0.1);
    transition: all 0.25s ease;
}

.qq-tenant-nav-link:hover {
    color: var(--qq-navy);
    border-color: var(--qq-navy);
    transform: translateY(-1px);
}

.qq-tenant-nav-link.active {
    background: var(--qq-navy);
    color: #fff;
    border-color: var(--qq-navy);
    box-shadow: 0 4px 12px rgba(26, 54, 104, 0.25);
}

.qq-tenant-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6c757d;
    text-decoration: none;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.qq-tenant-nav-pill.active {
    background: var(--qq-navy);
    color: #fff;
    border-color: var(--qq-navy);
}

.qq-animate-stagger > * {
    animation: qq-fade-up 0.5s ease both;
}

.qq-hero-shimmer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
    animation: qq-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes qq-shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.qq-icon-float {
    animation: qq-float 3s ease-in-out infinite;
}

@keyframes qq-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.qq-balance-pop {
    animation: qq-pop 0.6s ease;
}

@keyframes qq-pop {
    0% { transform: scale(0.92); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.qq-btn-glow:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}

.qq-lease-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(26, 54, 104, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 3px solid var(--qq-navy);
}

.qq-lease-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(26, 54, 104, 0.14);
}

.qq-lease-accent-1 { border-top-color: #1a3668; }
.qq-lease-accent-2 { border-top-color: #b8860b; }
.qq-lease-accent-3 { border-top-color: #0d6efd; }
.qq-lease-accent-4 { border-top-color: #198754; }

.qq-lease-unit {
    font-weight: 600;
    color: var(--qq-navy);
}

.qq-lease-unit-lg {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--qq-navy);
}

.qq-property-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qq-property-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--qq-navy), var(--qq-navy-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.qq-announcement-track {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.qq-announcement-slide {
    animation: qq-slide-in 0.5s ease both;
}

@keyframes qq-slide-in {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

.qq-badge-pulse {
    animation: qq-pulse 2s ease-in-out infinite;
}

.qq-bank-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fc 100%);
}

.qq-menu-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 1rem !important;
}

.qq-menu-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(26, 54, 104, 0.12) !important;
}

.qq-menu-icon {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(26, 54, 104, 0.1), rgba(26, 54, 104, 0.05));
    color: var(--qq-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.qq-menu-card:hover .qq-menu-icon {
    transform: rotate(-8deg) scale(1.08);
}

.qq-property-filter-scroll {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
}

.qq-property-filter-scroll::-webkit-scrollbar {
    display: none;
}

.qq-property-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-decoration: none;
    white-space: nowrap;
    background: #fff;
    border: 1px solid rgba(26, 54, 104, 0.12);
    transition: all 0.22s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.qq-property-filter-chip:hover {
    color: var(--qq-navy);
    border-color: var(--qq-navy);
    transform: translateY(-1px);
}

.qq-property-filter-chip.active {
    background: linear-gradient(135deg, var(--qq-navy), var(--qq-navy-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(26, 54, 104, 0.28);
}

.qq-property-filter-chip.active i {
    animation: qq-pop 0.4s ease;
}

/* —— Owner portal (gold accent) —— */
.qq-owner-portal {
    background: linear-gradient(180deg, #f8f6f0 0%, #eef1f6 35%, #f4f6f9 100%);
}

.qq-owner-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(184, 134, 11, 0.15);
}

.qq-owner-badge {
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #5c4a1f;
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.35), rgba(212, 168, 75, 0.12));
    border: 1px solid rgba(184, 134, 11, 0.25);
}

.qq-owner-hero {
    background: linear-gradient(135deg, #3d2f0f 0%, #5c4a1f 45%, var(--qq-navy) 100%);
}

.qq-owner-hero::after {
    background: radial-gradient(circle, rgba(212, 168, 75, 0.35) 0%, transparent 65%);
}

.qq-owner-nav .qq-tenant-nav-link.active {
    background: linear-gradient(135deg, #8b6914, #b8860b);
    border-color: #b8860b;
    box-shadow: 0 4px 14px rgba(184, 134, 11, 0.35);
}

.qq-owner-bottom-nav .qq-bottom-nav-item.active {
    color: #8b6914;
}

.qq-owner-stat-gold .stat-icon {
    background: rgba(184, 134, 11, 0.15) !important;
    color: #8b6914 !important;
}

.qq-owner-property-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(61, 47, 15, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    background: #fff;
    height: 100%;
}

.qq-owner-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(61, 47, 15, 0.14);
}

.qq-owner-property-card .qq-card-thumb {
    height: 120px;
    background: linear-gradient(135deg, var(--qq-navy) 0%, #2a4a7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
}

.qq-owner-property-card .qq-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qq-owner-property-card .qq-card-thumb.has-photo {
    font-size: 0;
}

.qq-owner-metric {
    font-size: 0.7rem;
    color: #6c757d;
}

.qq-owner-metric strong {
    display: block;
    font-size: 0.95rem;
    color: var(--qq-navy);
}

.qq-gallery-tile {
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease;
}

.qq-gallery-tile:hover {
    transform: scale(1.03);
}

.qq-gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qq-finance-pill {
    border-radius: 0.85rem;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 2px 12px rgba(26, 54, 104, 0.06);
    height: 100%;
}

.qq-finance-pill .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
}

.qq-finance-pill .value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--qq-navy);
}

.qq-finance-pill.positive .value { color: #198754; }
.qq-finance-pill.negative .value { color: #dc3545; }

.qq-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--qq-navy);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: gap 0.2s ease;
}

.qq-back-link:hover {
    gap: 0.5rem;
    color: #8b6914;
}

.qq-report-filter-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 14px rgba(26, 54, 104, 0.06);
    background: #fff;
}

.qq-occupancy-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: conic-gradient(#198754 calc(var(--pct) * 1%), #e9ecef 0);
    color: var(--qq-navy);
    position: relative;
}

.qq-occupancy-ring::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #fff;
}

.qq-occupancy-ring span {
    position: relative;
    z-index: 1;
    font-size: 0.7rem;
}

.qq-rent-status {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: capitalize;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    display: inline-block;
}

.qq-rent-status-vacant { background: #e9ecef; color: #495057; }
.qq-rent-status-paid { background: rgba(25, 135, 84, 0.12); color: #198754; }
.qq-rent-status-pending { background: rgba(255, 193, 7, 0.2); color: #856404; }
.qq-rent-status-overdue { background: rgba(220, 53, 69, 0.12); color: #dc3545; }
.qq-rent-status-occupied { background: rgba(13, 110, 253, 0.1); color: #0d6efd; }

.qq-owner-menu-grid .qq-menu-card {
    text-decoration: none;
    color: inherit;
}

.qq-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b6914, #b8860b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.35);
}

.qq-profile-password-card {
    border-left: 4px solid #b8860b !important;
}

.qq-profile-password-card .input-group-text {
    background: #f8f6f0;
    border-color: #dee2e6;
}

@media print {
    .qq-portal-header,
    .qq-bottom-nav,
    .qq-tenant-nav,
    .qq-owner-nav,
    .qq-property-filter,
    .no-print,
    .qq-owner-readonly-banner { display: none !important; }
    .qq-portal-main { padding: 0 !important; }
    body { background: #fff !important; }
}

/* —— Admin / manager UI —— */
body.qq-admin-body {
    background: linear-gradient(180deg, #eef2f8 0%, #f4f6f9 160px, #f4f6f9 100%);
}

.qq-admin-main {
    padding: 1rem 1.25rem 2rem;
}

.qq-admin-main-with-footer {
    padding-bottom: 4.25rem;
}

@media (min-width: 768px) {
    .qq-admin-main {
        padding: 1.25rem 1.75rem 2rem;
    }

    .qq-admin-main-with-footer {
        padding-bottom: 4.5rem;
    }
}

/* Fixed footer — stays at viewport bottom, does not scroll with page content */
.qq-admin-footer {
    position: fixed;
    bottom: 0;
    left: var(--qq-sidebar-width);
    right: 0;
    z-index: 1010;
    margin: 0;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(26, 54, 104, 0.1);
    box-shadow: 0 -4px 20px rgba(26, 54, 104, 0.06);
}

.qq-admin-footer-inner {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 991.98px) {
    .qq-admin-footer {
        left: 0;
    }
}

/* Top bar: compact user + page title */
.qq-page-title {
    max-width: min(42vw, 320px);
    font-weight: 600;
    color: var(--qq-navy);
}

.qq-user-menu-btn {
    max-width: 11rem;
    padding: 0.35rem 0.5rem 0.35rem 0.35rem !important;
    border-radius: 999px !important;
}

.qq-user-menu-btn::after {
    margin-left: 0.15rem;
}

.qq-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--qq-navy), var(--qq-navy-dark));
    color: var(--qq-gold);
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.qq-user-name {
    max-width: 5.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--qq-navy);
}

@media (min-width: 576px) {
    .qq-user-name {
        max-width: 7rem;
    }
}

@media (max-width: 575.98px) {
    .qq-user-name {
        display: none !important;
    }

    .qq-user-menu-btn {
        max-width: none;
        padding-right: 0.35rem !important;
    }

    .qq-user-menu-btn.dropdown-toggle::after {
        display: none;
    }
}

.qq-icon-btn {
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem !important;
}

.qq-nav-badge {
    font-size: 0.75rem;
}

/* UI scale — root font size (saved via localStorage qq_ui_scale) */
html {
    font-size: 16px;
}

html[data-qq-ui-scale="95"] {
    font-size: 15.2px;
}

html[data-qq-ui-scale="90"] {
    font-size: 14.4px;
}

html[data-qq-ui-scale="85"] {
    font-size: 13.6px;
}

html[data-qq-ui-scale="75"] {
    font-size: 12px;
}

/* —— Messaging chat UI —— */
.qq-chat-inbox {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.qq-chat-inbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid rgba(26, 54, 104, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qq-chat-inbox-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 54, 104, 0.1);
    color: inherit;
}

.qq-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--qq-navy), var(--qq-navy-dark));
    color: var(--qq-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.qq-chat-thread {
    max-height: 420px;
    overflow-y: auto;
    padding: 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.qq-chat-thread.portal {
    max-height: 360px;
}

.qq-chat-bubble-wrap {
    display: flex;
    margin-bottom: 0.75rem;
}

.qq-chat-bubble-wrap.mine {
    justify-content: flex-end;
}

.qq-chat-bubble {
    max-width: 78%;
    padding: 0.65rem 0.85rem;
    border-radius: 1rem;
    font-size: 0.92rem;
}

.qq-chat-bubble-wrap.theirs .qq-chat-bubble {
    background: #fff;
    border: 1px solid rgba(26, 54, 104, 0.1);
    border-bottom-left-radius: 0.25rem;
}

.qq-chat-bubble-wrap.mine .qq-chat-bubble {
    background: var(--qq-navy);
    color: #fff;
    border-bottom-right-radius: 0.25rem;
}

.qq-chat-meta {
    font-size: 0.68rem;
    opacity: 0.75;
    margin-bottom: 0.25rem;
}

.qq-chat-compose textarea {
    resize: none;
    border-radius: 0.75rem 0 0 0.75rem !important;
}

.qq-chat-compose .btn {
    border-radius: 0 0.75rem 0.75rem 0 !important;
}

.qq-sidebar {
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.qq-sidebar .nav-link {
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.qq-sidebar .nav-link:hover {
    padding-left: 0.65rem;
}

.qq-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1035;
}

.qq-sidebar.show + .qq-sidebar-overlay,
.qq-sidebar-overlay.show {
    display: block;
}

@media (max-width: 991.98px) {
    .qq-sidebar.show ~ .qq-main .qq-sidebar-overlay-mobile {
        display: block;
    }
}

.qq-topbar {
    backdrop-filter: blur(8px);
    z-index: 1020;
}

.qq-admin-stat-card {
    border: none;
    border-radius: 0.85rem;
    box-shadow: 0 4px 16px rgba(26, 54, 104, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    height: 100%;
    border-top: 3px solid var(--qq-gold);
    background: #fff;
}

.qq-admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(26, 54, 104, 0.12);
}

.qq-admin-stat-card .stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(26, 54, 104, 0.08);
    color: var(--qq-navy);
}

.qq-admin-hero {
    background: linear-gradient(135deg, var(--qq-navy) 0%, var(--qq-navy-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.qq-admin-hero::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -15%;
    width: 50%;
    height: 120%;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.qq-card-modern {
    border: none;
    border-radius: 0.85rem;
    box-shadow: 0 2px 14px rgba(26, 54, 104, 0.06);
    background: #fff;
}

.qq-card-modern .card-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 600;
}

.qq-table-card .table {
    margin-bottom: 0;
}

.qq-table-card .table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .qq-table-card .table {
        font-size: 0.85rem;
    }
}

.qq-img-wrap {
    background: #e9ecef;
    overflow: hidden;
    border-radius: 0.65rem;
}

.qq-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qq-img-placeholder {
    background: linear-gradient(145deg, #e8ecf2 0%, #d8dee8 100%);
    border: 1px dashed rgba(26, 54, 104, 0.15);
}

.qq-img-placeholder-property {
    background: linear-gradient(145deg, #e8ecf2 0%, #dce4f0 100%);
}

.qq-img-ph-icon {
    font-size: 2rem;
    color: rgba(26, 54, 104, 0.35);
}

.qq-img-ph-label {
    color: #6c757d;
    font-size: 0.68rem;
    font-weight: 600;
}

.qq-automation-banner {
    border-left: 4px solid var(--qq-gold);
    background: linear-gradient(90deg, rgba(212, 168, 75, 0.12), transparent);
    border-radius: 0.65rem;
}

.qq-page-actions .btn {
    white-space: nowrap;
}

.qq-property-row-thumb {
    width: 52px;
    min-width: 52px;
}

.qq-img-thumb-sm {
    max-width: 52px;
    border-radius: 0.5rem;
}

.qq-img-thumb-sm .qq-img-ph-icon {
    font-size: 1.25rem;
}

.qq-img-gallery-empty {
    max-height: 180px;
}

.qq-agreement-preview {
    max-height: 420px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.55;
}

.qq-signature-wrap {
    background: #fff;
}

.qq-agreement-doc h1,
.qq-agreement-doc h2 {
    color: var(--qq-navy);
}

.qq-caution-deposit-doc .qq-caution-letterhead {
    color: var(--qq-navy);
}

.qq-caution-party {
    min-height: 100%;
}

.qq-caution-deposit-doc .qq-caution-signatures {
    page-break-inside: avoid;
}

.qq-tenant-form-doc .qq-tenant-form-clauses {
    counter-reset: clause;
}

.qq-tenant-form-doc .qq-clause-num {
    display: inline-block;
    min-width: 1.75rem;
    color: var(--qq-gold, #b8860b);
}

.qq-tenant-form-doc .qq-tenant-form-clauses li {
    padding-left: 0.25rem;
    line-height: 1.6;
}

@media print {
    .qq-agreement-preview {
        max-height: none;
        overflow: visible;
    }
}

.qq-admin-scope-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(26, 54, 104, 0.06);
    border: 1px solid rgba(26, 54, 104, 0.1);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--qq-navy);
}

/* Live notification toasts & permission banner */
.qq-notify-toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: min(380px, calc(100vw - 2rem));
    pointer-events: none;
}

.qq-notify-toast {
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem 0.85rem 0.85rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(26, 54, 104, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 54, 104, 0.08);
    cursor: pointer;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.qq-notify-toast-in {
    transform: translateX(0);
    opacity: 1;
}

.qq-notify-toast-out {
    transform: translateX(120%);
    opacity: 0;
}

.qq-notify-toast-message {
    border-left: 4px solid #0d6efd;
}

.qq-notify-toast-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3668, #2d5aa8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.qq-notify-toast-message .qq-notify-toast-icon {
    background: linear-gradient(135deg, #0d6efd, #4dabf7);
}

.qq-notify-toast-body {
    flex: 1;
    min-width: 0;
    padding-right: 1.25rem;
}

.qq-notify-toast-title {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.3;
    color: #1a3668;
}

.qq-notify-toast-msg {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-top: 0.2rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qq-notify-toast-close {
    position: absolute;
    top: 0.35rem;
    right: 0.45rem;
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    color: #adb5bd;
    padding: 0.15rem 0.35rem;
    cursor: pointer;
}

.qq-notify-perm-banner {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1075;
    max-width: min(560px, calc(100vw - 2rem));
    animation: qq-notify-banner-in 0.4s ease;
}

.qq-notify-perm-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #1a3668, #2d5aa8);
    color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 28px rgba(26, 54, 104, 0.35);
    font-size: 0.875rem;
}

@keyframes qq-notify-banner-in {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 575.98px) {
    .qq-notify-toast-stack {
        top: auto;
        bottom: 5rem;
        right: 0.75rem;
        left: 0.75rem;
        max-width: none;
    }

    .qq-notify-perm-banner {
        bottom: 5.5rem;
    }
}
