/* ============================================================
   طريق العفاف – الهوية البصرية الجديدة
   الألوان: أخضر داكن هادئ (#3d5a3d) + كريمي ناعم (#f5efe8)
   جميع التأثيرات ناعمة وبسيطة، بدون أي رسائل منبثقة
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    background: #f5efe8;
    color: #2d3d2d;
    padding-bottom: 80px;
    min-height: 100vh;
}

:root {
    --primary: #3d5a3d;
    --primary-dark: #2a452a;
    --primary-light: #5a7a5a;
    --cream: #f5efe8;
    --cream-soft: #faf5ef;
    --border: #e8e2da;
    --text-dark: #2d3d2d;
    --text-muted: #8a9a8a;
    --text-light: #b5b0a8;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.06);
    --radius-card: 28px;
    --radius-btn: 40px;
    --radius-input: 18px;
}

/* ===== شريط الأخبار ===== */
.news-ticker {
    background: linear-gradient(135deg, #3d5a3d, #2a452a, #3d5a3d);
    background-size: 200% 200%;
    animation: shimmer 6s ease-in-out infinite;
    color: #faf5ef;
    padding: 12px 16px;
    height: 52px;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(61, 90, 61, 0.15);
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.news-ticker span {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    animation: scrollText 35s linear infinite;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    letter-spacing: 0.3px;
}

@keyframes scrollText {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== الهيدر العلوي ===== */
.main-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 52px;
    width: 100%;
    z-index: 1040;
    border-bottom: 1px solid rgba(232, 226, 218, 0.5);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

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

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #2d3d2d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo span {
    color: #3d5a3d;
}

/* ===== زر تحميل التطبيق (يظهر دائماً) ===== */
.save-app-btn {
    background: #3d5a3d;
    color: #faf5ef;
    border: none;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(61, 90, 61, 0.15);
}

.save-app-btn:hover {
    background: #2a452a;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(61, 90, 61, 0.2);
}

.notification-icon {
    font-size: 22px;
    position: relative;
    cursor: pointer;
    color: #2d3d2d;
}

.badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #b91c1c;
    color: #fff;
    border-radius: 50%;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
    display: none;
    min-width: 20px;
    text-align: center;
}

/* ===== الصفحات ===== */
.page {
    display: none;
    margin-top: 120px;
    padding: 16px;
    padding-bottom: 30px;
    animation: fadeIn 0.35s ease;
}

.page.active-page {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== التنقل السفلي (إصلاح القفز) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(232, 226, 218, 0.5);
    z-index: 1050;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
    transition: padding-bottom 0.2s ease;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.nav-item {
    text-align: center;
    font-size: 11px;
    color: #b5b0a8;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 6px;
    border-radius: 20px;
    user-select: none;
    flex: 1;
    max-width: 72px;
    background: transparent;
    border: none;
    font-family: inherit;
    position: relative;
}

.nav-item .nav-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.nav-item .nav-label {
    font-size: 11px;
    font-weight: 400;
    transition: all 0.3s ease;
}

/* الحالة النشطة للشريط السفلي (أخضر + تكبير + Bold + نقطة) */
.nav-item.active .nav-icon {
    color: #3d5a3d;
    font-size: 28px;
    transform: scale(1.05);
}

.nav-item.active .nav-label {
    color: #3d5a3d;
    font-weight: 700;
    font-size: 12px;
}

/* النقطة الخضراء الصغيرة أسفل الأيقونة النشطة */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #3d5a3d;
    border-radius: 50%;
}

.nav-item:hover:not(.active) .nav-icon {
    color: #6a8a6a;
}

.nav-item:hover:not(.active) .nav-label {
    color: #6a8a6a;
}

.nav-item.disabled {
    color: #d1d5db !important;
    pointer-events: none;
    opacity: 0.5;
}

/* ===== التبويبات ===== */
.tabs-container {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    background: #faf5ef;
    border-radius: 40px;
    padding: 4px;
    border: 1px solid #e8e2da;
}

.tab-btn {
    flex: 1;
    padding: 10px 8px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    background: transparent;
    color: #8a9a8a;
}

.tab-btn.active {
    background: #2d3d2d;
    color: #faf5ef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.tab-content {
    display: none;
}

.tab-content.active-tab {
    display: block;
}

/* ===== البطاقات ===== */
.search-card, .form-container, .profile-card, .admin-panel, .about-content {
    background: #ffffff;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e2da;
    margin-bottom: 20px;
}

/* ===== الفلاتر ===== */
.filter-group {
    margin-bottom: 18px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #2d3d2d;
    margin-bottom: 6px;
}

.gender-options {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.gender-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    color: #4a5a4a;
}

.gender-options input[type="radio"] {
    accent-color: #3d5a3d;
    width: 17px;
    height: 17px;
}

.age-range {
    display: flex;
    gap: 12px;
    align-items: center;
}

.age-range input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #e8e2da;
    border-radius: 16px;
    font-size: 14px;
    background: #faf5ef;
    transition: 0.2s;
}

.age-range input:focus {
    outline: none;
    border-color: #3d5a3d;
    box-shadow: 0 0 0 3px rgba(61, 90, 61, 0.08);
}

/* ===== الحقول العامة ===== */
select, input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e8e2da;
    border-radius: 16px;
    font-size: 15px;
    background: #faf5ef;
    font-family: inherit;
    transition: 0.2s;
    color: #2d3d2d;
}

select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: #3d5a3d;
    box-shadow: 0 0 0 3px rgba(61, 90, 61, 0.08);
    background: #ffffff;
}

textarea {
    resize: vertical;
    min-height: 70px;
}

/* ===== أزرار الراديو ===== */
.radio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    background: #faf5ef;
    padding: 12px 18px;
    border-radius: 18px;
    border: 1px solid #e8e2da;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #4a5a4a;
    cursor: pointer;
    transition: 0.15s;
}

.radio-item:hover {
    color: #2d3d2d;
}

.radio-item input[type="radio"] {
    accent-color: #3d5a3d;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

/* ===== الحقول مع "أخرى" ===== */
.field-with-other {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    background: #faf5ef;
    padding: 12px 18px;
    border-radius: 18px;
    border: 1px solid #e8e2da;
}

.field-with-other .radio-item {
    font-size: 15px;
    color: #4a5a4a;
}

.field-with-other input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 10px 14px;
    border: 1px solid #e8e2da;
    border-radius: 14px;
    font-size: 14px;
    background: #ffffff;
    transition: 0.2s;
}

.field-with-other input[type="text"]:focus {
    border-color: #3d5a3d;
    box-shadow: 0 0 0 3px rgba(61, 90, 61, 0.08);
}

/* ===== القوائم المنسدلة الأنيقة ===== */
.dropdown-container {
    position: relative;
}

.dropdown-input {
    width: 100%;
    padding: 12px 16px;
    background: #faf5ef;
    border: 1px solid #e8e2da;
    border-radius: 18px;
    font-size: 15px;
    color: #2d3d2d;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
    user-select: none;
}

.dropdown-input:hover {
    background: #f5f0ea;
}

.dropdown-input.active {
    border-color: #3d5a3d;
    box-shadow: 0 0 0 3px rgba(61, 90, 61, 0.08);
    background: #ffffff;
}

.dropdown-input .arrow {
    transition: 0.3s;
    color: #8a9a8a;
    font-size: 14px;
}

.dropdown-input .arrow.open {
    transform: rotate(180deg);
    color: #3d5a3d;
}

.dropdown-input .selected-text {
    color: #2d3d2d;
}

.dropdown-input .placeholder {
    color: #b5b0a8;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    background: #ffffff;
    border: 1px solid #e8e2da;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    max-height: 220px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 6px 0;
}

.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::-webkit-scrollbar {
    width: 4px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #faf5ef;
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #d5d0c8;
    border-radius: 10px;
}

.dropdown-item {
    padding: 12px 18px;
    font-size: 15px;
    color: #2d3d2d;
    cursor: pointer;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: #eaf3ea;
}

/* ===== أزرار البحث ===== */
.search-btn {
    background: #3d5a3d;
    color: #faf5ef;
    border: none;
    padding: 14px;
    border-radius: 40px;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 4px 16px rgba(61, 90, 61, 0.15);
}

.search-btn:hover {
    background: #2a452a;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(61, 90, 61, 0.2);
}

/* ===== شريط التقدم ===== */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e8e2da;
    border-radius: 10px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3d5a3d, #5a7a5a);
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* ===== أزرار الاستمارة ===== */
.form-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.form-nav-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s;
    flex: 1;
}

.form-nav-btn.next {
    background: #3d5a3d;
    color: #faf5ef;
    box-shadow: 0 4px 16px rgba(61, 90, 61, 0.15);
}

.form-nav-btn.next:hover {
    background: #2a452a;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(61, 90, 61, 0.2);
}

.form-nav-btn.prev {
    background: #faf5ef;
    color: #4a5a4a;
    border: 1px solid #e8e2da;
}

.form-nav-btn.prev:hover {
    background: #e8e2da;
}

.submit-form-btn {
    width: 100%;
    padding: 16px;
    background: #3d5a3d;
    color: #faf5ef;
    border: none;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 4px 18px rgba(61, 90, 61, 0.2);
}

.submit-form-btn:hover {
    background: #2a452a;
    transform: scale(1.01);
    box-shadow: 0 6px 28px rgba(61, 90, 61, 0.25);
}

/* ===== البروفايل ===== */
.profile-avatar {
    width: 110px;
    height: 110px;
    background: #faf5ef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    margin: 0 auto 16px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    overflow: hidden;
    border: 3px solid #3d5a3d;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-btn {
    background: transparent;
    border: 1px solid #3d5a3d;
    color: #3d5a3d;
    padding: 10px 28px;
    border-radius: 40px;
    margin-top: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

.edit-btn:hover {
    background: #3d5a3d;
    color: #faf5ef;
    box-shadow: 0 4px 16px rgba(61, 90, 61, 0.12);
}

.form-btn {
    background: #3d5a3d !important;
    border: none !important;
    color: #faf5ef !important;
}

.form-btn:hover {
    background: #2a452a !important;
}

/* ===== زر الخاطبة الدائري ===== */
.matchmaker-fab {
    position: fixed;
    bottom: 95px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    z-index: 1020;
    background: none;
    border: none;
    padding: 0;
}

.matchmaker-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #faf5ef;
    border: 2px solid #3d5a3d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #3d5a3d;
    box-shadow: 0 8px 24px rgba(61, 90, 61, 0.15);
    overflow: hidden;
    transition: 0.3s;
}

.matchmaker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.matchmaker-fab:hover .matchmaker-avatar {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(61, 90, 61, 0.25);
}

.matchmaker-fab .matchmaker-label {
    font-size: 11px;
    font-weight: 600;
    color: #2d3d2d;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(232, 226, 218, 0.5);
}

/* ===== نافذة الصورة ===== */
.avatar-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.avatar-modal-content {
    background: #ffffff;
    border-radius: 28px;
    padding: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    justify-items: center;
}

.avatar-grid .avatar-option {
    width: 80px;
    height: 80px;
    background: #faf5ef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    cursor: pointer;
    transition: 0.2s;
    border: 3px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.avatar-grid .avatar-option:hover {
    transform: scale(1.05);
    border-color: #3d5a3d;
}

.avatar-grid .avatar-option.selected {
    border-color: #3d5a3d;
    box-shadow: 0 0 0 4px rgba(61, 90, 61, 0.12);
}

/* ===== نوافذ الدخول ===== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 32px 28px;
    width: 92%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
    max-height: 92vh;
    overflow-y: auto;
}

.auth-card h2 {
    color: #2d3d2d;
    margin-bottom: 20px;
    font-weight: 700;
}

.auth-card input,
.auth-card select,
.auth-card textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid #e8e2da;
    border-radius: 16px;
    font-size: 15px;
    background: #faf5ef;
    font-family: inherit;
}

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
    border-color: #3d5a3d;
    box-shadow: 0 0 0 3px rgba(61, 90, 61, 0.08);
    background: #ffffff;
}

.auth-card button {
    background: #3d5a3d;
    color: #faf5ef;
    border: none;
    padding: 14px;
    border-radius: 40px;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 4px 16px rgba(61, 90, 61, 0.12);
}

.auth-card button:hover {
    background: #2a452a;
    transform: translateY(-2px);
}

/* ===== لوحة الأدمن ===== */
.admin-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-card {
    background: #faf5ef;
    padding: 16px 20px;
    border-radius: 16px;
    flex: 1;
    text-align: center;
    border: 1px solid #e8e2da;
    font-weight: 600;
    color: #2d3d2d;
    min-width: 80px;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #faf5ef;
    border-radius: 16px;
    margin-bottom: 8px;
    border: 1px solid #e8e2da;
}

.admin-list-item .info {
    flex: 1;
    font-size: 14px;
}

.admin-list-item .info .name {
    font-weight: 700;
    color: #2d3d2d;
}

.admin-list-item .actions {
    display: flex;
    gap: 8px;
}

.admin-list-item .actions button {
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

/* ===== المحادثات ===== */
.chat-list {
    background: #ffffff;
    border-radius: 28px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e2da;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    border-bottom: 1px solid #e8e2da;
    cursor: pointer;
    border-radius: 16px;
    transition: 0.2s;
}

.chat-item:hover {
    background: #faf5ef;
}

.chat-item .avatar {
    width: 50px;
    height: 50px;
    background: #faf5ef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    overflow: hidden;
    border: 2px solid #e8e2da;
}

.chat-preview {
    flex: 1;
    min-width: 0;
}

.chat-name {
    font-weight: 700;
    color: #2d3d2d;
}

.chat-last {
    font-size: 13px;
    color: #8a9a8a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== المحادثة ===== */
#chatPage {
    margin-top: 0;
    padding: 0;
    height: 100vh;
    background: #f5efe8;
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
}

#chatPage.active-page {
    display: flex;
}

.message-bubble {
    max-width: 78%;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
}

.message-bubble .message-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    display: block;
    text-align: left;
    direction: ltr;
}

.message-bubble.other .message-time {
    color: #8a9a8a;
}

.message-bubble.me {
    background: #3d5a3d;
    color: #faf5ef;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

.message-bubble.me .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.message-bubble.other {
    background: #ffffff;
    color: #2d3d2d;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    border: 1px solid #e8e2da;
}

.message-bubble.other .message-time {
    color: #8a9a8a;
}

/* ===== حالة الاتصال ===== */
.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #2ecc71; /* أخضر للمتصل */
}

.online-dot.offline {
    background: #b5b0a8; /* رمادي لغير المتصل */
}

/* في قائمة المحادثات */
.chat-item .online-dot {
    width: 12px;
    height: 12px;
}

/* ===== لا توجد نتائج ===== */
.no-results {
    text-align: center;
    padding: 48px 20px;
    background: #ffffff;
    border-radius: 28px;
    color: #8a9a8a;
    font-size: 16px;
    border: 1px dashed #e8e2da;
}

/* ===== الأعضاء والبطاقات ===== */
.member-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 16px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: 0.25s;
    border: 1px solid transparent;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
    border-color: #e8e2da;
}

.member-card .avatar {
    width: 64px;
    height: 64px;
    background: #faf5ef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #e8e2da;
}

.member-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card .online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #2ecc71;
}

.member-card .online-dot.offline {
    background: #b5b0a8;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-weight: 700;
    font-size: 17px;
    color: #2d3d2d;
}

.member-code {
    font-size: 12px;
    color: #3d5a3d;
    font-weight: 600;
    margin-right: 6px;
}

.member-detail {
    font-size: 13px;
    color: #8a9a8a;
    margin-top: 2px;
}

.action-buttons {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-like,
.btn-message {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-like {
    color: #d1d5db;
}

.btn-like.liked {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

.btn-message {
    color: #3d5a3d;
    background: rgba(61, 90, 61, 0.08);
}

.btn-message:hover {
    background: rgba(61, 90, 61, 0.18);
    transform: scale(1.1);
}

/* ===== التجاوب ===== */
@media (max-width: 520px) {
    .bottom-nav {
        padding: 4px 0 10px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
    .nav-item {
        max-width: 56px;
    }
    .nav-item .nav-icon {
        font-size: 18px;
    }
    .nav-item.active .nav-icon {
        font-size: 24px;
    }
    .nav-item .nav-label {
        font-size: 10px;
    }
    .nav-item.active .nav-label {
        font-size: 11px;
    }
    .gender-options {
        gap: 14px;
        flex-wrap: wrap;
    }
    .member-card {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .member-info {
        flex: 1 1 100%;
        text-align: center;
    }
    .action-buttons {
        width: 100%;
        justify-content: center;
    }
    .admin-stats {
        flex-direction: column;
    }
    .stat-card {
        flex: none;
    }
    .matchmaker-fab {
        bottom: 85px;
        right: 12px;
    }
    .matchmaker-avatar {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    .matchmaker-fab .matchmaker-label {
        font-size: 10px;
    }
    .auth-card {
        padding: 24px 16px;
        width: 96%;
    }
    .logo {
        font-size: 18px;
    }
    .save-app-btn {
        font-size: 11px;
        padding: 4px 12px;
    }
    .news-ticker {
        height: 44px;
    }
    .news-ticker span {
        font-size: 15px;
    }
    .main-header {
        top: 44px;
        padding: 8px 14px;
    }
    .page {
        margin-top: 108px;
        padding: 12px;
    }
    .form-nav-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    .form-container {
        padding: 18px 14px;
    }
    .radio-grid {
        padding: 10px 12px;
        gap: 8px 12px;
    }
    .field-with-other {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
    }
    .field-with-other input[type="text"] {
        min-width: unset;
    }
    .dropdown-input {
        font-size: 14px;
        padding: 10px 14px;
    }
    .dropdown-item {
        font-size: 14px;
        padding: 10px 14px;
    }
    .dropdown-menu {
        max-height: 160px;
    }
    .message-bubble .message-time {
        font-size: 9px;
    }
}

@media (max-width: 400px) {
    .tabs-container {
        flex-direction: column;
        gap: 4px;
        border-radius: 20px;
    }
    .tab-btn {
        border-radius: 20px;
        padding: 8px;
        font-size: 14px;
    }
    .profile-avatar {
        width: 90px;
        height: 90px;
        font-size: 42px;
    }
    .matchmaker-avatar {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .matchmaker-fab {
        bottom: 78px;
        right: 10px;
    }
    .save-app-btn {
        font-size: 10px;
        padding: 3px 10px;
    }
}