/* منصة نهران - التصميم */
:root {
    --primary: #1a237e;
    --primary-dark: #0d1259;
    --secondary: #ffd700;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --dark: #0d1421;
    --gray: #6c757d;
    --light: #f8f9fa;
    --white: #ffffff;
}

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

body {
    font-family: 'Tajawal', Arial, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الهيدر */
.header {
    background: var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--secondary);
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--secondary);
}

/* الازرار */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-gold {
    background: var(--secondary);
    color: var(--dark);
}

.btn-gold:hover {
    background: #e6c200;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 13px;
}

/* القسم الرئيسي Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--secondary);
}

.stat-label {
    font-size: 16px;
    opacity: 0.8;
}

/* الاقسام */
.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary);
}

.section-dark .section-title {
    color: var(--secondary);
}

/* الكروت */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 25px;
}

.card h3 {
    margin: 15px 0 10px;
    color: var(--primary);
}

.card p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* الشارات */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: var(--success);
}

.badge-primary {
    background: #e8eaf6;
    color: var(--primary);
}

/* المميزات */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
}

.feature i {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.feature p {
    opacity: 0.8;
}

/* الحالة الفارغة */
.empty-state {
    text-align: center;
    padding: 60px;
    color: var(--gray);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
}

/* الفوتر */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

/* النماذج */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* التنبيهات */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: var(--success);
}

.alert-danger {
    background: #f8d7da;
    color: var(--danger);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

/* صفحة المصادقة */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo i {
    font-size: 48px;
    color: var(--primary);
}

.auth-logo h2 {
    margin-top: 15px;
    color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* المنتدى */
.forum-section {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.forum-section-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.forum-section-header i {
    font-size: 28px;
    color: var(--secondary);
}

.forum-section-header h3 {
    margin: 0;
}

.forum-section-header p {
    margin: 5px 0 0;
    opacity: 0.8;
    font-size: 14px;
}

/* الدردشة */
.chat-container {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--primary);
    color: var(--white);
    padding: 20px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.message {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
}

.message-content {
    background: var(--light);
    padding: 12px 15px;
    border-radius: 15px;
    max-width: 70%;
}

.message-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 5px;
}

.message-time {
    font-size: 11px;
    color: var(--gray);
    margin-top: 5px;
}

.chat-input {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
}

/* لوحة التحكم */
.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 70px);
}

.sidebar {
    background: var(--primary-dark);
    color: var(--white);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    color: var(--secondary);
}

.dashboard-content {
    padding: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.stat-card-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.stat-card-label {
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
}

/* ==================== الميزات الجديدة ==================== */

/* نظام التصويت والاعجاب */
.vote-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    background: #f0f0f0;
    color: #666;
}

.vote-btn:hover {
    transform: scale(1.05);
}

.vote-btn.like:hover, .vote-btn.like.active {
    background: #e8f5e9;
    color: #4caf50;
}

.vote-btn.dislike:hover, .vote-btn.dislike.active {
    background: #ffebee;
    color: #f44336;
}

.vote-btn .count {
    font-weight: 600;
}

/* شارات واوسمة المستخدمين */
.user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #333;
}

.user-badge.silver {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
}

.user-badge.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    color: #fff;
}

/* رمز البرج بجانب الاسم */
.zodiac-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    margin-right: 5px;
}

.zodiac-fire { background: linear-gradient(135deg, #ff5722 0%, #f44336 100%); }
.zodiac-earth { background: linear-gradient(135deg, #8bc34a 0%, #4caf50 100%); }
.zodiac-air { background: linear-gradient(135deg, #03a9f4 0%, #00bcd4 100%); }
.zodiac-water { background: linear-gradient(135deg, #3f51b5 0%, #2196f3 100%); }

/* افضل اجابة */
.best-answer {
    border: 2px solid #4caf50 !important;
    background: #f1f8e9 !important;
    position: relative;
}

.best-answer::before {
    content: '✓ افضل اجابة';
    position: absolute;
    top: -12px;
    right: 15px;
    background: #4caf50;
    color: #fff;
    padding: 2px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* الاقتباس */
.quote-box {
    background: #f5f5f5;
    border-right: 4px solid var(--primary);
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #666;
}

.quote-box .quote-author {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

/* الاشعارات */
.notifications-dropdown {
    position: relative;
}

.notifications-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.notifications-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
}

.notifications-panel.show {
    display: block;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
    cursor: pointer;
}

.notification-item:hover {
    background: #f9f9f9;
}

.notification-item.unread {
    background: #e3f2fd;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
}

.notification-time {
    font-size: 12px;
    color: #999;
}

/* الرسائل الخاصة */
.pm-list {
    max-height: 500px;
    overflow-y: auto;
}

.pm-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s;
}

.pm-item:hover {
    background: #f9f9f9;
}

.pm-item.unread {
    background: #fff8e1;
}

.pm-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.pm-content {
    flex: 1;
}

.pm-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.pm-preview {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pm-time {
    font-size: 11px;
    color: #999;
}

/* حالة الاتصال */
.online-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.online-status.online {
    background: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.online-status.offline {
    background: #9e9e9e;
}

.online-status.away {
    background: #ff9800;
}

/* يكتب الان */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #666;
    font-size: 13px;
    font-style: italic;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ردود الفعل على الرسائل */
.message-reactions {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.reaction-btn {
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.reaction-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.reaction-btn.active {
    background: #e3f2fd;
    border-color: #2196f3;
}

.reaction-btn .count {
    font-size: 11px;
    margin-right: 3px;
    color: #666;
}

/* الرد على رسالة معينة */
.reply-preview {
    background: #f5f5f5;
    border-right: 3px solid var(--primary);
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
}

.reply-preview .reply-author {
    font-weight: 600;
    color: var(--primary);
    font-size: 12px;
}

.reply-preview .reply-text {
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* الاشارة للاعضاء @mention */
.mention {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
}

.mention:hover {
    background: #bbdefb;
}

/* البحث المتقدم */
.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.search-box button {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

/* احصائيات القسم */
.section-stats {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-top: 15px;
}

.section-stat {
    text-align: center;
}

.section-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.section-stat-label {
    font-size: 12px;
    color: #666;
}

/* الاعضاء النشطين */
.active-users {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.active-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.active-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* التقويم الفلكي */
.astro-calendar {
    background: linear-gradient(135deg, #1a237e 0%, #0d1259 100%);
    border-radius: 15px;
    padding: 20px;
    color: #fff;
}

.astro-event {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-bottom: 10px;
}

.astro-event-date {
    text-align: center;
    min-width: 60px;
}

.astro-event-day {
    font-size: 28px;
    font-weight: 700;
    color: #ffd700;
}

.astro-event-month {
    font-size: 12px;
    opacity: 0.8;
}

.astro-event-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.astro-event-desc {
    font-size: 13px;
    opacity: 0.8;
}

/* سؤال اليوم */
.daily-question {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    border-radius: 15px;
    padding: 25px;
    color: #fff;
}

.daily-question h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.daily-question .question-text {
    font-size: 18px;
    margin-bottom: 20px;
}

.daily-question .options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.daily-question .option {
    padding: 12px 20px;
    background: rgba(255,255,255,0.15);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.daily-question .option:hover {
    background: rgba(255,255,255,0.25);
    border-color: #fff;
}

.daily-question .option.selected {
    background: #fff;
    color: #9c27b0;
    font-weight: 600;
}

/* الموضوع المثبت */
.topic-pinned {
    background: #fff8e1;
    border-right: 4px solid #ffc107;
}

.topic-pinned .pin-icon {
    color: #ffc107;
    margin-left: 5px;
}

/* الموضوع المغلق */
.topic-locked {
    opacity: 0.7;
}

.topic-locked .lock-icon {
    color: #f44336;
    margin-left: 5px;
}

/* نقاط وسمعة المستخدم */
.user-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.user-stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.user-stat-item i {
    color: var(--primary);
}

/* المواضيع المميزة */
.topic-featured {
    position: relative;
    overflow: hidden;
}

.topic-featured::after {
    content: '⭐';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
}

/* تنسيق النص المتقدم */
.format-toolbar {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e0e0e0;
}

.format-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.format-btn:hover {
    background: #e0e0e0;
}

/* معرض الخرائط */
.charts-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.chart-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.chart-card:hover {
    transform: translateY(-5px);
}

.chart-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.chart-card-info {
    padding: 15px;
}

.chart-card-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.chart-card-date {
    font-size: 13px;
    color: #666;
}

/* الملف الشخصي الفلكي */
.astro-profile {
    background: linear-gradient(135deg, #1a237e 0%, #0d1259 100%);
    border-radius: 15px;
    padding: 25px;
    color: #fff;
    text-align: center;
}

.astro-profile .zodiac-symbol {
    font-size: 64px;
    margin-bottom: 15px;
}

.astro-profile .zodiac-name {
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 10px;
}

.astro-profile .birth-info {
    font-size: 14px;
    opacity: 0.8;
}

/* تبويبات */
.tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab {
    padding: 12px 25px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* مؤشر التحميل */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* الاعضاء المتصلين */
.online-users-panel {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.online-users-panel h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary);
}

.online-users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.online-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* زر العودة للاعلى */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* تحسينات الموبايل */
@media (max-width: 768px) {
    .notifications-panel {
        width: 300px;
        right: -50px;
    }
    
    .vote-buttons {
        flex-wrap: wrap;
    }
    
    .section-stats {
        flex-wrap: wrap;
    }
    
    .astro-event {
        flex-direction: column;
    }
    
    .tabs {
        overflow-x: auto;
    }
    
    .tab {
        white-space: nowrap;
    }
}
