/* ============================================
   MAWADA MISYAR - COMPLETE STYLES
   ============================================ */

:root {
    --primary: #1565c0;
    --primary-dark: #0d47a1;
    --primary-light: #e3f2fd;
    --accent: #e91e63;
    --accent-light: #fce4ec;
    --success: #4caf50;
    --gold: #ffc107;
    --text: #2c3e50;
    --text-muted: #7f8c8d;
    --bg: #f5f8fb;
    --white: #ffffff;
    --border: #e8ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Cairo', sans-serif; background: var(--bg); color: var(--text); direction: rtl; font-size: 14px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* TOP BAR */
.top-bar { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); height: 55px; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow); }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.btn-premium { background: linear-gradient(135deg, #ffd54f, #ffb300); color: #5d4037; padding: 6px 18px; border-radius: 20px; font-weight: 700; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.top-bar-left { display: flex; align-items: center; gap: 25px; }
.header-icons { display: flex; align-items: center; gap: 15px; }
/* إخفاء للزوار فقط */
html.guest-mode .btn-premium { display: none !important; }
html.guest-mode .header-icons { display: none !important; }
.icon-wrapper { position: relative; color: rgba(255,255,255,0.9); font-size: 18px; cursor: pointer; }
.notification-badge { position: absolute; top: -8px; right: -8px; background: var(--accent); color: #fff; font-size: 10px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.user-dropdown { display: flex; align-items: center; gap: 8px; color: #fff; cursor: pointer; }
.header-avatar { width: 35px; height: 35px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5); }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-text { font-size: 28px; font-weight: 800; color: #fff; }
.logo-heart { color: var(--accent); font-size: 22px; animation: heartbeat 1.5s infinite; }
@keyframes heartbeat { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }

/* MAIN NAV */
.main-nav { background: var(--white); box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: sticky; top: 55px; z-index: 999; }
.nav-list { display: flex; justify-content: center; gap: 10px; padding: 10px 0; }
.nav-item a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 20px; color: var(--text-muted); font-size: 12px; font-weight: 600; border-radius: var(--radius); transition: 0.3s; }
.nav-item a i { font-size: 18px; }
.nav-item a:hover, .nav-item.active a { color: var(--primary); background: var(--primary-light); }
.nav-item.active a { position: relative; }
.nav-item.active a::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; background: var(--accent); border-radius: 3px; }

/* PAGE LAYOUT */
.main-content { padding: 30px 0; min-height: calc(100vh - 200px); }
.page-layout { display: grid; grid-template-columns: 280px 1fr; gap: 25px; align-items: start; }

/* SIDEBAR */
.sidebar { position: sticky; top: 130px; }
.user-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px; }
.user-card-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; text-align: center; padding: 25px 15px 50px; position: relative; }
.user-card-header::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 30px; background: var(--white); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.welcome-label { font-size: 13px; opacity: 0.85; margin-bottom: 5px; }
.user-name { font-size: 18px; font-weight: 700; word-wrap: break-word; max-width: 100%; line-height: 1.4; margin-bottom: 10px; }
.user-card-avatar { display: flex; justify-content: center; margin-top: -50px; position: relative; z-index: 10; }
.user-card-avatar img { width: 80px; height: 80px; border-radius: 50%; border: 4px solid var(--white); box-shadow: var(--shadow); }
.online-dot { position: absolute; bottom: 5px; right: calc(50% - 40px); width: 14px; height: 14px; background: var(--success); border: 3px solid var(--white); border-radius: 50%; }
.user-card-body { padding: 15px 0; }
.user-menu li a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: var(--text); font-size: 13px; border-bottom: 1px solid var(--border); transition: 0.3s; }
.user-menu li:last-child a { border-bottom: none; }
.user-menu li a:hover { background: var(--primary-light); color: var(--primary); }
.user-menu li a i { width: 20px; color: var(--text-muted); font-size: 14px; }
.menu-badge { margin-right: auto; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }

.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--white); border-radius: var(--radius); padding: 15px; box-shadow: var(--shadow); }
.quick-link-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 15px 10px; background: #fafafa; border: 1px solid var(--border); border-radius: var(--radius); transition: 0.3s; text-align: center; }
.quick-link-item:hover { background: var(--accent-light); border-color: var(--accent); transform: translateY(-3px); }
.quick-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--accent), #c2185b); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.quick-link-item span { font-size: 11px; font-weight: 600; color: var(--text); }

/* CONTENT AREA */
.content-area { min-width: 0; }

/* QUICK SEARCH */
.quick-search-bar { background: var(--white); border-radius: var(--radius); padding: 20px; margin-bottom: 25px; box-shadow: var(--shadow); }
.quick-search-bar h3 { font-size: 14px; color: var(--accent); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.quick-search-form .form-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 15px; }
.form-group label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.form-group select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 5px; font-size: 13px; color: var(--text); background: #fff; }
.age-range { display: flex; align-items: center; gap: 8px; }
.age-range select { flex: 1; }
.age-range span { color: var(--text-muted); font-size: 12px; }
.btn-search { background: linear-gradient(135deg, var(--accent), #c2185b); color: #fff; padding: 12px 30px; border-radius: 20px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.btn-search:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(233,30,99,0.4); }

/* MEMBERS SECTION */
.members-section { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
h2.section-title { font-size: 16px !important; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 8px; margin: 0; }
.filter-pill { padding: 6px 15px; border: 1px solid var(--border); border-radius: 20px; font-size: 12px; color: var(--text-muted); background: #fff; cursor: pointer; }

/* MEMBERS GRID */
.members-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }

/* MEMBER CARD */
.member-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: flex; align-items: center; gap: 12px; transition: 0.3s; position: relative; }
.member-card:hover { border-color: var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.1); transform: translateY(-2px); }
.member-card.vip { background: linear-gradient(135deg, #fffde7, #fff8e1); border-color: #ffe082; }
.member-card.vip::before { content: 'VIP'; position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg, #ffd54f, #ffb300); color: #5d4037; font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.member-card .btn-fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; background: rgba(255,255,255,0.9); color: #ccc; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; z-index: 5; font-size: 14px; }
.member-card .btn-fav:hover { background: var(--accent); color: #fff; transform: scale(1.1); }
.member-card .btn-fav.active, .member-card .btn-fav.favorited { background: var(--accent); color: #fff; }
.member-card .btn-fav.active i, .member-card .btn-fav.favorited i { font-weight: 900; }
.member-actions { display: flex; flex-direction: column; gap: 8px; align-items: center; padding-right: 12px; border-right: 1px solid var(--border); }
.btn-message { width: 32px; height: 32px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: 0.3s; }
.btn-message:hover { background: var(--primary-dark); transform: scale(1.1); }
.btn-favorite { background: none; color: #ddd; font-size: 18px; transition: 0.3s; }
.btn-favorite:hover { color: var(--accent); transform: scale(1.2); }
.member-avatar { position: relative; flex-shrink: 0; }
.member-avatar img { width: 65px; height: 65px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: 0.3s; }
.member-avatar img.blurred { filter: blur(4px); }
.member-card:hover .member-avatar img.blurred { filter: blur(2px); }
.member-avatar .status { position: absolute; bottom: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); }
.member-avatar .status.online { background: var(--success); }
.member-avatar .status.offline { background: #bdbdbd; }
.member-info { flex: 1; min-width: 0; }
.member-name { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.member-name .verified { color: #2196f3; font-size: 12px; }
.member-name .flag { font-size: 14px; }
.member-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.member-meta i { font-size: 10px; color: var(--accent); }
.member-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 10px; padding: 3px 8px; border-radius: 12px; font-weight: 600; }
.tag.status { background: var(--primary-light); color: var(--primary); }
.tag.housing { background: #e8f5e9; color: #2e7d32; }
.tag.time { background: #fff3e0; color: #e65100; }
.tag.privacy { background: var(--accent-light); color: #c2185b; }

.load-more { text-align: center; margin-top: 25px; }
.btn-load-more { background: var(--primary-light); color: var(--primary); padding: 10px 25px; border-radius: 20px; font-size: 13px; font-weight: 600; transition: 0.3s; }
.btn-load-more:hover { background: var(--primary); color: #fff; }

/* FOOTER */
.main-footer { background: var(--white); padding: 50px 0 20px; margin-top: 50px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.footer-logo i { color: var(--accent); }
.footer-slogan { color: var(--primary); font-weight: 600; margin-bottom: 5px; }
.footer-col p { color: var(--text-muted); font-size: 13px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 30px; height: 2px; background: var(--accent); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 13px; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--primary); padding-right: 5px; }
.footer-bottom { text-align: center; padding-top: 25px; border-top: 1px solid var(--border); }
.social-icons { display: flex; justify-content: center; gap: 15px; margin-bottom: 15px; }
.social-icons a { width: 40px; height: 40px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: 0.3s; }
.social-icons a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-bottom p { color: var(--text-muted); font-size: 12px; }

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header { text-align: center; margin-bottom: 30px; }
.page-header h1 { font-size: 24px; color: var(--accent); margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.page-header p { color: var(--text-muted); font-size: 14px; }

/* ============================================
   TABS
   ============================================ */
.tabs-container { display: flex; justify-content: center; gap: 10px; margin-bottom: 25px; background: var(--white); padding: 15px; border-radius: var(--radius); box-shadow: var(--shadow); }
.tab-btn { background: transparent; color: var(--text-muted); padding: 12px 25px; border-radius: 25px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.tab-btn:hover { color: var(--primary); background: var(--primary-light); }
.tab-btn.active { background: var(--primary); color: #fff; }
.tab-badge { background: var(--accent); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 10px; margin-right: 5px; }

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-panel { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: none; }
.search-panel.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.search-form-full .form-section { background: #fafbfc; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 25px; }
.search-form-full .form-section h3 { font-size: 15px; color: var(--text); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); display: flex; align-items: center; gap: 8px; }
.search-form-full .form-section h3 i { color: var(--accent); }
.form-section.misyar-highlight { background: linear-gradient(135deg, #fce4ec, #fff); border-color: #f8bbd9; }
.form-section.misyar-highlight h3 { color: var(--accent); border-bottom-color: var(--accent); }

.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.form-group input, .form-group select { width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: 5px; font-size: 14px; color: var(--text); background: #fff; transition: 0.3s; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,101,192,0.1); outline: none; }
.label-pink { color: var(--accent) !important; font-weight: 700 !important; }

.input-icon { position: relative; }
.input-icon i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-icon input { padding-right: 45px; }

.form-actions { display: flex; justify-content: center; gap: 15px; margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--border); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #c2185b); color: #fff; padding: 14px 40px; border-radius: 25px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 10px; transition: 0.3s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(233,30,99,0.4); }
.btn-secondary { background: #f5f5f5; color: var(--text-muted); padding: 14px 30px; border-radius: 25px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.btn-secondary:hover { background: #eee; color: var(--text); }

.username-search { max-width: 500px; margin: 0 auto; text-align: center; }

/* ============================================
   MESSAGES PAGE
   ============================================ */
.messages-layout { display: grid; grid-template-columns: 320px 1fr; gap: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: calc(100vh - 280px); min-height: 500px; }

.conversations-sidebar { background: #fafbfc; border-left: 1px solid var(--border); overflow-y: auto; }
.conv-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--border); background: var(--white); position: sticky; top: 0; z-index: 10; font-weight: 700; }
.btn-icon-sm { background: transparent; color: var(--text-muted); width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.btn-icon-sm:hover { background: var(--primary-light); color: var(--primary); }

.conversation-item { display: flex; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: 0.3s; }
.conversation-item:hover { background: #f0f4f8; }
.conversation-item.active { background: var(--primary-light); border-right: 3px solid var(--primary); }
.conv-avatar { position: relative; flex-shrink: 0; }
.conv-avatar img { width: 50px; height: 50px; border-radius: 50%; }
.status-dot { position: absolute; bottom: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; }
.status-dot.online { background: var(--success); }
.status-dot.offline { background: #bdbdbd; }
.conv-details { flex: 1; min-width: 0; }
.conv-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; display: flex; align-items: center; gap: 5px; }
.vip-icon { color: var(--gold); font-size: 10px; }
.conv-preview { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.conv-time { font-size: 11px; color: var(--text-muted); }
.unread-count { background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.chat-area { display: flex; flex-direction: column; height: 100%; }
.chat-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: var(--white); border-bottom: 1px solid var(--border); }
.chat-user-info { display: flex; align-items: center; gap: 12px; }
.chat-user-info img { width: 45px; height: 45px; border-radius: 50%; }
.chat-user-name { font-size: 15px; font-weight: 700; color: var(--text); display: block; }
.chat-user-status { font-size: 12px; color: var(--success); display: flex; align-items: center; gap: 5px; }
.chat-user-status i { font-size: 8px; }
.chat-header-actions { display: flex; gap: 5px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 20px; background: #f5f7fa; }
.date-divider { text-align: center; margin: 20px 0; }
.date-divider span { background: #e0e0e0; color: var(--text-muted); font-size: 11px; padding: 5px 15px; border-radius: 15px; }

.message { display: flex; margin-bottom: 15px; }
.message.sent { justify-content: flex-start; }
.message.received { justify-content: flex-end; }
.message-bubble { max-width: 70%; padding: 12px 16px; border-radius: 18px; position: relative; }
.message.sent .message-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
.message.received .message-bubble { background: var(--white); color: var(--text); border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.message-bubble p { font-size: 14px; line-height: 1.5; margin-bottom: 5px; }
.message-time { font-size: 10px; opacity: 0.7; display: flex; align-items: center; gap: 5px; justify-content: flex-end; }
.message.sent .message-time i { color: #90caf9; }

.typing-indicator { display: flex; gap: 4px; padding: 15px; justify-content: flex-end; }
.typing-indicator span { width: 8px; height: 8px; background: #bdbdbd; border-radius: 50%; animation: typing 1.4s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,100%{transform:translateY(0);opacity:0.5} 50%{transform:translateY(-5px);opacity:1} }

.chat-input-area { display: flex; align-items: center; gap: 10px; padding: 15px 20px; background: var(--white); border-top: 1px solid var(--border); }
.chat-input { flex: 1; padding: 12px 20px; border: 1px solid var(--border); border-radius: 25px; font-size: 14px; outline: none; transition: 0.3s; }
.chat-input:focus { border-color: var(--primary); }
.btn-send { width: 45px; height: 45px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: 0.3s; }
.btn-send:hover { background: var(--primary-dark); transform: scale(1.05); }

/* ============================================
   PROFILE PAGE - تصميم أنيق
   ============================================ */
.profile-header-card { 
    background: var(--white); 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); 
    margin-bottom: 25px;
    position: relative;
}

.profile-cover { 
    height: 140px; 
    background: #1565c0;
    position: relative;
    overflow: hidden;
}

.profile-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.profile-cover::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--white), transparent);
}

.profile-main-info { 
    display: flex; 
    align-items: flex-start; 
    gap: 25px; 
    padding: 0 30px 25px; 
    margin-top: -70px; 
    flex-wrap: wrap; 
    position: relative;
    z-index: 2;
}

.profile-avatar-wrapper { 
    position: relative;
    flex-shrink: 0;
}

.profile-avatar { 
    width: 130px; 
    height: 130px; 
    border-radius: 50%; 
    border: 5px solid var(--white); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    object-fit: cover;
}

.online-badge { 
    position: absolute; 
    bottom: 15px; 
    right: 15px; 
    width: 28px; 
    height: 28px; 
    background: var(--success); 
    border: 5px solid var(--white); 
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4);
}

.profile-text-info { 
    flex: 1; 
    padding-top: 70px;
}

.profile-name { 
    font-size: 26px; 
    font-weight: 700; 
    color: #1a237e; 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    flex-wrap: wrap;
}

.verified-badge { 
    color: #2196f3; 
    font-size: 18px;
}

.vip-label { 
    background: linear-gradient(135deg, #ffd54f, #ff8f00); 
    color: #5d4037; 
    font-size: 12px; 
    font-weight: 800; 
    padding: 5px 15px; 
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 143, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-meta { 
    font-size: 16px; 
    color: #666; 
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-last-seen { 
    font-size: 14px; 
    color: var(--success); 
    display: inline-flex; 
    align-items: center; 
    gap: 6px;
    background: rgba(76, 175, 80, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
}

.profile-last-seen i { font-size: 10px; }

.profile-actions { 
    display: flex; 
    gap: 12px; 
    flex-wrap: wrap;
    padding-top: 70px;
}

.profile-actions .btn-primary {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
    transition: all 0.3s;
}

.profile-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.4);
}

.profile-actions .btn-secondary {
    background: #fff;
    border: 2px solid #eee;
    color: #666;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.profile-actions .btn-secondary:hover {
    border-color: #e91e63;
    color: #e91e63;
    background: rgba(233, 30, 99, 0.05);
}

.btn-icon-circle { 
    width: 50px; 
    height: 50px; 
    background: #fff;
    border: 2px solid #eee;
    color: #666; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: 0.3s;
    font-size: 18px;
}

.btn-icon-circle:hover { 
    background: var(--primary); 
    color: #fff;
    border-color: var(--primary);
    transform: rotate(15deg);
}

/* More Options Dropdown */
.more-options-wrapper { position: relative; }
.more-options-menu { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: var(--white); 
    border-radius: var(--radius); 
    box-shadow: 0 5px 25px rgba(0,0,0,0.15); 
    min-width: 150px; 
    z-index: 100; 
    display: none;
    overflow: hidden;
}
.more-options-menu.show { display: block; }
.more-options-menu button { 
    width: 100%; 
    padding: 12px 15px; 
    background: none; 
    border: none; 
    text-align: right; 
    font-size: 14px; 
    color: var(--text); 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer;
    transition: 0.2s;
}
.more-options-menu button:hover { background: #f5f5f5; }
.more-options-menu button i { color: var(--text-muted); width: 18px; }
.more-options-menu button:hover i { color: var(--primary); }
.more-options-menu button:last-child { color: #f44336; }
.more-options-menu button:last-child i { color: #f44336; }

.profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 25px; align-items: start; }
.profile-sidebar { position: sticky; top: 130px; }
.profile-content { min-width: 0; }

.info-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px; }
.card-header { background: #fafbfc; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.card-header h3 { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.card-header h3 i { color: var(--primary); }
.card-header.pink { background: var(--accent-light); }
.card-header.pink h3 { color: var(--accent); }
.card-header.pink h3 i { color: var(--accent); }
.card-body { padding: 20px; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.info-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.info-item:last-child { border-bottom: none; }
.info-label { font-size: 13px; color: var(--text-muted); }
.info-value { font-size: 13px; font-weight: 600; color: var(--text); }
.info-value.highlight { color: var(--accent); }

.about-text { font-size: 14px; line-height: 1.8; color: var(--text); }

.stats-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; text-align: center; }
.stat-box i { font-size: 24px; color: var(--primary); margin-bottom: 8px; }
.stat-number { display: block; font-size: 20px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 11px; color: var(--text-muted); }

/* ============================================
   ONLINE STATS BAR
   ============================================ */
.online-stats-bar { display: flex; justify-content: center; gap: 50px; background: var(--white); border-radius: var(--radius); padding: 20px; margin-bottom: 25px; box-shadow: var(--shadow); }
.online-stats-bar .stat-item { display: flex; align-items: center; gap: 12px; }
.online-stats-bar .stat-item i { font-size: 24px; color: var(--primary); }
.online-stats-bar .stat-num { font-size: 24px; font-weight: 800; color: var(--text); }
.online-stats-bar .stat-text { font-size: 13px; color: var(--text-muted); }

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar { display: flex; justify-content: center; gap: 20px; background: var(--white); border-radius: var(--radius); padding: 15px 25px; margin-bottom: 25px; box-shadow: var(--shadow); flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.filter-group select { padding: 8px 15px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; background: #fafafa; cursor: pointer; }

/* ============================================
   MEMBERS GRID V2 (3 columns)
   ============================================ */
.members-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.member-card-v2 { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; position: relative; }
.member-card-v2:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

.card-header-img { position: relative; height: 140px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f7fa, #e8ecef); }
.card-header-img img { width: 90px; height: 90px; border-radius: 50%; border: 4px solid var(--white); box-shadow: var(--shadow); object-fit: cover; }
.card-header-img img.blurred { filter: blur(4px); }
.member-card-v2:hover .card-header-img img.blurred { filter: blur(2px); }
.card-header-img .online-indicator { position: absolute; bottom: 45px; right: calc(50% - 55px); width: 14px; height: 14px; background: var(--success); border: 3px solid var(--white); border-radius: 50%; }
.card-header-img .vip-ribbon { position: absolute; top: 10px; left: 10px; background: linear-gradient(135deg, #ffd54f, #ffb300); color: #5d4037; padding: 4px 10px; border-radius: 12px; font-size: 11px; }
.card-header-img .verified-badge { position: absolute; bottom: 45px; left: calc(50% - 55px); color: #2196f3; font-size: 18px; background: #fff; border-radius: 50%; }

.member-card-v2 .card-body { padding: 15px 20px 20px; text-align: center; }
.member-card-v2 .member-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 5px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.member-card-v2 .member-info-text { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.member-card-v2 .member-tags { display: flex; justify-content: center; gap: 6px; margin-bottom: 15px; flex-wrap: wrap; }

.card-actions { display: flex; justify-content: center; gap: 8px; }
.btn-view { padding: 8px 20px; background: var(--primary); color: #fff; border-radius: 20px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: 0.3s; }
.btn-view:hover { background: var(--primary-dark); }
.btn-view.gold { background: linear-gradient(135deg, #ffd54f, #ffb300); color: #5d4037; }
.btn-msg { width: 38px; height: 38px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.btn-msg:hover { background: var(--primary); color: #fff; }
.btn-msg.gold { background: #fff8e1; color: #ff8f00; }
.btn-msg.gold:hover { background: #ffb300; color: #fff; }
.btn-fav { width: 38px; height: 38px; background: #fce4ec; color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.btn-fav:hover { background: var(--accent); color: #fff; }

/* New Member Badge */
.member-card-v2.new-member { border: 2px solid #4caf50; }
.new-badge { position: absolute; top: 10px; right: 10px; background: #4caf50; color: #fff; padding: 4px 12px; border-radius: 12px; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 5px; z-index: 10; }
.join-date { font-size: 12px; color: #4caf50; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* VIP Card */
.member-card-v2.vip-card { background: linear-gradient(135deg, #fffde7, #fff8e1); border: 2px solid #ffd54f; }
.vip-crown { position: absolute; top: -5px; right: 50%; transform: translateX(50%); color: #ffc107; font-size: 24px; z-index: 10; text-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.card-header-img.gold-border img { border-color: #ffd54f; }
.vip-stats { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; font-size: 12px; color: var(--text-muted); }
.vip-stats span { display: flex; align-items: center; gap: 5px; }
.vip-stats i { color: var(--accent); }

/* ============================================
   PREMIUM BANNER
   ============================================ */
.premium-banner { background: linear-gradient(135deg, #1565c0, #0d47a1); border-radius: var(--radius); padding: 30px 40px; margin-bottom: 30px; color: #fff; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.premium-banner h2 { font-size: 20px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.premium-banner h2 i { color: #ffd54f; }
.benefits-list { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 0; }
.benefits-list li { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.benefits-list li i { color: #4caf50; }
.btn-upgrade { background: linear-gradient(135deg, #ffd54f, #ffb300); color: #5d4037; padding: 14px 30px; border-radius: 25px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; transition: 0.3s; white-space: nowrap; }
.btn-upgrade:hover { transform: scale(1.05); box-shadow: 0 5px 20px rgba(255,193,7,0.4); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.page-btn { width: 40px; height: 40px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--text-muted); transition: 0.3s; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================
   DASHBOARD PAGE
   ============================================ */
.dashboard-layout { display: grid; grid-template-columns: 280px 1fr; gap: 25px; align-items: start; }

.dashboard-sidebar { position: sticky; top: 130px; }
.dashboard-user-card { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: var(--radius); padding: 25px; text-align: center; margin-bottom: 15px; }
.dashboard-user-card img { width: 80px; height: 80px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.3); margin-bottom: 15px; }
.dashboard-user-card h3 { font-size: 18px; margin-bottom: 5px; }
.membership-type { font-size: 13px; opacity: 0.9; margin-bottom: 5px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.membership-type i { color: #ffd54f; }
.membership-expire { font-size: 11px; opacity: 0.7; }

.dashboard-nav { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.dashboard-nav .nav-link { display: flex; align-items: center; gap: 12px; padding: 14px 20px; color: var(--text); font-size: 14px; border-bottom: 1px solid var(--border); transition: 0.3s; }
.dashboard-nav .nav-link:last-child { border-bottom: none; }
.dashboard-nav .nav-link i { width: 20px; color: var(--text-muted); font-size: 15px; }
.dashboard-nav .nav-link:hover { background: var(--primary-light); color: var(--primary); }
.dashboard-nav .nav-link:hover i { color: var(--primary); }
.dashboard-nav .nav-link.active { background: var(--primary-light); color: var(--primary); border-right: 3px solid var(--primary); }
.dashboard-nav .nav-link.active i { color: var(--primary); }
.dashboard-nav .nav-link .badge { margin-right: auto; background: var(--accent); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 10px; }
.dashboard-nav .nav-link.logout { color: #f44336; }
.dashboard-nav .nav-link.logout i { color: #f44336; }

.dashboard-content { min-width: 0; }

/* Dashboard Sections */
.dashboard-section { margin-bottom: 40px; padding-top: 20px; scroll-margin-top: 120px; }
.dashboard-section .section-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; padding-bottom: 15px; border-bottom: 2px solid var(--primary-light); }
.dashboard-section .section-title i { color: var(--primary); }

/* Edit Form Styles */
.edit-form { display: flex; flex-direction: column; gap: 20px; }
.edit-form .form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.edit-form .form-group { display: flex; flex-direction: column; gap: 8px; }
.edit-form label { font-weight: 600; color: var(--text); font-size: 14px; }
.edit-form input, .edit-form select, .edit-form textarea { padding: 12px 15px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; transition: 0.3s; }
.edit-form input:focus, .edit-form select:focus, .edit-form textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1); }
.edit-form textarea { resize: vertical; min-height: 100px; }
.btn-primary { background: var(--primary); color: #fff; padding: 12px 30px; border-radius: var(--radius); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; align-self: flex-start; }
.btn-primary:hover { background: var(--primary-dark); }

/* Photo Upload */
.photo-upload-area { margin-bottom: 20px; }
.upload-box { border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px; text-align: center; cursor: pointer; transition: 0.3s; }
.upload-box:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-box i { font-size: 48px; color: var(--primary); margin-bottom: 15px; }
.upload-box p { font-size: 16px; color: var(--text); margin-bottom: 5px; }
.upload-box span { font-size: 12px; color: var(--text-muted); }
.photos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.no-photos { grid-column: 1/-1; text-align: center; padding: 30px; color: var(--text-muted); }

.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 15px; }
.stat-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-card.blue .stat-icon { background: #e3f2fd; color: #1565c0; }
.stat-card.pink .stat-icon { background: #fce4ec; color: #e91e63; }
.stat-card.green .stat-icon { background: #e8f5e9; color: #4caf50; }
.stat-card.orange .stat-icon { background: #fff3e0; color: #ff9800; }
.stat-info .stat-number { display: block; font-size: 24px; font-weight: 800; color: var(--text); }
.stat-info .stat-label { font-size: 12px; color: var(--text-muted); }

.progress-wrapper { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.progress-bar { flex: 1; height: 10px; background: #e8ecef; border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #42a5f5); border-radius: 5px; transition: width 0.5s ease; }
.progress-text { font-size: 16px; font-weight: 700; color: var(--primary); }
.progress-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.completion-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.completion-item { font-size: 13px; display: flex; align-items: center; gap: 8px; padding: 10px; background: #fafafa; border-radius: 8px; }
.completion-item.done { color: #4caf50; }
.completion-item.done i { color: #4caf50; }
.completion-item.pending { color: var(--text-muted); }

.activity-list { display: flex; flex-direction: column; gap: 15px; }
.activity-item { display: flex; align-items: center; gap: 15px; padding: 12px; background: #fafafa; border-radius: 8px; }
.activity-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.activity-icon.pink { background: #fce4ec; color: #e91e63; }
.activity-icon.blue { background: #e3f2fd; color: #1565c0; }
.activity-icon.green { background: #e8f5e9; color: #4caf50; }
.activity-icon.orange { background: #fff3e0; color: #ff9800; }
.activity-content { flex: 1; }
.activity-content p { font-size: 14px; color: var(--text); margin-bottom: 3px; }
.activity-content strong { color: var(--primary); }
.activity-time { font-size: 12px; color: var(--text-muted); }

.quick-actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.quick-action-btn { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 15px; background: #fafafa; border: 2px solid var(--border); border-radius: 12px; transition: 0.3s; text-align: center; }
.quick-action-btn i { font-size: 24px; color: var(--primary); }
.quick-action-btn span { font-size: 13px; font-weight: 600; color: var(--text); }
.quick-action-btn:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-3px); }
.quick-action-btn.upgrade { background: linear-gradient(135deg, #fff8e1, #fffde7); border-color: #ffd54f; }
.quick-action-btn.upgrade i { color: #ff8f00; }
.quick-action-btn.upgrade:hover { background: linear-gradient(135deg, #ffd54f, #ffb300); }
.quick-action-btn.upgrade:hover i, .quick-action-btn.upgrade:hover span { color: #5d4037; }

/* ============================================
   FAVORITES PAGE
   ============================================ */
.remove-fav-btn { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; background: rgba(244,67,54,0.9); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; z-index: 10; transition: 0.3s; opacity: 0; }
.member-card-v2:hover .remove-fav-btn { opacity: 1; }
.remove-fav-btn:hover { background: #d32f2f; transform: scale(1.1); }
.added-date { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.added-date i { color: var(--primary); }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 80px; color: #e0e0e0; margin-bottom: 20px; }
.empty-state h3 { font-size: 20px; color: var(--text); margin-bottom: 10px; }
.empty-state p { color: var(--text-muted); margin-bottom: 25px; }

/* ============================================
   SETTINGS PAGE
   ============================================ */
.settings-layout { display: grid; grid-template-columns: 250px 1fr; gap: 25px; align-items: start; }

.settings-sidebar { position: sticky; top: 130px; }
.settings-nav { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.settings-link { display: flex; align-items: center; gap: 12px; padding: 15px 20px; color: var(--text); font-size: 14px; border-bottom: 1px solid var(--border); transition: 0.3s; }
.settings-link:last-child { border-bottom: none; }
.settings-link i { width: 20px; color: var(--text-muted); }
.settings-link:hover { background: var(--primary-light); color: var(--primary); }
.settings-link:hover i { color: var(--primary); }
.settings-link.active { background: var(--primary-light); color: var(--primary); border-right: 3px solid var(--primary); }
.settings-link.active i { color: var(--primary); }
.settings-link.danger { color: #f44336; }
.settings-link.danger i { color: #f44336; }

.settings-content { min-width: 0; }

.settings-form .form-group { margin-bottom: 20px; }
.settings-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.input-field { width: 100%; padding: 12px 15px; border: 2px solid var(--border); border-radius: 8px; font-size: 14px; transition: 0.3s; }
.input-field:focus { border-color: var(--primary); outline: none; }
.input-with-badge { position: relative; }
.input-with-badge .input-field { padding-left: 90px; }
.verified-tag { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); background: #e8f5e9; color: #4caf50; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 12px; display: flex; align-items: center; gap: 4px; }

.setting-item { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border); }
.setting-item:last-child { border-bottom: none; }
.setting-info h4 { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.setting-info p { font-size: 12px; color: var(--text-muted); }

.toggle-switch { position: relative; width: 50px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ccc; border-radius: 26px; transition: 0.3s; }
.toggle-slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(24px); }

.setting-select { padding: 8px 15px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: #fafafa; min-width: 180px; }

.security-sessions { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.security-sessions h4 { font-size: 15px; color: var(--text); margin-bottom: 15px; }
.session-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: #fafafa; border-radius: 8px; margin-bottom: 10px; }
.session-info { display: flex; align-items: center; gap: 12px; }
.session-info i { font-size: 24px; color: var(--text-muted); }
.session-info .device { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.session-info .location { display: block; font-size: 12px; color: var(--text-muted); }
.current-badge { background: #e8f5e9; color: #4caf50; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 12px; }
.btn-logout-session { background: #ffebee; color: #f44336; padding: 6px 15px; border-radius: 15px; font-size: 12px; font-weight: 600; transition: 0.3s; }
.btn-logout-session:hover { background: #f44336; color: #fff; }

.danger-card { border: 2px solid #ffcdd2; }
.warning-box { display: flex; gap: 15px; padding: 20px; background: #fff3e0; border-radius: 8px; margin-bottom: 20px; }
.warning-box i { font-size: 24px; color: #ff9800; }
.warning-box h4 { font-size: 14px; color: #e65100; margin-bottom: 5px; }
.warning-box p { font-size: 13px; color: #ff9800; }
.btn-danger { background: #f44336; color: #fff; padding: 12px 25px; border-radius: 8px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.btn-danger:hover { background: #d32f2f; }

/* ============================================
   EDIT PROFILE PAGE
   ============================================ */
.photo-upload-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.current-photo { position: relative; width: 150px; height: 150px; border-radius: 50%; overflow: hidden; cursor: pointer; }
.current-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.current-photo:hover .photo-overlay { opacity: 1; }
.photo-overlay i { color: #fff; font-size: 32px; }
.photo-actions { display: flex; flex-direction: column; gap: 10px; }
.photo-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.edit-form .form-group { margin-bottom: 0; }
.edit-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.edit-form label .required { color: var(--accent); }
.textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.char-counter { display: block; text-align: left; font-size: 11px; color: var(--text-muted); margin-top: 5px; }

.form-actions-sticky { position: sticky; bottom: 0; background: var(--white); padding: 20px; margin: 30px -15px -30px; border-top: 1px solid var(--border); display: flex; justify-content: center; gap: 15px; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); }

/* ============================================
   PRICING PAGE
   ============================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }

.pricing-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; position: relative; border: 2px solid transparent; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.pricing-card.popular { border-color: var(--gold); }
.popular-badge { position: absolute; top: 15px; right: -35px; background: var(--gold); color: #5d4037; font-size: 11px; font-weight: 700; padding: 5px 40px; transform: rotate(45deg); }

.pricing-header { padding: 30px 20px; text-align: center; background: linear-gradient(135deg, #f8f9fa, #fff); }
.pricing-card.silver .pricing-header { background: linear-gradient(135deg, #eceff1, #cfd8dc); }
.pricing-card.gold .pricing-header { background: linear-gradient(135deg, #fff8e1, #ffecb3); }
.pricing-card.vip .pricing-header { background: linear-gradient(135deg, #ede7f6, #d1c4e9); }

.pricing-icon { width: 60px; height: 60px; margin: 0 auto 15px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.pricing-card.silver .pricing-icon { background: #b0bec5; color: #fff; }
.pricing-card.gold .pricing-icon { background: linear-gradient(135deg, #ffd54f, #ffb300); color: #5d4037; }
.pricing-card.vip .pricing-icon { background: linear-gradient(135deg, #9c27b0, #7b1fa2); color: #fff; }

.pricing-header h3 { font-size: 18px; color: var(--text); margin-bottom: 15px; }
.pricing-price { display: flex; align-items: baseline; justify-content: center; gap: 5px; }
.pricing-price .price { font-size: 36px; font-weight: 800; color: var(--primary); }
.pricing-card.gold .pricing-price .price { color: #ff8f00; }
.pricing-card.vip .pricing-price .price { color: #7b1fa2; }
.pricing-price .currency { font-size: 16px; color: var(--text-muted); }
.pricing-price .period { font-size: 14px; color: var(--text-muted); }

.pricing-body { padding: 25px 20px; }
.features-list { margin-bottom: 25px; }
.features-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.features-list li:last-child { border-bottom: none; }
.features-list li.included { color: var(--text); }
.features-list li.included i { color: #4caf50; }
.features-list li.not-included { color: var(--text-muted); }
.features-list li.not-included i { color: #e0e0e0; }

.btn-pricing { width: 100%; padding: 14px; border-radius: 25px; font-size: 15px; font-weight: 700; transition: 0.3s; background: var(--primary-light); color: var(--primary); }
.btn-pricing:hover { background: var(--primary); color: #fff; }
.btn-pricing.current { background: #e0e0e0; color: var(--text-muted); cursor: default; }
.btn-pricing.gold { background: linear-gradient(135deg, #ffd54f, #ffb300); color: #5d4037; }
.btn-pricing.gold:hover { box-shadow: 0 5px 20px rgba(255,193,7,0.4); }
.btn-pricing.vip { background: linear-gradient(135deg, #9c27b0, #7b1fa2); color: #fff; }
.btn-pricing.vip:hover { box-shadow: 0 5px 20px rgba(156,39,176,0.4); }

.payment-methods { text-align: center; margin-bottom: 40px; }
.payment-methods h3 { font-size: 16px; color: var(--text-muted); margin-bottom: 20px; }
.payment-icons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.payment-icon { width: 70px; height: 45px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--text-muted); }
.payment-icon.stc { font-size: 12px; font-weight: 700; color: #9333ea; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #fafafa; cursor: pointer; font-weight: 600; font-size: 14px; transition: 0.3s; }
.faq-question:hover { background: var(--primary-light); }
.faq-question i { transition: 0.3s; color: var(--text-muted); }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: 0.3s; }
.faq-item.open .faq-answer { padding: 15px 20px; max-height: 200px; }
.faq-answer p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 80px 0; text-align: center; }
.about-hero h1 { font-size: 42px; margin-bottom: 15px; }
.about-hero p { font-size: 18px; opacity: 0.9; }

.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 50px; }
.about-text h2 { font-size: 28px; color: var(--primary); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.about-text p { font-size: 15px; color: var(--text); line-height: 1.9; margin-bottom: 15px; }
.about-image img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }

.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; }
.about-stat-item { background: var(--white); border-radius: var(--radius); padding: 30px 20px; text-align: center; box-shadow: var(--shadow); }
.about-stat-item i { font-size: 36px; color: var(--accent); margin-bottom: 15px; }
.about-stat-item .stat-number { display: block; font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 5px; }
.about-stat-item .stat-label { font-size: 14px; color: var(--text-muted); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.feature-item { text-align: center; padding: 25px; background: #fafafa; border-radius: var(--radius); transition: 0.3s; }
.feature-item:hover { background: var(--primary-light); transform: translateY(-5px); }
.feature-icon { width: 60px; height: 60px; margin: 0 auto 15px; background: linear-gradient(135deg, var(--accent), #c2185b); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.feature-item h4 { font-size: 16px; color: var(--text); margin-bottom: 10px; }
.feature-item p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.vision-mission { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 50px; }
.vision-mission .card-body p { font-size: 15px; line-height: 1.8; color: var(--text); }

.contact-cta { background: linear-gradient(135deg, var(--accent), #c2185b); border-radius: 16px; padding: 50px; text-align: center; color: #fff; }
.contact-cta h3 { font-size: 24px; margin-bottom: 10px; }
.contact-cta p { opacity: 0.9; margin-bottom: 25px; }
.contact-cta .btn-primary { background: #fff; color: var(--accent); }
.contact-cta .btn-primary:hover { background: rgba(255,255,255,0.9); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 350px; gap: 30px; align-items: start; }
.contact-form-card { min-width: 0; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.contact-form label .required { color: var(--accent); }

.contact-info-sidebar { display: flex; flex-direction: column; gap: 15px; }
.contact-info-card { background: var(--white); border-radius: var(--radius); padding: 25px; text-align: center; box-shadow: var(--shadow); }
.contact-icon { width: 50px; height: 50px; margin: 0 auto 15px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.contact-info-card h4 { font-size: 16px; color: var(--text); margin-bottom: 5px; }
.contact-info-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.contact-info-card a { color: var(--primary); font-weight: 600; font-size: 15px; }
.contact-info-card a:hover { color: var(--accent); }
.contact-info-card.social { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.contact-info-card.social h4 { color: #fff; margin-bottom: 15px; }
.social-links { display: flex; justify-content: center; gap: 10px; }
.social-link { width: 40px; height: 40px; background: rgba(255,255,255,0.2); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: 0.3s; }
.social-link:hover { background: #fff; color: var(--primary); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .form-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-sidebar { position: static; }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .quick-actions-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar { position: static; }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-sidebar { position: static; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid-2 { grid-template-columns: 1fr; }
    .about-section { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .vision-mission { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .members-grid { grid-template-columns: 1fr; }
    .members-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .quick-search-form .form-row { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .messages-layout { grid-template-columns: 1fr; height: auto; }
    .conversations-sidebar { max-height: 300px; border-left: none; border-bottom: 1px solid var(--border); }
    .chat-area { min-height: 400px; }
    .form-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .profile-main-info { flex-direction: column; text-align: center; }
    .profile-actions { justify-content: center; }
    .online-stats-bar { gap: 25px; }
    .premium-banner { flex-direction: column; text-align: center; }
    .benefits-list { justify-content: center; }
}
@media (max-width: 600px) {
    .nav-item a span { display: none; }
    .quick-search-form .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4::after { right: 50%; transform: translateX(50%); }
    .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; }
    .tabs-container { flex-wrap: wrap; }
    .tab-btn { flex: 1; justify-content: center; font-size: 12px; padding: 10px 15px; }
    .info-grid { grid-template-columns: 1fr; }
    .stats-card { grid-template-columns: 1fr; }
    .members-grid-3 { grid-template-columns: 1fr; }
    .online-stats-bar { flex-direction: column; gap: 15px; }
    .filter-bar { flex-direction: column; gap: 10px; }
    .filter-group { width: 100%; justify-content: space-between; }
    .filter-group select { flex: 1; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .quick-actions-grid { grid-template-columns: repeat(2, 1fr); }
    .completion-items { grid-template-columns: 1fr; }
    .setting-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .setting-select { width: 100%; }
    .session-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .photo-upload-section { flex-direction: column; text-align: center; }
    .photo-actions { align-items: center; }
    .about-hero h1 { font-size: 28px; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .contact-info-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
}

/* Empty States & Dynamic Content */
.no-conversations, .empty-chat, .no-data, .loading-conversations {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #999;
}
.no-conversations i, .empty-chat i, .no-data i, .loading-conversations i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}
.no-conversations p, .empty-chat p { font-size: 16px; margin-bottom: 5px; }
.empty-chat span { font-size: 13px; color: #bbb; }
.btn-start-chat {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
}
.btn-start-chat:hover { background: var(--primary-dark); }

/* Guest Header Buttons */
.guest-buttons { display: flex; align-items: center; gap: 10px; }
.btn-login-header {
    padding: 8px 18px;
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-login-header:hover { background: var(--primary-light); }
.btn-register-header {
    padding: 8px 18px;
    color: #fff;
    background: var(--accent);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-register-header:hover { background: #d81558; }

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
}
.hero-stat { text-align: center; }
.stat-num { display: block; font-size: 36px; font-weight: 800; }
.stat-text { font-size: 14px; opacity: 0.8; }
.hero-buttons { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; }
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--accent);
    color: #fff;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(233,30,99,0.4);
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(233,30,99,0.5); }
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.25); }
.hero-note { font-size: 13px; opacity: 0.8; }
.hero-note i { margin-left: 5px; color: #4caf50; }

/* Features Section */
.features-section {
    padding: 60px 0;
    background: var(--bg);
}
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 40px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.feature-icon i { font-size: 28px; color: var(--primary); }
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Guest/User visibility controlled by JS */
/* إخفاء الكل افتراضياً لمنع الوميض */
.guest-only { display: none !important; }
.user-only { display: none !important; }

/* فحص سريع من localStorage - يُطبق فوراً قبل تحميل الصفحة */
html.guest-mode .guest-only { display: block !important; }
html.guest-mode .user-only { display: none !important; }
html.user-logged-in .user-only { display: flex !important; }
html.user-logged-in .guest-only { display: none !important; }

/* إصلاح display للعناصر المناسبة */
html.user-logged-in .header-icons.user-only { display: flex !important; }
html.guest-mode .guest-buttons.guest-only { display: flex !important; }
html.user-logged-in .main-content.user-only { display: block !important; }
html.guest-mode .hero-section-modern.guest-only { display: flex !important; }
html.guest-mode .stats-section-modern.guest-only { display: block !important; }
html.guest-mode .features-section-modern.guest-only { display: block !important; }
html.guest-mode .how-it-works.guest-only { display: block !important; }
html.guest-mode .cta-section.guest-only { display: block !important; }
html.guest-mode .guest-footer.guest-only { display: block !important; }
html.user-logged-in .main-nav.user-only { display: block !important; }
html.user-logged-in .main-footer.user-only { display: block !important; }

/* إخفاء صريح لعناصر الزوار عند تسجيل الدخول */
html.user-logged-in .hero-section-modern { display: none !important; }
html.user-logged-in .stats-section-modern { display: none !important; }
html.user-logged-in .features-section-modern { display: none !important; }
html.user-logged-in .how-it-works { display: none !important; }
html.user-logged-in .cta-section { display: none !important; }
html.user-logged-in .guest-footer { display: none !important; }
html.user-logged-in .guest-buttons { display: none !important; }

/* ============================================
   MODERN GUEST HOMEPAGE STYLES
   ============================================ */

/* Hero Section Modern */
.hero-section-modern {
    min-height: 100vh;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 50%, #1a237e 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.hero-bg-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: #e91e63;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero-bg-shapes .shape-2 {
    width: 300px;
    height: 300px;
    background: #fff;
    bottom: 10%;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

.hero-bg-shapes .shape-3 {
    width: 200px;
    height: 200px;
    background: #e91e63;
    top: 50%;
    left: 30%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(233, 30, 99, 0.2);
    border: 1px solid rgba(233, 30, 99, 0.5);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 25px;
}

.hero-badge i {
    color: #e91e63;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #e91e63, #ff5722);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 35px;
}

.hero-buttons-modern {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-primary-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: #fff;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.5);
}

.btn-outline-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.btn-outline-modern:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.hero-trust {
    display: flex;
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.trust-item i {
    color: #4caf50;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: cardFloat 4s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 50%;
    left: 10%;
    animation-delay: 1s;
}

.floating-card.card-3 {
    bottom: 10%;
    right: 30%;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: #fff;
    animation-delay: 2s;
    flex-direction: column;
    text-align: center;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.card-avatar {
    font-size: 40px;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-name {
    font-weight: 700;
    font-size: 18px;
    color: #333;
}

.card-detail {
    font-size: 14px;
    color: #666;
}

.match-icon {
    font-size: 36px;
}

/* Stats Section Modern */
.stats-section-modern {
    background: #fff;
    padding: 60px 0;
    margin-top: -50px;
    border-radius: 30px 30px 0 0;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.stat-icon i {
    font-size: 28px;
    color: #fff;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #1565c0;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    color: #666;
}

/* Features Section Modern */
.features-section-modern {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: #1a237e;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card-modern {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.feature-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.feature-icon-modern {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon-modern i {
    font-size: 32px;
    color: #fff;
}

.gradient-pink { background: linear-gradient(135deg, #e91e63, #c2185b); }
.gradient-blue { background: linear-gradient(135deg, #1565c0, #0d47a1); }
.gradient-purple { background: linear-gradient(135deg, #7b1fa2, #4a148c); }
.gradient-green { background: linear-gradient(135deg, #2e7d32, #1b5e20); }
.gradient-orange { background: linear-gradient(135deg, #ef6c00, #e65100); }
.gradient-teal { background: linear-gradient(135deg, #00897b, #00695c); }

.feature-card-modern h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.feature-card-modern p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: #fff;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.step-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    flex: 1;
    max-width: 300px;
}

.step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon i {
    font-size: 32px;
    color: #fff;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.step-arrow {
    font-size: 24px;
    color: #ddd;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.cta-card {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-card h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.cta-card p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: #fff;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4);
}

.btn-cta:hover {
    transform: scale(1.05);
}

.cta-decoration .heart-float {
    position: absolute;
    font-size: 40px;
    opacity: 0.2;
    animation: heartFloat 5s ease-in-out infinite;
}

.heart-float:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.heart-float:nth-child(2) { top: 60%; right: 15%; animation-delay: 1s; }
.heart-float:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 2s; }

@keyframes heartFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Guest Footer */
.guest-footer {
    background: #1a237e;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-brand .footer-logo i {
    color: #e91e63;
}

.footer-brand p {
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #e91e63;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-text h1 { font-size: 38px; }
    .hero-buttons-modern { justify-content: center; }
    .hero-trust { justify-content: center; flex-wrap: wrap; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid-modern { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { flex-direction: column; }
    .step-arrow { transform: rotate(-90deg); }
}

@media (max-width: 576px) {
    .hero-text h1 { font-size: 32px; }
    .hero-buttons-modern { flex-direction: column; width: 100%; }
    .btn-primary-modern, .btn-outline-modern { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .features-grid-modern { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ============================================
   AUTH MODALS - نوافذ تسجيل الدخول والتسجيل
   ============================================ */

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.modal-content.register-modal {
    max-width: 520px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #e91e63;
    border-color: #fff;
    transform: scale(1.1);
}

.modal-header {
    text-align: center;
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: #fff;
    border-radius: 20px 20px 0 0;
}

.modal-logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-logo i {
    color: #e91e63;
    animation: pulse 1.5s infinite;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 14px;
    opacity: 0.9;
}

.modal-form {
    padding: 25px 30px;
}

.modal-form .form-group {
    margin-bottom: 18px;
}

.modal-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.modal-form label i {
    margin-left: 5px;
    color: #1565c0;
}

.modal-form input[type="email"],
.modal-form input[type="password"],
.modal-form input[type="text"],
.modal-form input[type="date"],
.modal-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8ecef;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    background: #fafafa;
}

.modal-form input:focus,
.modal-form select:focus {
    border-color: #1565c0;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    cursor: pointer;
}

.forgot-password {
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(21, 101, 192, 0.3);
}

.btn-submit.btn-register {
    background: linear-gradient(135deg, #e91e63, #c2185b);
}

.btn-submit.btn-register:hover {
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
}

.modal-footer {
    text-align: center;
    padding: 20px 30px 25px;
    border-top: 1px solid #eee;
    background: #fafafa;
    border-radius: 0 0 20px 20px;
}

.modal-footer p {
    font-size: 14px;
    color: #666;
}

.modal-footer a {
    color: #e91e63;
    font-weight: 700;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Gender Selection */
.gender-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.gender-option {
    cursor: pointer;
}

.gender-option input {
    display: none;
}

.gender-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    border: 2px solid #e8ecef;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    background: #fafafa;
}

.gender-box i {
    font-size: 24px;
}

.gender-option input:checked + .gender-box {
    border-color: #e91e63;
    background: #fce4ec;
    color: #e91e63;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.terms-check input {
    margin-top: 3px;
}

.terms-check a {
    color: #1565c0;
    text-decoration: none;
}

.terms-check a:hover {
    text-decoration: underline;
}

/* Modal Responsive */
@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .gender-select {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATIONS & POLISH
   ============================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================================
   REALTIME CHAT ENHANCEMENTS
   ============================================ */

/* مؤشر جاري الكتابة المحسّن */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.03);
    border-radius: 0;
    margin: 0;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-6px); opacity: 1; }
}

.typing-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* تأثير الرسالة الجديدة */
.message.new-message {
    animation: slideInMessage 0.3s ease-out;
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* حالة الاتصال */
.chat-user-status {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.chat-user-status.online {
    color: var(--success);
}

.chat-user-status:not(.online) {
    color: var(--text-muted);
}

.chat-user-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* مؤشر الاتصال في قائمة المحادثات */
.online-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #bdbdbd;
    position: absolute;
    bottom: 2px;
    right: 2px;
    border: 2px solid #fff;
    transition: background 0.3s;
}

.online-indicator.active {
    background: var(--success);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

/* إشعار منبثق للرسائل */
.message-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--white);
    border-radius: 12px;
    padding: 15px 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border-right: 4px solid var(--primary);
}

.message-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.message-toast-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.message-toast-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.message-toast-content p {
    font-size: 13px;
    color: var(--text-muted);
}

/* عداد الرسائل غير المقروءة المتحرك */
.notification-badge[data-type="messages"] {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* تحسين الشات على الجوال */
@media (max-width: 768px) {
    .messages-layout {
        grid-template-columns: 1fr;
        height: calc(100vh - 200px);
    }
    
    .conversations-sidebar {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        z-index: 1001;
        background: var(--white);
    }
    
    .conversations-sidebar.active {
        display: block;
    }
    
    .chat-area {
        height: 100%;
    }
    
    .chat-header {
        padding: 10px 15px;
    }
    
    .chat-input-area {
        padding: 10px 15px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .typing-indicator {
        padding: 8px 15px;
    }
}

/* ============================================
   POPUP NOTIFICATIONS
   ============================================ */

.popup-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    background: var(--white);
    border-radius: 16px;
    padding: 15px 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    border-right: 4px solid var(--primary);
    max-width: 400px;
    min-width: 300px;
}

.popup-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.popup-notification-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.popup-notification-content {
    flex: 1;
    min-width: 0;
}

.popup-notification-content p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px;
    line-height: 1.4;
}

.popup-notification-content span {
    font-size: 12px;
    color: var(--text-muted);
}

.popup-notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.popup-notification-close:hover {
    background: #f0f0f0;
    color: var(--text);
}

/* أنواع مختلفة من الإشعارات */
.popup-notification.message { border-right-color: var(--primary); }
.popup-notification.favorite { border-right-color: var(--accent); }
.popup-notification.visit { border-right-color: var(--success); }
.popup-notification.like { border-right-color: #ff9800; }
.popup-notification.system { border-right-color: #9c27b0; }

/* تأثير الاهتزاز للإشعار */
@keyframes notificationShake {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-50%) translateY(0) translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(-50%) translateY(0) translateX(2px); }
}

.popup-notification.shake {
    animation: notificationShake 0.5s ease-in-out;
}

/* Responsive */
@media (max-width: 576px) {
    .popup-notification {
        left: 15px;
        right: 15px;
        transform: translateY(-120px);
        min-width: auto;
        max-width: none;
    }
    
    .popup-notification.show {
        transform: translateY(0);
    }
}

/* ============================================
   SUBSCRIPTION & PAYMENT MODALS
   ============================================ */

/* نوافذ الدفع */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f5f5f5;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #eee;
    transform: rotate(90deg);
}

/* نافذة الدفع */
.payment-modal-content {
    padding: 30px;
}

.payment-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.payment-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 15px;
}

.payment-amount {
    margin-bottom: 5px;
}

.payment-amount .amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--text);
}

.payment-amount .currency {
    font-size: 20px;
    color: var(--text-muted);
}

.payment-duration {
    color: var(--text-muted);
    font-size: 14px;
}

.payment-methods h4 {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-method-option {
    display: block;
    cursor: pointer;
    margin-bottom: 10px;
}

.payment-method-option input {
    display: none;
}

.method-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
}

.payment-method-option input:checked + .method-box {
    border-color: var(--primary);
    background: var(--primary-light);
}

.method-box i {
    font-size: 20px;
    color: var(--text-muted);
}

.method-box span {
    flex: 1;
    font-weight: 600;
}

.method-box .card-icons {
    display: flex;
    gap: 5px;
}

.method-box .card-icons i {
    font-size: 24px;
}

.payment-form {
    margin: 20px 0;
}

.payment-form .form-group {
    margin-bottom: 15px;
}

.payment-form .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.payment-form .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.payment-form .form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
    outline: none;
}

.payment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.payment-test-notice {
    background: #fff3cd;
    color: #856404;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-pay {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-pay:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(21,101,192,0.3);
}

.btn-pay:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.payment-secure {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.payment-secure i {
    color: var(--success);
}

/* نافذة النجاح */
.success-modal-content {
    padding: 40px 30px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-modal-content h2 {
    font-size: 24px;
    color: var(--text);
    margin-bottom: 10px;
}

.success-modal-content > p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.success-details {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.success-details .detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.success-details .detail-item span {
    color: var(--text-muted);
}

.success-details .detail-item strong {
    color: var(--text);
}

.success-features {
    text-align: right;
    margin-bottom: 25px;
}

.success-features h4 {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 12px;
}

.success-features ul {
    list-style: none;
}

.success-features ul li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-features ul li i {
    color: var(--success);
    font-size: 12px;
}

/* بطاقات الاشتراك */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 20px 0;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.pricing-card.popular {
    border-color: var(--gold);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    color: #5d4037;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.plan-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.plan-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.plan-price {
    margin-bottom: 25px;
}

.plan-price .price {
    font-size: 48px;
    font-weight: 800;
    color: var(--text);
}

.plan-price .currency {
    font-size: 18px;
    color: var(--text-muted);
}

.plan-price .duration {
    font-size: 14px;
    color: var(--text-muted);
    display: block;
    margin-top: 5px;
}

.plan-features {
    list-style: none;
    margin-bottom: 25px;
    text-align: right;
}

.plan-features li {
    padding: 10px 0;
    font-size: 13px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    color: var(--success);
    font-size: 12px;
}

.btn-subscribe {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@media (max-width: 992px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

/* ============================================
   DASHBOARD ENHANCEMENTS
   ============================================ */

/* منطقة رفع الصور */
.photo-upload-area {
    margin-bottom: 20px;
}

.upload-box {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-box:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-box i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.upload-box p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.upload-box span {
    font-size: 13px;
    color: var(--text-muted);
}

.main-photo-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.main-photo-checkbox:hover {
    background: #eee;
}

.main-photo-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* شبكة الصور */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-item.main-photo {
    border: 3px solid var(--gold);
}

.main-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    color: #5d4037;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.photo-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-item:hover .photo-actions {
    opacity: 1;
}

.photo-actions button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-set-main {
    background: #fff;
    color: #f9a825;
}

.btn-delete-photo {
    background: #ff5252;
    color: #fff;
}

.btn-set-main:hover {
    background: #f9a825;
    color: #fff;
}

.btn-delete-photo:hover {
    background: #d32f2f;
}

.no-photos {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-size: 14px;
}

/* تحميل النشاطات */
.activity-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: var(--text-muted);
}

.activity-loading i {
    font-size: 20px;
    color: var(--primary);
}

.no-activity {
    text-align: center;
    color: var(--text-muted);
    padding: 30px;
    font-size: 14px;
}

/* عنصر النشاط */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-icon.pink {
    background: #fce4ec;
    color: var(--accent);
}

.activity-icon.blue {
    background: var(--primary-light);
    color: var(--primary);
}

.activity-icon.green {
    background: #e8f5e9;
    color: var(--success);
}

.activity-icon.orange {
    background: #fff3e0;
    color: #ff9800;
}

.activity-icon.gold {
    background: #fff8e1;
    color: var(--gold);
}

.activity-icon.gray {
    background: #f5f5f5;
    color: #757575;
}

.activity-content p {
    font-size: 14px;
    color: var(--text);
    margin: 0 0 4px;
}

.activity-content p strong {
    color: var(--primary);
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
}

