

        :root {
            --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;
            height: var(--app-nav-h);
            z-index: 60;
            background-color: var(--text-white);
            border-top: 1px solid #f1f5f9;
            border-radius: 24px 24px 0 0;
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 0 12px;
            box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.04);
        }

        .nav-item-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            text-decoration: none;
            color: var(--text-gray);
            position: relative;
            cursor: pointer;
            width: 60px;
        }

        .nav-item-link span {
            font-size: 9px;
            font-weight: 800;
        }

        .nav-item-link.active {
            color: #0c1a30;
        }

        .active-pill-box {
            background-color: #0a1931;
            padding: 6px 12px;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            color: var(--text-white);
        }

        .active-pill-box span {
            color: var(--text-white);
            margin-top: 2px;
        }

        .nav-badge {
            position: absolute;
            top: -3px;
            right: 14px;
            background-color: var(--gold-primary);
            color: #000;
            font-size: 8px;
            font-weight: 900;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* دکمه دایره‌ای شناور وسط ناوبری */
        .floating-action-button {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, #e5ba93 0%, #b88553 100%);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 6px 16px rgba(184, 133, 83, 0.45);
            border: 3px solid var(--text-white);
            margin-top: -30px;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .floating-action-button:active {
            transform: scale(0.9);
        }
    

        /* ---- کلاس‌های کمکی صفحات داخلی (هم‌خانواده با دیزاین اصلی) ---- */
        .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-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
        .app-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

        /* دکمه بازگشت و عنوان صفحات داخلی */
        .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; }

        /* کارت راهنما */
        .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; }

        /* ==================== کارت خلاصه مالی ==================== */
        .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; }
