/* Dark Mode CSS */
        :root {
            --primary: #3a86ff;
            --primary-dark: #2a6fd7;
            --secondary: #ff006e;
            --secondary-dark: #d8005e;
            --success: #06d6a0;
            --success-dark: #05b489;
            --warning: #ffd166;
            --warning-dark: #ffc245;
            --danger: #ef476f;
            --danger-dark: #d63a5e;
            --reunited: #9c27b0;
            --dark: #1d3557;
            --darker: #0f1d32;
            --light: #f8f9fa;
            --lighter: #ffffff;
            --gray: #6c757d;
            --gray-light: #e9ecef;
            --border: #dee2e6;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
            --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            --card-radius: 16px;
            --notification-bg: #1877f2;
            --notification-icon: #ffffff;
        }
        .dark-mode {
            --primary: #3a86ff;
            --primary-dark: #5b9bf8;
            --secondary: #ff006e;
            --secondary-dark: #ff3399;
            --success: #06d6a0;
            --success-dark: #09f5bb;
            --warning: #ffd166;
            --warning-dark: #ffeb99;
            --danger: #ef476f;
            --danger-dark: #ff6699;
            --reunited: #9c27b0;
            --dark: #e9ecef;
            --light: #212529;
            --lighter: #343a40;
            --gray: #adb5bd;
            --gray-light: #495057;
            --border: #495057;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }
        /* General Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        body {
            background-color: var(--light);
            color: var(--dark);
            line-height: 1.6;
            min-height: 100vh;
            padding-top: 60px;
            transition: background-color 0.3s ease, color 0.3s ease;
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        /* 1. إعادة تصميم شريط التنقل العلوي كبطاقة واحدة */
        header {
            background-color: var(--lighter);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            transition: var(--transition);
            height: 60px;
        }
        .scrolled-header {
            padding: 5px 0;
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(5px);
        }
        .dark-mode .scrolled-header {
            background-color: rgba(52, 58, 64, 0.95);
        }
        .navbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 0;
            height: 100%;
        }
        /* تعديل لعناصر شريط التنقل لتكون مرنة ومحتواة في سطر واحد */
        .navbar-content {
            display: flex;
            align-items: center;
            flex-grow: 1;
        }
        /* تعديل ليكون زر القائمة الجانبية على اليمين في RTL */
        .logo {
            display: flex;
            align-items: center;
            font-size: 0.9rem;
            font-weight: 800;
            color: var(--primary);
            text-decoration: none;
            transition: var(--transition);
            margin-right: 0;
            margin-left: 8px;
            flex-shrink: 0;
            order: 1;
        }
        .logo:hover {
            color: var(--primary-dark);
        }
        /* 2. تكبير حجم الشعار في شريط التنقل */
        .logo img {
            width: 28px;
            height: 28px;
            margin-right: 4px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        /* تعديلات nav-links لتضمين الأيقونات الخمس فقط وتوسيطها */
        .nav-links {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin: 0 auto;
            flex-grow: 1;
            order: 2;
        }
        
        .nav-links a, .nav-links .notification-btn {
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            padding: 6px 10px;
            border-radius: 10px;
            transition: var(--transition);
            cursor: pointer;
            font-size: 14px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            line-height: 1.2;
        }
        
        /* تكبير حجم الأيقونات الخمس الرئيسية */
        .nav-links a i, .nav-links .notification-btn i {
            font-size: 20px;
            margin-bottom: 4px;
        }
        
        /* إضافة نمط لعرض الإحصائيات تحت الروابط */
        .nav-stat {
            display: block;
            font-size: 0.7rem;
            font-weight: 700;
            color: var(--primary);
            margin-top: 2px;
        }
        
        .nav-links a.active .nav-stat {
            color: white;
        }
        
        .nav-links a:hover, .nav-links a.active, .nav-links .notification-btn:hover {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            transform: translateY(-1px);
        }
        
        /* إخفاء عناصر الـ auth-buttons من شريط التنقل العلوي */
        .auth-buttons {
            display: flex;
            gap: 8px;
            align-items: center;
        }
        
        /* 3. تنسيق زر الهامبرغر - إصلاح للشاشات الكبيرة */
        .hamburger-btn {
            background: none;
            border: none;
            font-size: 24px;
            color: var(--dark);
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
            transition: var(--transition);
            margin-left: 0;
            margin-right: 8px;
            display: flex; /* دائماً معروض */
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            order: 3;
        }
        .hamburger-btn:hover {
            background-color: var(--gray-light);
        }
        .dark-mode .hamburger-btn {
            color: var(--dark);
        }
        
        /* 4. تنسيق القائمة الجانبية (Side Menu) - **التعديل الجوهري** */
        .side-menu {
            position: fixed;
            top: 0;
            left: 0; /* **التصحيح: تثبيتها على اليسار** */
            height: 100%;
            width: 250px;
            background-color: var(--lighter);
            box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2); /* تعديل الظل ليتناسب مع الحركة من اليسار */
            z-index: 1500;
            transform: translateX(-100%); /* **التصحيح: إزاحة 100% نحو اليسار لإخفائها** */
            transition: transform 0.3s ease-in-out;
            padding: 20px;
            display: flex;
            flex-direction: column;
        }
        .side-menu.open {
            transform: translateX(0); /* **التصحيح: سحبها إلى مكانها** (تفتح من اليسار إلى اليمين) */
        }
        .dark-mode .side-menu {
            background-color: var(--lighter);
            box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
        }
        
        .side-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border);
        }
        .side-menu-close {
            background: none;
            border: none;
            font-size: 28px;
            color: var(--gray);
            cursor: pointer;
            transition: var(--transition);
        }
        .side-menu-close:hover {
            color: var(--danger);
        }
        
        .side-menu-link {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 12px 15px;
            margin-bottom: 10px;
            border-radius: 8px;
            text-decoration: none;
            color: var(--dark);
            font-size: 16px;
            font-weight: 500;
            transition: var(--transition);
            cursor: pointer;
        }
        .side-menu-link i {
            font-size: 18px;
            color: var(--primary);
        }
        .side-menu-link:hover {
            background-color: var(--gray-light);
            color: var(--primary-dark);
        }
        .dark-mode .side-menu-link:hover {
            background-color: var(--gray-light);
        }
        
        .side-menu-auth-section {
            margin-top: auto;
            padding-top: 15px;
            border-top: 1px solid var(--border);
        }
        
        .side-menu-user-profile {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 0;
            cursor: pointer;
            margin-bottom: 10px;
        }
        .side-menu-user-profile img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primary);
        }
        .side-menu-user-profile span {
            font-weight: 600;
            font-size: 16px;
        }
        
        .side-menu .logout-btn {
            width: 100%;
            margin-top: 10px;
            padding: 10px;
            font-size: 14px;
            border-radius: 8px;
        }
        
        .side-menu-toggle-group {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            margin-top: 10px;
        }
        .side-menu-toggle-group span {
            font-size: 16px;
            font-weight: 500;
        }
        
        /* تظليل الخلفية عند فتح القائمة الجانبية */
        .side-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1400;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
        }
        .side-menu-overlay.show {
            display: block;
            opacity: 1;
        }
        
        /* تنسيقات أخرى من الكود الأصلي */
        .user-profile {
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            padding: 2.5px 5px;
            border-radius: 25px;
            transition: background-color 0.3s;
        }
        .user-profile:hover {
            background-color: var(--gray-light);
        }
        .user-avatar {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid var(--primary);
        }
        .user-name {
            font-weight: 500;
            color: var(--dark);
            font-size: 9px;
        }
        .btn {
            padding: 4px 8px;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            font-size: 11px;
            font-weight: 500;
            text-decoration: none;
            display: inline-block;
            text-align: center;
            transition: var(--transition);
            box-shadow: var(--shadow);
        }
        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
        }
        .btn-primary:hover {
            background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
            transform: translateY(-1.5px);
            box-shadow: 0 3px 7.5px rgba(0, 0, 0, 0.15);
        }
        .btn-outline {
            background-color: transparent;
            color: var(--primary);
            border: 1px solid var(--primary);
        }
        .dark-mode .btn-outline {
            background-color: transparent;
            color: var(--primary);
            border: 1px solid var(--primary);
        }
        .btn-outline:hover {
            background-color: var(--primary);
            color: white;
            transform: translateY(-1.5px);
        }
        .btn-success {
            background: linear-gradient(135deg, var(--success), var(--success-dark));
            color: white;
        }
        .btn-success:hover {
            background: linear-gradient(135deg, var(--success-dark), var(--success));
            transform: translateY(-1.5px);
        }
        .btn-danger {
            background: linear-gradient(135deg, var(--danger), var(--danger-dark));
            color: white;
        }
        .btn-danger:hover {
            background: linear-gradient(135deg, var(--danger-dark), var(--danger));
            transform: translateY(-1.5px);
        }
        .page-section {
            display: none;
            animation: fadeIn 0.5s ease;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .page-section.active {
            display: block;
        }
        /* إصلاح وتحسينات بطاقة الهيرو */
        .hero {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            text-align: center;
            padding: 30px 0;
            margin-bottom: 30px;
            position: relative;
            overflow: hidden;
            min-height: 140px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,128L48,117.3C96,107,192,85,288,101.3C384,117,480,171,576,170.7C672,171,768,117,864,106.7C960,96,1056,128,1152,128C1248,128,1344,96,1392,80L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
            background-size: cover;
            background-position: bottom;
        }
        .dark-mode .hero::before {
            background: linear-gradient(135deg, var(--darker), var(--light));
            opacity: 0.1;
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 0;
        }
        .hero h1 {
            font-size: 1.8rem;
            margin-bottom: 10px;
            line-height: 1.2;
            padding: 0 10px;
            position: relative;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }
        .hero p {
            font-size: 1rem;
            margin-bottom: 20px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            padding: 0 15px;
            line-height: 1.4;
            position: relative;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }
        .hero-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
            position: relative;
        }
        .hero-buttons .btn {
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 50px;
        }
        /* 3. تعديل بطاقة الإعلان الدوار */
        .supporter-ad {
            background: linear-gradient(135deg, #7F00FF, #E100FF);
            color: white;
            padding: 10px;
            border-radius: 20px;
            text-align: center;
            margin: 0 auto 30px;
            max-width: 900px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
            border: 2px solid rgba(255, 255, 255, 0.3);
            animation: slideInFromTop 0.8s ease-out;
            height: 150px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .supporter-carousel-container {
            width: 100%;
            height: 100%;
            overflow: hidden;
            position: relative;
            border-radius: 15px;
        }
        .supporter-carousel {
            display: flex;
            transition: transform 0.5s ease-in-out;
            width: 100%;
            height: 100%;
        }
        .supporter-carousel-item {
            flex: 0 0 100%;
            height: 100%;
        }
        .supporter-carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 15px;
        }
        /* New CSS for Notification Count */
        .notification-btn {
            position: relative;
        }
        .notification-count {
            position: absolute;
            top: -2.5px;
            right: -2.5px;
            background-color: var(--notification-bg);
            color: var(--notification-icon);
            font-size: 8px;
            font-weight: bold;
            border-radius: 50%;
            width: 14px;
            height: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        /* End of New Supporter Ad Card */
        /* Combined Service Card - New Style */
        .combined-service-card {
            background: var(--lighter);
            color: var(--dark);
            padding: 25px;
            border-radius: 15px;
            text-align: center;
            box-shadow: var(--shadow);
            margin-bottom: 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }
        .dark-mode .combined-service-card {
            background: var(--lighter);
        }
        .combined-service-card h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--dark);
        }
        .combined-service-card p {
            font-size: 1rem;
            line-height: 1.5;
            margin-bottom: 20px;
            color: var(--gray);
        }
        .combined-service-card .btn-group {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
        }
        .combined-service-card .btn-group .btn {
            background: var(--lighter);
            color: var(--primary);
            font-weight: 700;
            padding: 12px 25px;
            border-radius: 50px;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            border: 2px solid var(--primary);
        }
        .combined-service-card .btn-group .btn:hover {
            color: white;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            transform: translateY(-2px);
        }
        .combined-service-card .search-group {
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
            width: 100%;
        }
        .combined-service-card .search-input-wrapper {
            position: relative;
            flex-grow: 1;
            max-width: 400px;
        }
        .combined-service-card .search-input-wrapper input {
            width: 100%;
            padding: 12px 20px;
            padding-right: 45px;
            border-radius: 50px;
            border: 2px solid var(--border);
            font-size: 16px;
            background-color: var(--gray-light);
            color: var(--dark);
            transition: var(--transition);
        }
        .combined-service-card .search-input-wrapper input:focus {
            border-color: var(--primary);
            outline: none;
        }
        .dark-mode .combined-service-card .search-input-wrapper input {
            background-color: var(--lighter);
        }
        .combined-service-card .search-input-wrapper .search-icon {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
            font-size: 18px;
        }
        .combined-service-card .search-actions {
            display: flex;
            gap: 10px;
        }
        .combined-service-card .search-actions .btn {
            flex: 1;
        }
        /* End of Combined Service Card */
        /* تحسينات لبطاقات المنشورات لتشبه منشورات X */
        .posts-feed {
            display: flex;
            flex-direction: column;
            gap: 16px;
            max-width: 600px;
            margin: 0 auto;
        }
        .post-card {
            background: var(--lighter);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border: 1px solid var(--border);
            position: relative;
            padding-bottom: 12px;
        }
        .post-card:hover {
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            transform: translateY(-2px);
        }
        .post-header {
            display: flex;
            align-items: center;
            padding: 16px 16px 8px;
            gap: 12px;
            border-bottom: 1px solid var(--border);
        }
        .post-header .avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primary);
            cursor: pointer;
        }
        .post-header-content {
            flex: 1;
            cursor: pointer;
        }
        .post-header-content strong {
            font-size: 16px;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .verified-badge {
            color: var(--primary);
            font-size: 12px;
            border: 1px solid var(--primary);
            border-radius: 50%;
            padding: 2px;
        }
        .post-header-content .time {
            font-size: 14px;
            color: var(--gray);
        }
        .post-info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            padding: 8px 16px;
            border-bottom: 1px solid var(--border);
        }
        .post-info-grid .info-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 15px;
            color: var(--dark);
        }
        .post-info-grid .info-item strong {
            font-weight: 600;
        }
        .post-info-grid .info-item i {
            color: var(--primary);
            font-size: 16px;
            width: 20px;
            text-align: center;
        }
        .post-text-container {
            padding: 12px 16px;
        }
        .post-text {
            font-size: 16px;
            line-height: 1.5;
            color: var(--dark);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            position: relative;
            white-space: pre-wrap;
            transition: all 0.3s ease;
        }
        .post-text.expanded {
            -webkit-line-clamp: unset;
            overflow: visible;
            max-height: none;
        }
        .read-more {
            color: var(--primary);
            cursor: pointer;
            display: none;
            margin-top: 4px;
            font-weight: 500;
            text-align: right;
            padding: 0 16px;
            transition: all 0.3s ease;
        }
        .read-more:hover {
            text-decoration: underline;
        }
        .post-image {
            width: 100%;
            height: 300px;
            object-fit: cover;
            border-radius: 0;
            display: block;
            margin-top: 10px;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        .post-image:hover {
            transform: scale(1.02);
        }
        .post-actions {
            display: flex;
            justify-content: space-around;
            padding: 12px 16px;
            border-top: 1px solid var(--border);
        }
        .post-action {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--gray);
            cursor: pointer;
            padding: 6px 12px;
            border-radius: 4px;
            transition: var(--transition);
            -webkit-tap-highlight-color: transparent;
        }
        .post-action:hover {
            background-color: rgba(29, 161, 242, 0.1);
            color: var(--primary);
        }
        .post-action-count {
            font-size: 14px;
        }
        .report-badge {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-right: 16px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        .badge-missing {
            background-color: #ff6b6b;
            color: white;
        }
        .badge-found {
            background-color: #ffd166;
            color: #856404;
        }
        .badge-returned {
            background-color: #06d6a0;
            color: white;
        }
        .reunited-btn {
            background-color: #e0e0e0;
            color: #666;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 18px;
        }
        .dark-mode .reunited-btn {
            background-color: var(--gray-light);
            color: var(--darker);
        }
        .reunited-btn:hover {
            background-color: #d0d0d0;
        }
        .reunited-btn.active {
            background-color: var(--success);
            color: white;
        }
        
        /* 3. تحسين خيارات النقاط الثلاث (التعديل المطلوب) */
        .post-options {
            position: absolute;
            top: 5px; /* تم رفعه قليلاً لتجنب التداخل */
            left: 15px;
        }
        .options-toggle {
            background: rgba(255,255,255,0.8);
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        .dark-mode .options-toggle {
            background: rgba(0,0,0,0.4);
            color: white;
        }
        .options-toggle:hover {
            background: rgba(255,255,255,1);
            transform: rotate(90deg);
        }
        .options-menu {
            position: absolute;
            top: 40px;
            left: 0;
            background: var(--lighter);
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            z-index: 100;
            width: 200px;
            overflow: hidden;
            display: none;
            border: 1px solid var(--border);
        }
        .dark-mode .options-menu {
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            border: 1px solid var(--gray-light);
        }
        .menu-item {
            padding: 12px 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: background-color 0.2s;
            font-size: 14px;
            color: var(--dark);
        }
        .menu-item:hover {
            background-color: var(--gray-light);
        }
        .menu-divider {
            height: 1px;
            background-color: var(--border);
        }
        
        /* تنسيقات شريط التقدم */
        .progress-container {
            width: 100%;
            background-color: var(--gray-light);
            border-radius: 5px;
            margin: 10px 0;
            overflow: hidden;
            display: none;
        }
        .progress-bar {
            height: 10px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            width: 0%;
            transition: width 0.3s ease;
            border-radius: 5px;
        }
        .progress-text {
            text-align: center;
            font-size: 12px;
            color: var(--gray);
            margin-top: 5px;
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            opacity: 0;
            transition: opacity 0.3s;
            overflow-y: auto;
            padding: 20px;
        }
        .modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 1;
        }
        .modal-content {
            background: var(--lighter);
            border-radius: 15px;
            max-width: 800px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            animation: modalOpen 0.4s ease;
        }
        @keyframes modalOpen {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .modal-header {
            padding: 20px 20px 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            background: var(--lighter);
            z-index: 10;
            border-bottom: 1px solid var(--border);
        }
        .modal-title {
            font-size: 1.5rem;
            color: var(--dark);
            font-weight: 700;
        }
        .modal-close {
            background: none;
            border: none;
            font-size: 1.8rem;
            cursor: pointer;
            color: var(--gray);
            transition: var(--transition);
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }
        .modal-close:hover {
            color: var(--danger);
            background-color: rgba(239, 71, 111, 0.1);
        }
        .modal-body {
            padding: 20px;
        }
        .add-report-modal .form-group {
            margin-bottom: 20px;
        }
        .add-report-modal label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--dark);
            font-size: 16px;
        }
        .add-report-modal input[type="text"],
        .add-report-modal input[type="number"],
        .add-report-modal select,
        .add-report-modal textarea,
        .edit-profile-modal input[type="text"],
        .edit-profile-modal textarea {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid var(--border);
            border-radius: 8px;
            font-size: 16px;
            transition: var(--transition);
            background-color: var(--lighter);
            color: var(--dark);
        }
        .dark-mode .add-report-modal input[type="text"],
        .dark-mode .add-report-modal input[type="number"],
        .dark-mode .add-report-modal select,
        .dark-mode .add-report-modal textarea,
        .dark-mode .edit-profile-modal input[type="text"],
        .dark-mode .edit-profile-modal textarea {
            background-color: var(--gray-light);
            color: var(--dark);
        }
        .add-report-modal input[type="text"]:focus,
        .add-report-modal input[type="number"]:focus,
        .add-report-modal select:focus,
        .add-report-modal textarea:focus,
        .edit-profile-modal input[type="text"]:focus,
        .edit-profile-modal textarea:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
        }
        .add-report-modal input[type="file"] {
            padding: 8px;
            border: 2px dashed var(--border);
            border-radius: 8px;
            width: 100%;
            background: var(--gray-light);
            cursor: pointer;
        }
        .dark-mode .add-report-modal input[type="file"] {
            background: var(--lighter);
            color: var(--dark);
        }
        .add-report-modal .image-preview-container {
            width: 100%;
            height: 300px;
            margin-top: 15px;
            display: none;
            position: relative;
            border: 3px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
            background-color: var(--gray-light);
        }
        .add-report-modal .image-preview {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border: none;
            border-radius: 0;
        }
        .add-report-modal .crop-button {
            position: absolute;
            bottom: 10px;
            right: 10px;
            padding: 8px 15px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            z-index: 10;
        }
        .add-report-modal .crop-button:hover {
            background: var(--primary-dark);
        }
        .add-report-modal .remove-image-button {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 8px 15px;
            background: var(--danger);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            z-index: 10;
        }
        .add-report-modal .remove-image-button:hover {
            background: var(--danger-dark);
        }
        .comments-modal .modal-content {
            max-width: 600px;
        }
        .comments-modal .comments-container {
            max-height: 400px;
            overflow-y: auto;
            padding: 10px;
            margin-bottom: 20px;
        }
        .comment {
            display: flex;
            margin-bottom: 15px;
            padding: 15px;
            background-color: var(--gray-light);
            border-radius: 8px;
            position: relative;
        }
        .comment-avatar {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            object-fit: cover;
            margin-left: 10px;
            cursor: pointer;
        }
        .comment-content {
            flex: 1;
        }
        .comment-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 5px;
        }
        .comment-author {
            font-weight: 600;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }
        .comment-date {
            color: var(--gray);
            font-size: 0.85rem;
        }
        .comment-text {
            color: var(--gray);
            line-height: 1.6;
        }
        .comment-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            position: absolute;
            top: 15px;
            left: 15px;
        }
        .comment-actions .delete-btn {
            background: none;
            border: none;
            color: var(--danger);
            cursor: pointer;
            font-size: 1.1rem;
            opacity: 0.8;
            transition: opacity 0.2s;
        }
        .comment-actions .delete-btn:hover {
            opacity: 1;
        }
        .comment-form {
            display: flex;
            margin-top: 15px;
            gap: 10px;
        }
        .comment-input {
            flex: 1;
            padding: 10px 15px;
            border: 2px solid var(--border);
            border-radius: 8px;
            font-size: 16px;
            background-color: var(--lighter);
            color: var(--dark);
        }
        .alert {
            position: fixed;
            top: 40px;
            right: 20px;
            padding: 12px 20px;
            border-radius: 8px;
            color: white;
            font-weight: 500;
            z-index: 3000;
            transform: translateX(400px);
            transition: transform 0.3s;
            font-size: 14px;
            max-width: 90%;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .alert.show {
            transform: translateX(0);
        }
        .alert-success {
            background: linear-gradient(135deg, var(--success), var(--success-dark));
        }
        .alert-danger {
            background: linear-gradient(135deg, var(--danger), var(--danger-dark));
        }
        .alert-info {
            background: var(--notification-bg);
        }
        .alert i {
            font-size: 16px;
        }
        .no-results {
            text-align: center;
            padding: 40px;
            font-size: 1.2rem;
            color: var(--gray);
            background-color: var(--lighter);
            border-radius: 15px;
            box-shadow: var(--shadow);
            grid-column: 1 / -1;
        }
        .no-results i {
            font-size: 3rem;
            color: var(--primary);
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.8);
            display: none;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            z-index: 10000;
            transition: opacity 0.3s;
        }
        .dark-mode .loader {
            background: rgba(0, 0, 0, 0.6);
        }
        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(58, 134, 255, 0.3);
            border-top: 5px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .loading-logo {
            width: 200px;
            height: 200px;
            margin-bottom: 20px;
        }
        .loading-text {
            font-weight: 500;
            color: var(--dark);
            margin-top: 20px;
        }
        #imageModal .modal-content {
            width: 95%;
            max-width: 95vw;
            max-height: 95vh;
            background: transparent;
            box-shadow: none;
        }
        #imageModal .modal-body {
            padding: 0;
        }
        #imageModal img {
            width: 100%;
            height: auto;
            max-height: 90vh;
            object-fit: contain;
            border-radius: 10px;
        }
        #imageModal .modal-close {
            position: absolute;
            top: 0;
            right: 0;
            background: rgba(0,0,0,0.5);
            color: white;
        }
        .crop-modal-content {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .image-container-cropper {
            width: 100%;
            max-height: 70vh;
            overflow: hidden;
        }
        .image-container-cropper img {
            display: block;
            max-width: 100%;
        }
        .report-details-box {
            background-color: var(--gray-light);
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 15px;
        }
        .confirmation-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .confirmation-modal.show {
            display: flex;
            opacity: 1;
        }
        .confirmation-content {
            background: var(--lighter);
            padding: 30px;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            animation: modalOpen 0.4s ease;
            max-width: 400px;
        }
        .confirmation-content h3 {
            margin-bottom: 15px;
            color: var(--dark);
        }
        .confirmation-content p {
            margin-bottom: 25px;
            color: var(--gray);
        }
        .confirmation-actions {
            display: flex;
            justify-content: center;
            gap: 15px;
        }
        .full-report-modal .report-details {
            grid-template-columns: 1fr;
            gap: 15px;
        }
        .full-report-modal .report-image-container {
            height: 300px;
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 20px;
        }
        .full-report-modal .report-description {
            -webkit-line-clamp: unset;
            overflow: visible;
        }
        .report-misleading-btn {
            background-color: #f8f9fa;
            color: var(--danger);
            border: 1px solid var(--danger);
            border-radius: 5px;
            padding: 8px 15px;
            cursor: pointer;
            transition: all 0.3s;
        }
        .report-misleading-btn:hover {
            background-color: var(--danger);
            color: white;
        }
        /* Notification Modal */
        #notificationsModal .modal-content {
            max-width: 400px;
            position: absolute;
            top: 10px;
            right: 10px;
            max-height: 80vh;
        }
        #notificationsModal .modal-body {
            padding: 0;
        }
        .notification-item {
            display: flex;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .notification-item:hover {
            background-color: var(--gray-light);
        }
        .notification-item:last-child {
            border-bottom: none;
        }
        .notification-item i {
            font-size: 20px;
            color: var(--notification-bg);
            margin-left: 15px;
        }
        .notification-item .content {
            flex: 1;
            font-size: 14px;
        }
        .notification-item .content strong {
            display: block;
            color: var(--dark);
        }
        .notification-item .content span {
            color: var(--gray);
        }
        #reportAbuseModal .modal-content {
            max-width: 500px;
            padding: 20px;
            border: 1px solid var(--border);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            background: var(--lighter);
        }
        #reportAbuseModal .form-group {
            margin-bottom: 15px;
        }
        /* New User Profile Modal */
        #userProfileModal .modal-content {
            max-width: 400px;
            padding: 0;
        }
        .user-profile-header {
            text-align: center;
            padding: 30px 20px 20px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border-radius: 15px 15px 0 0;
        }
        .user-profile-header img {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            border: 4px solid var(--lighter);
            object-fit: cover;
            margin-bottom: 10px;
        }
        .user-profile-header h3 {
            font-size: 1.8rem;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        .user-profile-header p {
            font-size: 0.9rem;
            opacity: 0.8;
        }
        .user-profile-body {
            padding: 20px;
            text-align: center;
        }
        .user-profile-body .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }
        .user-profile-body .stat-item {
            background-color: var(--gray-light);
            padding: 15px;
            border-radius: 10px;
            font-size: 14px;
            color: var(--dark);
            border-right: 4px solid var(--primary);
        }
        .user-profile-body .stat-item strong {
            display: block;
            font-size: 1.5rem;
            color: var(--primary);
            margin-bottom: 5px;
        }
        .user-profile-body .bio-section {
            background: var(--gray-light);
            padding: 15px;
            border-radius: 10px;
            text-align: right;
            border-right: 4px solid var(--secondary);
            margin-bottom: 20px;
        }
        .user-profile-body .bio-section p {
            color: var(--gray);
            line-height: 1.6;
        }
        /* Refresh Button */
        .refresh-fab {
            position: fixed;
            bottom: 20px;
            left: 20px;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            z-index: 1001;
            transition: transform 0.3s ease;
        }
        .refresh-fab:hover {
            transform: scale(1.1) rotate(-45deg);
        }
        .refresh-fab.loading .fa-sync-alt {
            animation: spin 1s linear infinite;
        }
        
        /* تنسيقات إضافية لزر حذف الصورة */
        #removeImageBtn {
            background-color: var(--danger);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 15px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        #removeImageBtn:hover {
            background-color: var(--danger-dark);
        }

        .image-preview-container .crop-button {
            margin-top: 10px;
            margin-right: 10px;
        }

        .image-preview-container {
            text-align: center;
        }
        
        /* إصلاح تراكب أيقونات القص/الحذف مع أيقونات النشر/الإلغاء */
        .image-upload-wrapper { 
            position: relative; 
            display: inline-block; 
            width: 100%;
        }

        .image-tools {
            position: absolute;
            top: 8px;
            right: 8px; /* تغيير إلى right لأن الصفحة RTL */
            z-index: 30; /* أعلى من الصورة */
            display: flex;
            gap: 8px;
        }

        .image-actions {
            position: absolute;
            bottom: 8px;
            left: 8px; /* في RTL يكون اليسار هو الجانب المعاكس */
            z-index: 20; /* أقل من أدوات القص كي لا تغطيها */
            display: flex;
            gap: 8px;
        }

        .crop-icon, .delete-icon, .publish-btn, .cancel-btn { 
            pointer-events: auto; 
        }
        
        /* تصنيف المحتوى */
        .content-filters {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 20px 0;
            padding: 15px;
            background-color: var(--lighter);
            border-radius: 12px;
            box-shadow: var(--shadow);
        }
        
        .filter-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 10px 15px;
            border-radius: 10px;
            background-color: var(--gray-light);
            color: var(--dark);
            border: none;
            cursor: pointer;
            transition: var(--transition);
            min-width: 80px;
        }
        
        .filter-btn:hover {
            background-color: var(--primary);
            color: white;
            transform: translateY(-2px);
        }
        
        .filter-btn.active {
            background-color: var(--primary);
            color: white;
        }
        
        .filter-btn i {
            font-size: 24px;
            margin-bottom: 5px;
        }
        
        .filter-btn span {
            font-size: 14px;
            font-weight: 500;
        }
        
        /* نافذة اختيار نوع البلاغ */
        .report-type-modal .modal-content {
            max-width: 500px;
            text-align: center;
        }
        
        .report-type-options {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 30px 0;
        }
        
        .report-type-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            border-radius: 15px;
            background-color: var(--gray-light);
            cursor: pointer;
            transition: var(--transition);
            width: 120px;
        }
        
        .report-type-option:hover {
            background-color: var(--primary);
            color: white;
            transform: translateY(-5px);
        }
        
        .report-type-option i {
            font-size: 40px;
            margin-bottom: 10px;
        }
        
        .report-type-option span {
            font-size: 16px;
            font-weight: 600;
        }
        
        /* نمط لعرض علم الدولة بجانب اسم المستخدم */
        .country-flag {
            font-size: 16px;
            margin-left: 5px;
        }
        
        /* نمط لعرض معلومات المستخدم بشكل مموه */
        .blurred-user {
            filter: blur(3px);
            opacity: 0.7;
            transition: filter 0.3s, opacity 0.3s;
        }
        
        .blurred-user:hover {
            filter: blur(0);
            opacity: 1;
        }
        
        /* نمط لعرض الصور بشكل موحد */
        .unified-image-container {
            width: 100%;
            height: 300px;
            overflow: hidden;
            position: relative;
            border-radius: 8px;
            margin-top: 10px;
        }
        
        .unified-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
            cursor: pointer;
        }
        
        .unified-image:hover {
            transform: scale(1.02);
        }
        
        /* نمط لصفحة البروفايل الكاملة */
        .profile-page {
            padding: 20px;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .profile-header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 40px 20px;
            border-radius: 15px;
            text-align: center;
            margin-bottom: 30px;
        }
        
        .profile-header img {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 4px solid white;
            object-fit: cover;
            margin-bottom: 20px;
        }
        
        .profile-header h1 {
            font-size: 2rem;
            margin-bottom: 10px;
        }
        
        .profile-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-card {
            background: var(--lighter);
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            box-shadow: var(--shadow);
        }
        
        .stat-card h3 {
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 5px;
        }
        
        .stat-card p {
            color: var(--gray);
        }
        
        .profile-posts {
            margin-top: 30px;
        }
        
        .profile-posts h2 {
            margin-bottom: 20px;
            color: var(--dark);
        }
        
        /* Media Queries */
        @media (max-width: 992px) {
            /* إبقاء شريط التنقل العلوي ثابتاً ولكن مرناً */
            header {
                height: 60px;
                padding: 0;
            }
            .navbar {
                flex-direction: row;
                padding: 8px 0;
            }
            
            /* إظهار nav-links على الشاشات الصغيرة */
            .nav-links {
                display: flex;
            }
            
            /* إظهار زر الهامبرغر على الشاشات الصغيرة */
            .hamburger-btn {
                display: flex;
            }
            
            /* إخفاء زر الإشعارات من شريط التنقل العلوي ليظهر في القائمة الجانبية */
            .auth-buttons {
                display: none;
            }
            
            /* تعديل لعنصر الإشعارات داخل شريط الروابط ليكون متوافقاً على الجوال */
            .nav-links .notification-btn {
                 padding: 0;
                 margin: 0;
                 height: auto;
                 width: auto;
            }
            
            /* تعديلات للشاشات الصغيرة جداً */
            @media (max-width: 576px) {
                .nav-links a, .nav-links .notification-btn {
                    font-size: 0;
                    padding: 6px;
                }
                .nav-links a i, .nav-links .notification-btn i {
                    font-size: 18px;
                    margin-bottom: 0;
                }
                .nav-stat {
                    font-size: 0.6rem;
                    margin-top: 0;
                }
            }
        }
        
        @media (min-width: 993px) {
            /* إظهار زر الهامبرغر على الشاشات الكبيرة */
            .hamburger-btn {
                display: flex; /* إصلاح: إظهار دائماً */
            }
            
            /* إظهار nav-links على الشاشات الكبيرة */
            .nav-links {
                display: flex;
            }
            
            /* إخفاء زر الإشعارات من شريط التنقل العلوي للشاشات الكبيرة (تم نقله لـ nav-links) */
            .auth-buttons {
                display: none !important; 
            }
        }
        
        @media (max-width: 576px) {
            body {
                padding-top: 60px;
            }
            .logo {
                font-size: 1.1rem;
            }
            .logo img {
                width: 25px;
                height: 25px;
            }
            .hamburger-btn {
                font-size: 20px;
                width: 40px;
                height: 40px;
            }
            
            .content-filters {
                flex-wrap: wrap;
                gap: 10px;
            }
            
            .filter-btn {
                min-width: 70px;
                padding: 8px 10px;
            }
            
            .filter-btn i {
                font-size: 20px;
            }
            
            .filter-btn span {
                font-size: 12px;
            }
            
            .report-type-options {
                flex-direction: column;
                gap: 15px;
                align-items: center;
            }
            
            .report-type-option {
                width: 200px;
                flex-direction: row;
                justify-content: flex-start;
                padding: 15px;
            }
            
            .report-type-option i {
                font-size: 30px;
                margin-bottom: 0;
                margin-left: 15px;
            }
        }
        
        /* تحسينات إضافية للتعامل مع الصور الكبيرة */
        .image-upload-status {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 10px;
            padding: 8px;
            background-color: var(--gray-light);
            border-radius: 8px;
            font-size: 14px;
        }
        
        .image-size-info {
            color: var(--gray);
        }
        
        .image-upload-error {
            color: var(--danger);
            margin-top: 5px;
            font-size: 14px;
            display: none;
        }
        
        .image-upload-success {
            color: var(--success);
            margin-top: 5px;
            font-size: 14px;
            display: none;
        }
        
        /* تحسينات لأزرار الإجراءات */
        .custom-modal-actions {
            display: flex;
            justify-content: space-between;
            gap: 15px;
            margin-top: 20px;
        }
        
        .custom-modal-actions .btn {
            flex: 1;
        }

/* Sponsors page */
.sponsor-hero-btn { margin-top: 18px; padding: 11px 20px; color: #17385f; background: #fff; border: 1px solid rgba(255,255,255,.65); box-shadow: 0 10px 28px rgba(20,55,95,.18); }
.sponsor-hero-btn i { margin-left: 8px; color: #d89b00; }
.sponsors-page { background: #f5f8fc; min-height: 100vh; }
.sponsors-hero { padding: 64px 0 92px; text-align: center; color: #fff; background: radial-gradient(circle at 20% 15%, rgba(255,209,102,.30), transparent 28%), linear-gradient(135deg, #102f53 0%, #245d98 58%, #3a86ff 100%); }
.sponsors-hero h1 { margin: 10px 0 14px; font-size: clamp(2rem, 6vw, 3.5rem); }
.sponsors-hero p { max-width: 760px; margin: 0 auto; font-size: 1.08rem; opacity: .92; }
.sponsors-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #d89b00; font-size: .9rem; font-weight: 800; }
.sponsors-hero .sponsors-eyebrow { color: #ffe49a; }
.sponsors-content { margin-top: -54px; padding-bottom: 56px; }
.featured-sponsor-card { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); overflow: hidden; background: #fff; border: 1px solid rgba(16,47,83,.09); border-radius: 26px; box-shadow: 0 22px 55px rgba(16,47,83,.16); }
.sponsor-visual { position: relative; min-height: 440px; background: #102f53; }
.sponsor-visual > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-sponsor-badge { position: absolute; top: 22px; right: 22px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; color: #5c3b00; background: #ffd166; border-radius: 999px; font-size: .82rem; font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.sponsor-copy { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.sponsor-logo { width: min(290px,82%); max-height: 86px; margin-bottom: 16px; object-fit: contain; object-position: right center; filter: drop-shadow(0 6px 12px rgba(16,47,83,.08)); }
.sponsor-copy h2 { margin: 0 0 10px; color: #102f53; font-size: 2rem; }
.sponsor-copy p { color: #52677d; line-height: 1.85; }
.sponsor-copy .sponsor-lead { color: #1f466f; font-size: 1.08rem; font-weight: 700; }
.sponsor-highlights { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 24px 0; }
.sponsor-highlights div { padding: 14px 10px; text-align: center; background: #f4f8fc; border: 1px solid #e1eaf3; border-radius: 15px; }
.sponsor-highlights strong { display: block; color: #1e70bb; font-size: 1.35rem; }
.sponsor-highlights span { color: #6c7d8e; font-size: .76rem; }
.sponsor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.sponsor-primary-link { padding: 11px 18px; color: #fff; background: linear-gradient(135deg,#1569ad,#3a86ff); }
.sponsor-contact-link { color: #245d98; font-weight: 800; text-decoration: none; }
.sponsor-impact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: center; margin-top: 28px; padding: 34px; background: #fff; border: 1px solid #e2eaf2; border-radius: 24px; }
.sponsor-impact h2 { margin: 8px 0; color: #102f53; }
.sponsor-impact p { color: #607489; line-height: 1.8; }
.impact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.impact-grid div { padding: 18px 14px; text-align: center; background: #f6f9fc; border-radius: 16px; }
.impact-grid i { display: block; margin-bottom: 10px; color: #d89b00; font-size: 1.5rem; }
.impact-grid strong { display: block; color: #17385f; margin-bottom: 5px; }
.impact-grid span { color: #6c7d8e; font-size: .78rem; line-height: 1.5; }
.post-header-content, .comment-author, .post-header .avatar, .comment-avatar { cursor: pointer; }
.dark-mode .sponsors-page { background: #171d25; }
.dark-mode .featured-sponsor-card, .dark-mode .sponsor-impact { background: #252d37; border-color: #3a4653; }
.dark-mode .sponsor-copy h2, .dark-mode .sponsor-impact h2, .dark-mode .impact-grid strong { color: #f1f5f9; }
.dark-mode .sponsor-copy p, .dark-mode .sponsor-impact p { color: #c4ced8; }
.dark-mode .sponsor-highlights div, .dark-mode .impact-grid div { background: #1d242d; border-color: #3a4653; }
@media (max-width:820px) {
  .featured-sponsor-card { grid-template-columns: 1fr; }
  .sponsor-visual { min-height: 270px; }
  .sponsor-copy { padding: 26px 20px; }
  .sponsor-impact { grid-template-columns: 1fr; padding: 25px 20px; }
}
@media (max-width:560px) {
  .sponsors-hero { padding: 48px 0 78px; }
  .sponsors-content { margin-top: -42px; }
  .featured-sponsor-card { border-radius: 20px; }
  .sponsor-visual { min-height: 220px; }
  .sponsor-highlights, .impact-grid { grid-template-columns: 1fr; }
  .sponsor-actions { align-items: stretch; flex-direction: column; }
  .sponsor-primary-link, .sponsor-contact-link { width: 100%; text-align: center; }
}


/* 2026-08-07: sponsor carousel fit + complaint experience */
.supporter-carousel {
    direction: ltr;
}
.supporter-carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    background: rgba(255, 255, 255, 0.08);
}
.supporter-carousel-item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

#reportAbuseModal .complaint-modal-content {
    width: min(92vw, 520px);
    max-width: 520px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(58, 134, 255, 0.14);
    border-radius: 24px;
    background: var(--lighter);
    box-shadow: 0 24px 70px rgba(15, 39, 68, 0.28);
}
.complaint-modal-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    color: #17385f;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.13), rgba(255, 77, 109, 0.08));
    border-bottom: 1px solid rgba(58, 134, 255, 0.12);
}
.complaint-modal-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: white;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #3a86ff, #6c63ff);
    box-shadow: 0 8px 20px rgba(58, 134, 255, 0.24);
}
.complaint-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #6c7f93;
    font-size: 0.72rem;
    font-weight: 700;
}
#reportAbuseModal .modal-title {
    margin: 0;
    color: #17385f;
    font-size: 1.35rem;
}
.complaint-close {
    position: absolute;
    top: 16px;
    left: 18px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #738399;
    background: rgba(255, 255, 255, 0.72);
}
.complaint-modal-body {
    padding: 24px;
}
.complaint-context {
    margin: 0 0 20px;
    padding: 12px 14px;
    color: #50657a;
    font-size: 0.9rem;
    line-height: 1.8;
    background: rgba(58, 134, 255, 0.06);
    border-right: 3px solid var(--primary);
    border-radius: 10px;
}
.complaint-field {
    margin-bottom: 18px;
}
.complaint-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 700;
}
.complaint-field label i {
    color: var(--primary);
}
.complaint-field label span,
.complaint-field small {
    color: var(--gray);
    font-size: 0.72rem;
    font-weight: 500;
}
.complaint-select-wrap {
    position: relative;
}
.complaint-select-wrap select,
.complaint-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    color: var(--dark);
    background: var(--gray-light);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.complaint-select-wrap select {
    min-height: 50px;
    padding: 0 15px 0 42px;
    appearance: none;
}
.complaint-select-wrap > i {
    position: absolute;
    left: 16px;
    top: 50%;
    color: var(--gray);
    transform: translateY(-50%);
    pointer-events: none;
}
.complaint-field textarea {
    min-height: 120px;
    padding: 14px 15px;
    resize: vertical;
    line-height: 1.7;
}
.complaint-select-wrap select:focus,
.complaint-field textarea:focus {
    border-color: var(--primary);
    background: var(--lighter);
    box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.10);
}
.complaint-field small {
    display: block;
    margin-top: 7px;
}
.complaint-actions {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 10px;
    margin-top: 24px;
}
.complaint-actions .btn {
    min-height: 48px;
    border-radius: 13px;
    font-weight: 800;
}
.complaint-cancel {
    color: #5f7082;
    background: var(--gray-light);
    border: 1px solid var(--border);
}
.complaint-submit {
    color: white;
    background: linear-gradient(135deg, #ff4d6d, #e63956);
    border: none;
    box-shadow: 0 8px 20px rgba(230, 57, 86, 0.20);
}
.profile-report-user-btn {
    margin: 18px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    color: #d94a62;
    background: rgba(255, 77, 109, 0.09);
    border: 1px solid rgba(255, 77, 109, 0.28);
    border-radius: 999px;
    font: inherit;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
}
.profile-report-user-btn:hover {
    color: white;
    background: #e63956;
}
.dark-mode .complaint-modal-header {
    color: #f5f8fc;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.18), rgba(255, 77, 109, 0.10));
}
.dark-mode #reportAbuseModal .modal-title,
.dark-mode .complaint-field label {
    color: #f1f5f9;
}
.dark-mode .complaint-context {
    color: #c4ced8;
}
.dark-mode .complaint-close {
    color: #d4dbe3;
    background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 576px) {
    .supporter-ad {
        height: 138px;
        padding: 8px;
    }
    #reportAbuseModal .complaint-modal-content {
        width: calc(100vw - 28px);
        border-radius: 20px;
    }
    .complaint-modal-header {
        padding: 18px 18px;
    }
    .complaint-modal-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 13px;
    }
    .complaint-modal-body {
        padding: 20px 18px;
    }
    .complaint-actions {
        grid-template-columns: 1fr;
    }
    .complaint-submit {
        grid-row: 1;
    }
}


/* 2026-08-07: uniform sponsor media + in-app navigation helpers */
.supporter-ad {
    height: 176px;
    padding: 8px;
}
.supporter-carousel-container,
.supporter-carousel,
.supporter-carousel-item {
    width: 100%;
    height: 100%;
}
.supporter-carousel-item {
    padding: 0;
    overflow: hidden;
    background: #0f3356;
}
.supporter-carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 13px;
}

.reunited-btn.active,
.dark-mode .reunited-btn.active {
    color: #fff;
    background: #06b981;
    box-shadow: none;
}
.reunited-btn:not(.active) {
    cursor: pointer;
}
.reunite-confirm-btn {
    color: #fff !important;
    background: linear-gradient(135deg, #06b981, #07996d) !important;
    border-color: transparent !important;
}

.app-back-fab {
    position: fixed;
    top: 70px;
    right: 14px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 12px;
    color: #17385f;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(58, 134, 255, .18);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(15, 47, 83, .14);
    backdrop-filter: blur(8px);
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
}
.app-back-fab[hidden],
.report-jump-fab[hidden] {
    display: none !important;
}
.app-back-fab i {
    color: var(--primary);
}
.dark-mode .app-back-fab {
    color: #f1f5f9;
    background: rgba(37, 45, 55, .92);
    border-color: rgba(91, 155, 248, .24);
}

.report-jump-fab {
    position: fixed;
    right: 18px;
    bottom: 20px;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 13px;
    color: #fff;
    background: rgba(23, 56, 95, .86);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(15, 39, 68, .18);
    backdrop-filter: blur(8px);
    font: inherit;
    font-size: .76rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.report-jump-fab:hover {
    transform: translateY(-2px);
    background: rgba(38, 92, 150, .94);
}
.report-jump-fab i {
    color: #9fd0ff;
    font-size: .9rem;
}

@media (max-width: 576px) {
    .supporter-ad {
        height: 154px;
        padding: 7px;
    }
    .supporter-carousel-item img {
        border-radius: 12px;
    }
    .app-back-fab {
        top: 68px;
        right: 9px;
        min-height: 35px;
        padding: 6px 10px;
        font-size: .74rem;
    }
    .report-jump-fab {
        right: 14px;
        bottom: 20px;
        min-height: 42px;
        padding: 7px 11px;
    }
}


/* Public legal links used by the Google OAuth production homepage */
.site-legal-footer {
    margin-top: 28px;
    padding: 24px 0 34px;
    background: var(--lighter);
    border-top: 1px solid var(--border);
    color: var(--gray);
}
.site-legal-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.site-legal-footer p {
    margin: 0;
}
.site-legal-footer nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.site-legal-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.site-legal-footer a:hover {
    text-decoration: underline;
}


/* 2026-08-11: low-bandwidth report rendering */
.report-lazy-image:not([src]) {
    background: linear-gradient(110deg, var(--gray-light) 8%, rgba(58, 134, 255, 0.10) 18%, var(--gray-light) 33%);
    background-size: 200% 100%;
    animation: report-image-placeholder 1.4s linear infinite;
}
@keyframes report-image-placeholder {
    to { background-position-x: -200%; }
}
.reports-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 8px 0 18px;
}
.reports-load-more {
    min-width: 220px;
    gap: 9px;
}
.reports-load-more i {
    color: var(--primary);
}

/* 2026-08-12: polished demo experience */
.section-search-panel {
    display: grid;
    grid-template-columns: minmax(220px, .75fr) minmax(300px, 1.25fr);
    gap: 22px;
    align-items: center;
    margin: 28px auto 24px;
    padding: 22px;
    border: 1px solid rgba(58, 134, 255, .13);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(58, 134, 255, .07), rgba(255, 255, 255, .96));
    box-shadow: 0 14px 36px rgba(15, 47, 83, .08);
}
.section-search-heading { display: flex; align-items: center; gap: 13px; }
.section-search-heading > i {
    display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px;
    color: #fff; border-radius: 15px; background: linear-gradient(135deg, #3a86ff, #266ec8);
    box-shadow: 0 9px 20px rgba(58, 134, 255, .22);
}
.section-search-heading strong, .section-search-heading span { display: block; }
.section-search-heading strong { color: var(--dark); font-size: 1rem; }
.section-search-heading span { margin-top: 3px; color: var(--gray); font-size: .8rem; }
.section-search-box {
    display: grid; grid-template-columns: 30px 1fr 42px 42px; gap: 6px; align-items: center;
    min-height: 54px; padding: 5px 7px 5px 14px; border: 1px solid var(--border); border-radius: 17px;
    background: var(--lighter); box-shadow: 0 5px 16px rgba(15, 47, 83, .06);
}
.section-search-box > i { color: var(--primary); text-align: center; }
.section-search-box input {
    min-width: 0; width: 100%; padding: 10px 4px; border: 0; outline: 0; color: var(--dark);
    background: transparent; font: inherit;
}
.section-search-box button {
    width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px;
    font: inherit; cursor: pointer; transition: transform .18s ease, background .18s ease;
}
.section-search-box button:hover { transform: translateY(-1px); }
.section-search-submit { color: #fff; background: var(--primary); }
.section-search-reset { color: var(--gray); background: var(--gray-light); }

.sponsor-visual { display: flex; flex-direction: column; min-height: 340px; padding: 18px 18px 14px; }
.sponsor-media-frame { min-height: 0; flex: 1; display: grid; place-items: center; overflow: hidden; }
.sponsor-visual .sponsor-media-frame img { width: 100%; height: 100%; max-height: 285px; object-fit: contain; object-position: center; }
.featured-sponsor-badge {
    position: static; align-self: center; margin-top: 6px; transform: none;
    box-shadow: 0 7px 18px rgba(92, 59, 0, .13);
}

.posts-feed { width: min(100%, 680px); margin-inline: auto; }
.post-card {
    overflow: hidden; border: 1px solid rgba(15, 47, 83, .10); border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 47, 83, .09); cursor: pointer;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(15, 47, 83, .12); }
.post-card .post-header { padding: 15px 17px 11px; }
.post-card .post-info-grid { gap: 8px; padding: 10px 17px; }
.post-card .post-info-grid .info-item { min-height: 38px; padding: 7px 9px; border-radius: 11px; }
.post-card .post-text-container { padding: 6px 17px 12px; }
.post-card .post-text { margin: 0; line-height: 1.65; -webkit-line-clamp: 2; }
.unified-image-container { width: 100%; aspect-ratio: 4 / 3; max-height: 440px; overflow: hidden; background: #eef3f8; }
.unified-image { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.post-card .post-actions { min-height: 50px; border-top: 1px solid rgba(15, 47, 83, .08); }
.post-action { min-height: 48px; }
.post-action-share-count, .post-action-save-count { font-size: .75rem; color: var(--gray); }

.report-page { min-height: 70vh; padding: 28px 0 60px; background: linear-gradient(180deg, rgba(58,134,255,.055), transparent 220px); }
.report-page-container { max-width: 780px; }
.report-page-heading { margin-bottom: 18px; text-align: center; }
.report-page-heading span { color: var(--primary); font-size: .8rem; font-weight: 800; }
.report-page-heading h1 { margin: 5px 0 0; color: var(--dark); font-size: clamp(1.45rem, 4vw, 2rem); }
.report-page .report-details-box {
    overflow: hidden; border: 1px solid rgba(15,47,83,.11); border-radius: 22px;
    background: var(--lighter); box-shadow: 0 18px 48px rgba(15,47,83,.11);
}
.report-page .report-details-box .post-header,
.report-page .report-details-box .post-info-grid,
.report-page .report-details-box .report-detail-description,
.report-page .report-details-box .post-actions { padding-inline: 20px; }
.report-page .unified-image-container { aspect-ratio: auto; max-height: none; background: #111; }
.report-page .unified-image { height: auto; max-height: 80vh; object-fit: contain; object-position: center; }

.recommended-label {
    display: inline-flex; margin-inline-start: 7px; padding: 3px 8px; border-radius: 999px;
    color: #845800; background: #fff0bd; font-size: .68rem; font-weight: 800;
}
.image-importance-hint { display: flex; gap: 7px; margin-top: 8px; color: #6c5a20; font-size: .78rem; line-height: 1.65; }
.image-importance-hint i { margin-top: 3px; color: #d99a00; }
.report-preview-modal .modal-content { width: min(94vw, 650px); max-width: 650px; }
.report-preview-card { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--lighter); }
.report-preview-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 16px; }
.report-preview-summary div { padding: 10px; border-radius: 12px; background: var(--gray-light); }
.report-preview-summary strong, .report-preview-summary span { display: block; }
.report-preview-summary strong { margin-bottom: 4px; color: var(--gray); font-size: .68rem; }
.report-preview-summary span { color: var(--dark); font-size: .9rem; font-weight: 700; }
.report-preview-description { margin: 0; padding: 0 16px 15px; color: var(--dark); line-height: 1.75; }
.report-preview-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 50% 22%; }
.publish-warning { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; color: #765100; background: #fff6d8; border: 1px solid #f1d784; border-radius: 14px; }
.publish-warning > i { font-size: 1.35rem; color: #e8a300; }
.publish-warning strong, .publish-warning span { display: block; }
.publish-warning span { margin-top: 2px; font-size: .78rem; }
.publish-ack { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 13px; color: var(--dark); font-size: .82rem; line-height: 1.7; cursor: pointer; }
.publish-ack input { margin-top: 5px; accent-color: var(--primary); }
.publish-responsibility { background: rgba(255,77,109,.045); border-color: rgba(255,77,109,.18); }

.profile-hero-card { margin: 26px auto 18px; padding: 28px 22px; border: 1px solid rgba(58,134,255,.12); border-radius: 24px; text-align: center; background: linear-gradient(145deg, #17385f, #286ba8); color: #fff; box-shadow: 0 18px 45px rgba(15,47,83,.18); }
.profile-avatar { width: 112px; height: 112px; border: 4px solid rgba(255,255,255,.9); border-radius: 50%; object-fit: cover; box-shadow: 0 10px 25px rgba(0,0,0,.2); }
.profile-name { margin: 13px 0 5px; font-size: 1.65rem; }
.profile-bio { margin: 0 auto 16px; max-width: 540px; color: rgba(255,255,255,.82); line-height: 1.7; }
.profile-action-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.profile-follow-btn, .profile-edit-btn { min-width: 140px; border: 0; }
.profile-follow-btn.following { color: #17385f; background: #fff; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 auto 24px; max-width: 700px; }
.profile-stats .stat-card { padding: 15px 9px; border: 1px solid var(--border); border-radius: 16px; text-align: center; background: var(--lighter); box-shadow: 0 8px 20px rgba(15,47,83,.06); }
.profile-stats .stat-card h3 { margin: 0 0 3px; color: var(--primary); font-size: 1.3rem; }
.profile-stats .stat-card p { margin: 0; color: var(--gray); font-size: .73rem; }

.comment { position: relative; }
.comment.comment-reply { margin-inline-start: 42px; }
.comment-social-actions { display: flex; gap: 14px; margin-top: 7px; color: var(--gray); font-size: .72rem; }
.comment-social-actions button { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.comment-social-actions button.active { color: #e63956; }
.comment-reply-context { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; color: #245d98; background: rgba(58,134,255,.08); border-radius: 10px 10px 0 0; font-size: .78rem; }
.comment-reply-context[hidden] { display: none; }
.comment-reply-context button { border: 0; color: var(--gray); background: transparent; cursor: pointer; }
.comment-edit-input { width: 100%; margin-top: 7px; padding: 8px 10px; border: 1px solid var(--primary); border-radius: 9px; font: inherit; }

.report-detail-description { padding-block: 16px; color: var(--dark); }
.report-detail-description strong { display: block; margin-bottom: 7px; color: var(--primary); font-size: .82rem; }
.report-detail-description p { margin: 0; white-space: pre-wrap; line-height: 1.8; }
.profile-report-user-btn {
    min-height: 42px; padding: 9px 15px; border: 1px solid rgba(255,255,255,.32); border-radius: 10px;
    color: #fff; background: rgba(255,255,255,.08); font: inherit; font-weight: 700; cursor: pointer;
}
.google-signin-card { width: min(92vw, 420px); max-width: 420px; }
.google-signin-body { display: flex; flex-direction: column; align-items: center; padding: 26px 22px 30px; text-align: center; }
.google-signin-mark {
    display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 12px; border-radius: 21px;
    color: #fff; background: linear-gradient(135deg, #3a86ff, #245d98); box-shadow: 0 12px 28px rgba(58,134,255,.24); font-size: 1.7rem;
}
.google-signin-body p { max-width: 320px; margin: 0 0 18px; color: var(--gray); line-height: 1.75; }
.google-identity-button { min-height: 44px; display: grid; place-items: center; }
.google-fallback-link { margin-top: 14px; padding: 7px 10px; border: 0; color: var(--primary); background: transparent; font: inherit; font-size: .78rem; cursor: pointer; }

.report-jump-fab { width: 44px; min-width: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.report-jump-fab i { color: #fff; }

.dark-mode .section-search-panel { background: linear-gradient(135deg, rgba(58,134,255,.12), #252d37); border-color: #3a4653; }
.dark-mode .section-search-box, .dark-mode .report-page .report-details-box, .dark-mode .report-preview-card, .dark-mode .profile-stats .stat-card { background: #252d37; }
.dark-mode .section-search-heading strong, .dark-mode .section-search-box input, .dark-mode .report-page-heading h1, .dark-mode .publish-ack, .dark-mode .report-preview-summary span, .dark-mode .report-preview-description, .dark-mode .report-detail-description { color: #f1f5f9; }

@media (max-width: 720px) {
    .section-search-panel { grid-template-columns: 1fr; gap: 15px; margin-top: 18px; padding: 16px; border-radius: 18px; }
    .section-search-box { grid-template-columns: 26px 1fr 40px 40px; min-height: 50px; }
    .post-card { border-radius: 16px; }
    .post-card .post-info-grid { grid-template-columns: 1fr 1fr; padding: 8px 12px; }
    .post-card .post-info-grid .info-item { min-height: 35px; padding: 6px 7px; font-size: .77rem; }
    .post-card .post-text-container { padding: 5px 13px 10px; }
    .unified-image-container { aspect-ratio: 1 / 1; }
    .report-page { padding-top: 18px; }
    .report-page .unified-image-container { aspect-ratio: auto; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); }
    .report-preview-summary { grid-template-columns: 1fr; }
    .sponsor-visual { min-height: 260px; }
    .sponsor-visual .sponsor-media-frame img { max-height: 210px; }
}

/* 2026-08-13: demo disclosure, section context, reactions and full profile editor */
.demo-data-notice {
    border-bottom: 1px solid #d9e8f7;
    color: #153b63;
    background: linear-gradient(90deg, #eaf5ff, #f5faff);
}
.demo-data-notice-inner {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding-block: 9px;
    text-align: center;
}
.demo-data-notice i { color: #2d7ac7; }
.demo-data-notice p { margin: 0; font-size: .82rem; line-height: 1.6; }

.section-intro-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    align-items: center;
    margin: 28px auto 16px;
    padding: 24px;
    border: 1px solid rgba(38, 110, 200, .14);
    border-radius: 22px;
    color: var(--dark);
    background: var(--lighter);
    box-shadow: 0 14px 36px rgba(15, 47, 83, .08);
}
.section-intro-card > i {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    color: #fff;
    font-size: 1.65rem;
    background: linear-gradient(135deg, #3a86ff, #245d98);
}
.section-intro-found > i { background: linear-gradient(135deg, #20a779, #147257); }
.section-intro-success > i { background: linear-gradient(135deg, #f0a928, #d77b16); }
.section-intro-card span { color: var(--primary); font-size: .76rem; font-weight: 800; }
.section-intro-card h1 { margin: 3px 0 6px; font-size: clamp(1.2rem, 3vw, 1.65rem); }
.section-intro-card p { max-width: 850px; margin: 0; color: var(--gray); line-height: 1.8; }
.section-intro-card + .section-search-panel { margin-top: 14px; }

.reaction-choices {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.reaction-choice {
    min-width: 78px;
    min-height: 48px !important;
    justify-content: center;
    gap: 5px;
    padding: 7px 9px;
    border: 0;
    border-radius: 0;
    color: var(--gray);
    background: transparent;
    box-shadow: none;
    font: inherit;
}
.reaction-choice:focus-visible {
    outline: none;
    color: var(--primary);
}
.reaction-choice:disabled { opacity: .58; cursor: wait; }
.reaction-emoji { font-size: 1rem; line-height: 1; transition: transform .18s ease, filter .18s ease; }
.reaction-label { font-size: .72rem; font-weight: 750; line-height: 1; white-space: nowrap; }
.reaction-choice .post-action-count { min-width: 1ch; font-size: .7rem; font-weight: 800; line-height: 1; }
.reaction-choice:not(.active) .reaction-emoji { filter: grayscale(1); opacity: .55; }
.reaction-choice:not(.active) .reaction-label,
.reaction-choice:not(.active) .post-action-count { color: var(--gray); }
.reaction-choice.active .reaction-emoji { transform: scale(1.14); }
.reaction-like.active { color: #d92d49; background: transparent; }
.reaction-sad.active { color: #1677c8; background: transparent; }
.share-action.shared { color: #087be5; background: transparent; }

.post-actions .post-action:hover,
.post-actions .post-action:focus,
.post-actions .post-action:active {
    background-color: transparent;
    box-shadow: none;
}
.post-actions .reunited-btn:not(.active),
.post-actions .reunited-btn:not(.active):hover,
.post-actions .reunited-btn:not(.active):focus,
.post-actions .reunited-btn:not(.active):active {
    color: #666;
    background-color: #e0e0e0;
    box-shadow: none;
    outline: none;
}
.dark-mode .post-actions .reunited-btn:not(.active),
.dark-mode .post-actions .reunited-btn:not(.active):hover,
.dark-mode .post-actions .reunited-btn:not(.active):focus,
.dark-mode .post-actions .reunited-btn:not(.active):active {
    color: var(--darker);
    background-color: var(--gray-light);
}

.edit-profile-page {
    min-height: calc(100vh - 104px);
    padding: 28px 0 70px;
    background: linear-gradient(180deg, rgba(58, 134, 255, .07), transparent 260px);
}
.edit-profile-container { max-width: 820px; }
.edit-profile-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.edit-profile-heading span { color: var(--primary); font-size: .76rem; font-weight: 800; }
.edit-profile-heading h1 { margin: 2px 0 3px; color: var(--dark); font-size: clamp(1.45rem, 4vw, 2rem); }
.edit-profile-heading p { margin: 0; color: var(--gray); }
.edit-profile-back {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 15px;
    color: var(--primary);
    background: var(--lighter);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 47, 83, .07);
}
.edit-profile-card {
    overflow: hidden;
    border: 1px solid rgba(15, 47, 83, .11);
    border-radius: 24px;
    background: var(--lighter);
    box-shadow: 0 20px 55px rgba(15, 47, 83, .11);
}
.edit-avatar-editor {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 24px;
    align-items: center;
    padding: 30px;
    color: #fff;
    background: linear-gradient(135deg, #17385f, #2875b7);
}
.edit-avatar-editor img {
    width: 132px;
    height: 132px;
    border: 4px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}
.edit-avatar-editor h2 { margin: 0 0 4px; font-size: 1.25rem; }
.edit-avatar-editor p { margin: 0 0 13px; color: rgba(255, 255, 255, .78); }
.edit-avatar-button { display: inline-flex; color: #17385f; border-color: #fff; background: #fff; }
.visually-hidden-file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.edit-avatar-file-name { display: block; margin-top: 8px; color: rgba(255, 255, 255, .75); font-size: .73rem; }
.edit-profile-fields { padding: 28px 30px 12px; }
.edit-profile-fields .form-group { margin-bottom: 18px; }
.edit-profile-fields input, .edit-profile-fields textarea { width: 100%; }
.edit-profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 30px 26px;
    border-top: 1px solid var(--border);
}

.dark-mode .demo-data-notice { color: #dbeeff; border-color: #33475c; background: #1d3349; }
.dark-mode .section-intro-card, .dark-mode .edit-profile-card, .dark-mode .edit-profile-back { background: #252d37; }
.dark-mode .section-intro-card h1, .dark-mode .edit-profile-heading h1 { color: #f1f5f9; }

@media (max-width: 720px) {
    .demo-data-notice-inner { align-items: flex-start; text-align: start; }
    .demo-data-notice p { font-size: .74rem; }
    .section-intro-card { grid-template-columns: 52px 1fr; gap: 13px; margin-top: 18px; padding: 17px; border-radius: 18px; }
    .section-intro-card > i { width: 52px; height: 52px; border-radius: 16px; font-size: 1.25rem; }
    .section-intro-card p { font-size: .82rem; }
    .post-card .post-actions, .report-page .post-actions { gap: 2px; padding-inline: 7px; }
    .post-card .post-actions {
        display: grid;
        grid-template-columns: minmax(138px, 1.8fr) repeat(4, minmax(34px, 1fr));
    }
    .report-page .post-actions {
        display: grid;
        grid-template-columns: minmax(138px, 1.8fr) repeat(3, minmax(38px, 1fr));
    }
    .post-action { justify-content: center; padding-inline: 6px; }
    .reaction-choice { min-width: 62px; min-height: 48px !important; gap: 4px; padding-inline: 6px; }
    .reaction-choices { gap: 8px; }
    .reaction-label { font-size: .64rem; }
    .reaction-choice .post-action-count { font-size: .66rem; }
    .edit-profile-page { padding-top: 18px; }
    .edit-profile-heading { align-items: flex-start; }
    .edit-profile-heading p { font-size: .82rem; }
    .edit-avatar-editor { grid-template-columns: 1fr; justify-items: center; padding: 25px 20px; text-align: center; }
    .edit-avatar-editor img { width: 116px; height: 116px; }
    .edit-profile-fields { padding: 22px 18px 8px; }
    .edit-profile-actions { padding: 16px 18px 22px; }
    .edit-profile-actions .btn { flex: 1; }
}

/* Report details: clear, resilient fact layout */
.report-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.report-fact {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid rgba(58, 134, 255, .13);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(58, 134, 255, .065), rgba(58, 134, 255, .018));
}
.report-fact-wide { grid-column: 1 / -1; }
.report-fact-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--primary);
    background: rgba(58, 134, 255, .11);
    font-size: 1rem;
}
.report-fact > div { min-width: 0; }
.report-fact dt {
    margin: 0 0 3px;
    color: var(--gray);
    font-size: .68rem;
    font-weight: 750;
    line-height: 1.35;
}
.report-fact dd {
    margin: 0;
    color: var(--dark);
    font-size: .92rem;
    font-weight: 750;
    line-height: 1.55;
    overflow-wrap: break-word;
}
.report-fact-phone dd {
    direction: ltr;
    text-align: right;
    unicode-bidi: plaintext;
    white-space: nowrap;
}
.report-page .report-detail-description {
    padding: 19px 20px 22px;
    background: linear-gradient(180deg, rgba(58, 134, 255, .025), transparent);
}
.report-detail-description strong {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
}
.report-detail-description strong i { font-size: .78rem; }

/* Profile actions: follow is primary, account report is secondary */
.profile-action-row {
    flex-direction: column;
    align-items: center;
    gap: 7px;
}
.profile-follow-btn {
    width: min(100%, 320px);
    min-height: 54px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    color: #17385f;
    background: #fff;
    font-size: 1rem;
    font-weight: 850;
    box-shadow: 0 12px 28px rgba(5, 28, 54, .24);
    transition: transform .18s ease, box-shadow .18s ease;
}
.profile-follow-btn:hover {
    color: #17385f;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 15px 32px rgba(5, 28, 54, .28);
}
.profile-follow-btn.following {
    color: #17385f;
    background: #fff;
    border: 0;
}
.profile-edit-btn {
    width: min(100%, 260px);
    min-height: 50px;
    border-radius: 999px;
}
.profile-report-user-btn {
    min-height: 30px;
    margin: 0 auto;
    padding: 5px 9px;
    border: 0;
    border-radius: 8px;
    color: rgba(255, 255, 255, .72);
    background: transparent;
    font-size: .7rem;
    font-weight: 650;
    box-shadow: none;
}
.profile-report-user-btn:hover,
.profile-report-user-btn:focus {
    color: #ffd7df;
    background: rgba(255, 255, 255, .07);
}

/* About page */
.about-page {
    min-height: 100vh;
    background: #f4f8fc;
}
.about-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 104px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 15% 18%, rgba(255, 209, 102, .28), transparent 27%),
        radial-gradient(circle at 88% 80%, rgba(58, 134, 255, .3), transparent 30%),
        linear-gradient(145deg, #102f53 0%, #1f5d94 55%, #287ab9 100%);
}
.about-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -110px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .055);
}
.about-hero-inner { position: relative; z-index: 1; max-width: 860px; }
.about-eyebrow,
.about-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffd978;
    font-size: .76rem;
    font-weight: 850;
}
.about-symbol {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin: 18px auto 14px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 24px;
    background: rgba(255, 255, 255, .13);
    box-shadow: 0 16px 38px rgba(5, 28, 54, .23);
    font-size: 1.8rem;
}
.about-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 6vw, 3.4rem);
    line-height: 1.35;
}
.about-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .86);
    font-size: 1.03rem;
    line-height: 2;
}
.about-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin-top: -58px;
    padding-bottom: 70px;
}
.about-story-card,
.about-flow,
.about-example-card,
.about-safety-card,
.about-callout {
    border: 1px solid rgba(15, 47, 83, .1);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15, 47, 83, .09);
}
.about-story-card { padding: 28px; }
.about-story-main { padding: 34px; }
.about-story-card h2,
.about-section-heading h2,
.about-example-card h2,
.about-safety-card h2,
.about-callout h2 {
    margin: 7px 0 12px;
    color: #17385f;
    line-height: 1.55;
}
.about-story-card p,
.about-example-card p,
.about-safety-card p,
.about-callout p {
    margin: 0;
    color: #52677d;
    line-height: 1.95;
}
.about-story-main p + p { margin-top: 12px; }
.about-kicker { color: #2875b7; }
.about-flow { margin-top: 18px; padding: 30px; }
.about-section-heading { margin-bottom: 20px; text-align: center; }
.about-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}
.about-flow-grid article {
    position: relative;
    min-width: 0;
    padding: 24px 18px 19px;
    border: 1px solid rgba(58, 134, 255, .12);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(58, 134, 255, .075), rgba(58, 134, 255, .018));
}
.about-flow-grid article > i {
    color: var(--primary);
    font-size: 1.35rem;
}
.about-flow-grid h3 { margin: 11px 0 7px; color: #17385f; }
.about-flow-grid p { margin: 0; color: #60758a; font-size: .82rem; line-height: 1.8; }
.about-step {
    position: absolute;
    top: 14px;
    left: 14px;
    color: rgba(36, 93, 152, .28);
    font-size: 1.7rem;
    font-weight: 900;
}
.about-example-card,
.about-safety-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin-top: 18px;
    padding: 28px;
}
.about-example-card {
    border-color: rgba(255, 193, 7, .2);
    background: linear-gradient(135deg, #fffaf0, #fff);
}
.about-example-icon,
.about-safety-icon,
.about-card-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 20px;
    color: #a66d00;
    background: #fff0bf;
    font-size: 1.45rem;
}
.about-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}
.about-card-icon { margin-bottom: 18px; color: #245d98; background: #e7f2ff; }
.about-card-icon-heart { color: #d92d49; background: #ffe9ee; }
.about-safety-card { background: linear-gradient(145deg, #f4f9ff, #fff); }
.about-safety-icon { color: #1f7a5d; background: #dcf7ee; }
.about-callout {
    margin-top: 18px;
    padding: 38px 28px;
    color: #fff;
    text-align: center;
    border: 0;
    background: linear-gradient(145deg, #17385f, #2875b7);
}
.about-callout > i {
    font-size: 1.8rem;
    color: #ffd166;
}
.about-callout h2 { color: #fff; }
.about-callout p { max-width: 760px; margin: 0 auto; color: rgba(255, 255, 255, .82); }
.about-primary-cta {
    margin-top: 20px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    color: #17385f;
    background: #fff;
    font-weight: 850;
    box-shadow: 0 10px 25px rgba(5, 28, 54, .22);
}

.dark-mode .report-fact {
    border-color: #3a4653;
    background: rgba(58, 134, 255, .07);
}
.dark-mode .report-fact dd { color: #f1f5f9; }
.dark-mode .about-page { background: #1b222b; }
.dark-mode .about-story-card,
.dark-mode .about-flow,
.dark-mode .about-example-card,
.dark-mode .about-safety-card { border-color: #344150; background: #252d37; }
.dark-mode .about-story-card h2,
.dark-mode .about-section-heading h2,
.dark-mode .about-example-card h2,
.dark-mode .about-safety-card h2,
.dark-mode .about-flow-grid h3 { color: #f1f5f9; }
.dark-mode .about-story-card p,
.dark-mode .about-example-card p,
.dark-mode .about-safety-card p { color: #c6d0dc; }
.dark-mode .about-flow-grid article { border-color: #3a4653; background: rgba(58, 134, 255, .08); }

@media (max-width: 720px) {
    .report-facts-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px;
    }
    .report-fact-wide { grid-column: auto; }
    .report-fact {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 10px 11px;
        border-radius: 13px;
    }
    .report-fact-icon { width: 38px; height: 38px; border-radius: 11px; }
    .report-fact dd { font-size: .88rem; }
    .report-page .report-detail-description { padding-inline: 16px; }
    .profile-hero-card { padding: 28px 18px 24px; }
    .profile-follow-btn { width: min(100%, 290px); }
    .about-hero { padding: 48px 0 94px; }
    .about-hero-inner { padding-inline: 21px; }
    .about-hero p { font-size: .9rem; line-height: 1.9; }
    .about-content { margin-top: -48px; padding-inline: 14px; }
    .about-story-main,
    .about-story-card,
    .about-flow { padding: 22px 18px; border-radius: 20px; }
    .about-flow-grid,
    .about-vision-grid { grid-template-columns: 1fr; }
    .about-example-card,
    .about-safety-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px 18px;
        border-radius: 20px;
    }
    .about-example-icon,
    .about-safety-icon { width: 56px; height: 56px; border-radius: 17px; }
    .about-callout { padding: 30px 18px; border-radius: 20px; }
    .about-story-card h2,
    .about-section-heading h2,
    .about-example-card h2,
    .about-safety-card h2,
    .about-callout h2 { font-size: 1.18rem; }
}



/* =====================================================================
   Lam Al-Shaml Brand System v9 — warm identity, restrained interface
   ===================================================================== */
:root {
    --brand-coral: #f04450;
    --brand-orange: #ff7a1a;
    --brand-gold: #ffc52e;
    --brand-gradient: linear-gradient(135deg, #f04450 0%, #ff7a1a 58%, #ffc52e 100%);
    --primary: #e84b42;
    --primary-dark: #c93734;
    --secondary: #f06b21;
    --secondary-dark: #cf5214;
    --success: #168a63;
    --success-dark: #0f6f50;
    --warning: #e6a817;
    --warning-dark: #ba8210;
    --danger: #9f2f43;
    --danger-dark: #7e2334;
    --reunited: #168a63;
    --dark: #25272b;
    --darker: #17191c;
    --light: #f6f7f8;
    --lighter: #ffffff;
    --gray: #6e737b;
    --gray-light: #eceef1;
    --border: #e4e6ea;
    --shadow: 0 8px 28px rgba(26, 29, 33, .07);
    --transition: all .2s ease;
}
.dark-mode {
    --primary: #ff7867;
    --primary-dark: #ff9a67;
    --secondary: #ff982f;
    --success: #41b98c;
    --dark: #f3f4f6;
    --darker: #ffffff;
    --light: #17191d;
    --lighter: #22252a;
    --gray: #aeb3bb;
    --gray-light: #34383f;
    --border: #383c43;
    --shadow: 0 12px 30px rgba(0, 0, 0, .24);
}
html { scroll-behavior: smooth; }
body {
    color: var(--dark);
    background: var(--light);
    font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea, select { font: inherit; }
button:focus-visible, a:focus-visible, [role="button"]:focus-visible {
    outline: 3px solid rgba(255, 122, 26, .28);
    outline-offset: 3px;
}

/* Brand mark and quiet navigation */
header {
    height: 66px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 3px 15px rgba(26, 29, 33, .045);
    backdrop-filter: blur(12px);
}
.dark-mode header { background: rgba(34, 37, 42, .96); }
body { padding-top: 66px; }
.navbar { gap: 18px; padding: 7px 0; }
.logo {
    gap: 9px;
    margin: 0;
    color: var(--dark);
    font-size: 1rem;
}
.logo:hover { color: var(--dark); }
.logo img {
    width: 42px;
    height: 42px;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}
.logo-wordmark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}
.logo-wordmark strong {
    color: var(--dark);
    font-size: 1.02rem;
    font-weight: 850;
}
.logo-wordmark small {
    margin-top: 4px;
    color: var(--gray);
    font-size: .61rem;
    font-weight: 600;
}
.nav-links {
    gap: 4px;
    margin: 0 auto;
}
.nav-links a {
    position: relative;
    flex-direction: row;
    gap: 7px;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--gray);
    font-size: .78rem;
    font-weight: 700;
}
.nav-links a i { margin: 0; font-size: .93rem; }
.nav-links a:hover { color: var(--dark); background: rgba(37, 39, 43, .045); }
.nav-links a.active {
    color: var(--primary);
    background: rgba(240, 68, 80, .07);
}
.nav-links a.active::after {
    content: "";
    position: absolute;
    right: 14px;
    left: 14px;
    bottom: -5px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-gradient);
}
.nav-stat {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    margin: 0;
    padding: 0 5px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--gray);
    background: var(--lighter);
    font-size: .61rem;
}
.nav-links a.active .nav-stat { color: var(--primary); border-color: rgba(240, 68, 80, .18); }
.header-tools {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}
.header-tool-btn,
.hamburger-btn.header-tool-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--dark);
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.header-tool-btn:hover { color: var(--primary); background: rgba(240, 68, 80, .075); }
.header-tool-btn:active { transform: scale(.94); }
.header-tool-btn .notification-count { top: 2px; right: 1px; }
.side-menu-brand { padding: 0; }
.side-menu-brand img { width: 46px; height: 46px; }
.side-menu-primary-links {
    margin: 3px 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.side-menu-link {
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}
.side-menu-link:hover { background: rgba(240, 68, 80, .06); }
.side-menu-link i { color: var(--gray); }
.side-menu-link:hover i { color: var(--primary); }

/* Compact, human home introduction */
.demo-data-notice {
    color: #5a4b34;
    border-color: #f1dfb4;
    background: #fff9e9;
}
.hero {
    min-height: auto;
    margin: 0 0 18px;
    padding: 24px 0 20px;
    color: var(--dark);
    text-align: start;
    background: var(--lighter);
    border-bottom: 1px solid var(--border);
}
.hero::before { display: none; }
.hero .container { position: relative; }
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: .73rem;
    font-weight: 850;
}
.hero h1 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(1.45rem, 4vw, 2rem);
    line-height: 1.35;
}
.hero p {
    margin: 5px 0 0;
    color: var(--gray);
    font-size: .93rem;
}
.supporter-ad {
    max-width: 680px;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--lighter);
    box-shadow: none;
}
.supporter-carousel-container { height: 112px; }
.supporter-carousel,
.supporter-carousel-item { height: 100%; }
.supporter-carousel-item img { width: 100%; height: 100%; object-fit: cover; }

/* One dominant CTA */
.combined-service-card {
    max-width: 680px;
    margin: 0 auto 16px;
    padding: 20px;
    align-items: stretch;
    gap: 18px;
    text-align: start;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--lighter);
    box-shadow: none;
}
.service-eyebrow {
    color: var(--primary);
    font-size: .7rem;
    font-weight: 850;
}
.service-action-block h2 {
    margin: 3px 0 3px;
    color: var(--dark);
    font-size: 1.16rem;
}
.service-action-block p {
    max-width: 520px;
    margin: 0 0 14px;
    color: var(--gray);
    font-size: .78rem;
    line-height: 1.65;
}
.combined-service-card .btn-group {
    justify-content: flex-start;
    gap: 9px;
    margin: 0 !important;
}
.combined-service-card .btn-group .btn {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 13px;
}
.btn-primary,
.primary-report-cta,
.search-submit-btn {
    color: #fff;
    border-color: transparent;
    background: var(--brand-gradient);
    box-shadow: 0 9px 20px rgba(240, 68, 80, .18);
}
.btn-primary:hover,
.primary-report-cta:hover,
.search-submit-btn:hover {
    color: #fff;
    border-color: transparent;
    background: var(--brand-gradient);
    filter: brightness(.97);
    transform: translateY(-1px);
}
.secondary-report-cta {
    color: var(--dark) !important;
    border-color: var(--border) !important;
    background: var(--lighter) !important;
    box-shadow: none !important;
}
.search-group { width: 100%; gap: 8px; }
.search-input-wrapper { flex: 1; }
.search-input-wrapper input,
.section-search-box input {
    min-height: 44px;
    border-color: var(--border);
    border-radius: 13px;
    background: var(--light);
}
.search-input-wrapper input:focus,
.section-search-box input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(255, 122, 26, .1);
}
.search-submit-btn,
.search-reset-btn { min-width: 44px; width: 44px; min-height: 44px; padding: 0 !important; border-radius: 12px; }
.search-reset-btn { color: var(--gray); border-color: var(--border); background: transparent; box-shadow: none; }

/* Status filters are readable with or without color */
.content-filters {
    position: sticky;
    top: 74px;
    z-index: 20;
    max-width: 680px;
    margin: 0 auto 18px;
    padding: 5px;
    gap: 3px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 5px 18px rgba(26, 29, 33, .05);
    backdrop-filter: blur(10px);
}
.dark-mode .content-filters { background: rgba(34, 37, 42, .94); }
.filter-btn {
    min-height: 42px;
    padding: 7px 10px;
    border: 0;
    border-radius: 10px;
    color: var(--gray);
    background: transparent;
    box-shadow: none;
    font-size: .74rem;
}
.filter-btn.active {
    color: var(--dark);
    background: var(--light);
    box-shadow: inset 0 0 0 1px var(--border);
}
.filter-btn[data-filter="missing"].active i { color: var(--brand-coral); }
.filter-btn[data-filter="found"].active i { color: #2677c9; }
.filter-btn[data-filter="returned"].active i { color: var(--success); }
.section-title {
    max-width: 680px;
    margin-inline: auto;
    color: var(--dark);
    font-size: 1.2rem;
    text-align: start;
}
.section-count {
    display: inline-grid;
    min-width: 26px;
    height: 26px;
    margin-inline-start: 5px;
    place-items: center;
    border-radius: 50%;
    color: var(--gray);
    background: var(--gray-light);
    font-size: .68rem;
}

/* Image-first report cards */
.posts-feed { max-width: 680px; gap: 18px; }
.post-card {
    padding-bottom: 0;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--lighter);
    box-shadow: 0 8px 28px rgba(26, 29, 33, .07);
    transform: none;
}
.post-card:hover { transform: none; box-shadow: 0 10px 32px rgba(26, 29, 33, .085); }
.post-card .post-header {
    min-height: 66px;
    padding: 11px 16px;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}
.post-header .avatar,
.post-card .post-header .avatar {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
}
.post-header-content strong { color: var(--dark); font-size: .82rem; }
.post-header-content .time { color: var(--gray); font-size: .69rem; }
.verified-badge { color: var(--primary); border: 0; padding: 0; }
.post-options { top: 13px; left: 12px; }
.options-toggle {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: var(--gray);
    background: transparent;
    box-shadow: none;
}
.options-toggle:hover { color: var(--dark); background: var(--light); }
.post-card .unified-image-container {
    width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    aspect-ratio: auto;
    background: #eef0f2;
}
.post-card .unified-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 680px;
    object-fit: contain;
}
.post-person-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px 12px;
}
.post-primary-info { min-width: 0; }
.post-primary-info h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.15rem;
    line-height: 1.45;
}
.post-primary-info p {
    margin: 3px 0 0;
    color: var(--gray);
    font-size: .77rem;
}
.report-badge {
    flex: 0 0 auto;
    min-height: 29px;
    padding: 5px 10px;
    border: 0;
    border-radius: 9px;
    font-size: .69rem;
    font-weight: 850;
    box-shadow: none;
}
.badge-missing { color: #9d2c36; background: #ffebed; }
.badge-found { color: #1e5f9f; background: #e9f3ff; }
.badge-returned { color: #0e6f4c; background: #e6f7ef; }
.dark-mode .badge-missing { color: #ff9da5; background: rgba(240, 68, 80, .16); }
.dark-mode .badge-found { color: #8bc3ff; background: rgba(38, 119, 201, .16); }
.dark-mode .badge-returned { color: #7cd9b4; background: rgba(22, 138, 99, .17); }
.post-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 14px;
    padding: 0 16px 13px;
    border: 0;
}
.post-info-grid .info-item {
    min-width: 0;
    align-items: flex-start;
    color: var(--dark);
    font-size: .78rem;
}
.post-info-grid .info-item i { margin-top: 3px; color: var(--gray); font-size: .76rem; }
.post-info-grid .info-item-wide { grid-column: 1 / -1; }
.post-info-grid .info-details { min-width: 0; overflow-wrap: anywhere; line-height: 1.55; }
.post-text-container {
    padding: 12px 16px 14px;
    border-top: 1px solid var(--border);
}
.post-text { color: var(--dark); font-size: .86rem; line-height: 1.75; }
.read-more { color: var(--primary); font-size: .73rem; font-weight: 750; }
.post-actions {
    min-height: 58px;
    padding: 7px 10px;
    border-top: 1px solid var(--border);
    background: transparent;
}
.post-actions .post-action,
.reaction-choice {
    min-height: 44px;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--gray);
    background: transparent !important;
    box-shadow: none !important;
}
.post-actions .post-action:hover { color: var(--dark); }
.reaction-choices { gap: 10px; }
.reaction-choice { gap: 4px; padding-inline: 2px; }
.reaction-emoji { font-size: 1.05rem; filter: grayscale(1); opacity: .62; }
.reaction-choice.active .reaction-emoji { filter: none; opacity: 1; transform: scale(1.08); }
.reaction-like.active { color: #c93244; }
.reaction-sad.active { color: #226fb6; }
.share-action.shared { color: var(--primary); }
.post-actions .reunited-btn:not(.active) {
    color: #747980;
    background: #e9ebee !important;
}
.post-actions .reunited-btn.active {
    color: #fff;
    background: var(--success) !important;
    animation: reunion-complete .5s ease both;
}
@keyframes reunion-complete {
    0% { transform: scale(.86); }
    55% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Full report: image, identity, primary action, structured facts, timeline */
.report-page {
    min-height: calc(100vh - 66px);
    padding: 18px 0 64px;
    background: var(--light);
}
.report-page-container { max-width: 760px; }
.report-page-heading {
    margin: 0 0 13px;
    text-align: start;
}
.report-page-heading span { color: var(--primary); font-size: .7rem; font-weight: 800; }
.report-page-heading h1 { margin: 2px 0 0; color: var(--dark); font-size: clamp(1.35rem, 4vw, 1.8rem); }
.report-details-box {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--lighter);
    box-shadow: var(--shadow);
}
.report-publisher { min-height: 68px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.report-hero-image {
    margin: 0;
    background: #eef0f2;
}
.report-hero-image img {
    display: block;
    width: 100%;
    max-height: 760px;
    object-fit: contain;
}
.report-identity {
    padding: 20px 21px 13px;
    text-align: start;
}
.report-identity h2 {
    margin: 10px 0 5px;
    color: var(--dark);
    font-size: clamp(1.45rem, 5vw, 2rem);
    line-height: 1.35;
}
.report-identity p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--gray);
    font-size: .82rem;
}
.report-identity p i { color: var(--primary); }
.report-meta-separator { color: #b7bbc0; }
.report-primary-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 0 21px 21px;
}
.report-primary-actions .post-action {
    min-height: 50px;
    border-radius: 13px;
    cursor: pointer;
}
.report-share-primary {
    justify-content: center;
    gap: 9px;
    color: #fff !important;
    border: 0 !important;
    background: var(--brand-gradient) !important;
    box-shadow: 0 10px 24px rgba(240, 68, 80, .2) !important;
    font-weight: 850;
}
.report-save-secondary {
    min-width: 94px;
    justify-content: center;
    gap: 7px;
    color: var(--dark);
    border: 1px solid var(--border) !important;
    background: var(--lighter) !important;
    box-shadow: none !important;
}
.report-save-secondary.active { color: var(--primary); border-color: rgba(240, 68, 80, .3) !important; }
.report-section { border-top: 1px solid var(--border); }
.report-section-title {
    margin: 0;
    padding: 19px 21px 5px;
    color: var(--dark);
    font-size: 1rem;
}
.report-facts-grid {
    display: block;
    margin: 0;
    padding: 4px 21px 17px;
    border: 0;
}
.report-fact,
.report-fact-wide {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-width: 0;
    padding: 11px 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}
.report-fact:last-child { border-bottom: 0; }
.report-fact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--primary);
    background: rgba(240, 68, 80, .075);
}
.report-fact > div {
    display: grid;
    grid-template-columns: minmax(118px, .55fr) minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    min-width: 0;
}
.report-fact dt {
    margin: 0;
    color: var(--gray);
    font-size: .75rem;
    font-weight: 650;
}
.report-fact dd {
    margin: 0;
    color: var(--dark);
    font-size: .87rem;
    font-weight: 750;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.report-detail-description {
    padding: 0 21px 22px !important;
    background: transparent !important;
}
.report-detail-description .report-section-title { padding-inline: 0; }
.report-detail-description p {
    margin: 8px 0 0;
    color: var(--dark);
    font-size: .9rem;
    line-height: 1.95;
    white-space: pre-wrap;
}
.report-timeline { padding-bottom: 19px; }
.report-timeline ol {
    position: relative;
    margin: 5px 21px 0;
    padding: 0 26px 0 0;
    list-style: none;
}
.report-timeline ol::before {
    content: "";
    position: absolute;
    top: 13px;
    right: 7px;
    bottom: 14px;
    width: 2px;
    background: var(--border);
}
.report-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 0 19px;
}
.report-timeline li:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    top: 7px;
    right: -25px;
    display: grid;
    width: 15px;
    height: 15px;
    place-items: center;
    border: 3px solid var(--lighter);
    border-radius: 50%;
    background: var(--brand-orange);
    box-shadow: 0 0 0 1px var(--brand-orange);
}
.timeline-dot i { font-size: .44rem; }
.report-timeline time {
    display: block;
    color: var(--gray);
    font-size: .66rem;
}
.report-timeline strong {
    display: block;
    margin-top: 2px;
    color: var(--dark);
    font-size: .86rem;
}
.report-timeline p {
    margin: 2px 0 0;
    color: var(--gray);
    font-size: .76rem;
}
.timeline-success .timeline-dot { width: 19px; height: 19px; top: 4px; right: -27px; color: #fff; background: var(--success); box-shadow: 0 0 0 1px var(--success); }
.report-social-actions { justify-content: flex-start; padding-inline: 17px; }
.report-social-actions .reaction-choices { flex: 0 1 auto; }

/* Profile hierarchy: follow dominates, reporting stays discreet */
.profile-hero-card {
    color: var(--dark);
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 197, 46, .13), transparent 24%),
        var(--lighter);
    box-shadow: var(--shadow);
}
.profile-hero-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--brand-gradient);
}
.profile-hero-card h1,
.profile-hero-card .profile-name,
.profile-hero-card .profile-bio { color: var(--dark); }
.profile-hero-card .profile-bio { opacity: .72; }
.profile-hero-card .profile-avatar { border-color: var(--lighter); }
.profile-follow-btn {
    width: min(100%, 340px);
    min-height: 52px;
    color: #fff;
    border: 0;
    background: var(--brand-gradient);
    box-shadow: 0 10px 25px rgba(240, 68, 80, .2);
}
.profile-follow-btn:hover,
.profile-follow-btn.following {
    color: #fff;
    background: var(--brand-gradient);
}
.profile-report-user-btn {
    width: auto;
    min-height: 28px;
    padding: 4px 8px;
    color: var(--gray);
    background: transparent;
    font-size: .68rem;
}
.profile-report-user-btn:hover,
.profile-report-user-btn:focus { color: var(--danger); background: rgba(159, 47, 67, .06); }

/* Humane states */
.no-results {
    display: grid;
    justify-items: center;
    max-width: 520px;
    margin: 22px auto;
    padding: 38px 20px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 20px;
    color: var(--gray);
    background: var(--lighter);
}
.no-results .state-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 16px;
    color: var(--primary);
    background: rgba(240, 68, 80, .075);
}
.no-results h3 { margin: 0; color: var(--dark); font-size: 1rem; }
.no-results p { margin: 5px 0 0; font-size: .78rem; }
.loader-content { color: var(--gray); }
.spinner { border-color: var(--gray-light); border-top-color: var(--brand-orange); }

/* Warm branding in long-form and utility screens */
.about-page { background: var(--light); }
.about-hero {
    background:
        radial-gradient(circle at 16% 14%, rgba(255, 197, 46, .2), transparent 27%),
        radial-gradient(circle at 86% 82%, rgba(240, 68, 80, .18), transparent 29%),
        linear-gradient(145deg, #292a2e 0%, #1d1f23 100%);
}
.about-eyebrow { color: #ffd76b; }
.about-symbol { border-color: rgba(255, 197, 46, .3); background: rgba(255, 255, 255, .08); }
.about-story-card,
.about-flow,
.about-example-card,
.about-safety-card,
.about-callout { border-color: var(--border); box-shadow: var(--shadow); }
.about-story-card h2,
.about-section-heading h2,
.about-example-card h2,
.about-safety-card h2 { color: var(--dark); }
.about-story-card p,
.about-example-card p,
.about-safety-card p { color: var(--gray); }
.about-kicker { color: var(--primary); }
.about-flow-grid article {
    border-color: rgba(240, 68, 80, .1);
    background: linear-gradient(145deg, rgba(240, 68, 80, .05), rgba(255, 197, 46, .025));
}
.about-flow-grid article > i { color: var(--primary); }
.about-flow-grid h3 { color: var(--dark); }
.about-card-icon { color: var(--brand-orange); background: #fff2e8; }
.about-callout { background: linear-gradient(145deg, #292a2e, #1d1f23); }
.about-callout > i { color: var(--brand-gold); }
.about-primary-cta { color: #fff; background: var(--brand-gradient); }
.edit-profile-page { background: linear-gradient(180deg, rgba(240, 68, 80, .055), transparent 250px); }
.edit-avatar-editor { background: linear-gradient(145deg, #292a2e, #1d1f23); }
.edit-avatar-button { color: var(--dark); }
.section-intro-card,
.section-search-panel { border-color: var(--border); box-shadow: none; }
.section-intro-missing > i { color: #a5313d; background: #ffebed; }
.section-intro-found > i { color: #2268aa; background: #e9f3ff; }
.section-intro-success > i { color: #0e7450; background: #e6f7ef; }

/* Genuine RTL details and responsive rhythm */
[dir="rtl"] .report-fact-phone dd,
[dir="rtl"] bdi { direction: ltr; unicode-bidi: isolate; text-align: right; }
@media (max-width: 860px) {
    header { height: 62px; }
    body { padding-top: 62px; }
    .navbar { gap: 7px; }
    .nav-links { display: none; }
    .logo { margin-left: auto; }
    .logo img { width: 39px; height: 39px; }
    .logo-wordmark small { display: none; }
    .header-tools { gap: 0; }
    .header-tool-btn,
    .hamburger-btn.header-tool-btn { width: 39px; height: 39px; }
    .content-filters { top: 69px; }
}
@media (max-width: 720px) {
    .hero { padding: 19px 0 16px; }
    .hero h1 { font-size: 1.35rem; }
    .supporter-carousel-container { height: 86px; }
    .combined-service-card { padding: 17px 14px; border-radius: 18px; }
    .combined-service-card .btn-group { display: grid; grid-template-columns: 1fr; }
    .combined-service-card .btn-group .btn { width: 100%; }
    .search-group { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px; }
    .content-filters {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 4px;
        scrollbar-width: none;
    }
    .content-filters::-webkit-scrollbar { display: none; }
    .filter-btn { flex: 0 0 auto; min-width: 86px; }
    .post-card { border-radius: 18px; }
    .post-primary-info h3 { font-size: 1.05rem; }
    .post-info-grid { grid-template-columns: 1fr 1fr; }
    .post-card .post-actions {
        display: grid;
        grid-template-columns: minmax(132px, 1.75fr) repeat(4, minmax(36px, 1fr));
        gap: 1px;
    }
    .reaction-label { font-size: .62rem; }
    .report-page { padding-top: 12px; }
    .report-page-heading { padding-inline: 4px; }
    .report-details-box { border-radius: 18px; }
    .report-identity { padding: 17px 16px 12px; }
    .report-primary-actions { padding: 0 16px 17px; }
    .report-primary-actions .post-action { min-height: 48px; }
    .report-save-secondary { min-width: 84px; }
    .report-section-title { padding: 17px 16px 5px; }
    .report-facts-grid { padding: 3px 16px 14px; }
    .report-fact,
    .report-fact-wide { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; padding: 10px 0; }
    .report-fact-icon { width: 33px; height: 33px; border-radius: 9px; }
    .report-fact > div { grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
    .report-fact dt { font-size: .69rem; }
    .report-fact dd { font-size: .8rem; line-height: 1.6; }
    .report-detail-description { padding: 0 16px 18px !important; }
    .report-timeline ol { margin-inline: 16px; }
    .profile-hero-card { padding-inline: 18px; }
    .about-story-card,
    .about-flow,
    .about-example-card,
    .about-safety-card { box-shadow: none; }
}
@media (max-width: 430px) {
    .logo-wordmark strong { font-size: .91rem; }
    .header-tool-btn,
    .hamburger-btn.header-tool-btn { width: 36px; height: 36px; }
    .header-tools #headerProfileBtn { display: none; }
    .post-card .post-actions { grid-template-columns: minmax(126px, 1.7fr) repeat(4, minmax(32px, 1fr)); padding-inline: 5px; }
    .reaction-choices { gap: 5px; }
    .report-fact > div { grid-template-columns: 86px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* v10: enforce the single dominant home CTA above legacy button rules */
.combined-service-card .btn-group .primary-report-cta {
    color: #fff !important;
    border-color: transparent !important;
    background: var(--brand-gradient) !important;
    box-shadow: 0 10px 24px rgba(240, 68, 80, .22) !important;
}
.combined-service-card .btn-group .primary-report-cta:hover,
.combined-service-card .btn-group .primary-report-cta:focus {
    color: #fff !important;
    border-color: transparent !important;
    background: var(--brand-gradient) !important;
    filter: brightness(.97);
}


/* =====================================================================
   Lam Al-Shaml UX refinements v12
   Exact supplied logo, full sponsor artwork, dual filters, balanced RTL header
   ===================================================================== */

/* Exact uploaded brand artwork: no redraw; header only crops the original canvas. */
.brand-mark-window,
.refresh-brand-mark {
    position: relative;
    display: block;
    overflow: hidden;
    flex: 0 0 auto;
    background: #050505;
}
.brand-mark-window {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    box-shadow: 0 3px 11px rgba(20, 20, 20, .14);
}
.brand-mark-window img,
.refresh-brand-mark img {
    position: absolute;
    top: 0;
    left: 50%;
    width: 218%;
    height: auto;
    max-width: none;
    transform: translateX(-50%);
}
.logo > .brand-mark-window { margin: 0; }
.side-menu-brand .brand-mark-window { width: 48px; height: 48px; }

/* Facebook-like first opening, but brief and fail-safe for weak connections. */
.brand-splash {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    grid-template-rows: 1fr auto;
    place-items: center;
    padding: 28px;
    color: #fff;
    background: #050505;
    opacity: 1;
    visibility: visible;
    transition: opacity .28s ease, visibility .28s ease;
}
.brand-splash img {
    align-self: end;
    width: min(82vw, 390px);
    height: auto;
}
.brand-splash-progress {
    align-self: start;
    display: flex;
    gap: 6px;
    margin-top: 16px;
}
.brand-splash-progress i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-orange);
    animation: brand-dot 1s ease-in-out infinite;
}
.brand-splash-progress i:nth-child(2) { animation-delay: .13s; }
.brand-splash-progress i:nth-child(3) { animation-delay: .26s; }
.brand-splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes brand-dot {
    0%, 100% { opacity: .35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

/* Sponsors remain discoverable on Home without competing with people reports. */
.supporter-ad {
    height: auto !important;
    padding: 10px !important;
    border-radius: 18px;
}
.supporter-ad-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 4px 9px;
    color: var(--gray);
    font-size: .72rem;
    font-weight: 750;
}
.supporter-ad-heading span { display: inline-flex; align-items: center; gap: 6px; }
.supporter-ad-heading span i { color: var(--brand-gold); }
.supporter-ad-heading button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border: 0;
    color: var(--primary);
    background: transparent;
    font-size: .7rem;
    font-weight: 800;
    cursor: pointer;
}
.supporter-carousel-container {
    height: clamp(150px, 24vw, 220px) !important;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}
.supporter-carousel-item {
    display: grid;
    place-items: center;
    background: #fff;
}
.supporter-carousel-item img {
    width: 100% !important;
    height: 100% !important;
    padding: 3px;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 12px !important;
}

/* Two clear, independent filtering questions: status and person category. */
.content-filters {
    display: grid;
    gap: 4px;
    padding: 6px;
}
.filter-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    min-width: 0;
}
.filter-row + .filter-row {
    padding-top: 4px;
    border-top: 1px solid var(--border);
}
.filter-row-label {
    color: var(--gray);
    font-size: .66rem;
    font-weight: 800;
    text-align: center;
}
.filter-row-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    min-width: 0;
}
.filter-row .filter-btn {
    width: 100%;
    min-width: 0;
    min-height: 39px;
    padding: 5px 6px;
}
.filter-row-demographic .filter-btn.active i { color: var(--brand-orange); }

/* RTL mobile convention: brand at the right edge, related tools grouped at left. */
.header-tools { order: 3; }
@media (max-width: 860px) {
    .navbar {
        direction: ltr;
        justify-content: space-between;
        gap: 10px;
    }
    .navbar .logo {
        order: 2;
        direction: rtl;
        margin: 0;
    }
    .navbar .header-tools {
        order: 1;
        direction: ltr;
        margin: 0;
    }
}
@media (max-width: 720px) {
    .supporter-carousel-container { height: 158px !important; }
    .filter-row { grid-template-columns: 42px minmax(0, 1fr); }
    .filter-row-label { font-size: .61rem; }
    .filter-row .filter-btn { min-width: 0; font-size: .67rem; }
    .filter-row .filter-btn i { font-size: .83rem; }
    .content-filters { overflow: visible; }
}
@media (max-width: 430px) {
    .brand-mark-window { width: 42px; height: 42px; }
    .logo-wordmark strong { font-size: .9rem; }
    .filter-row-options { overflow-x: auto; grid-template-columns: repeat(4, minmax(76px, 1fr)); scrollbar-width: none; }
    .filter-row-options::-webkit-scrollbar { display: none; }
}

/* Refresh is the brand itself; only the mark rotates while work is active. */
.refresh-fab {
    overflow: visible;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    background: #050505;
    box-shadow: 0 8px 24px rgba(25, 25, 25, .22);
}
.refresh-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}
.refresh-fab:hover { transform: scale(1.04); }
.refresh-fab.loading .refresh-brand-mark { animation: brand-refresh-spin .9s linear infinite; }
@keyframes brand-refresh-spin { to { transform: rotate(-360deg); } }

@media (prefers-reduced-motion: reduce) {
    .brand-splash-progress i,
    .refresh-fab.loading .refresh-brand-mark { animation: none !important; }
}


/* =====================================================================
   Lam Al-Shaml UX refinements v13
   Centered white splash, transparent brand, larger sponsors, sticky status,
   roomy side-menu identity, and free-form image cropping.
   ===================================================================== */

.brand-mark-window,
.refresh-brand-mark {
    background: transparent !important;
    box-shadow: none !important;
}
.refresh-fab {
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 7px 22px rgba(26, 29, 33, .16) !important;
}
.dark-mode .refresh-fab { background: rgba(34, 37, 42, .96) !important; }

.brand-splash {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 24px;
    color: var(--dark);
    background: #fff;
}
.brand-splash img {
    align-self: auto;
    width: min(58vw, 255px);
    max-height: 42vh;
    object-fit: contain;
}
.brand-splash-progress {
    align-self: auto;
    margin: 0;
}
@media (max-width: 480px) {
    .brand-splash img { width: min(62vw, 220px); }
}

.side-menu-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 18px;
    min-height: 72px;
    margin-bottom: 18px;
    padding: 4px 0 14px;
}
.side-menu-header .side-menu-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    margin: 0 !important;
}
.side-menu-header .side-menu-close {
    justify-self: end;
    width: 44px;
    height: 44px;
    margin: 0;
}
.side-menu-brand .brand-mark-window {
    width: 44px;
    height: 44px;
}
.side-menu-brand .logo-wordmark { min-width: 0; }

.supporter-ad {
    padding: 6px !important;
}
.supporter-carousel-container {
    width: 100%;
    height: clamp(220px, 48vw, 340px) !important;
}
.supporter-carousel-item img {
    padding: 0 !important;
}

.status-filter-dock,
.content-filters-demographic {
    max-width: 680px;
    margin-inline: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 18px rgba(26, 29, 33, .05);
}
.status-filter-dock {
    position: sticky;
    top: 74px;
    z-index: 24;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    padding: 6px;
    backdrop-filter: blur(10px);
}
.content-filters-demographic {
    position: static !important;
    display: block;
    margin-bottom: 18px;
    padding: 6px;
}
.dark-mode .status-filter-dock,
.dark-mode .content-filters-demographic {
    background: rgba(34, 37, 42, .96);
}
.status-filter-dock .filter-btn {
    width: 100%;
    min-width: 0;
    min-height: 39px;
    padding: 5px 6px;
}
@media (max-width: 860px) {
    .status-filter-dock { top: 69px; }
}
@media (max-width: 720px) {
    .status-filter-dock {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 5px;
    }
    .status-filter-dock .filter-btn { font-size: .67rem; }
    .status-filter-dock .filter-btn i { font-size: .83rem; }
}
@media (max-width: 430px) {
    .status-filter-dock .filter-row-options {
        overflow-x: auto;
        grid-template-columns: repeat(4, minmax(76px, 1fr));
        scrollbar-width: none;
    }
    .status-filter-dock .filter-row-options::-webkit-scrollbar { display: none; }
}

.crop-modal-content {
    width: min(96vw, 760px);
    max-width: 760px;
    align-items: stretch;
}
.crop-modal-content .modal-body { width: 100%; }
.image-container-cropper {
    width: 100%;
    height: min(62dvh, 620px);
    min-height: 300px;
    max-height: none;
    overflow: hidden;
    border-radius: 14px;
    background: #15171a;
}
.image-container-cropper img {
    display: block;
    max-width: 100%;
}
.crop-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 12px 0 0;
    color: var(--gray);
    font-size: .78rem;
    line-height: 1.6;
    text-align: center;
}
.crop-help i { color: var(--brand-orange); }
.crop-modal-actions { margin-top: 14px !important; }
@media (max-width: 600px) {
    .crop-modal-content {
        width: 100%;
        max-height: 94dvh;
        border-radius: 22px 22px 0 0;
    }
    .crop-modal-content .modal-body { padding: 12px; }
    .image-container-cropper {
        height: min(58dvh, 520px);
        min-height: 280px;
    }
}


/* v13b corrective pass: exact header placement and unclipped side-menu brand. */
.header-status-filters { display: none; }

.side-menu-header {
    position: relative;
    display: block !important;
    min-height: 76px;
    margin-bottom: 18px;
    padding: 5px 0 14px;
    overflow: visible;
}
.side-menu-header .side-menu-brand {
    position: absolute;
    top: 5px;
    right: 0;
    left: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    width: auto;
    height: 52px;
    margin: 0 !important;
    overflow: visible;
    white-space: nowrap;
}
.side-menu-header .side-menu-close {
    position: absolute;
    top: 9px;
    left: 0;
    right: auto;
    width: 44px;
    height: 44px;
    margin: 0;
}
.side-menu-header .brand-mark-window {
    width: 44px;
    height: 44px;
}
.side-menu-header .logo-wordmark {
    display: flex !important;
    min-width: 0;
    overflow: visible;
    text-align: right;
}
.side-menu-header .logo-wordmark strong {
    display: block;
    white-space: nowrap;
}

@media (max-width: 860px) {
    header .container { padding-inline: 8px; }
    .navbar {
        direction: ltr;
        justify-content: space-between;
        gap: 4px;
    }
    .navbar .header-tools {
        order: 1;
        direction: ltr;
        gap: 0;
        flex: 0 0 auto;
    }
    .navbar .header-status-filters {
        order: 2;
        direction: rtl;
        display: grid;
        grid-template-columns: repeat(4, 27px);
        align-items: center;
        justify-content: center;
        gap: 1px;
        flex: 0 0 auto;
        height: 42px;
        padding: 2px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--lighter);
    }
    .navbar .logo {
        order: 3;
        direction: rtl;
        flex: 0 0 auto;
        margin: 0;
    }
    .header-status-filter.filter-btn {
        display: grid;
        place-items: center;
        width: 27px;
        min-width: 27px;
        height: 36px;
        min-height: 36px;
        padding: 0;
        border: 0;
        border-radius: 9px;
        color: var(--gray);
        background: transparent;
        box-shadow: none;
        transform: none;
    }
    .header-status-filter.filter-btn i {
        margin: 0;
        font-size: .76rem;
    }
    .header-status-filter.filter-btn span { display: none; }
    .header-status-filter.filter-btn.active {
        color: var(--dark);
        background: var(--gray-light);
        box-shadow: inset 0 0 0 1px var(--border);
    }
    .header-status-filter[data-filter="missing"].active i { color: var(--brand-coral); }
    .header-status-filter[data-filter="found"].active i { color: #2677c9; }
    .header-status-filter[data-filter="returned"].active i { color: var(--success); }
    .header-tool-btn,
    .hamburger-btn.header-tool-btn {
        width: 36px;
        height: 39px;
    }
}
@media (max-width: 390px) {
    .navbar .header-status-filters {
        grid-template-columns: repeat(4, 25px);
    }
    .header-status-filter.filter-btn {
        width: 25px;
        min-width: 25px;
    }
    .navbar .logo { gap: 6px; }
    .navbar .brand-mark-window { width: 38px; height: 38px; }
    .navbar .logo-wordmark strong { font-size: .8rem; }
    .header-tool-btn,
    .hamburger-btn.header-tool-btn {
        width: 33px;
    }
}


/* v14: safer status targets, visible section context, and reachable menu actions. */
.section-intro-card {
    display: grid !important;
    max-width: 680px;
    margin: 18px auto 12px;
    padding: 16px 18px;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 13px;
    scroll-margin-top: 78px;
}
.section-intro-card > i {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 1.15rem;
}
.section-intro-card h1 {
    margin: 2px 0 4px;
    font-size: clamp(1rem, 2.8vw, 1.25rem);
    line-height: 1.45;
}
.section-intro-card p {
    font-size: .82rem;
    line-height: 1.7;
}
.side-menu {
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
}
.side-menu-link {
    min-height: 44px;
    margin-bottom: 3px;
    padding-block: 8px;
}
.side-menu-auth-section {
    flex: 0 0 auto;
    margin-top: 10px;
    padding-top: 12px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    background: var(--lighter);
}
.side-menu-user-profile {
    margin-bottom: 4px;
    padding-block: 7px;
}
.side-menu .logout-btn {
    margin-top: 5px;
    min-height: 44px;
}
.side-menu-toggle-group {
    min-height: 44px;
    margin-top: 3px;
    padding-block: 7px;
}
@media (max-width: 860px) {
    .navbar .header-status-filters {
        grid-template-columns: repeat(4, 38px);
        gap: 5px;
        height: 48px;
        padding: 3px 5px;
    }
    .header-status-filter.filter-btn {
        width: 38px;
        min-width: 38px;
        height: 40px;
        min-height: 40px;
        border-radius: 10px;
    }
    .header-status-filter.filter-btn i { font-size: .84rem; }
}
@media (max-width: 430px) {
    .navbar .header-status-filters {
        grid-template-columns: repeat(4, 36px);
        gap: 4px;
        padding-inline: 4px;
    }
    .header-status-filter.filter-btn {
        width: 36px;
        min-width: 36px;
    }
    .navbar .logo-wordmark { display: none; }
}
@media (max-width: 370px) {
    .navbar .header-status-filters {
        grid-template-columns: repeat(4, 34px);
        gap: 3px;
    }
    .header-status-filter.filter-btn {
        width: 34px;
        min-width: 34px;
    }
    .header-tool-btn,
    .hamburger-btn.header-tool-btn { width: 31px; }
}
@media (max-height: 720px) {
    .side-menu-header {
        min-height: 66px;
        margin-bottom: 8px;
    }
    .side-menu-link {
        min-height: 40px;
        margin-bottom: 1px;
        padding-block: 6px;
    }
    .side-menu-auth-section {
        margin-top: 6px;
        padding-top: 8px;
    }
}


/* v15: status explanations in the actual filtered feed and robust phone navigation affordances. */
.home-status-context {
    max-width: 680px;
    margin: 4px auto 14px;
    padding: 13px 15px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-inline-start: 4px solid var(--primary);
    border-radius: 14px;
    color: var(--dark);
    background: var(--lighter);
}
.home-status-context-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--primary);
    background: var(--gray-light);
}
.home-status-context-kicker {
    display: block;
    margin-bottom: 1px;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 800;
}
.home-status-context h2 {
    margin: 0 0 2px;
    font-size: .98rem;
    line-height: 1.5;
}
.home-status-context p {
    margin: 0;
    color: var(--gray);
    font-size: .78rem;
    line-height: 1.65;
}
.status-context-missing { border-inline-start-color: var(--brand-coral); }
.status-context-missing .home-status-context-icon,
.status-context-missing .home-status-context-kicker { color: #a5313d; }
.status-context-found { border-inline-start-color: #2677c9; }
.status-context-found .home-status-context-icon,
.status-context-found .home-status-context-kicker { color: #2268aa; }
.status-context-returned { border-inline-start-color: var(--success); }
.status-context-returned .home-status-context-icon,
.status-context-returned .home-status-context-kicker { color: #0e7450; }

.side-menu-auth-section {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-top: 8px;
    padding: 10px 0 max(12px, env(safe-area-inset-bottom));
    background: var(--lighter);
    box-shadow: 0 -14px 24px var(--lighter);
}
.side-menu { padding-bottom: 0; }

@media (max-width: 860px) {
    .navbar .header-status-filters {
        grid-template-columns: repeat(4, 42px);
        gap: 7px;
        height: 50px;
        padding: 3px 6px;
    }
    .header-status-filter.filter-btn {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        touch-action: manipulation;
    }
}
@media (max-width: 430px) {
    .navbar .header-status-filters {
        grid-template-columns: repeat(4, 40px);
        gap: 6px;
        padding-inline: 5px;
    }
    .header-status-filter.filter-btn {
        width: 40px;
        min-width: 40px;
    }
}
@media (max-width: 370px) {
    .navbar .header-status-filters {
        grid-template-columns: repeat(4, 38px);
        gap: 5px;
        padding-inline: 4px;
    }
    .header-status-filter.filter-btn {
        width: 38px;
        min-width: 38px;
        height: 40px;
        min-height: 40px;
    }
}
@media (max-width: 560px) {
    .home-status-context {
        margin: 2px 0 12px;
        padding: 11px 12px;
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        border-radius: 12px;
    }
    .home-status-context-icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }
    .home-status-context h2 { font-size: .91rem; }
    .home-status-context p { font-size: .74rem; }
}

/* v16: restore the floating category card below the fixed status header. */
.content-filters-demographic {
    position: sticky !important;
    top: 68px;
    z-index: 32;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 7px 22px rgba(26, 29, 33, .10);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    isolation: isolate;
}
.dark-mode .content-filters-demographic {
    background: rgba(34, 37, 42, .97);
}
@media (max-width: 860px) {
    .content-filters-demographic { top: 66px; }
}
@media (max-width: 430px) {
    .content-filters-demographic {
        top: 64px;
        margin-inline: 0;
    }
}


/* Interaction, dialer, and image-edit safety refinements */
.add-report-modal .restore-image-button {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 8px 13px;
    border: 0;
    border-radius: 8px;
    background: rgba(17, 38, 64, .9);
    color: #fff;
    cursor: pointer;
    z-index: 10;
}
.edit-window-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #6f5200;
    background: #fff6d8;
    font-weight: 700;
}
.report-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(58, 134, 255, .2);
}
.report-phone-link:hover,
.report-phone-link:focus {
    color: #fff;
    background: var(--primary-dark);
}
.report-phone-link bdi { direction: ltr; }
.supporter-carousel-item img { display: block; }
