

        :root {
            --chip-debt-bg: #fee2e2;
            --chip-debt-ink: #991b1b;
            --chip-credit-bg: #d1fae5;
            --chip-credit-ink: #065f46;
            --chip-zero-bg: #e2e8f0;
            --chip-zero-ink: #475569;
            --warn-bg: #fff7ed;
            --warn-line: #fed7aa;
            --warn-ink: #9a3412;
            --bg-dark-blue: #010a21;
            --bg-card-dark: #0a1931;
            --bg-light-canvas: #f6f8fb;
            --text-white: #ffffff;
            --text-muted-white: rgba(255, 255, 255, 0.7);
            --text-dark: #1e293b;
            --text-gray: #64748b;
            --gold-primary: #d4a373;
            --gold-secondary: #e6b89c;
            --green-success: #10b981;
            --red-danger: #ef4444;
            --blue-info: #3b82f6;
            --app-header-h: 68px;
            --app-nav-h: 74px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Vazirmatn', sans-serif;
            -webkit-tap-highlight-color: transparent;
        }
        .app-body {
            background-color: #080f1e;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            color: var(--text-white);
        }

        /* شبیه‌ساز قاب گوشی برای نمایش فوق‌العاده در دسکتاپ و ریسپانسیو کامل در موبایل */
        .app-container {
            width: 100%;
            max-width: 440px;
            background: linear-gradient(180deg, var(--bg-dark-blue) 0%, var(--bg-dark-blue) 35%, var(--bg-light-canvas) 35%, var(--bg-light-canvas) 100%);
            min-height: 100vh;
            position: relative;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            padding-bottom: 26px;
        }

        /* اگر صفحه هدر فیکس دارد، فضای بالای آن رزرو شود */
        .app-container:has(> .app-header) { padding-top: var(--app-header-h); }
        /* اگر صفحه ناوبری پایین فیکس دارد، فضای پایین آن رزرو شود */
        .app-container:has(> .bottom-nav-bar) { padding-bottom: calc(var(--app-nav-h) + 26px); }

        /* fallback برای مرورگرهای بدون پشتیبانی از :has() */
        @supports not selector(:has(*)) {
            .app-container {
                padding-top: var(--app-header-h);
                padding-bottom: calc(var(--app-nav-h) + 26px);
            }
        }

        /* نوار وضعیت گوشی (Status Bar) */
        .status-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 24px 4px 24px;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-white);
        }

        .status-bar .icons {
            display: flex;
            gap: 6px;
            align-items: center;
        }

        /* هدر اپلیکیشن */
        .app-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 20px;
            /* هدر فیکس (چسبیده به بالا) در همه صفحات */
            position: fixed;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 440px;
            height: var(--app-header-h);
            z-index: 60;
            background: var(--bg-dark-blue);
            box-shadow: 0 6px 18px rgba(1, 10, 33, 0.35);
        }

        .header-profile-section {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .notification-bell {
            position: relative;
            width: 44px;
            height: 44px;
            background: rgba(255, 255, 255, 0.07);
            border-radius: 14px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
        }

        .notification-bell .badge {
            position: absolute;
            top: -2px;
            right: -2px;
            background: var(--gold-primary);
            color: #000;
            font-size: 11px;
            font-weight: 800;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            border: 2px solid var(--bg-dark-blue);
        }

        .header-title-text h1 {
            font-size: 20px;
            font-weight: 800;
            color: var(--text-white);
        }

        .header-title-text p {
            font-size: 12px;
            color: var(--text-muted-white);
            margin-top: 2px;
        }

        .menu-hamburger {
            width: 44px;
            height: 44px;
            background: rgba(255, 255, 255, 0.07);
            border-radius: 14px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 5px;
            cursor: pointer;
        }

        .menu-hamburger span {
            width: 20px;
            height: 2px;
            background-color: var(--text-white);
            border-radius: 2px;
            transition: 0.3s;
        }

        /* کارت بزرگ معرفی ساختمان */
        .building-hero-card {
            margin: 16px;
            background: linear-gradient(135deg, rgba(16, 29, 52, 0.95) 0%, rgba(10, 20, 38, 0.95) 100%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 24px;
            padding: 16px;
            display: flex;
            gap: 16px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        .building-image-wrapper {
            width: 120px;
            height: 140px;
            border-radius: 18px;
            overflow: hidden;
            flex-shrink: 0;
        }

        .building-image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .building-details-wrapper {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            flex-grow: 1;
        }

        .building-header-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .building-name-container h2 {
            font-size: 15px;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .building-name-container p {
            font-size: 11px;
            color: var(--text-muted-white);
            margin-top: 4px;
        }

        .building-logo-icon {
            width: 48px;
            height: 48px;
            background: rgba(212, 163, 115, 0.1);
            border: 1px solid rgba(212, 163, 115, 0.25);
            border-radius: 14px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .building-meta-specs {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-white);
            margin-top: 8px;
        }

        .btn-view-profile {
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--text-white);
            font-size: 11px;
            font-weight: 700;
            padding: 10px 14px;
            border-radius: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            margin-top: 10px;
        }

        /* ردیف آمارهای ۴ تایی */
        .statistics-grid-card {
            background-color: var(--text-white);
            margin: 0 16px 20px 16px;
            border-radius: 24px;
            padding: 16px 8px;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
        }

        .stat-column {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            position: relative;
        }

        .stat-column:not(:last-child)::after {
            content: '';
            position: absolute;
            left: 0;
            top: 10%;
            height: 80%;
            width: 1px;
            background-color: #f1f5f9;
        }

        .stat-icon-box {
            width: 42px;
            height: 42px;
            border-radius: 14px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 10px;
        }

        .stat-icon-box.purple {
            background-color: #f3e8ff;
            color: #a855f7;
        }

        .stat-icon-box.orange {
            background-color: #ffedd5;
            color: #f97316;
        }

        .stat-icon-box.blue {
            background-color: #e0f2fe;
            color: #0284c7;
        }

        .stat-icon-box.teal {
            background-color: #ccfbf1;
            color: #0d9488;
        }

        .stat-numeric-value {
            font-size: 15px;
            font-weight: 900;
            color: var(--text-dark);
            margin-bottom: 4px;
        }

        .stat-text-label {
            font-size: 9px;
            font-weight: 700;
            color: var(--text-gray);
            margin-bottom: 6px;
            line-height: 1.4;
            height: 26px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .stat-growth-rate {
            font-size: 9px;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 2px;
        }

        .stat-growth-rate.up {
            color: var(--green-success);
        }

        .stat-growth-rate.link {
            color: var(--blue-info);
            cursor: pointer;
        }

        /* بخش دسترسی سریع */
        .quick-access-section {
            margin: 0 16px 20px 16px;
        }

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

        .section-title {
            font-size: 15px;
            font-weight: 800;
            color: var(--text-dark);
        }

        .edit-action-btn {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            font-weight: 800;
            color: var(--text-gray);
            text-decoration: none;
            cursor: pointer;
        }

        .quick-buttons-row {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
        }

        .quick-btn-item {
            background-color: var(--text-white);
            border: 1px solid rgba(0, 0, 0, 0.02);
            border-radius: 16px;
            padding: 12px 4px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
            transition: transform 0.2s;
        }

        .quick-btn-item:active {
            transform: scale(0.95);
        }

        .quick-btn-item span {
            font-size: 9px;
            font-weight: 800;
            color: var(--text-dark);
            text-align: center;
            white-space: nowrap;
        }

        /* بخش ستون‌های دوتایی پایین */
        .split-widgets-container {
            margin: 0 16px 20px 16px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .widget-column-box {
            display: flex;
            flex-direction: column;
        }

        .widget-box-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .widget-box-header h3 {
            font-size: 13px;
            font-weight: 800;
            color: var(--text-dark);
        }

        .widget-box-header.dark h3 {
            color: var(--text-dark);
            /* هدر تیره نیست، از بیرون مدیریت می‌شود */
        }

        .widget-view-all-link {
            font-size: 10px;
            font-weight: 800;
            color: var(--text-gray);
            cursor: pointer;
        }

        .widget-view-all-link.gold {
            color: #c48c53;
        }

        /* کارت اعلان‌های اخیر (روشن) */
        .light-announcements-card {
            background-color: var(--text-white);
            border-radius: 20px;
            padding: 12px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 10px;
        }

        .announcement-list-item {
            display: flex;
            gap: 8px;
            align-items: flex-start;
        }

        .announcement-icon-wrapper {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-shrink: 0;
        }

        .announcement-icon-wrapper.blue {
            background-color: #eff6ff;
            color: #3b82f6;
        }

        .announcement-icon-wrapper.red {
            background-color: #fef2f2;
            color: #ef4444;
        }

        .announcement-icon-wrapper.green {
            background-color: #f0fdf4;
            color: #10b981;
        }

        .announcement-text-content {
            display: flex;
            flex-direction: column;
        }

        .announcement-top-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2px;
        }

        .announcement-item-title {
            font-size: 11px;
            font-weight: 800;
            color: var(--text-dark);
        }

        .announcement-item-time {
            font-size: 8px;
            font-weight: 700;
            color: var(--text-gray);
        }

        .announcement-item-description {
            font-size: 9px;
            color: var(--text-gray);
            line-height: 1.4;
        }

        .btn-show-all-announcements {
            background-color: #fff9f2;
            border: none;
            width: 100%;
            padding: 8px;
            border-radius: 10px;
            color: #b37d45;
            font-size: 10px;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 4px;
            margin-top: auto;
        }

        /* کارت درخواست‌های اخیر (تیره) */
        .dark-requests-card {
            background-color: #030d22;
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            padding: 12px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .request-list-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 12px;
            padding: 8px;
        }

        .request-item-right-info {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .request-icon-container {
            width: 32px;
            height: 32px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .request-text-meta h4 {
            font-size: 11px;
            font-weight: 800;
            color: var(--text-white);
        }

        .request-text-meta p {
            font-size: 8px;
            color: var(--text-muted-white);
            margin-top: 2px;
        }

        .request-badge-status {
            font-size: 8px;
            font-weight: 800;
            padding: 4px 8px;
            border-radius: 6px;
            white-space: nowrap;
        }

        .request-badge-status.warning {
            background: rgba(212, 163, 115, 0.15);
            color: #f59e0b;
        }

        .request-badge-status.new {
            background: rgba(16, 185, 129, 0.15);
            color: #10b981;
        }

        .request-badge-status.done {
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-muted-white);
        }

        .btn-add-new-request {
            width: 100%;
            background: transparent;
            border: 1px dashed rgba(255, 255, 255, 0.15);
            color: var(--text-white);
            font-size: 10px;
            font-weight: 800;
            padding: 8px;
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            margin-top: auto;
        }

        /* کارت وضعیت مالی ساختمان */
        .financial-overview-card {
            background-color: #030d22;
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 24px;
            margin: 0 16px;
            padding: 16px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        .financial-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 14px;
        }

        .financial-card-header h3 {
            font-size: 13px;
            font-weight: 800;
            color: var(--text-white);
        }

        .financial-card-header span {
            font-size: 10px;
            font-weight: 700;
            color: var(--text-muted-white);
            cursor: pointer;
        }

        .financial-data-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .gauge-chart-container {
            position: relative;
            width: 72px;
            height: 72px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .gauge-inner-text {
            position: absolute;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .gauge-inner-text .percentage {
            font-size: 15px;
            font-weight: 900;
            color: var(--text-white);
        }

        .gauge-inner-text .label {
            font-size: 7px;
            color: var(--text-muted-white);
            margin-top: -2px;
        }

        .financial-stats-middle {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex-grow: 1;
            padding-right: 16px;
        }

        .financial-stat-block p {
            font-size: 9px;
            color: var(--text-muted-white);
        }

        .financial-stat-block h4 {
            font-size: 14px;
            font-weight: 900;
            color: var(--text-white);
            margin-top: 2px;
            direction: ltr;
            text-align: right;
        }

        .financial-trend {
            font-size: 8px;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 2px;
            margin-top: 1px;
        }

        .financial-trend.up {
            color: var(--green-success);
        }

        .financial-trend.down {
            color: var(--red-danger);
        }

        .financial-wallet-icon-box {
            width: 44px;
            height: 44px;
            background: rgba(212, 163, 115, 0.1);
            border: 1px solid rgba(212, 163, 115, 0.2);
            border-radius: 14px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* نوار ناوبری پایین (Bottom Nav) — ۵ آیتم یک‌دست، فعال هایلایت طلایی */
        .bottom-nav-bar {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 440px;
            z-index: 60;
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            border-top: 1px solid #edf0f5;
            border-radius: 22px 22px 0 0;
            box-shadow: 0 -12px 32px rgba(2, 10, 32, 0.10);
            padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
        }

        .bottom-nav-inner {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 2px;
        }

        .nav-item-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            text-decoration: none;
            color: var(--text-gray);
            position: relative;
            cursor: pointer;
            padding: 4px 0 2px;
            -webkit-tap-highlight-color: transparent;
            transition: color 0.2s ease;
        }

        .nav-ico {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 30px;
            border-radius: 12px;
            transition: background 0.25s ease, box-shadow 0.25s ease, color 0.2s ease, transform 0.15s ease;
        }

        .nav-label {
            font-size: 9.5px;
            font-weight: 700;
            letter-spacing: -0.01em;
            transition: color 0.2s ease;
        }

        /* حالت فشرده‌شدن برای همه آیتم‌ها */
        .nav-item-link:active .nav-ico { transform: scale(0.92); }

        /* آیتم فعال: کپسول طلایی + برچسب سرمه‌ای پررنگ */
        .nav-item-link.active { color: #0c1a30; }
        .nav-item-link.active .nav-ico {
            background: linear-gradient(135deg, #e9c39a 0%, #cf9c66 55%, #c08a52 100%);
            color: #14233d;
            box-shadow: 0 6px 14px rgba(200, 148, 92, 0.38);
        }
        .nav-item-link.active .nav-label {
            color: #0c1a30;
            font-weight: 800;
        }
        .nav-item-link.active::after {
            content: '';
            position: absolute;
            top: 0;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--gold-primary);
            box-shadow: 0 0 8px rgba(212, 163, 115, 0.9);
        }

        /* نشان پیام‌های خوانده‌نشده — گوشهٔ بالا سمت چپ آیکون */
        .nav-badge {
            position: absolute;
            top: -4px;
            left: -4px;
            background: #e0564b;
            color: #fff;
            font-size: 8px;
            font-weight: 900;
            min-width: 15px;
            height: 15px;
            padding: 0 3px;
            border-radius: 999px;
            display: flex;
            justify-content: center;
            align-items: center;
            border: 2px solid #fff;
            box-sizing: content-box;
        }
    

        /* ---- کلاس‌های کمکی صفحات داخلی (هم‌خانواده با دیزاین اصلی) ---- */
        .subpage-back-btn {
            width: 38px;
            height: 38px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-white);
            flex-shrink: 0;
            cursor: pointer;
            transition: background 0.2s;
        }
        .subpage-back-btn:active { background: rgba(255, 255, 255, 0.16); }
        .subpage-title-wrap { flex: 1; min-width: 0; text-align: center; }
        .subpage-title { font-size: 15px; font-weight: 800; color: var(--text-white); }
        .subpage-sub { font-size: 10px; color: var(--text-muted-white); margin-top: 2px; }
        .tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 16px 20px; }
        .tile-grid-5 { grid-template-columns: repeat(5, 1fr); }
        .tile-card {
            background: var(--text-white);
            border: 1px solid rgba(0, 0, 0, 0.02);
            border-radius: 16px;
            padding: 12px 4px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
            transition: transform 0.2s;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
        }
        .tile-card:active { transform: scale(0.95); }
        .tile-icon { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
        .tile-label { font-size: 10px; font-weight: 700; color: var(--text-dark); }
        .section-pad { margin: 0 16px 20px; }
        .info-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--text-white);
            border-radius: 16px;
            padding: 13px 16px;
            margin-bottom: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
            text-decoration: none;
            transition: transform 0.2s;
        }
        .info-row:active { transform: scale(0.98); }
        .info-row-label { font-size: 12px; font-weight: 700; color: var(--text-dark); }
        .info-row-value { font-size: 12px; font-weight: 800; color: var(--gold-primary); }
        .info-row-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-left: 10px; }
        .info-row-right { display: flex; align-items: center; flex: 1; min-width: 0; }
        .info-chevron { color: var(--text-gray); }
        .empty-note { font-size: 11px; color: var(--text-gray); text-align: center; padding: 18px 10px; background: var(--text-white); border-radius: 16px; }


        /* ==================== کامپوننت‌های استاندارد صفحات ==================== */

        /* محتوای صفحات داخلی: پس‌زمینه روشن زیر هدر تیره */
        .app-container > main {
            background: var(--bg-light-canvas);
            border-radius: 22px 22px 0 0;
            min-height: 75vh;
        }

        /* کارت سفید استاندارد */
        .card {
            background: var(--text-white);
            border-radius: 1rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
            border: 1px solid #f1f5f9;
        }

        /* حالت خالی */
        .empty-state {
            text-align: center;
            padding: 2rem 1rem;
            color: var(--text-gray);
            font-size: 0.9rem;
            background: var(--text-white);
            border-radius: 1rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
            border: 1px solid #f1f5f9;
        }

        /* فرم‌ها */
        .form-input {
            width: 100%;
            padding: 0.75rem 1rem;
            border-radius: 0.75rem;
            border: 1px solid #d1d5db;
            background: #f9fafb;
            outline: none;
            transition: all 0.2s;
            font-family: inherit;
            font-size: 0.9rem;
            color: var(--text-dark);
        }
        .form-input:focus {
            border-color: var(--blue-info);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
            background: #ffffff;
        }
        .form-label {
            display: block;
            font-size: 0.85rem;
            font-weight: 500;
            color: #374151;
            margin-bottom: 0.35rem;
        }

        /* دکمه‌ها */
        .btn-primary {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #2563eb;
            color: #ffffff;
            font-weight: 700;
            padding: 0.9rem 1rem;
            border-radius: 0.9rem;
            box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.35);
            transition: all 0.2s;
            border: none;
            cursor: pointer;
            font-family: inherit;
        }
        .btn-primary:hover { background: #1d4ed8; }
        .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
        .btn-secondary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #eef2ff;
            color: #4338ca;
            font-weight: 600;
            font-size: 0.85rem;
            padding: 0.45rem 0.9rem;
            border-radius: 0.6rem;
            transition: all 0.2s;
            border: none;
            cursor: pointer;
            font-family: inherit;
        }
        .btn-secondary:hover { background: #e0e7ff; }

        /* پیام خطا / موفقیت */
        .app-alert {
            margin: 12px 16px 0;
            padding: 12px 14px;
            border-radius: 14px;
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: flex-start;
            gap: 10px;
            line-height: 1.7;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            transition: opacity 0.4s;
        }
        .app-alert svg { flex-shrink: 0; margin-top: 2px; }
        .app-alert span { overflow-wrap: anywhere; word-break: break-word; }
        .app-alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
        .app-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
        .app-alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
        html[data-theme="dark"] .app-alert-success { background: #0c2f22; color: #a7f3d0; border-color: #14532d; }
        html[data-theme="dark"] .app-alert-error { background: #3b1216; color: #fecaca; border-color: #7f1d1d; }
        html[data-theme="dark"] .app-alert-info { background: #12233f; color: #93c5fd; border-color: #1e3a5f; }

        /* دکمه بازگشت و عنوان صفحات داخلی */
        .subpage-back-btn {
            width: 38px;
            height: 38px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-white);
            flex-shrink: 0;
            cursor: pointer;
            transition: background 0.2s;
        }
        .subpage-back-btn:active { background: rgba(255, 255, 255, 0.16); }
        .subpage-title-wrap { flex: 1; min-width: 0; text-align: center; }
        .subpage-title { font-size: 15px; font-weight: 800; color: var(--text-white); }
        .subpage-sub { font-size: 10px; color: var(--text-muted-white); margin-top: 2px; }

        /* کاشی‌ها و ردیف‌های اطلاعات */
        .tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 16px 20px; }
        .tile-card {
            background: var(--text-white);
            border: 1px solid rgba(0, 0, 0, 0.02);
            border-radius: 16px;
            padding: 12px 4px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
            transition: transform 0.2s;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
        }
        .tile-card:active { transform: scale(0.95); }
        .tile-icon { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
        .tile-label { font-size: 10px; font-weight: 700; color: var(--text-dark); }
        .section-pad { margin: 0 16px 20px; }
        .info-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--text-white);
            border-radius: 16px;
            padding: 13px 16px;
            margin-bottom: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
            text-decoration: none;
            transition: transform 0.2s;
        }
        .info-row:active { transform: scale(0.98); }
        .info-row-label { font-size: 12px; font-weight: 700; color: var(--text-dark); }
        .info-row-value { font-size: 12px; font-weight: 800; color: var(--gold-primary); }
        .info-row-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-left: 10px; }
        .info-row-right { display: flex; align-items: center; flex: 1; min-width: 0; }
        .info-chevron { color: var(--text-gray); }

        /* ==================== کارت‌های فهرست ساختمان (index.php) ==================== */
        .space-y-3 > * + * { margin-top: 12px; }

        .building-list-card {
            display: flex;
            align-items: stretch;
            gap: 0;
            background: var(--text-white);
            border: 1px solid #eef2f7;
            border-radius: 18px;
            overflow: hidden;
            text-decoration: none;
            box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
            transition: transform 0.18s ease, box-shadow 0.18s ease;
        }
        .building-list-card:hover { box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09); }
        .building-list-card:active { transform: scale(0.985); }

        .building-list-thumb {
            width: 92px;
            min-height: 96px;
            object-fit: cover;
            flex-shrink: 0;
        }

        .building-list-body { flex: 1; min-width: 0; padding: 12px 14px; }

        .building-list-title {
            font-size: 14px;
            font-weight: 800;
            color: var(--text-dark);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .building-list-address {
            font-size: 11px;
            color: var(--text-gray);
            margin-top: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .building-list-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }

        .building-list-chevron {
            display: flex;
            align-items: center;
            padding: 0 12px;
            color: #cbd5e1;
            flex-shrink: 0;
        }

        /* برچسب‌های کوچک (chip) هم‌خانواده با دیزاین اپ */
        .chip {
            font-size: 10px;
            font-weight: 700;
            padding: 4px 9px;
            border-radius: 999px;
            white-space: nowrap;
        }
        .chip-gold  { background: rgba(212, 163, 115, 0.16); color: #a1703a; }
        .chip-gray  { background: #f1f5f9; color: var(--text-gray); }
        .chip-green { background: rgba(16, 185, 129, 0.12); color: #047857; }
        .chip-amber { background: rgba(245, 158, 11, 0.14); color: #b45309; }
        .chip-blue  { background: rgba(14, 165, 233, 0.13); color: #0369a1; }
        /* نسخهٔ تیرهٔ چیپ‌های رنگی */
        html[data-theme="dark"] .chip-gold  { background: rgba(212, 163, 115, 0.18); color: #e6c39a; }
        html[data-theme="dark"] .chip-gray  { background: var(--surface-3); color: var(--text-gray); }
        html[data-theme="dark"] .chip-green { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }
        html[data-theme="dark"] .chip-amber { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
        html[data-theme="dark"] .chip-blue  { background: rgba(14, 165, 233, 0.18); color: #7dd3fc; }
        html[data-theme="dark"] .chip-red   { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
        /* کاشی‌های آیکون با پس‌زمینهٔ روشنِ اینلاین در حالت تیره */
        html[data-theme="dark"] [style*="#eff6ff"],
        html[data-theme="dark"] [style*="#dbeafe"] { background: var(--surface-3) !important; }

        /* کارت راهنما */
        .hint-card {
            background: var(--text-white);
            border: 1px solid #eef2f7;
            border-radius: 16px;
            padding: 14px 16px;
            font-size: 11.5px;
            line-height: 2;
            color: var(--text-gray);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
        }

        /* لینک‌های آیکونی هدر نباید زیرخط بگیرند */
        .notification-bell,
        .menu-hamburger,
        .subpage-back-btn { text-decoration: none; }

        /* ==================== پاپ‌آپ (Modal) استاندارد ==================== */
        .modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 200;
            background: rgba(2, 8, 23, 0.55);
            backdrop-filter: blur(3px);
            display: flex;
            align-items: flex-end;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease, visibility 0.25s ease;
            padding: 0;
        }
        .modal-overlay.is-open { opacity: 1; visibility: visible; }

        .modal-sheet {
            width: 100%;
            max-width: 440px;
            max-height: 88vh;
            background: var(--bg-light-canvas);
            border-radius: 26px 26px 0 0;
            box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
            display: flex;
            flex-direction: column;
            transform: translateY(100%);
            transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        }
        .modal-overlay.is-open .modal-sheet { transform: translateY(0); }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 16px 18px 12px;
            border-bottom: 1px solid #e9eef5;
            flex-shrink: 0;
        }
        .modal-title { font-size: 15px; font-weight: 800; color: var(--text-dark); }
        .modal-subtitle { font-size: 11px; color: var(--text-gray); margin-top: 2px; }

        .modal-close {
            width: 34px;
            height: 34px;
            border-radius: 11px;
            border: none;
            background: #eef2f7;
            color: var(--text-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            transition: background 0.2s;
        }
        .modal-close:hover { background: #e2e8f0; }

        .modal-body { padding: 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

        /* دستگیره بالای شیت */
        .modal-sheet::before {
            content: "";
            width: 42px;
            height: 4px;
            border-radius: 999px;
            background: #cbd5e1;
            margin: 8px auto 0;
            flex-shrink: 0;
        }

        body.modal-open { overflow: hidden; }

        /* دکمه اصلی افزودن (باز کردن پاپ‌آپ) */
        .btn-add-primary {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            color: #fff;
            font-weight: 800;
            font-size: 13.5px;
            border: none;
            padding: 14px 16px;
            border-radius: 16px;
            cursor: pointer;
            box-shadow: 0 10px 20px -6px rgba(37, 99, 235, 0.5);
            transition: transform 0.18s ease, box-shadow 0.18s ease;
        }
        .btn-add-primary:hover { box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.6); }
        .btn-add-primary:active { transform: scale(0.98); }

        /* دکمه‌های کوچک اقدام روی کارت‌ها (ویرایش/حذف) */
        .card-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #f1f5f9;
        }
        .btn-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 11.5px;
            font-weight: 700;
            padding: 7px 12px;
            border-radius: 10px;
            border: none;
            cursor: pointer;
            font-family: inherit;
            transition: background 0.18s ease;
        }
        .btn-chip-edit { background: #eff6ff; color: #1d4ed8; }
        .btn-chip-edit:hover { background: #dbeafe; }
        .btn-chip-danger { background: #fef2f2; color: #dc2626; }
        .btn-chip-danger:hover { background: #fee2e2; }
        .btn-chip-neutral { background: #f1f5f9; color: var(--text-gray); }
        .btn-chip-neutral:hover { background: #e2e8f0; }
        .btn-chip-success { background: #ecfdf5; color: #047857; }
        .btn-chip-success:hover { background: #d1fae5; }
        .btn-chip-gold {
            background: linear-gradient(135deg, var(--gold-primary), #b08654);
            color: #fff;
            box-shadow: 0 2px 8px rgba(212, 163, 115, 0.35);
        }
        .btn-chip-gold:hover { filter: brightness(1.05); color: #fff; }

        /* ==================== کارت خلاصه مالی ==================== */
        .finance-summary-card {
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            border-radius: 20px;
            padding: 18px;
            color: #fff;
            box-shadow: 0 12px 26px -10px rgba(37, 99, 235, 0.6);
        }
        .finance-summary-card h3 { font-size: 14px; font-weight: 800; }
        .finance-pill {
            background: rgba(255, 255, 255, 0.2);
            padding: 5px 11px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
        }
        .finance-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
        .finance-stat {
            background: rgba(255, 255, 255, 0.12);
            border-radius: 14px;
            padding: 10px 6px;
        }
        .finance-stat p { font-size: 10px; opacity: 0.85; }
        .finance-stat strong { display: block; font-size: 15px; font-weight: 800; margin-top: 4px; }
        .finance-progress {
            height: 8px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 999px;
            overflow: hidden;
            margin-top: 14px;
        }
        .finance-progress-bar { height: 100%; background: #fff; border-radius: 999px; transition: width 0.4s ease; }
        .finance-progress-meta {
            display: flex;
            justify-content: space-between;
            font-size: 10px;
            opacity: 0.85;
            margin-top: 8px;
        }

        /* پیش‌نمایش سهم واحدها از شارژ */
        .charge-preview-list { display: flex; flex-direction: column; gap: 6px; }
        .charge-preview-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 11.5px;
            color: var(--text-dark);
            background: #f8fafc;
            border-radius: 10px;
            padding: 7px 11px;
        }
        .charge-preview-row strong { color: var(--gold-primary); font-weight: 800; }

        /* لیست انتخاب (رادیو) کارتی */
        .choice-list { display: flex; flex-direction: column; gap: 8px; }
        .choice-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            background: #f8fafc;
            border: 1.5px solid #e9eef5;
            border-radius: 13px;
            padding: 12px 13px;
            cursor: pointer;
            transition: border-color 0.18s ease, background 0.18s ease;
        }
        .choice-item:has(input:checked) { border-color: var(--blue-info); background: #eff6ff; }
        .choice-item input { margin-top: 3px; flex-shrink: 0; }
        .choice-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--text-dark); }
        .choice-item small { display: block; font-size: 11px; color: var(--text-gray); margin-top: 3px; line-height: 1.7; }

        /* چیپ خطر */
        .chip-red { background: #fef2f2; color: #b91c1c; }

        /* دکمه‌های خطر */
        .btn-danger {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: #fff;
            font-weight: 800;
            font-size: 14px;
            padding: 13px 16px;
            border: none;
            border-radius: 15px;
            cursor: pointer;
            box-shadow: 0 10px 22px -10px rgba(220, 38, 38, 0.7);
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }
        .btn-danger:active { transform: scale(0.985); }

        .btn-danger-soft {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: #fef2f2;
            color: #b91c1c;
            border: 1.5px solid #fecaca;
            font-weight: 800;
            font-size: 13.5px;
            padding: 12px 16px;
            border-radius: 15px;
            cursor: pointer;
            transition: background 0.16s ease;
        }
        .btn-danger-soft:hover { background: #fee2e2; }

        /* ستاره‌های امتیازدهی (RTL-safe، با ورودی رادیو) */
        .rating-stars {
            display: inline-flex;
            flex-direction: row-reverse;
            justify-content: flex-end;
            gap: 4px;
        }
        .rating-stars input { position: absolute; opacity: 0; width: 0; height: 0; }
        .rating-stars label {
            font-size: 30px;
            line-height: 1;
            color: #d9dee6;
            cursor: pointer;
            transition: color 0.15s ease, transform 0.15s ease;
        }
        .rating-stars label:hover,
        .rating-stars label:hover ~ label,
        .rating-stars input:checked ~ label { color: #f59e0b; }
        .rating-stars label:hover { transform: scale(1.12); }
        .rating-stars input:focus-visible + label { outline: 2px solid var(--blue-info); border-radius: 4px; }

        /* ==================== صفحه ورود/ثبت‌نام یکپارچه ==================== */
        .auth-body {
            font-family: 'Vazirmatn', sans-serif;
            background: #eef2f7;
            margin: 0;
            -webkit-tap-highlight-color: transparent;
        }
        .auth-shell {
            position: relative;
            max-width: 480px;
            margin: 0 auto;
            min-height: 100vh;
            min-height: 100dvh;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            box-shadow: 0 4px 24px -6px rgba(15, 23, 42, 0.12);
        }
        .auth-glow {
            position: absolute;
            width: 260px;
            height: 260px;
            border-radius: 50%;
            filter: blur(70px);
            opacity: 0.22;
            pointer-events: none;
        }
        .auth-glow-a { background: #2563eb; top: -80px; right: -70px; }
        .auth-glow-b { background: #c8a94b; bottom: -90px; left: -70px; }

        .auth-card {
            position: relative;
            z-index: 1;
            width: 100%;
            padding: 34px 28px 26px;
        }

        .auth-brand { text-align: center; margin-bottom: 22px; }
        .auth-logo {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            border-radius: 19px;
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            color: #fff;
            box-shadow: 0 12px 26px -10px rgba(37, 99, 235, 0.75);
            margin-bottom: 14px;
        }
        .auth-title { font-size: 21px; font-weight: 800; color: #0f172a; margin: 0; }
        .auth-subtitle { font-size: 13px; color: #64748b; margin: 7px 0 0; line-height: 1.8; }

        /* نوار پیشرفت گام‌ها */
        .auth-steps {
            display: flex;
            justify-content: center;
            gap: 6px;
            margin-bottom: 22px;
        }
        .auth-step-dot {
            width: 26px;
            height: 4px;
            border-radius: 999px;
            background: #e2e8f0;
            transition: background 0.25s ease;
        }
        .auth-step-dot.is-active { background: #2563eb; }

        /* پیام‌ها */
        .auth-alert {
            border-radius: 13px;
            padding: 12px 14px;
            font-size: 12.5px;
            line-height: 1.9;
            margin-bottom: 14px;
        }
        .auth-alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
        .auth-alert-info  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
        .auth-alert-debug { background: #fffbeb; color: #92400e; border: 1px dashed #fcd34d; }

        /* شماره در حال استفاده */
        .auth-phone-badge {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            background: #f8fafc;
            border: 1px solid #e9eef5;
            border-radius: 13px;
            padding: 11px 14px;
            font-size: 13px;
            font-weight: 700;
            color: #334155;
            margin-bottom: 16px;
        }

        /* فرم */
        .auth-form { display: flex; flex-direction: column; gap: 16px; }
        .auth-label {
            display: block;
            font-size: 12.5px;
            font-weight: 700;
            color: #334155;
            margin-bottom: 7px;
        }
        .auth-input {
            width: 100%;
            box-sizing: border-box;
            padding: 14px 15px;
            font-family: inherit;
            font-size: 15px;
            color: #0f172a;
            background: #f8fafc;
            border: 1.5px solid #e2e8f0;
            border-radius: 14px;
            outline: none;
            transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
        }
        .auth-input:focus {
            background: #fff;
            border-color: #2563eb;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
        }
        .auth-input[dir="ltr"] { text-align: left; }
        .auth-input-code {
            text-align: center !important;
            font-size: 26px;
            font-weight: 800;
            letter-spacing: 10px;
            padding: 15px;
        }
        .auth-hint { font-size: 11.5px; color: #94a3b8; margin: 7px 0 0; line-height: 1.8; }

        .auth-btn {
            width: 100%;
            padding: 15px;
            font-family: inherit;
            font-size: 15px;
            font-weight: 800;
            color: #fff;
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            border: none;
            border-radius: 14px;
            cursor: pointer;
            box-shadow: 0 12px 24px -12px rgba(37, 99, 235, 0.85);
            transition: transform 0.14s ease, opacity 0.14s ease;
        }
        .auth-btn:active { transform: scale(0.985); }
        .auth-btn:disabled, .auth-btn.is-loading { opacity: 0.65; cursor: not-allowed; }

        .auth-secondary { margin-top: 16px; text-align: center; }
        .auth-link-btn {
            background: none;
            border: none;
            padding: 0;
            font-family: inherit;
            font-size: 12.5px;
            font-weight: 700;
            color: #2563eb;
            cursor: pointer;
        }
        .auth-link-btn:disabled { color: #94a3b8; cursor: default; }

        .auth-footer { text-align: center; font-size: 11.5px; color: #cbd5e1; margin: 26px 0 0; }

        /* ============================================================
           نمای گرافیکی ساختمان (بلوک ← طبقه ← واحد)
           ============================================================ */
        .bldg-card { background: linear-gradient(180deg, #f8fafc 0%, #eef2f8 100%); border: 1px solid #e6ebf3; border-radius: 18px; padding: 14px 12px 10px; }
        .bldg-scene { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: flex-end; padding: 10px 2px 2px; }
        .bldg-tower { display: flex; flex-direction: column; min-width: 148px; max-width: 340px; flex: 1 1 auto; filter: drop-shadow(0 12px 20px rgba(3, 12, 34, 0.16)); }
        .bldg-roof {
            background: linear-gradient(135deg, #33415c 0%, #1f2a44 100%);
            color: #fff; text-align: center; font-size: 11px; font-weight: 800;
            padding: 7px 10px; border-radius: 12px 12px 0 0; letter-spacing: .3px;
            clip-path: polygon(0 42%, 8% 0, 92% 0, 100% 42%, 100% 100%, 0 100%);
            padding-top: 12px;
        }
        .bldg-roof small { display: block; font-weight: 400; font-size: 9px; opacity: .75; margin-top: 1px; }
        .bldg-body {
            background: linear-gradient(180deg, #ffffff 0%, #f1f4fa 100%);
            border: 1px solid #dbe3ee; border-top: none;
            padding: 9px 8px 8px; display: flex; flex-direction: column; gap: 7px;
        }
        .bldg-floor { display: flex; align-items: center; gap: 7px; }
        .bldg-floor-label { width: 40px; flex-shrink: 0; text-align: center; font-size: 9.5px; font-weight: 700; color: #64748b; background: #fff; border: 1px dashed #d7dfeb; border-radius: 8px; padding: 3px 0; line-height: 1.35; }
        .bldg-units { flex: 1; display: flex; gap: 6px; flex-wrap: wrap; }
        .bldg-unit {
            position: relative; flex: 1 0 54px; max-width: 86px; min-height: 46px;
            border-radius: 9px; border: 1.5px solid; cursor: pointer;
            display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
            transition: transform .16s ease, box-shadow .16s ease; background: #fff;
        }
        .bldg-unit:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 9px 18px rgba(3, 12, 34, .18); z-index: 2; }
        .bldg-unit .bldg-num { font-size: 13px; font-weight: 800; color: var(--text-dark); }
        .bldg-unit .bldg-type-ico { font-size: 9px; opacity: .8; line-height: 1; }
        .bldg-unit .bldg-occ-dot { position: absolute; top: 4px; inset-inline-end: 4px; width: 7px; height: 7px; border-radius: 50%; }
        .bldg-unit.occ-owner   { border-color: #34d399; background: linear-gradient(180deg, #ecfdf5, #d7f7e9); }
        .bldg-unit.occ-tenant  { border-color: #38bdf8; background: linear-gradient(180deg, #eff8ff, #ddf1fe); }
        .bldg-unit.occ-vacant  { border-color: #fbbf24; background: linear-gradient(180deg, #fffbeb, #fef3d7); }
        .bldg-unit.occ-none    { border-color: #cbd5e1; background: linear-gradient(180deg, #f8fafc, #eef1f6); }
        .bldg-unit .bldg-occ-dot.occ-owner  { background: #10b981; }
        .bldg-unit .bldg-occ-dot.occ-tenant { background: #0ea5e9; }
        .bldg-unit .bldg-occ-dot.occ-vacant { background: #f59e0b; }
        .bldg-unit .bldg-occ-dot.occ-none   { background: #94a3b8; }
        .bldg-floor-empty { flex: 1; border: 1.5px dashed #e2e8f0; border-radius: 9px; min-height: 30px; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #b6c2d4; }
        .bldg-ground {
            background: linear-gradient(180deg, #2f3b57, #222c44);
            border-radius: 0 0 10px 10px; min-height: 26px;
            display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 0 12px;
        }
        .bldg-door { width: 20px; height: 17px; background: linear-gradient(180deg, var(--gold-secondary), var(--gold-primary)); border-radius: 6px 6px 0 0; box-shadow: inset 0 -3px 4px rgba(0,0,0,.25); }
        .bldg-shrub { width: 12px; height: 8px; border-radius: 50% 50% 0 0; background: #22c55e; opacity: .85; }
        .bldg-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
        .bldg-legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--text-gray); background: #fff; border: 1px solid #e6ebf3; border-radius: 999px; padding: 4px 10px; }
        .bldg-legend-item i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
        .bldg-hint { text-align: center; font-size: 10.5px; color: #94a3b8; margin-top: 10px; }
        .bldg-empty { text-align: center; padding: 18px 8px; }
        .bldg-empty .bldg-empty-ico { font-size: 40px; margin-bottom: 8px; }
        .bldg-empty-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }

        /* پاپ‌آپ اطلاعات واحد */
        .unit-modal-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #eef1f6; margin-bottom: 12px; }
        .unit-modal-badge { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: #eef2ff; flex-shrink: 0; }
        .unit-modal-title { font-size: 14px; font-weight: 800; color: var(--text-dark); }
        .unit-modal-sub { font-size: 11px; color: var(--text-gray); margin-top: 2px; }
        .unit-info-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
        .unit-info-rows { display: flex; flex-direction: column; gap: 8px; }
        .unit-info-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f8fafc; border: 1px solid #eef1f6; border-radius: 11px; padding: 8px 11px; font-size: 12px; }
        .unit-info-row .lbl { color: var(--text-gray); display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
        .unit-info-row .val { color: var(--text-dark); font-weight: 700; text-align: left; }
        .unit-info-row .val a { color: var(--blue-info); text-decoration: none; font-weight: 700; }
        .unit-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
        .unit-modal-actions .btn-chip { flex: 1; justify-content: center; padding: 10px 12px; }

        /* ==================== اسناد ساختمان ==================== */
        .doc-group { margin-bottom: 22px; }
        .doc-group-title {
            display: flex; align-items: center; gap: 8px;
            font-size: 13px; font-weight: 800; color: var(--text-dark);
            margin: 0 2px 10px; padding-bottom: 7px;
            border-bottom: 2px solid #eef2f7;
        }
        .doc-group-count {
            background: #eef2ff; color: #4338ca; font-size: 11px; font-weight: 800;
            border-radius: 999px; padding: 2px 9px; min-width: 22px; text-align: center;
        }
        .doc-icon {
            width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center; font-size: 21px;
        }
        .doc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--text-gray); margin-top: 4px; }
        .doc-actions { display: flex; gap: 6px; flex-shrink: 0; }
        .btn-chip-ghost { background: transparent; color: var(--text-gray); border: 1px dashed #cbd5e1; }
        .btn-chip-ghost:hover { background: #f8fafc; color: var(--text-dark); }

        /* تب‌های «فایل / لینک» */
        .doc-tabs { display: flex; gap: 8px; }
        .doc-tab {
            flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
            border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 9px 8px;
            font-size: 12px; font-weight: 700; color: var(--text-gray); cursor: pointer;
            transition: all .15s ease; background: #fff;
        }
        .doc-tab input { position: absolute; opacity: 0; pointer-events: none; }
        .doc-tab:has(input:checked) { border-color: var(--blue-info); color: #1d4ed8; background: #eff6ff; }

        /* ناحیه انتخاب فایل (Drop zone) */
        .doc-file-drop {
            display: flex; flex-direction: column; align-items: center; gap: 4px;
            border: 2px dashed #cbd5e1; border-radius: 14px; padding: 22px 14px;
            text-align: center; cursor: pointer; background: #f8fafc; transition: all .15s ease;
        }
        .doc-file-drop:hover, .doc-file-drop:focus-within { border-color: var(--blue-info); background: #eff6ff; }
        .doc-file-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
        .doc-file-drop-icon { font-size: 26px; }
        .doc-file-drop-text { font-size: 12.5px; font-weight: 700; color: var(--text-dark); }
        .doc-file-drop-hint { font-size: 10.5px; color: var(--text-gray); }
        .doc-file-drop:has(input[type="file"]:focus-visible) { outline: 2px solid var(--blue-info); }
        .doc-file-drop-compact { padding: 14px; }
        .doc-file-drop-compact .doc-file-drop-icon { font-size: 20px; }

        /* کلید رویت سند برای اعضا */
        .doc-vis-toggle {
            display: flex; align-items: center; gap: 10px; cursor: pointer;
            background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 11px 12px;
        }
        .doc-vis-toggle input { position: absolute; opacity: 0; pointer-events: none; }
        .doc-vis-toggle strong { display: block; font-size: 12.5px; color: var(--text-dark); }
        .doc-vis-toggle small { display: block; font-size: 10.5px; color: var(--text-gray); margin-top: 2px; }
        .doc-vis-switch {
            width: 38px; height: 22px; border-radius: 999px; background: #cbd5e1;
            position: relative; flex-shrink: 0; transition: background .18s ease;
        }
        .doc-vis-switch::after {
            content: ''; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px;
            border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
            transition: transform .18s ease;
        }
        .doc-vis-toggle input:checked ~ .doc-vis-switch { background: #10b981; }
        .doc-vis-toggle input:checked ~ .doc-vis-switch::after { transform: translateX(-16px); }

        /* ==================== بنر نصب اپلیکیشن (PWA) ==================== */
        .pwa-banner {
            position: fixed; bottom: 86px; left: 50%; transform: translateX(-50%) translateY(20px);
            width: min(430px, calc(100% - 24px));
            background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
            color: #fff; border-radius: 18px; padding: 12px 14px;
            display: flex; align-items: center; gap: 11px;
            box-shadow: 0 14px 40px rgba(15, 23, 42, .35);
            z-index: 900; opacity: 0; pointer-events: none;
            transition: opacity .3s ease, transform .3s ease;
        }
        .pwa-banner.is-visible { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
        .pwa-banner-icon {
            width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
            background: rgba(59, 130, 246, .18); display: flex; align-items: center; justify-content: center;
        }
        .pwa-banner-icon img { width: 30px; height: 30px; border-radius: 7px; }
        .pwa-banner-text { flex: 1; min-width: 0; }
        .pwa-banner-title { font-size: 13px; font-weight: 800; margin-bottom: 2px; }
        .pwa-banner-sub { font-size: 10.5px; color: #cbd5e1; line-height: 1.6; }
        .pwa-banner-install {
            background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; border: none;
            font-family: inherit; font-size: 12px; font-weight: 800; border-radius: 11px;
            padding: 9px 16px; cursor: pointer; flex-shrink: 0; transition: filter .15s ease;
        }
        .pwa-banner-install:hover { filter: brightness(1.1); }
        .pwa-banner-close {
            background: transparent; border: none; color: #94a3b8; font-size: 17px;
            line-height: 1; cursor: pointer; padding: 4px; flex-shrink: 0; border-radius: 8px;
        }
        .pwa-banner-close:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ==================== تقویم شمسی (jalali-picker) ==================== */
.jalali-popup {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 950;
    width: 272px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(3, 12, 34, .18);
    padding: 10px;
    direction: rtl;
}
.jalali-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.jalali-title {
    font-weight: 800;
    font-size: 13px;
    color: #1e293b;
}
.jalali-nav {
    width: 28px;
    height: 28px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    color: #475569;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}
.jalali-nav:hover { background: #e2e8f0; }
.jalali-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 4px;
}
.jalali-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.jalali-day {
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    font-family: inherit;
}
.jalali-day:hover { background: #fef3e2; }
.jalali-day.today {
    border: 1px solid #d4a373;
    color: #b0835a;
    font-weight: 800;
}
.jalali-day.selected {
    background: #d4a373;
    color: #fff;
    font-weight: 800;
}
.jalali-blank { height: 32px; }
.jalali-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}
.jalali-today-btn, .jalali-clear {
    border: none;
    background: #f8fafc;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
}
.jalali-today-btn:hover { background: #fef3e2; color: #b0835a; }
.jalali-clear:hover { background: #fee2e2; color: #b91c1c; }

        /* ============================================================
         * حالت تاریک (آیتم ۵) — فعال‌سازی با <html data-theme="dark">
         * همهٔ صفحات بدون تغییر مارک‌آپ، از طریق متغیرها و بازنویسی
         * کلاس‌های پرکاربرد تاریک می‌شوند.
         * ============================================================ */
        html[data-theme="dark"] {
            --bg-light-canvas: #0b1322;
            --text-dark: #e5ebf5;
            --text-gray: #93a1b8;
            --text-white: #f3f6fb;
            --surface-1: #101b30;
            --surface-2: #16223a;
            --surface-3: #1d2b47;
            --line: #243351;
        }

        html[data-theme="dark"] .app-container {
            background: linear-gradient(180deg, var(--bg-dark-blue) 0%, var(--bg-dark-blue) 35%, var(--bg-light-canvas) 35%, var(--bg-light-canvas) 100%);
        }

        /* کارت‌ها و سطح‌های اصلی */
        html[data-theme="dark"] .card,
        html[data-theme="dark"] .empty-state,
        html[data-theme="dark"] .hint-card,
        html[data-theme="dark"] details.card {
            background: var(--surface-1);
            border-color: var(--line);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
        }

        /* فرم‌ها */
        html[data-theme="dark"] .form-input {
            background: var(--surface-2);
            border-color: var(--line);
            color: var(--text-dark);
        }
        html[data-theme="dark"] .form-input:focus {
            background: var(--surface-3);
        }
        html[data-theme="dark"] .form-label,
        html[data-theme="dark"] label {
            color: var(--text-gray);
        }
        html[data-theme="dark"] select.form-input option {
            background: var(--surface-2);
            color: var(--text-dark);
        }

        /* ناوبری پایین */
        html[data-theme="dark"] .bottom-nav-bar {
            background: linear-gradient(180deg, #14203a 0%, #0e1830 100%);
            border-top-color: var(--line);
            box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.45);
        }
        html[data-theme="dark"] .nav-item-link { color: #8fa0bb; }
        html[data-theme="dark"] .nav-item-link.active { color: #f1e6d6; }
        html[data-theme="dark"] .nav-item-link.active .nav-label { color: #f1e6d6; }

        /* بازنویسی کلاس‌های پرکاربرد یوتیلیتی (Tailwind) در حالت تاریک */
        html[data-theme="dark"] .text-gray-800,
        html[data-theme="dark"] .text-gray-900 { color: #e5ebf5 !important; }
        html[data-theme="dark"] .text-gray-700 { color: #c7d2e3 !important; }
        html[data-theme="dark"] .text-gray-600 { color: #aebcd2 !important; }
        html[data-theme="dark"] .text-gray-500 { color: #93a1b8 !important; }
        html[data-theme="dark"] .text-gray-400,
        html[data-theme="dark"] .text-gray-300 { color: #7e8ca6 !important; }

        html[data-theme="dark"] .bg-white { background-color: var(--surface-1) !important; }
        html[data-theme="dark"] .bg-gray-50,
        html[data-theme="dark"] .bg-gray-100 { background-color: var(--surface-2) !important; }
        html[data-theme="dark"] .bg-gray-200 { background-color: var(--surface-3) !important; }

        html[data-theme="dark"] .border-gray-50,
        html[data-theme="dark"] .border-gray-100,
        html[data-theme="dark"] .border-gray-200,
        html[data-theme="dark"] .border-gray-300 { border-color: var(--line) !important; }

        /* جدول‌ها و سربرگ بخش‌ها */
        html[data-theme="dark"] table { color: var(--text-dark); }
        html[data-theme="dark"] th { color: var(--text-gray) !important; }
        html[data-theme="dark"] .section-title { color: var(--text-dark); }
        html[data-theme="dark"] .btn-chip-neutral {
            background: var(--surface-2);
            color: var(--text-dark);
            border-color: var(--line);
        }
        html[data-theme="dark"] .btn-chip-gold {
            background: linear-gradient(135deg, var(--gold-primary), #b08654);
            color: #fff;
            box-shadow: 0 2px 10px rgba(212, 163, 115, 0.25);
        }
        html[data-theme="dark"] .btn-chip-edit { background: rgba(59, 130, 246, 0.16); color: #93c5fd; }
        html[data-theme="dark"] .btn-chip-edit:hover { background: rgba(59, 130, 246, 0.28); }
        html[data-theme="dark"] .btn-chip-danger { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }
        html[data-theme="dark"] .btn-chip-danger:hover { background: rgba(239, 68, 68, 0.26); }
        html[data-theme="dark"] .btn-chip-success { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; }
        html[data-theme="dark"] .btn-chip-success:hover { background: rgba(16, 185, 129, 0.26); }

        /* حباب‌های گفتگو */
        html[data-theme="dark"] .chat-thread-area { background: #0a1120 !important; }

        /* دکمهٔ تغییر حالت شب/روز در هدر */
        .theme-toggle-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            color: rgba(255, 255, 255, 0.85);
            background: rgba(255, 255, 255, 0.08);
            transition: background 0.2s ease, transform 0.15s ease;
        }
        .theme-toggle-btn:active { transform: scale(0.92); }
        .theme-toggle-btn svg { display: block; }
        html[data-theme="dark"] .theme-toggle-btn .ico-moon { display: none; }
        html:not([data-theme="dark"]) .theme-toggle-btn .ico-sun { display: none; }

        /* ============================================================
         * توست (اسنک‌بار) — جایگزین موبایل‌پسند بنر هشدار
         * ============================================================ */
        #toast-stack {
            position: fixed;
            bottom: calc(var(--app-nav-h) + 18px);
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 32px);
            max-width: 400px;
            z-index: 100;
            display: flex;
            flex-direction: column;
            gap: 8px;
            pointer-events: none;
        }
        .app-toast {
            pointer-events: auto;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 14px;
            border-radius: 14px;
            font-size: 13px;
            font-weight: 600;
            line-height: 1.7;
            box-shadow: 0 10px 30px rgba(2, 10, 32, 0.25);
            cursor: pointer;
            animation: toast-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
        }
        .app-toast span { overflow-wrap: anywhere; word-break: break-word; }
        .app-toast-success { background: #0f9d6e; color: #fff; }
        .app-toast-error { background: #dc4c4c; color: #fff; }
        .app-toast-icon { display: inline-flex; flex-shrink: 0; }
        .app-toast-out { opacity: 0; transform: translateY(12px); transition: all 0.25s ease; }
        @keyframes toast-in {
            from { opacity: 0; transform: translateY(16px) scale(0.97); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* ============================================================
         * نوار پیشرفت ناوبری (بالای صفحه)
         * ============================================================ */
        #page-progress {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            width: 0;
            background: linear-gradient(90deg, var(--gold-primary), var(--gold-secondary));
            z-index: 120;
            border-radius: 0 3px 3px 0;
            box-shadow: 0 0 8px rgba(212, 163, 115, 0.8);
        }
        #page-progress.active {
            animation: progress-slide 1.1s ease forwards;
        }
        #page-progress.done { width: 100% !important; opacity: 0; transition: opacity 0.3s ease 0.1s; }
        @keyframes progress-slide {
            0% { width: 0; }
            55% { width: 68%; }
            100% { width: 88%; }
        }

        /* دکمهٔ در حال ارسال */
        .btn-spinner {
            display: inline-block;
            width: 14px;
            height: 14px;
            margin-left: 6px;
            vertical-align: -2px;
            border: 2px solid rgba(255, 255, 255, 0.45);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin-anim 0.7s linear infinite;
        }
        @keyframes spin-anim { to { transform: rotate(360deg); } }

        /* ============================================================
         * اسکلت بارگذاری (برای بخش‌های داده‌محور)
         * ============================================================ */
        .skel {
            position: relative;
            overflow: hidden;
            background: #e6ebf2;
            border-radius: 10px;
        }
        html[data-theme="dark"] .skel { background: #1d2b47; }
        .skel::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
            animation: skel-wave 1.3s infinite;
        }
        html[data-theme="dark"] .skel::after {
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
        }
        @keyframes skel-wave {
            from { transform: translateX(100%); }
            to { transform: translateX(-100%); }
        }
        .skel-line { height: 12px; margin-bottom: 8px; }
        .skel-line.w-60 { width: 60%; }
        .skel-line.w-40 { width: 40%; }
        .skel-card { height: 76px; margin-bottom: 10px; }

        /* اسکلت ناوبری: هنگام رفتن به صفحهٔ بعد، روی صفحهٔ فعلی می‌نشیند
           تا بارگذاری صفحهٔ جدید «خالی» به نظر نرسد */
        .nav-skeleton-overlay {
            position: fixed;
            inset: 0;
            z-index: 90;
            background: var(--text-white);
            padding: calc(var(--app-header-h, 56px) + 14px) 16px 90px;
            animation: nav-skel-fade 0.18s ease;
        }
        html[data-theme="dark"] .nav-skeleton-overlay { background: var(--bg-light-canvas); }
        .nav-skeleton-overlay .nav-skel-head {
            display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
        }
        .nav-skeleton-overlay .nav-skel-circle { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
        @keyframes nav-skel-fade { from { opacity: 0; } to { opacity: 1; } }

        /* ============================================================
         * نوار فیلتر چسبان + صفحه‌بندی فهرست‌ها
         * ============================================================ */
        .list-filter-bar {
            position: sticky;
            top: calc(var(--app-header-h) + 8px);
            z-index: 45;
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--text-white);
            border: 1px solid #eef2f7;
            border-radius: 14px;
            padding: 8px 10px;
            margin: 0 0 12px;
            box-shadow: 0 6px 18px rgba(2, 10, 32, 0.08);
        }
        html[data-theme="dark"] .list-filter-bar {
            background: var(--surface-1);
            border-color: var(--line);
        }
        .list-filter-bar .form-input {
            padding: 8px 12px;
            font-size: 12.5px;
        }
        .list-count-chip {
            flex-shrink: 0;
            font-size: 10.5px;
            font-weight: 700;
            color: var(--text-gray);
            background: #f1f5f9;
            border-radius: 999px;
            padding: 4px 10px;
        }
        html[data-theme="dark"] .list-count-chip { background: var(--surface-3); }

        .list-pager {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-top: 14px;
        }
        .list-pager-btn {
            border: none;
            background: var(--bg-dark-blue);
            color: #fff;
            font-family: inherit;
            font-size: 12px;
            font-weight: 700;
            border-radius: 10px;
            padding: 8px 18px;
            cursor: pointer;
        }
        .list-pager-btn:disabled { opacity: 0.35; cursor: default; }
        .list-pager-info { font-size: 11.5px; font-weight: 700; color: var(--text-gray); }

        /* ============================================================
         * برگهٔ تأیید پایین صفحه (حذف و اقدامات حساس با نام مورد)
         * ============================================================ */
        .sheet-overlay {
            position: fixed;
            inset: 0;
            background: rgba(2, 10, 32, 0.55);
            z-index: 130;
            opacity: 0;
            transition: opacity 0.22s ease;
        }
        .sheet-overlay.is-open { opacity: 1; }
        .app-sheet {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 131;
            max-width: 480px;
            margin: 0 auto;
            background: var(--text-white);
            border-radius: 20px 20px 0 0;
            padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
            transform: translateY(105%);
            transition: transform 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
            box-shadow: 0 -10px 40px rgba(2, 10, 32, 0.25);
        }
        html[data-theme="dark"] .app-sheet { background: var(--surface-2); }
        .app-sheet.is-open { transform: translateY(0); }
        .app-sheet-title {
            font-size: 15px;
            font-weight: 800;
            color: var(--text-dark);
            margin-bottom: 8px;
        }
        html[data-theme="dark"] .app-sheet-title { color: #fff; }
        .app-sheet-name {
            font-size: 13px;
            font-weight: 700;
            color: var(--gold-primary);
            background: rgba(212, 163, 115, 0.12);
            border: 1px solid rgba(212, 163, 115, 0.35);
            border-radius: 10px;
            padding: 8px 12px;
            margin-bottom: 8px;
        }
        .app-sheet-message {
            font-size: 12.5px;
            line-height: 1.9;
            color: var(--text-gray);
            margin-bottom: 14px;
        }
        .app-sheet-actions { display: flex; gap: 10px; }
        .app-sheet-btn {
            flex: 1;
            border: none;
            font-family: inherit;
            font-size: 13px;
            font-weight: 700;
            border-radius: 12px;
            padding: 11px 14px;
            cursor: pointer;
        }
        .app-sheet-btn-cancel { background: #f1f5f9; color: var(--text-dark); }
        html[data-theme="dark"] .app-sheet-btn-cancel { background: var(--surface-3); color: #fff; }
        .app-sheet-btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }

        /* ============================================================
         * نوار اقدام گروهی پرداخت‌ها
         * ============================================================ */
        .bulk-bar {
            position: fixed;
            bottom: calc(var(--app-nav-h) + 14px);
            left: 12px;
            right: 12px;
            max-width: 480px;
            margin: 0 auto;
            z-index: 70;
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--bg-dark-blue);
            color: #fff;
            border-radius: 16px;
            padding: 10px 12px;
            box-shadow: 0 12px 32px rgba(2, 10, 32, 0.4);
            animation: toast-in 0.25s ease;
        }
        .bulk-bar-check {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            flex-shrink: 0;
        }
        .bulk-bar-count { font-size: 11px; flex: 1; min-width: 0; }
        .bulk-bar-count b { color: var(--gold-primary); }
        .bulk-bar-actions { display: flex; gap: 6px; flex-shrink: 0; }
        .bulk-bar .btn-chip { font-size: 11px; padding: 7px 10px; }
        .bulk-check-label {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            margin-top: 2px;
            flex-shrink: 0;
            cursor: pointer;
        }
        .bulk-check {
            width: 17px;
            height: 17px;
            accent-color: var(--gold-primary);
            cursor: pointer;
        }

        /* ============================================================
         * انتقال نرم رنگ‌ها هنگام تغییر حالت شب/روز
         * ============================================================ */
        html.theme-transition body,
        html.theme-transition .app-container,
        html.theme-transition main,
        html.theme-transition .card,
        html.theme-transition .app-header,
        html.theme-transition .app-nav,
        html.theme-transition .app-nav-item,
        html.theme-transition .section-title,
        html.theme-transition .list-filter-bar,
        html.theme-transition .chip,
        html.theme-transition .form-input,
        html.theme-transition .app-sheet {
            transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
        }

        /* ============================================================
         * جداکنندهٔ گروه‌بندی روزانه در فهرست‌ها
         * ============================================================ */
        .list-day-divider {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 16px 0 8px;
            font-size: 11px;
            font-weight: 800;
            color: var(--text-gray);
        }
        .list-day-divider::before,
        .list-day-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #eef2f7;
        }
        html[data-theme="dark"] .list-day-divider::before,
        html[data-theme="dark"] .list-day-divider::after { background: var(--line); }

        /* ============================================================
         * دسترسی‌پذیری لمس: هدف ≥۴۴ پیکسل + برچسب‌های خوانا
         * ============================================================ */
        .nav-label { font-size: 10.5px; }
        .nav-item-link { min-height: 44px; }
        .btn-chip {
            min-height: 44px;
            padding: 10px 14px;
            font-size: 12px;
        }
        .theme-toggle-btn,
        .notification-bell {
            min-width: 44px;
            min-height: 44px;
        }
        .list-pager-btn,
        .app-sheet-btn,
        .pwa-banner-install,
        .pwa-banner-close { min-height: 44px; }
        .bulk-check-label { width: 30px; height: 30px; }
        .bulk-check { width: 20px; height: 20px; }
        .list-filter-bar .form-input { min-height: 44px; }

        /* دکمهٔ اصلی فرم‌ها: چسبان در دسترس شست */
        form.sticky-submit .btn-primary {
            position: sticky;
            bottom: calc(var(--app-nav-h) + 14px);
            z-index: 55;
            min-height: 48px;
            box-shadow: 0 14px 30px rgba(2, 10, 32, 0.35);
        }

        /* ============================================================
         * الگوی یکپارچهٔ حالت خالی: آیکون + توضیح + دکمهٔ اقدام
         * ============================================================ */
        .empty-state .empty-icon {
            font-size: 38px;
            margin-bottom: 10px;
            line-height: 1;
            width: 92px;
            height: 92px;
            margin-left: auto;
            margin-right: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 25%, rgba(212, 163, 115, .22), rgba(212, 163, 115, .07));
            border: 1.5px dashed rgba(212, 163, 115, .45);
            position: relative;
            animation: bms-empty-float 3.2s ease-in-out infinite;
        }
        .empty-state .empty-icon::after {
            content: '✦';
            position: absolute;
            top: 6px;
            left: 12px;
            font-size: 12px;
            color: var(--gold-primary);
            opacity: .8;
        }
        @keyframes bms-empty-float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-4px); }
        }
        html[data-theme="dark"] .empty-state .empty-icon {
            background: radial-gradient(circle at 30% 25%, rgba(212, 163, 115, .16), transparent);
        }
        .empty-action {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: 14px;
            min-height: 44px;
            padding: 10px 24px;
            background: var(--bg-dark-blue);
            color: #fff;
            font-family: inherit;
            font-size: 13px;
            font-weight: 700;
            border: none;
            border-radius: 12px;
            text-decoration: none;
            cursor: pointer;
            box-shadow: 0 8px 20px rgba(2, 10, 32, 0.22);
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }
        .empty-action:active { transform: scale(0.97); }
        html[data-theme="dark"] .empty-action {
            background: var(--surface-3);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        }

        /* ==================== نمودارهای داشبورد تحلیلی ==================== */
        .analytics-section { margin: 14px 0; }
        .analytics-grid {
            display: grid;
            grid-template-columns: 1fr 130px;
            gap: 12px;
            align-items: stretch;
        }
        @media (max-width: 380px) { .analytics-grid { grid-template-columns: 1fr; } }
        .analytics-panel {
            background: var(--surface-1, #fff);
            border: 1px solid var(--line, #eef2f7);
            border-radius: 16px;
            padding: 14px;
            box-shadow: 0 2px 10px rgba(3, 12, 34, 0.05);
        }
        .analytics-panel-title {
            font-size: 12px;
            font-weight: 800;
            color: var(--text-dark);
            margin: 0 0 10px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .bms-chart-legend { font-size: 10px; color: var(--text-gray); margin-bottom: 6px; display: flex; align-items: center; }
        .bms-legend-dot { width: 8px; height: 8px; border-radius: 3px; display: inline-block; margin-left: 5px; }
        .bms-chart-empty { font-size: 11px; color: var(--text-gray); text-align: center; padding: 14px 0; }
        .bms-donut-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 6px; }
        .bms-donut-caption { font-size: 10px; color: var(--text-gray); text-align: center; }
        .bms-hbar-row { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 8px; margin-bottom: 9px; }
        .bms-hbar-label { font-size: 10.5px; font-weight: 700; color: var(--text-dark); white-space: nowrap; }
        .bms-hbar-track { background: var(--surface-2, #f1f5f9); border-radius: 6px; height: 8px; overflow: hidden; }
        .bms-hbar-fill { display: block; height: 100%; border-radius: 6px; transition: width .8s ease; }
        .bms-hbar-value { font-size: 9.5px; color: var(--text-gray); white-space: nowrap; direction: ltr; }
        html[data-theme="dark"] .analytics-panel { background: var(--surface-1); border-color: var(--line); }
        html[data-theme="dark"] { --chart-track: #1e293b; --chart-text: #f1f5f9; --chart-axis: #64748b; --chart-expense: #e07a5f; }

        /* ==================== توست (اعلان سبک) ==================== */
        .bms-toast-stack {
            position: fixed;
            bottom: calc(76px + env(safe-area-inset-bottom, 0px));
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: min(92vw, 420px);
            pointer-events: none;
        }
        .bms-toast {
            pointer-events: auto;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 11px 14px;
            border-radius: 14px;
            font-size: 12.5px;
            font-weight: 700;
            color: #fff;
            background: var(--bg-dark-blue, #010a21);
            box-shadow: 0 10px 30px rgba(2, 10, 32, 0.35);
            opacity: 0;
            transform: translateY(12px) scale(.97);
            transition: opacity .25s ease, transform .3s cubic-bezier(.2,.9,.3,1.2);
        }
        .bms-toast.show { opacity: 1; transform: translateY(0) scale(1); }
        .bms-toast-success { background: linear-gradient(135deg, #059669, #047857); }
        .bms-toast-error { background: linear-gradient(135deg, #dc2626, #b91c1c); }
        .bms-toast-info { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
        html[data-theme="dark"] .bms-toast { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); }

        /* ==================== انتقال نرم صفحات و پولیش ==================== */
        @keyframes bms-page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
        main { animation: bms-page-in .3s ease both; }
        /* منحنی یکپارچه و فنری برای پاپ‌آپ و برگهٔ پایینی */
        .modal-sheet, .app-sheet {
            transition: transform .32s cubic-bezier(.22,.9,.28,1.12) !important;
        }
        @keyframes bms-btn-shine { from { transform: translateX(120%); } to { transform: translateX(-120%); } }
        .btn-gold, .btn-primary, .empty-action {
            position: relative;
            overflow: hidden;
            transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
        }
        .btn-gold:active, .btn-primary:active, .empty-action:active { transform: scale(.97); }

        /* نشان وضعیت اعلان فوری (پروفایل) */
        .push-state-badge {
            font-size: 10px;
            font-weight: 800;
            padding: 4px 10px;
            border-radius: 8px;
            background: var(--surface-2, #f1f5f9);
            color: var(--text-gray);
            white-space: nowrap;
        }
        .push-state-badge.on { background: rgba(16, 185, 129, .14); color: #059669; }
        .push-state-badge.off { background: var(--surface-2, #f1f5f9); color: var(--text-gray); }
        html[data-theme="dark"] .push-state-badge.on { color: #34d399; }
        .btn-gold:hover::after, .btn-primary:hover::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
            animation: bms-btn-shine .9s ease;
        }
        @media (prefers-reduced-motion: reduce) {
            main, .bms-toast, .modal-content { animation: none !important; transition: none !important; }
        }

        /* ==================== تور آنبوردینگ مدیر ==================== */
        .bms-tour-overlay {
            position: fixed;
            inset: 0;
            z-index: 9998;
            background: rgba(1, 10, 33, 0.55);
            backdrop-filter: blur(1px);
            transition: opacity .25s ease;
        }
        .bms-tour-spotlight {
            position: absolute;
            border-radius: 14px;
            box-shadow: 0 0 0 9999px rgba(1, 10, 33, 0.55), 0 0 0 3px var(--gold-primary);
            transition: all .35s cubic-bezier(.2,.9,.3,1);
            pointer-events: none;
        }
        .bms-tour-card {
            position: absolute;
            z-index: 9999;
            width: min(86vw, 320px);
            background: #fff;
            border-radius: 16px;
            padding: 16px;
            box-shadow: 0 18px 50px rgba(2, 10, 32, 0.35);
            animation: bms-modal-in .3s ease both;
        }
        html[data-theme="dark"] .bms-tour-card { background: var(--surface-2); }
        .bms-tour-step-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 22px; height: 22px;
            border-radius: 8px;
            background: var(--gold-primary);
            color: #fff;
            font-size: 11px;
            font-weight: 800;
            margin-bottom: 8px;
        }
        .bms-tour-title { font-size: 13.5px; font-weight: 900; color: var(--text-dark); margin: 0 0 6px; }
        .bms-tour-text { font-size: 11.5px; line-height: 1.9; color: var(--text-gray); margin: 0 0 12px; }
        .bms-tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
        .bms-tour-skip { background: none; border: none; font-family: inherit; font-size: 11px; color: var(--text-gray); cursor: pointer; }
        .bms-tour-next {
            border: none; font-family: inherit; cursor: pointer;
            background: var(--gold-primary); color: #fff;
            font-size: 12px; font-weight: 800;
            padding: 8px 18px; border-radius: 10px;
        }

/* ==================== چاپ نقشهٔ ساختمان (خروجی برای تابلوی اعلانات) ==================== */
@media print {
    body.printing-map * { visibility: hidden; }
    body.printing-map #building-map-section,
    body.printing-map #building-map-section * { visibility: visible; }
    body.printing-map #building-map-section { position: absolute; inset: 0; width: 100%; padding: 16px; }
    body.printing-map .bms-print-only { display: block !important; }
    body.printing-map .no-print { display: none !important; }
    body.printing-map .bldg-card { box-shadow: none; border: 1px solid #ddd; }
}

/* ==================== حالت شب — پوشش باقی‌ماندهٔ کامپوننت‌ها (ممیزی عمیق) ==================== */
html[data-theme="dark"] {
    --chip-debt-bg: rgba(239, 68, 68, 0.2);
    --chip-debt-ink: #fca5a5;
    --chip-credit-bg: rgba(16, 185, 129, 0.2);
    --chip-credit-ink: #6ee7b7;
    --chip-zero-bg: var(--surface-3);
    --chip-zero-ink: var(--text-gray);
    --warn-bg: rgba(245, 158, 11, 0.14);
    --warn-line: rgba(245, 158, 11, 0.35);
    --warn-ink: #fdba74;
    --soft-indigo: rgba(99, 102, 241, 0.2);
    --indigo-ink: #a5b4fc;
    --soft-gray: var(--surface-2);
    --soft-line: var(--line);
}
html[data-theme="dark"] .auth-shell { background: var(--surface-1); }
html[data-theme="dark"] .auth-input { background: var(--surface-2); border-color: var(--line); color: var(--text-dark); }
html[data-theme="dark"] .auth-input::placeholder { color: var(--text-gray); }
html[data-theme="dark"] .auth-phone-badge { background: var(--surface-2); border-color: var(--line); }
html[data-theme="dark"] .auth-alert-debug { background: #2b230c; color: #fcd34d; border-color: rgba(252, 211, 77, 0.4); }
html[data-theme="dark"] .btn-secondary { background: var(--surface-2); color: #a5b4fc; }
html[data-theme="dark"] .btn-secondary:hover { background: var(--surface-3); }
html[data-theme="dark"] .jalali-popup { background: var(--surface-1); border-color: var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
html[data-theme="dark"] .jalali-nav { background: var(--surface-2); }
html[data-theme="dark"] .jalali-foot { border-top-color: var(--line); }
html[data-theme="dark"] .jalali-day { color: var(--text-dark); }
html[data-theme="dark"] .jalali-day:hover { background: rgba(212, 163, 115, 0.15); }
html[data-theme="dark"] .jalali-day.today { color: var(--gold-secondary); border-color: var(--gold-primary); }
html[data-theme="dark"] .jalali-clear { background: var(--surface-2); }
html[data-theme="dark"] .jalali-clear:hover { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
html[data-theme="dark"] .bldg-card { background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-2) 100%); border-color: var(--line); }
html[data-theme="dark"] .bldg-body { background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%); border-color: var(--line); }
html[data-theme="dark"] .bldg-floor-label { background: var(--surface-2); border-color: var(--line); color: var(--text-gray); }
html[data-theme="dark"] .bldg-legend-item { background: var(--surface-2); border-color: var(--line); }
html[data-theme="dark"] .bldg-unit.occ-owner { background: linear-gradient(180deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.10)); }
html[data-theme="dark"] .bldg-unit.occ-tenant { background: linear-gradient(180deg, rgba(14, 165, 233, 0.22), rgba(14, 165, 233, 0.10)); }
html[data-theme="dark"] .bldg-unit.occ-vacant { background: linear-gradient(180deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.10)); }
html[data-theme="dark"] .bldg-unit.occ-none { background: linear-gradient(180deg, rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0.08)); }
html[data-theme="dark"] .unit-modal-badge { background: var(--soft-indigo); }
html[data-theme="dark"] .doc-group-count { background: var(--soft-indigo); color: #a5b4fc; }
html[data-theme="dark"] .doc-file-drop { border-color: #3d5278; }
html[data-theme="dark"] .doc-vis-toggle { background: var(--surface-2); border-color: var(--line); }
html[data-theme="dark"] .doc-tab { border-color: var(--line); }
html[data-theme="dark"] .doc-tab:has(input:checked) { background: rgba(59, 130, 246, 0.16); color: #93c5fd; }
html[data-theme="dark"] .charge-preview-row { background: var(--surface-2); }
html[data-theme="dark"] .choice-item { background: var(--surface-2); border-color: var(--line); }
html[data-theme="dark"] .choice-item:has(input:checked) { background: rgba(59, 130, 246, 0.14); }
html[data-theme="dark"] .unit-info-row { background: var(--surface-2); border-color: var(--line); }
html[data-theme="dark"] .card-actions { border-top-color: var(--line); }

/* ==================== دسترسی‌پذیری ==================== */
/* لینک پرش: فقط با فوکوس کیبورد دیده می‌شود */
.skip-link {
    position: absolute; top: -60px; right: 8px; z-index: 2000;
    background: var(--gold-primary, #d4a373); color: #fff;
    padding: 10px 18px; border-radius: 12px; font-weight: 800; font-size: 13px;
    text-decoration: none; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: top 0.2s ease;
}
.skip-link:focus { top: 8px; }

/* حلقهٔ فوکوس مشخص برای عناصر تعاملی سفارشی */
.quick-btn-item:focus-visible, .nav-item-link:focus-visible, .cal-day:focus-visible,
.bldg-unit:focus-visible, .btn-chip:focus-visible, .empty-action:focus-visible,
.widget-view-all-link:focus-visible, .edit-action-btn:focus-visible,
.btn-view-profile:focus-visible, .announcement-list-item:focus-visible {
    outline: 2px solid var(--gold-primary, #d4a373);
    outline-offset: 2px;
}

/* کاهش حرکت برای کاربرانی که آن را ترجیح می‌دهند */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* پوشش تکمیلی حالت شب (دور دسترسی‌پذیری/ظاهر) */
html[data-theme="dark"] .modal-close { background: var(--surface-3); color: var(--text-gray); }
html[data-theme="dark"] .modal-close:hover { background: var(--line); }
html[data-theme="dark"] .auth-body { background: var(--bg-light-canvas); }
html[data-theme="dark"] .auth-step-dot { background: var(--line); }
html[data-theme="dark"] .auth-alert-error { background: #3b1216; color: #fecaca; border-color: #7f1d1d; }
html[data-theme="dark"] .auth-alert-info { background: #12233f; color: #93c5fd; border-color: #1e3a5f; }
html[data-theme="dark"] .btn-chip-ghost:hover { background: var(--surface-2); }
html[data-theme="dark"] .doc-tab { background: var(--surface-2); }
html[data-theme="dark"] .jalali-nav:hover { background: var(--surface-3); }
html[data-theme="dark"] .jalali-today-btn:hover { background: rgba(212, 163, 115, 0.15); }
html[data-theme="dark"] .bldg-unit { background: var(--surface-2); }

/* راهنمای کوتاه صفحه: یک خط توضیح زیر هدر */
.page-hint {
    margin: 10px 16px 0;
    padding: 9px 12px;
    font-size: 11.5px;
    line-height: 1.9;
    color: var(--text-gray);
    background: var(--surface-2, rgba(255, 255, 255, 0.06));
    border: 1px dashed var(--line, rgba(255, 255, 255, 0.14));
    border-radius: 12px;
}

/* ---------------------------------------------------------------
   جستجوی سراسری (search.php)
   --------------------------------------------------------------- */
.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.search-form .search-input {
    flex: 1;
}
.search-form .search-submit {
    white-space: nowrap;
}
.search-summary {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: var(--text-gray);
}
.search-result-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line, #e5e7eb);
    text-decoration: none;
    transition: border-color 0.2s;
}
.search-result-card:hover {
    border-color: var(--gold-primary);
}
.search-result-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #111827;
}
.search-result-sub {
    font-size: 0.78rem;
    color: var(--text-gray);
}
html[data-theme="dark"] .search-result-card {
    background: var(--bg-card-dark) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .search-result-title {
    color: #f3f4f6 !important;
}
