/* تصميم داكن عصري لنظام المكافآت */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

/* الحاوي الرئيسي */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* الهيدر */
.header {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #333;
}

.header h1 {
    text-align: center;
    color: #00d4ff;
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    margin-bottom: 10px;
}

.header p {
    text-align: center;
    color: #b0b0b0;
    font-size: 1.1rem;
}

/* البطاقات */
.card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: #00d4ff;
}

.card h2 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.card h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* الأزرار */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    margin: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00b8e6 0%, #0088bb 100%);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #00e677 0%, #00bb55 100%);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff9900 0%, #ff7700 100%);
    box-shadow: 0 6px 20px rgba(255, 170, 0, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff3742 0%, #ff2731 100%);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
    transform: translateY(-2px);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #00d4ff;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    background: #222;
}

/* الجداول */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.table th,
.table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #333;
}

.table th {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    color: #00d4ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table tr:hover {
    background: #222;
}

/* الإحصائيات */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #2e2e2e 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: #00d4ff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
    margin-bottom: 10px;
}

.stat-label {
    color: #b0b0b0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* النقاط */
.points-display {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: #fff;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* العروض */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.offer-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid #444;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.offer-card.affordable {
    border-color: rgba(0, 255, 136, 0.5);
    background: linear-gradient(135deg, #1e2e1e 0%, #2e3e2e 100%);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.1);
}

.offer-card.not-affordable {
    border-color: rgba(255, 170, 0, 0.5);
    background: linear-gradient(135deg, #2e1e1e 0%, #3e2e2e 100%);
    box-shadow: 0 4px 20px rgba(255, 170, 0, 0.1);
    opacity: 0.8;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s;
}

.offer-card:hover::before {
    left: 100%;
}

.offer-card:hover {
    border-color: #00d4ff;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.offer-title {
    color: #ff6f00;
    font-size: 2rem;
    font-weight: bold;
    margin: 15px 0;
    transition: color 0.3s ease;
}

.offer-points {
    color: #00d4ff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.offer-points.affordable-points {
    color: #00ff88;
}

.offer-points.expensive-points {
    color: #ffaa00;
}

.offer-reward {
    color: #00ff88;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.offer-description {
    color: #b0b0b0;
    margin-bottom: 15px;
    line-height: 1.5;
}

.offer-status {
    margin-top: 15px;
}

.points-status {
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid;
}

.points-status.available {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3);
}

.points-status.insufficient {
    background: rgba(255, 170, 0, 0.1);
    color: #ffaa00;
    border-color: rgba(255, 170, 0, 0.3);
}

/* التنبيهات */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
    display: none;
}

.alert-success {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 204, 102, 0.1) 100%);
    border: 1px solid #00ff88;
    color: #00ff88;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(255, 55, 66, 0.1) 100%);
    border: 1px solid #ff4757;
    color: #ff4757;
    display: none;
}

.alert-info {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.1) 100%);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    display: none;
}

/* التنقل */
.nav {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 15px 0;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav li {
    margin: 0 10px;
}

.nav a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav a:hover,
.nav a.active {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .card {
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
    }

    .nav li {
        margin: 5px 0;
    }
}

/* تأثيرات إضافية */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* تحسينات إضافية */
.text-center {
    text-align: center;
}

/* أنماط صفحة الإشعارات */
.notifications-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: linear-gradient(135deg, #555 0%, #777 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(85, 85, 85, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    box-shadow: 0 6px 20px rgba(85, 85, 85, 0.5);
    transform: translateY(-2px);
}

.notifications-full-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* قائمة الإشعارات - تصميم بسيط متناسق مع الموقع */
.notifications-full-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-full-item {
    background: linear-gradient(135deg, #1e1e1e 0%, #2e2e2e 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.notification-full-item:hover {
    transform: translateY(-3px);
    border-color: #00d4ff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.notification-full-item.unread {
    border-left: 4px solid #00ff88;
    background: linear-gradient(135deg, #1a2a1a 0%, #2a3a2a 100%);
}

.notification-full-item.unread:hover {
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

/* أنواع الإشعارات - شريط جانبي احترافي */
.notification-admin {
    border-left: 4px solid #ff6b6b;
}

.notification-whatsapp {
    border-left: 4px solid #25d366;
}

.notification-success {
    border-left: 4px solid #00ff88;
}

.notification-warning {
    border-left: 4px solid #ffaa00;
}

.notification-error {
    border-left: 4px solid #ff4757;
}

.notification-order {
    border-left: 4px solid #00d4ff;
}

.notification-points {
    border-left: 4px solid #ffd700;
}

.notification-info {
    border-left: 4px solid #00d4ff;
}

.notification-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* ألوان الأيقونات حسب النوع - بسيطة ومتناسقة مع الموقع */
.notification-admin .notification-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.notification-whatsapp .notification-icon {
    background: linear-gradient(135deg, #25d366 0%, #20b358 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.notification-success .notification-icon {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.notification-warning .notification-icon {
    background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.3);
}

.notification-error .notification-icon {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.notification-order .notification-icon {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.notification-points .notification-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffcc00 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.notification-info .notification-icon {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.notification-title-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.notification-title {
    color: #00d4ff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.notification-time {
    color: #b0b0b0;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.notification-message {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

/* شارة النوع بسيطة ومتناسقة */
.notification-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.notification-admin .notification-type-badge {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.notification-whatsapp .notification-type-badge {
    background: rgba(37, 211, 102, 0.2);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.notification-success .notification-type-badge {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.notification-warning .notification-type-badge {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.notification-error .notification-type-badge {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.notification-order .notification-type-badge {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.notification-points .notification-type-badge {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.notification-info .notification-type-badge {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.notification-message {
    color: #e0e0e0;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

/* أزرار الإجراءات - بسيطة ومتناسقة مع الموقع */
.notification-actions {
    margin-top: 10px;
}

.notification-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #20b358 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #20b358 0%, #1da049 100%);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

.admin-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.admin-btn:hover {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
}

.notification-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.notification-control-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.notification-control-btn:hover {
    background: linear-gradient(135deg, #00cc66 0%, #00aa55 100%);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

.unread-indicator {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    border-radius: 50%;
    animation: pulse-notification 2s infinite;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

@keyframes pulse-notification {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.no-notifications-full {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.no-notifications-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-notifications-full h3 {
    color: #00d4ff;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.no-notifications-full p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.pagination-info {
    color: #888;
    font-size: 0.95rem;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 204, 102, 0.1) 100%);
    border: 1px solid #00ff88;
    color: #00ff88;
}

.alert-error {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(204, 85, 85, 0.1) 100%);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .notifications-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .filter-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .notification-full-item {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        align-items: center;
        text-align: center;
    }

    .notification-content {
        order: 2;
        text-align: center;
    }

    .notification-controls {
        order: 3;
        flex-direction: row;
        justify-content: center;
        margin-left: 0;
    }

    .notification-icon {
        order: 1;
        align-self: center;
    }

    .notification-header {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .notification-title-section {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .notification-actions {
        text-align: center;
    }

    .pagination {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .notification-full-item {
        padding: 15px;
        gap: 12px;
    }

    .notification-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .notification-title {
        font-size: 1.1rem;
    }

    .notification-type-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
    }

    .notification-time {
        font-size: 0.8rem;
    }

    .notification-message {
        font-size: 0.9rem;
    }

    .notification-action-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .notification-control-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* رابط الإحالة */
.referral-link {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border: 2px dashed #00d4ff;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    position: relative;
}

.referral-link input {
    background: transparent;
    border: none;
    color: #00d4ff;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    outline: none;
}

.copy-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #00d4ff;
    color: #000;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: #00b8e6;
}

/* تم حذف CSS الزر العائم للإشعارات */

/* تم حذف CSS تأثيرات الزر العائم */

@keyframes notificationPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* تم حذف CSS نافذة الإشعارات العائمة */

/* تم حذف CSS رأس نافذة الإشعارات */

/* تم حذف CSS محتوى الإشعارات */

.no-notifications {
    padding: 40px 20px;
    text-align: center;
    color: #b0b0b0;
}

.no-notifications-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-notifications h4 {
    color: #e0e0e0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.no-notifications p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* تم حذف CSS عناصر الإشعارات */

/* تم حذف جميع CSS الإشعارات العائمة */

/* طلبات العروض */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.order-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #2e2e2e 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 170, 0, 0.1), transparent);
    transition: left 0.5s;
}

.order-card:hover::before {
    left: 100%;
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #ffaa00;
}

.order-card.pending {
    border-left: 4px solid #ffaa00;
}

.order-card.confirmed {
    border-left: 4px solid #00ff88;
}

.order-card.cancelled {
    border-left: 4px solid #ff4757;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-code {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.order-status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.order-status.pending {
    background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
    color: #000;
}

.order-status.confirmed {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #000;
}

.order-status.cancelled {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: #fff;
}

.order-details h4 {
    color: #e0e0e0;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.order-details p {
    margin: 5px 0;
    line-height: 1.4;
}

.order-points {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.order-points span {
    font-size: 0.9rem;
    font-weight: 500;
}

.order-date {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #333;
}

/* تحسينات للجداول */
.table table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    color: #00d4ff;
    padding: 15px 12px;
    text-align: center;
    font-weight: 600;
    border: none;
}

.table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #333;
    border: none;
}

.table tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

/* تحسينات الاستجابة */
@media (max-width: 768px) {
    /* تم حذف CSS الإشعارات العائمة من الاستجابة */

    .orders-grid {
        grid-template-columns: 1fr;
    }

    .order-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .order-points {
        flex-direction: column;
        gap: 5px;
    }

    .table {
        overflow-x: auto;
    }
}

/* أنماط قائمة خيارات الرسالة */
.message-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.message-options {
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.message.own:hover .message-options {
    opacity: 1;
}

.three-dots {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.three-dots span {
    width: 3px;
    height: 3px;
    background: #e0e0e0;
    border-radius: 50%;
}

.message-context-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    min-width: 200px;
    overflow: hidden;
    animation: contextMenuShow 0.2s ease;
}

@keyframes contextMenuShow {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #e0e0e0;
    border-bottom: 1px solid #333;
}

.context-menu-item:last-child {
    border-bottom: none;
}

.context-menu-item:hover {
    background: #333;
}

.context-menu-item.cancel {
    color: #ff6b6b;
}

.context-menu-item.cancel:hover {
    background: rgba(255, 107, 107, 0.1);
}

.menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* مؤشر الرسالة المحررة */
.edited-indicator {
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin-left: 5px;
}

/* أنماط إضافية للنماذج */
.form-group small {
    font-size: 12px;
    color: #b0b0b0;
    margin-top: 5px;
    display: block;
}

/* أنماط الإشعارات المحسنة */
.notification-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.notification-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.notification-btn.accept {
    background: #00ff88;
    color: #000;
}

.notification-btn.accept:hover {
    background: #00e077;
}

.notification-btn.reject {
    background: #ff6b6b;
    color: #fff;
}

.notification-btn.reject:hover {
    background: #ff5555;
}

/* تحسينات للرسائل المحذوفة */
.message.deleted {
    opacity: 0.5;
    font-style: italic;
}

.message.deleted .message-bubble {
    background: #333 !important;
    color: #888 !important;
}

/* قسم الطلبات المعلقة المحسن */
.pending-orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pending-order-card {
    background: linear-gradient(135deg, #2a1e1e 0%, #3a2e2e 100%);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pending-order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffaa00, #ff6b6b);
    opacity: 0.8;
}

.pending-order-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 170, 0, 0.5);
    box-shadow: 0 8px 25px rgba(255, 170, 0, 0.2);
}

.pending-order-card .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pending-order-card .order-code {
    color: #00d4ff;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    background: rgba(0, 212, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.pending-order-card .order-status.pending {
    color: #ffaa00;
    font-weight: bold;
    background: rgba(255, 170, 0, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.pending-order-card .order-content {
    text-align: center;
}

.pending-order-card .order-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.pending-order-card .order-title {
    color: #e0e0e0;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.pending-order-card .order-details {
    color: #b0b0b0;
    margin-bottom: 15px;
    line-height: 1.4;
}

.pending-order-card .reward-info,
.pending-order-card .recipient-info {
    color: #00ff88;
    font-size: 0.9rem;
    margin-top: 5px;
}

.pending-order-card .order-points {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pending-order-card .points-used {
    color: #ff6b6b;
    font-weight: bold;
    background: rgba(255, 107, 107, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
}

.pending-order-card .fees {
    color: #ffaa00;
    font-size: 0.9rem;
}

.pending-order-card .order-date {
    color: #888;
    font-size: 0.8rem;
    text-align: center;
}

.no-pending-orders {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-pending-orders .empty-icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-pending-orders h4 {
    color: #888;
    margin-bottom: 10px;
}

.no-pending-orders p {
    color: #666;
    font-size: 0.9rem;
}

/* جدول الطلبات المحسن */
.orders-table-container {
    margin-top: 20px;
}

.orders-table {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.orders-table thead th {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #00d4ff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.orders-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

.orders-table .order-row {
    transition: all 0.3s ease;
}

/* تحسينات للجوال - الطلبات */
@media (max-width: 768px) {
    .pending-orders-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pending-order-card {
        padding: 15px;
    }

    .orders-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch !important;
    }

    .controls-left {
        flex-direction: column;
        gap: 10px;
    }

    .orders-table-container {
        font-size: 0.8rem;
    }

    .orders-table th,
    .orders-table td {
        padding: 8px 4px;
        min-width: auto;
    }
}
