/* ============================================
   ROOMMATE STYLE - المستخلص من تصميم هورايزن
   الألوان الأساسية: #e18b8e (brand), #f5b5b7 (brandLight)
   الخط: Cairo (Google Fonts)
   ============================================ */

/* ----- استيراد الخط ----- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

/* ----- متغيرات الألوان ----- */
:root {
    --rm-brand: #e18b8e;
    --rm-brand-light: #f5b5b7;
    --rm-brand-dark: #c97a7d;
    --rm-text-dark: #1e293b;
    --rm-text-light: #64748b;
    --rm-bg-light: #f8fafc;
    --rm-white: #ffffff;
    --rm-border: #e2e8f0;
    --rm-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
    --rm-shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    --rm-radius: 16px;
    --rm-radius-sm: 8px;
    --rm-radius-lg: 24px;
    --rm-radius-xl: 32px;
}

/* ----- Reset & Base ----- */
.rm-body {
    font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
    direction: rtl;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--rm-text-dark);
    min-height: 100vh;
}

/* ============================================
   HERO SECTION - مطابق لـ HomePage.jsx
   ============================================ */
.rm-hero {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-bottom: 1px solid var(--rm-border);
}
.rm-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--rm-text-dark);
    margin-bottom: 8px;
}
.rm-hero h1 span {
    color: var(--rm-brand);
}
.rm-hero p {
    font-size: 1.2rem;
    color: var(--rm-text-light);
    max-width: 600px;
    margin: 0 auto;
}
.rm-hero-bg {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    padding: 60px 20px 40px;
    text-align: center;
    border-bottom: 1px solid var(--rm-border);
}
.rm-hero-bg h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--rm-text-dark);
    margin-bottom: 12px;
}
.rm-hero-bg h1 span {
    color: var(--rm-brand);
}
.rm-hero-bg p {
    font-size: 1.2rem;
    color: var(--rm-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ----- Hero with Image Background ----- */
.rm-hero-image {
    position: relative;
    background: #000000;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.rm-hero-image .rm-hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}
.rm-hero-image .rm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}
.rm-hero-image .rm-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    color: #ffffff;
}
.rm-hero-image .rm-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.rm-hero-image .rm-hero-content h1 span {
    color: var(--rm-brand);
}
.rm-hero-image .rm-hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
}
@media (max-width: 768px) {
    .rm-hero-image { min-height: 300px; }
    .rm-hero-image .rm-hero-content h1 { font-size: 2.2rem; }
    .rm-hero-image .rm-hero-content p { font-size: 1rem; }
}

/* ============================================
   SEARCH BAR - مطابق لـ SearchBar.jsx
   ============================================ */
.rm-search-container {
    max-width: 1100px;
    margin: -30px auto 40px;
    background: var(--rm-white);
    border-radius: var(--rm-radius-xl);
    box-shadow: var(--rm-shadow);
    border: 1px solid var(--rm-border);
    padding: 8px 20px;
    position: relative;
    z-index: 20;
}
.rm-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.rm-search-field {
    flex: 1;
    min-width: 140px;
    position: relative;
}
.rm-search-field label {
    display: none;
}
.rm-search-field select,
.rm-search-field input {
    width: 100%;
    padding: 12px 8px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    border-radius: 0;
    color: var(--rm-text-dark);
}
.rm-search-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
}
.rm-search-divider {
    width: 1px;
    height: 30px;
    background: var(--rm-border);
}
.rm-search-actions {
    display: flex;
    gap: 8px;
}
.rm-search-btn {
    background: var(--rm-brand);
    color: var(--rm-white);
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}
.rm-search-btn:hover {
    background: var(--rm-brand-dark);
    transform: translateY(-2px);
}
.rm-reset-btn {
    background: transparent;
    border: 1px solid var(--rm-border);
    color: var(--rm-text-light);
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.rm-reset-btn:hover {
    background: var(--rm-bg-light);
    transform: translateY(-2px);
}
/* Responsive Search */
@media (max-width: 900px) {
    .rm-search-container {
        border-radius: var(--rm-radius-lg);
        padding: 16px;
        margin-top: -20px;
    }
    .rm-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .rm-search-divider {
        display: none;
    }
    .rm-search-field {
        width: 100%;
    }
    .rm-search-actions {
        justify-content: center;
        margin-top: 8px;
    }
}

/* ----- Search Dropdown (اقتراحات المناطق) ----- */
.rm-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--rm-white);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-sm);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--rm-shadow);
    display: none;
}
.rm-search-dropdown .rm-result-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eef2f6;
    transition: 0.15s;
    color: var(--rm-text-dark);
}
.rm-search-dropdown .rm-result-item:hover {
    background: var(--rm-bg-light);
}

/* ============================================
   LISTINGS GRID - مطابق لـ ListingCard.jsx
   ============================================ */
.rm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 20px 0;
}
.rm-card {
    background: var(--rm-white);
    border-radius: var(--rm-radius);
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--rm-border);
    box-shadow: var(--rm-shadow);
    cursor: pointer;
    border-left: 4px solid #e2e8f0;
}
.rm-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--rm-shadow-lg);
}
.rm-card.female-highlight {
    border-left-color: var(--rm-brand);
}
.rm-card-img {
    height: 200px;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
}
.rm-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}
.rm-card:hover .rm-card-img img {
    transform: scale(1.05);
}
.rm-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--rm-brand);
    color: var(--rm-white);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}
.rm-card-content {
    padding: 16px;
}
.rm-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--rm-text-dark);
}
.rm-card-price {
    color: var(--rm-brand);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.rm-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--rm-text-light);
    flex-wrap: wrap;
}
.rm-card-gender {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}
.rm-card-gender.female {
    background: var(--rm-brand);
    color: #fff;
}
.rm-card-gender.male {
    background: #ADD8E6;
    color: #1e3a8a;
}
.rm-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ============================================
   LISTING DETAILS - مطابق لـ ListingDetailsPage.jsx
   ============================================ */
.rm-details-card {
    max-width: 1100px;
    margin: 40px auto;
    background: var(--rm-white);
    border-radius: var(--rm-radius-lg);
    overflow: hidden;
    box-shadow: var(--rm-shadow);
}
.rm-details-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: #f1f5f9;
}
.rm-details-img-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--rm-brand), var(--rm-brand-light));
    display: flex;
    align-items: center;
    justify-content: center;
}
.rm-details-img-placeholder svg {
    width: 80px;
    height: 80px;
    color: rgba(255,255,255,0.5);
}
.rm-details-body {
    padding: 32px;
}
.rm-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.rm-details-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rm-text-dark);
    margin-bottom: 8px;
}
.rm-details-location {
    color: var(--rm-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}
.rm-details-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--rm-brand);
    text-align: left;
}
.rm-details-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--rm-text-light);
}
.rm-details-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.rm-details-tag {
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
}
.rm-details-tag.female {
    background: #fce4ec;
    color: #c62828;
}
.rm-details-tag.male {
    background: #e3f2fd;
    color: #0d47a1;
}
.rm-details-tag.gray {
    background: var(--rm-bg-light);
    color: var(--rm-text-light);
}
.rm-details-desc {
    margin: 24px 0;
    line-height: 1.8;
    color: var(--rm-text-dark);
}
.rm-details-contact {
    border-top: 1px solid var(--rm-border);
    padding-top: 24px;
    margin-top: 24px;
}
.rm-details-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--rm-text-dark);
}
.rm-details-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}
.rm-details-actions .rm-btn-primary {
    flex: 1;
    background: linear-gradient(135deg, var(--rm-brand), var(--rm-brand-light));
    color: var(--rm-white);
    border: none;
    padding: 16px 24px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
}
.rm-details-actions .rm-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.rm-details-actions .rm-btn-secondary {
    padding: 16px 32px;
    background: var(--rm-bg-light);
    border: 1px solid var(--rm-border);
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.rm-details-actions .rm-btn-secondary:hover {
    background: #e9ecef;
}
@media (max-width: 768px) {
    .rm-details-header { flex-direction: column; }
    .rm-details-price { text-align: right; margin-top: 12px; }
    .rm-details-img { height: 250px; }
    .rm-details-img-placeholder { height: 250px; }
    .rm-details-title { font-size: 1.5rem; }
    .rm-details-actions { flex-direction: column; }
}

/* ============================================
   DASHBOARD (لوحة التحكم) - مطابق لـ DashboardPage.jsx
   ============================================ */
.rm-dashboard {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.rm-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.rm-dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rm-text-dark);
}
.rm-dashboard-header p {
    color: var(--rm-text-light);
}
.rm-dashboard-empty {
    background: var(--rm-white);
    border-radius: var(--rm-radius-lg);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--rm-shadow);
}
.rm-dashboard-empty .rm-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    color: #d1d5db;
}
.rm-dashboard-empty h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--rm-text-dark);
}
.rm-dashboard-empty p {
    color: var(--rm-text-light);
    margin-bottom: 24px;
}
.rm-dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.rm-dashboard-item {
    background: var(--rm-white);
    border-radius: var(--rm-radius);
    padding: 20px 24px;
    box-shadow: var(--rm-shadow);
    border-right: 4px solid var(--rm-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    transition: 0.2s;
}
.rm-dashboard-item.female-highlight {
    border-right-color: var(--rm-brand);
}
.rm-dashboard-item .rm-item-info {
    flex: 1;
}
.rm-dashboard-item .rm-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rm-text-dark);
}
.rm-dashboard-item .rm-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--rm-text-light);
}
.rm-dashboard-item .rm-item-actions {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}
.rm-dashboard-item .rm-item-actions button {
    padding: 8px 12px;
    border: none;
    border-radius: var(--rm-radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.rm-dashboard-item .rm-item-actions .rm-edit-btn {
    background: #3b82f6;
    color: #fff;
}
.rm-dashboard-item .rm-item-actions .rm-edit-btn:hover {
    background: #2563eb;
}
.rm-dashboard-item .rm-item-actions .rm-delete-btn {
    background: #ef4444;
    color: #fff;
}
.rm-dashboard-item .rm-item-actions .rm-delete-btn:hover {
    background: #dc2626;
}
@media (max-width: 768px) {
    .rm-dashboard-item {
        flex-direction: column;
    }
    .rm-dashboard-item .rm-item-actions {
        margin-right: 0;
        margin-top: 12px;
        width: 100%;
    }
    .rm-dashboard-item .rm-item-actions button {
        flex: 1;
        text-align: center;
    }
}

/* ============================================
   MESSAGES - مطابق لـ MessagesPage.jsx
   ============================================ */
.rm-messages-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    background: var(--rm-white);
    border-radius: var(--rm-radius-lg);
    overflow: hidden;
    box-shadow: var(--rm-shadow);
    height: 600px;
    border: 1px solid var(--rm-border);
}
.rm-messages-sidebar {
    border-left: 1px solid var(--rm-border);
    overflow-y: auto;
}
.rm-messages-sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--rm-border);
    background: var(--rm-bg-light);
    font-weight: 700;
    color: var(--rm-text-dark);
}
.rm-message-conv {
    padding: 16px 20px;
    border-bottom: 1px solid var(--rm-border);
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.rm-message-conv:hover {
    background: var(--rm-bg-light);
}
.rm-message-conv.active {
    background: rgba(225, 139, 142, 0.08);
}
.rm-message-conv .rm-conv-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rm-brand), var(--rm-brand-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.rm-message-conv .rm-conv-info {
    flex: 1;
    min-width: 0;
}
.rm-message-conv .rm-conv-name {
    font-weight: 600;
    color: var(--rm-text-dark);
}
.rm-message-conv .rm-conv-last {
    font-size: 0.85rem;
    color: var(--rm-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rm-messages-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.rm-messages-main-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--rm-border);
    background: var(--rm-bg-light);
    display: flex;
    align-items: center;
    gap: 12px;
}
.rm-messages-main-header .rm-conv-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rm-brand), var(--rm-brand-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}
.rm-messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rm-msg-item {
    max-width: 70%;
    padding: 10px 16px;
    border-radius: var(--rm-radius);
    word-wrap: break-word;
}
.rm-msg-item.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--rm-brand), var(--rm-brand-light));
    color: #fff;
}
.rm-msg-item.received {
    align-self: flex-start;
    background: var(--rm-bg-light);
    color: var(--rm-text-dark);
}
.rm-msg-item .rm-msg-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 4px;
}
.rm-messages-input {
    padding: 16px 20px;
    border-top: 1px solid var(--rm-border);
    display: flex;
    gap: 12px;
}
.rm-messages-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius);
    outline: none;
    font-size: 0.95rem;
}
.rm-messages-input input:focus {
    border-color: var(--rm-brand);
    box-shadow: 0 0 0 3px rgba(225, 139, 142, 0.2);
}
.rm-messages-input button {
    background: linear-gradient(135deg, var(--rm-brand), var(--rm-brand-light));
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--rm-radius);
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.rm-messages-input button:hover {
    opacity: 0.9;
}
.rm-messages-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--rm-text-light);
}
.rm-messages-empty svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    color: #d1d5db;
}
@media (max-width: 768px) {
    .rm-messages-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    .rm-messages-sidebar {
        border-left: none;
        border-bottom: 1px solid var(--rm-border);
        max-height: 300px;
    }
    .rm-messages-main {
        height: 500px;
    }
}

/* ============================================
   ADMIN DASHBOARD - مطابق لـ AdminDashboardPage.jsx
   ============================================ */
.rm-admin {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.rm-admin-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}
.rm-admin-header svg {
    width: 32px;
    height: 32px;
    color: var(--rm-brand);
}
.rm-admin-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rm-text-dark);
}
.rm-admin-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}
.rm-admin-sidebar {
    background: var(--rm-white);
    border-radius: var(--rm-radius);
    overflow: hidden;
    box-shadow: var(--rm-shadow);
    border: 1px solid var(--rm-border);
}
.rm-admin-sidebar button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: transparent;
    text-align: right;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s;
    color: var(--rm-text-dark);
    font-size: 0.95rem;
}
.rm-admin-sidebar button:hover {
    background: var(--rm-bg-light);
}
.rm-admin-sidebar button.active {
    background: rgba(225, 139, 142, 0.08);
    color: var(--rm-brand);
    border-right: 4px solid var(--rm-brand);
}
.rm-admin-content {
    background: var(--rm-white);
    border-radius: var(--rm-radius);
    padding: 24px;
    box-shadow: var(--rm-shadow);
    border: 1px solid var(--rm-border);
}
.rm-admin-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--rm-text-dark);
}
.rm-admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rm-border);
}
.rm-admin-item:last-child {
    border-bottom: none;
}
.rm-admin-item .rm-item-info h3 {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}
.rm-admin-item .rm-item-info p {
    font-size: 0.8rem;
    color: var(--rm-text-light);
    margin: 4px 0 0;
}
.rm-admin-item .rm-item-actions button {
    padding: 6px 14px;
    border: none;
    border-radius: var(--rm-radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.15s;
}
.rm-admin-item .rm-item-actions .rm-delete-btn {
    background: #fee2e2;
    color: #dc2626;
}
.rm-admin-item .rm-item-actions .rm-delete-btn:hover {
    background: #fecaca;
}
.rm-admin-item .rm-item-actions .rm-freeze-btn {
    background: #fef3c7;
    color: #d97706;
}
.rm-admin-item .rm-item-actions .rm-freeze-btn:hover {
    background: #fde68a;
}
.rm-admin-item .rm-item-actions .rm-unfreeze-btn {
    background: #d1fae5;
    color: #065f46;
}
.rm-admin-item .rm-item-actions .rm-unfreeze-btn:hover {
    background: #a7f3d0;
}
.rm-admin-settings label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--rm-text-dark);
}
.rm-admin-settings input[type="url"],
.rm-admin-settings input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-sm);
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.rm-admin-settings .rm-color-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}
.rm-admin-settings .rm-color-row input[type="color"] {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid var(--rm-border);
    border-radius: var(--rm-radius-sm);
    cursor: pointer;
}
.rm-admin-settings .rm-color-row input[type="text"] {
    flex: 1;
    margin-bottom: 0;
}
.rm-admin-settings .rm-save-btn {
    width: 100%;
    padding: 14px;
    background: var(--rm-brand);
    color: #fff;
    border: none;
    border-radius: var(--rm-radius);
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.rm-admin-settings .rm-save-btn:hover {
    opacity: 0.9;
}
@media (max-width: 768px) {
    .rm-admin-grid {
        grid-template-columns: 1fr;
    }
    .rm-admin-sidebar {
        display: flex;
        flex-wrap: wrap;
        border-radius: var(--rm-radius);
        overflow: hidden;
    }
    .rm-admin-sidebar button {
        flex: 1;
        min-width: 80px;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    .rm-admin-sidebar button .rm-sidebar-text {
        display: none;
    }
}

/* ============================================
   BUTTONS (مطابق لـ button.jsx)
   ============================================ */
.rm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--rm-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.rm-btn-primary {
    background: linear-gradient(135deg, var(--rm-brand), var(--rm-brand-light));
    color: var(--rm-white);
}
.rm-btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.02);
}
.rm-btn-outline {
    background: transparent;
    border: 1px solid var(--rm-border);
    color: var(--rm-text-dark);
}
.rm-btn-outline:hover {
    background: var(--rm-bg-light);
}
.rm-btn-ghost {
    background: transparent;
    color: var(--rm-text-dark);
}
.rm-btn-ghost:hover {
    background: var(--rm-bg-light);
}
.rm-btn-destructive {
    background: #ef4444;
    color: #fff;
}
.rm-btn-destructive:hover {
    background: #dc2626;
}
.rm-btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}
.rm-btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}
.rm-btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   AUTH PAGES - مطابق لـ LoginPage.jsx / RegisterPage.jsx
   ============================================ */
.rm-auth-card {
    max-width: 440px;
    margin: 40px auto;
    background: var(--rm-white);
    border-radius: var(--rm-radius-lg);
    padding: 32px;
    box-shadow: var(--rm-shadow-lg);
}
.rm-auth-card .rm-auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--rm-brand), var(--rm-brand-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.rm-auth-card .rm-auth-icon svg {
    width: 32px;
    height: 32px;
}
.rm-auth-card h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--rm-text-dark);
}
.rm-auth-card p {
    text-align: center;
    color: var(--rm-text-light);
    margin-bottom: 24px;
}
.rm-auth-card .rm-social-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-sm);
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}
.rm-auth-card .rm-social-btn:hover {
    background: var(--rm-bg-light);
}
.rm-auth-card .rm-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}
.rm-auth-card .rm-divider hr {
    flex: 1;
    border: none;
    border-top: 1px solid var(--rm-border);
}
.rm-auth-card .rm-divider span {
    color: var(--rm-text-light);
    font-size: 0.85rem;
}
.rm-auth-card .rm-field {
    margin-bottom: 16px;
}
.rm-auth-card .rm-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--rm-text-dark);
}
.rm-auth-card .rm-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-sm);
    font-size: 0.95rem;
    transition: 0.15s;
}
.rm-auth-card .rm-field input:focus {
    outline: none;
    border-color: var(--rm-brand);
    box-shadow: 0 0 0 3px rgba(225, 139, 142, 0.2);
}
.rm-auth-card .rm-field .rm-input-icon {
    position: relative;
}
.rm-auth-card .rm-field .rm-input-icon input {
    padding-right: 44px;
}
.rm-auth-card .rm-field .rm-input-icon svg {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--rm-text-light);
}
.rm-auth-card .rm-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--rm-brand), var(--rm-brand-light));
    color: #fff;
    border: none;
    border-radius: var(--rm-radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}
.rm-auth-card .rm-submit-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}
.rm-auth-card .rm-auth-footer {
    text-align: center;
    margin-top: 16px;
    color: var(--rm-text-light);
}
.rm-auth-card .rm-auth-footer a {
    color: var(--rm-brand);
    font-weight: 600;
    text-decoration: none;
}
.rm-auth-card .rm-auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   CONTACT PAGE - مطابق لـ ContactPage.jsx
   ============================================ */
.rm-contact-card {
    max-width: 900px;
    margin: 40px auto;
    background: var(--rm-white);
    border-radius: var(--rm-radius-lg);
    overflow: hidden;
    box-shadow: var(--rm-shadow);
}
.rm-contact-header {
    background: linear-gradient(135deg, var(--rm-brand), var(--rm-brand-light));
    padding: 48px 32px;
    text-align: center;
    color: #fff;
}
.rm-contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.rm-contact-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}
.rm-contact-body {
    padding: 32px;
}
.rm-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}
.rm-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    border-radius: var(--rm-radius);
    transition: 0.15s;
    text-decoration: none;
    color: var(--rm-text-dark);
}
.rm-contact-item:hover {
    transform: translateY(-3px);
}
.rm-contact-item.rm-blue {
    background: #eff6ff;
}
.rm-contact-item.rm-blue:hover {
    background: #dbeafe;
}
.rm-contact-item.rm-pink {
    background: #fce4ec;
}
.rm-contact-item.rm-pink:hover {
    background: #f8bbd0;
}
.rm-contact-item.rm-indigo {
    background: #eef2ff;
}
.rm-contact-item.rm-indigo:hover {
    background: #e0e7ff;
}
.rm-contact-item svg {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}
.rm-contact-item.rm-blue svg {
    color: #2563eb;
}
.rm-contact-item.rm-pink svg {
    color: #e11d48;
}
.rm-contact-item.rm-indigo svg {
    color: #4f46e5;
}
.rm-contact-item span {
    font-weight: 600;
}
@media (max-width: 768px) {
    .rm-contact-grid {
        grid-template-columns: 1fr;
    }
    .rm-contact-header h1 {
        font-size: 1.8rem;
    }
}

/* ============================================
   ADSENSE BANNER - مطابق لـ AdSenseBanner.jsx
   ============================================ */
.rm-adsense {
    width: 100%;
    background: var(--rm-bg-light);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    margin: 24px 0;
    overflow: hidden;
}
.rm-adsense .rm-adsense-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--rm-text-light);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.rm-adsense .rm-adsense-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.03);
    border-radius: var(--rm-radius-sm);
    color: var(--rm-text-light);
    padding: 16px;
}
.rm-adsense .rm-adsense-inner p {
    margin: 0;
    text-align: center;
}

/* ============================================
   ANIMATIONS - مستوحاة من Framer Motion
   ============================================ */
@keyframes rm-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes rm-fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes rm-stagger-in {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.rm-animate-in {
    animation: rm-fade-in 0.5s ease-out forwards;
}
.rm-animate-up {
    animation: rm-fade-in-up 0.6s ease-out forwards;
}
.rm-stagger-item {
    opacity: 0;
}
.rm-stagger-item.visible {
    animation: rm-stagger-in 0.4s ease-out forwards;
}
.rm-stagger-item:nth-child(1) { animation-delay: 0.05s; }
.rm-stagger-item:nth-child(2) { animation-delay: 0.10s; }
.rm-stagger-item:nth-child(3) { animation-delay: 0.15s; }
.rm-stagger-item:nth-child(4) { animation-delay: 0.20s; }
.rm-stagger-item:nth-child(5) { animation-delay: 0.25s; }
.rm-stagger-item:nth-child(6) { animation-delay: 0.30s; }
.rm-stagger-item:nth-child(7) { animation-delay: 0.35s; }
.rm-stagger-item:nth-child(8) { animation-delay: 0.40s; }
.rm-stagger-item:nth-child(9) { animation-delay: 0.45s; }
.rm-stagger-item:nth-child(10) { animation-delay: 0.50s; }
.rm-stagger-item:nth-child(11) { animation-delay: 0.55s; }
.rm-stagger-item:nth-child(12) { animation-delay: 0.60s; }

/* ============================================
   UTILITIES - دوال مساعدة
   ============================================ */
.rm-text-center { text-align: center; }
.rm-text-right { text-align: right; }
.rm-text-left { text-align: left; }
.rm-mt-1 { margin-top: 8px; }
.rm-mt-2 { margin-top: 16px; }
.rm-mt-3 { margin-top: 24px; }
.rm-mt-4 { margin-top: 32px; }
.rm-mb-1 { margin-bottom: 8px; }
.rm-mb-2 { margin-bottom: 16px; }
.rm-mb-3 { margin-bottom: 24px; }
.rm-mb-4 { margin-bottom: 32px; }
.rm-p-1 { padding: 8px; }
.rm-p-2 { padding: 16px; }
.rm-p-3 { padding: 24px; }
.rm-p-4 { padding: 32px; }
.rm-flex { display: flex; }
.rm-flex-center { display: flex; align-items: center; justify-content: center; }
.rm-flex-between { display: flex; align-items: center; justify-content: space-between; }
.rm-gap-1 { gap: 8px; }
.rm-gap-2 { gap: 16px; }
.rm-gap-3 { gap: 24px; }
.rm-gap-4 { gap: 32px; }
.rm-hidden { display: none; }

/* ----- RTL overrides for English mode ----- */
.rm-ltr {
    direction: ltr;
}
.rm-ltr .rm-search-field select {
    background-position: right 12px center;
}
.rm-ltr .rm-auth-card .rm-field .rm-input-icon input {
    padding-right: 16px;
    padding-left: 44px;
}
.rm-ltr .rm-auth-card .rm-field .rm-input-icon svg {
    right: auto;
    left: 14px;
}
.rm-ltr .rm-dashboard-item {
    border-right: none;
    border-left: 4px solid var(--rm-border);
}
.rm-ltr .rm-dashboard-item.female-highlight {
    border-left-color: var(--rm-brand);
    border-right: none;
}
.rm-ltr .rm-admin-sidebar button.active {
    border-right: none;
    border-left: 4px solid var(--rm-brand);
}
.rm-ltr .rm-card {
    border-left: none;
    border-right: 4px solid #e2e8f0;
}
.rm-ltr .rm-card.female-highlight {
    border-left: none;
    border-right-color: var(--rm-brand);
}
.rm-ltr .rm-messages-sidebar {
    border-left: none;
    border-right: 1px solid var(--rm-border);
}