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

:root {
    --primary-black: #060f04;
    --primary-green: #19d900;
    --secondary-green: #024b02;
    --dark-bg: #12290f;
    --card-bg: #1b391a;
    --silver: #c0c0c0;
    --silver-light: #e8e8e8;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #335f2a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-black);
    color: var(--text-light);
    overflow-x: hidden;
}

/* ============================================
   ANIMATED BACKGROUND WITH CODE
   ============================================ */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-black) 0%, #1a471c 100%);
    z-index: -2;
    overflow: hidden;
}

#codeCanvas {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    opacity: 0.15;
    z-index: -1;
}

.code-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--primary-black) 100%);
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    width: 99%;
    top: 0;
    background: rgba(10, 39, 10, 0.95);
    border-bottom: 2px solid var(--primary-green);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(30, 252, 0, 0.404);
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--silver) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bot-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--primary-green));
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-green);
}

/* ============================================
   LANDING PAGE
   ============================================ */
.landing-page {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 1;
}

.landing-page.active {
    display: block;
    opacity: 1;
}

.landing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
    margin-bottom: 6rem;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-title-box {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.title-gradient {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(36, 217, 0, 0.3));
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Hero Decoration */
.hero-decoration {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decoration-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    z-index: 2;
}

.decoration-circle::before {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    opacity: 0.5;
}

.decoration-lines {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: 30px 30px;
    border-radius: 50%;
    animation: scale 15s ease-in-out infinite;
        z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Buttons */
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-login.primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--primary-black);
    box-shadow: 0 4px 15px rgba(6, 207, 22, 0.534);
    border: 2px solid var(--primary-green);
}

.btn-login.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 217, 0, 0.6);
    background: linear-gradient(135deg, var(--secondary-green) 0%, var(--primary-green) 100%);
}

.btn-login.large {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Features Section */
.features {
    padding: 6rem 0;
    position: relative;
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(26, 33, 57, 0.8) 0%, rgba(42, 63, 95, 0.6) 100%);
    border: 1.5px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(0, 217, 0, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-decoration {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(36, 217, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-decoration {
    opacity: 1;
}

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

/* About Section */
.about {
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-box {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(18, 217, 0, 0.05) 100%);
    border: 2px solid var(--primary-green);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(43, 217, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 1.1rem;
    color: var(--silver);
}

/* CTA Section */
.cta {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(61, 217, 0, 0.1) 0%, rgba(31, 57, 26, 0.8) 100%);
    border: 2px solid var(--primary-green);
    border-radius: 1.5rem;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 163, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

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

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ============================================
   DASHBOARD PAGE
   ============================================ */
.dashboard-page {
    display: none;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.dashboard-page.active {
    display: flex;
}

.dashboard-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #0f270a 0%, #1a3a1c 100%);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: -350px;
    width: 280px;
    height: 90%;
    background: linear-gradient(135deg, #1d2e1a 0%, #1b3e16 100%);
    border-right: 2px solid #19d900;
    box-shadow: 2px 0 15px rgba(18, 217, 0, 0.3);
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    margin-left: 20px;
    transition: 0.3s;
    
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #07d900;
    display: fixed;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 217, 11, 0.13);
    z-index: 100;
}

.sidebar-header h2 {
    margin: 0;
    color: #00d900;
    font-size: 1.5rem;
    font-weight: bold;
}

.sidebar-close {
    display: fixed;
    float: left;
    margin-top: -30px;
    background: none;
    border: none;
    color: #d90e00;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    img {
        width: 40px;
        height: 40px;
        border-radius: 20px;
        margin-top: -10px;
    }
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    padding: 15px 20px;
    background: none;
    border: none;
    border-left: 4px solid transparent;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 0;
}

.nav-item:hover {
    background: rgba(25, 217, 0, 0.1);
    border-left-color: #24d900;
    color: #2bd900;
    padding-left: 25px;
}

.nav-item.active {
    background: rgba(0, 217, 163, 0.15);
    border-left-color: #19d900;
    color: #33d900;
    font-weight: bold;
}

.nav-icon {
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.nav-text {
    flex: 1;
    text-align: right; /* ✅ محاذاة يمين للنص العربي */
}

.logout-btn {
    margin-top: auto;
    background: #ff6b6b;
    color: white;
    border: none;
}

.logout-btn:hover {
    background: #ff5252;
}

/* ============================================
   ✅ المحتوى الرئيسي (Main Content)
   ============================================ */
/* ============================================
   🎨 Authenticated Section - تصميم محسّن
   ألوان: أخضر نيون + أسود
   ============================================ */
.authenticated-section {
    display: flex;
    width: 100%;
    height: 100vh;
    gap: 0;
    background: #000000;
    position: relative;
}

/* ✨ تأثير الإضاءة الخضراء في الخلفية */
.authenticated-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

.authenticated-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    animation: float 10s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

.main-content {
    margin-right: 280px; /* ✅ Sidebar على اليمين */
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: transparent;
    animation: slideInRight 0.5s ease forwards;
    position: relative;
    z-index: 1;
}

/* ============================================
   ✅ محتويات الصفحات
   ============================================ */
.page-content {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   ✅ صفحة الملف الشخصي
   ============================================ */
.profile-header {
    margin-bottom: 30px;
    animation: slideInUp 0.5s ease forwards;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(18, 217, 0, 0.1) 0%, rgba(61, 217, 0, 0.05) 100%);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(25, 217, 0, 0.2);
    backdrop-filter: blur(10px);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #07d900;
    flex-shrink: 0;
}

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

.profile-info h1 {
    margin: 0 0 5px 0;
    color: #ffffff;
    font-size: 1.8rem;
}

.profile-info p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* ============================================
   ✅ إحصائيات المستخدم
   ============================================ */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.1) 0%, rgba(0, 217, 163, 0.05) 100%);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(18, 217, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: slideInUp 0.6s ease forwards;
}

.stat-card h3 {
    margin: 0 0 15px 0;
    color: #cbd5e1;
    font-size: 1.1rem;
}

.level-display {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d9a3 0%, #00b88e 100%);
    margin: 0 auto 15px;
}

.level-number {
    font-size: 2rem;
    font-weight: bold;
    color: black;
}

.xp-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 217, 11, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d9a3 0%, #00b88e 100%);
    transition: width 0.3s ease;
}

.xp-text {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.silver-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffc107;
    text-align: center;
    margin: 20px 0;
}

.silver-text {
    text-align: center;
    color: #94a3b8;
    margin: 0;
}

/* ============================================
   ✅ قسم الراتب اليومي
   ============================================ */
.daily-section {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 193, 7, 0.2);
    text-align: center;
    margin-top: 30px;
}

.daily-section h2 {
    margin: 0 0 15px 0;
    color: #ffc107;
    font-size: 1.5rem;
}

.daily-section .btn-primary {
    margin: 15px auto;
    min-width: 200px;
}

.daily-info {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 10px 0 0 0;
}

/* ============================================
   ✅ قسم السيرفرات
   ============================================ */
.servers-header {
    margin-bottom: 30px;
    animation: slideInDown 0.5s ease forwards;
}

.servers-header h2 {
    margin: 0 0 10px 0;
    color: #00d9a3;
    font-size: 2rem;
}

.servers-header p {
    margin: 0;
    color: #94a3b8;
}


#userEmail {
    display: none;
    }

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.server-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.1) 0%, rgba(0, 217, 163, 0.05) 100%);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 163, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease forwards;
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: #00d9a3;
    box-shadow: 0 10px 30px rgba(0, 217, 163, 0.2);
}

.server-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d9a3 0%, #00b88e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #00d9a3;
}

.server-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-icon-default {
    font-size: 2rem;
    color: white;
}

.server-info {
    text-align: center;
    flex: 1;
}

.server-info h3 {
    margin: 0 0 5px 0;
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-info p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ============================================
   لوحة التحكم الجديدة (عمودين)
   ============================================ */
.server-dashboard-page {
  margin-left: 0;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
  animation: slideInRight 0.5s ease forwards;
}

.dashboard-container {
  display: flex;
  gap: 30px;
  max-width: 1600px;
  margin: 0 auto;
  min-height: 80vh;
}

/* القائمة الجانبية اليمنى */
.dashboard-sidebar {
  width: 280px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(0, 217, 163, 0.2);
  padding: 20px 0;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.sidebar-header {
  padding: 0 20px 15px;
  border-bottom: 1px solid rgba(0, 217, 163, 0.3);
  margin-bottom: 20px;
}

.sidebar-header h2 {
  margin: 0;
  color: #00d9a3;
  font-size: 1.5rem;
  text-align: center;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 12px 20px;
  text-align: right;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-right: 3px solid transparent;
}

.nav-btn i {
  width: 24px;
  font-size: 1.2rem;
}

.nav-btn:hover {
  background: rgba(0, 217, 163, 0.1);
  border-right-color: #00d9a3;
  color: #00d9a3;
}

.nav-group {
  margin: 0;
  padding: 0;
}

.nav-group-toggle {
  margin-bottom: 0;
}

.nav-submenu {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin: 5px 15px 10px 15px;
  overflow: hidden;
}

.subnav-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 10px 20px;
  text-align: right;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.subnav-btn:hover {
  background: rgba(0, 217, 163, 0.1);
  color: #00d9a3;
  padding-right: 30px;
}

/* المحتوى الرئيسي */
.dashboard-main {
  flex: 1;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  border: 1px solid rgba(0, 217, 163, 0.2);
  padding: 30px;
  min-height: 500px;
}

/* لوحة معلومات السيرفر */
.info-panel {
  animation: fadeIn 0.3s ease;
}

.server-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.server-icon-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #00d9a3;
  object-fit: cover;
}

.server-header h1 {
  margin: 0;
  font-size: 2rem;
  color: #00d9a3;
  text-shadow: 0 0 10px rgba(0, 217, 163, 0.3);
}

.server-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
  background: rgba(0, 217, 163, 0.05);
  border-radius: 12px;
  padding: 15px;
  transition: transform 0.2s;
}

.stat-item:hover {
  transform: translateY(-3px);
  background: rgba(0, 217, 163, 0.1);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #00d9a3;
}

/* الألواح المشتركة */
.settings-panel {
  animation: fadeIn 0.3s ease;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 217, 163, 0.2);
}

.panel-header h2 {
  margin: 0;
  color: #00d9a3;
  font-size: 1.5rem;
}

.btn-back-to-info, .btn-back-to-list {
  background: rgba(0, 217, 163, 0.1);
  border: 1px solid #00d9a3;
  color: #00d9a3;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-back-to-info:hover, .btn-back-to-list:hover {
  background: #00d9a3;
  color: #0f0f1e;
  transform: translateX(-3px);
}

/* شبكة الأوامر */
.commands-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.command-card {
  background: linear-gradient(135deg, rgba(0, 217, 163, 0.1) 0%, rgba(0, 217, 163, 0.05) 100%);
  border: 1px solid rgba(0, 217, 163, 0.3);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.command-card:hover {
  transform: translateY(-3px);
  border-color: #00d9a3;
  box-shadow: 0 8px 20px rgba(0, 217, 163, 0.2);
}

.command-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.command-card-icon {
  font-size: 1.5rem;
}

.command-card-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #00d9a3;
}

.command-card-description {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.4;
}

/* نموذج إعدادات الأمر (مثل السابق لكن مستقل) */
.command-settings-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.command-form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 12px;
}

.command-form-section h4 {
  margin: 0;
  color: #00d9a3;
  font-size: 1rem;
}

.command-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
}

.btn-save, .btn-cancel {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.btn-save {
  background: linear-gradient(135deg, #00d9a3 0%, #00b88e 100%);
  color: white;
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 217, 163, 0.4);
}

.btn-cancel {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
}

.btn-cancel:hover {
  background: #ff6b6b;
  color: white;
}

/* إضافات للردود والكلمات داخل الألواح */
#autoreplyContent .form-section,
#badwordsContent .form-section {
  margin-bottom: 30px;
}

#autoreplyContent .items-container,
#badwordsContent .items-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

/* ============================================
   زر فتح/إخفاء القائمة الجانبية للهواتف
   (التصاميم الكاملة في authenticated-styles.css)
   ============================================ */
/* إظهار الزر فقط على الهواتف */
.dashboard-sidebar-toggle {
    display: none;
}

@media (max-width: 768px) {
    .dashboard-sidebar-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 16px;
        margin-bottom: 18px;
        background: linear-gradient(135deg, rgba(0, 255, 65, 0.12) 0%, rgba(0, 0, 0, 0.5) 100%);
        border: 1.5px solid rgba(0, 255, 65, 0.5);
        border-radius: 10px;
        color: #00ff41;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.25s ease;
        box-shadow: 0 0 14px rgba(0, 255, 65, 0.2);
    }
}

.dashboard-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 299;
}

/* شارة الرتبة في بطاقات الردود التلقائية */
.autoreply-role-badge {
    border: 1px solid;
    border-radius: 6px;
    font-size: 0.8em;
    padding: 2px 8px;
}

@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
    position: relative;
  }
  .dashboard-main {
    padding: 20px;
  }
  .server-header {
    flex-direction: column;
    text-align: center;
  }
}
/* ============================================
   ✅ التبويبات
   ============================================ */

.tabs-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(0, 217, 0, 0.2);
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-behavior: smooth;
}

.tabs-navigation::-webkit-scrollbar {
    height: 4px;
}

.tabs-navigation::-webkit-scrollbar-track {
    background: rgba(0, 217, 0, 0.1);
    border-radius: 10px;
}

.tabs-navigation::-webkit-scrollbar-thumb {
    background: #07d900;
    border-radius: 10px;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    color: #00d9a3;
    transform: translateY(-2px);
}

.tab-button.active {
    color: #00d9a3;
    border-bottom-color: #00d9a3;
    box-shadow: 0 2px 10px rgba(0, 217, 36, 0.2);
}

/* ============================================
   ✅ محتوى التبويبات
   ============================================ */

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

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

.tab-header {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(51, 217, 0, 0.1);
}

.tab-header h2 {
    margin: 0 0 10px 0;
    color: #00d9a3;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(0, 217, 163, 0.2);
}

.tab-header p {
    margin: 0;
    color: #94a3b8;
    font-size: 1rem;
}

/* ============================================
   ✅ النماذج
   ============================================ */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-section {
    background: linear-gradient(135deg, rgba(0, 217, 0, 0.08) 0%, rgba(0, 217, 163, 0.03) 100%);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(7, 217, 0, 0.2);
    margin-bottom: 40px;
    animation: slideInUp 0.5s ease forwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-section h3 {
    margin: 0 0 25px 0;
    color: #00d9a3;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    background: rgba(15, 15, 30, 0.6);
    border: 1.5px solid rgba(36, 217, 0, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #12d900;
    background: rgba(0, 217, 163, 0.08);
    box-shadow: 0 0 15px rgba(0, 217, 163, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group small {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ============================================
   ✅ قائمة العناصر
   ============================================ */

.items-list {
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.05) 0%, rgba(0, 217, 163, 0.02) 100%);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(43, 217, 0, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.items-list h3 {
    margin: 0 0 25px 0;
    color: #cbd5e1;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.item-card {
    background: linear-gradient(135deg, rgba(0, 217, 11, 0.12) 0%, rgba(0, 217, 163, 0.05) 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(18, 217, 0, 0.3);
    animation: slideInUp 0.3s ease forwards;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d9a3 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-card:hover {
    border-color: #07d900;
    box-shadow: 0 8px 25px rgba(0, 217, 11, 0.15);
    transform: translateY(-5px);
}

.item-card:hover::before {
    opacity: 1;
}

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

.item-header h4 {
    margin: 0;
    color: #00d9a3;
    font-size: 1.1rem;
    flex: 1;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-badge {
    background: linear-gradient(135deg, rgba(0, 217, 18, 0.2) 0%, rgba(0, 217, 163, 0.1) 100%);
    color: #24d900;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    border: 1px solid rgba(7, 217, 0, 0.3);
    font-weight: 600;
}

.item-description,
.item-response {
    margin: 12px 0;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
}

.item-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-danger {
    flex: 1;
    min-width: 120px;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
    color: #ff6b6b;
    border: 1.5px solid #ff6b6b;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-danger.btn-sm {
    font-size: 0.85rem;
    padding: 8px 12px;
    min-width: auto;
}

.empty-state {
    text-align: center;
    color: #94a3b8;
    padding: 60px 20px;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* ============================================
   ✅ الأزرار الأساسية
   ============================================ */

.btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, #00d9a3 0%, #00b88e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(18, 217, 0, 0.4);
    background: linear-gradient(135deg, #00b809 0%, #00a000 100%);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   ✅ Responsive - الهاتف والتابليت
   ============================================ */

@media (max-width: 1024px) {
    .server-dashboard-page {
        padding: 20px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

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

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

    .items-container {
        grid-template-columns: 1fr;
    }

    .tab-button {
        font-size: 0.95rem;
        padding: 10px 16px;
    }
}

@media only screen and (max-width: 768px) {
    .server-dashboard-page {
        padding: 15px;
        min-height: auto;
    }

    .navbar{
        width: 100%;
        position: fixed;
    }
    .nav-brand{
        margin-right: -900px;
        padding: 2px;

    }
    .nav-links{
        display: fixed;
        gap: 0.2rem;
    }
    .nav-link{
       color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.1rem 0.2rem;
    border-radius: 0px;

    
    }
    #loginBtn{
        padding: 10px;
        margin-left: -30px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 20px;
    }

    .btn-back {
        width: 100%;
        justify-content: center;
    }

    .dashboard-header h1 {
        font-size: 1.8rem;
    }

    .tabs-navigation {
        gap: 8px;
        margin-bottom: 25px;
    }

    .tab-button {
        font-size: 0.9rem;
        padding: 10px 14px;
    }

    .form-section {
        padding: 20px;
        margin-bottom: 25px;
    }

    .form-section h3 {
        font-size: 1.2rem;
    }

    .form-grid {
        gap: 15px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 11px 12px;
        font-size: 0.9rem;
    }

    .items-list {
        padding: 20px;
    }

    .item-card {
        padding: 15px;
    }

    .item-header {
        flex-direction: column;
        gap: 8px;
    }

    .item-header h4 {
        font-size: 1rem;
    }

    .btn-danger {
        min-width: 100px;
        padding: 9px 12px;
        font-size: 0.85rem;
    }

    .tab-header h2 {
        font-size: 1.5rem;
    }

    .tab-header p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .server-dashboard-page {
        padding: 10px;
    }

    .dashboard-header {
        gap: 10px;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .tabs-navigation {
        gap: 5px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-button {
        font-size: 0.8rem;
        padding: 8px 10px;
        gap: 4px;
    }

    .tab-button span {
        font-size: 0.9rem;
        margin-right: 4px !important;
    }

    .form-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .form-section h3 {
        font-size: 1.1rem;
        gap: 6px;
    }

    .form-group {
        gap: 6px;
    }

    .items-container {
        gap: 15px;
    }

    .item-card {
        padding: 12px;
    }

    .item-header h4 {
        font-size: 0.95rem;
    }

    .item-description,
    .item-response {
        font-size: 0.85rem;
    }

    .btn-danger {
        padding: 8px 10px;
        font-size: 0.8rem;
        min-width: 90px;
    }

    .btn-primary {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
    }
}

/* ✅ أضف هذه الأنماط في نهاية الملف */

/* ============================================
   ✅ تأثيرات النموذج الإضافية
   ============================================ */

.command-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, rgba(27, 57, 26, 0.95) 0%, rgba(57, 95, 42, 0.9) 100%);
    border: 1px solid rgba(0, 217, 0, 0.3);
    border-radius: 15px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(61, 217, 0, 0.3);
    animation: slideInUp 0.3s ease forwards;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid rgba(25, 217, 0, 0.2);
    background: linear-gradient(135deg, rgba(25, 217, 0, 0.1) 0%, transparent 100%);
}

.modal-header h3 {
    margin: 0;
    color: #00d9a3;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: #00d9a3;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-close:hover {
    background: rgba(18, 217, 0, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

.modal-body .form-section h4 {
    margin: 0 0 15px 0;
    color: #07d900;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body .form-group label {
    color: #cbd5e1;
    font-weight: 600;
    display: block;
}

/* ============================================
   ✅ بطاقات الأوامر
   ============================================ */

.command-card {
    background: linear-gradient(135deg, rgba(7, 217, 0, 0.12) 0%, rgba(0, 217, 11, 0.05) 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 217, 163, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: visible; /* ✅ تغيير من hidden */
    position: relative;
    margin-bottom: 10px;
}

.command-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d9a3 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.command-card:hover {
    border-color: #00d900;
    box-shadow: 0 8px 25px rgba(0, 217, 11, 0.15);
    transform: translateY(-2px);
}

.command-card:hover::before {
    opacity: 1;
}

.command-card.expanded {
    border-color: #00d924;
    box-shadow: 0 8px 25px rgba(0, 217, 11, 0.15);
    background: linear-gradient(135deg, rgba(43, 217, 0, 0.2) 0%, rgba(43, 217, 0, 0.1) 100%);
    /* ✅ أزل height وأنماط التحديد القديمة */
}

/* ✅ رأس الأمر */
.command-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
    flex-wrap: wrap;
    cursor: pointer;
    padding: 0; /* ✅ إزالة الحشوة */
}

.command-card-header:hover {
    color: #00d9a3;
}

.command-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00d9a3;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    word-break: break-word;
}

.command-card-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.command-card-status.enabled {
    background: rgba(36, 217, 0, 0.2);
    color: #19d900;
    border: 1px solid rgba(18, 217, 0, 0.3);
}

.command-card-description {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 10px;
    line-height: 1.4;
}

.command-card-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 217, 163, 0.1);
}

.command-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(0, 217, 11, 0.1);
    border: 1px solid rgba(7, 217, 0, 0.2);
    border-radius: 4px;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* ============================================
   ✅ القسم المتوسع (التفاصيل) - محسّن
   ============================================ */

.command-details {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 217, 163, 0.08);
    border-radius: 10px;
    border-left: 3px solid #00d90b;
    max-height: auto; /* ✅ تغيير: اسمح بأي ارتفاع */
    overflow: visible; /* ✅ تغيير: اعرض المحتوى الإضافي */
    animation: slideDown 0.3s ease forwards;
}

.command-details.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ✅ النموذج داخل التفاصيل - محسّن
   ============================================ */

.command-settings-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.command-form-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.command-form-section h4 {
    margin: 0;
    color: #00d9a3;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.command-form-section label {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.command-form-section label:hover {
    background: rgba(7, 217, 0, 0.1);
}

.command-form-section input[type="text"],
.command-form-section input[type="checkbox"],
.command-form-section input[type="radio"] {
    cursor: pointer;
    accent-color: #00d9a3;
}

.command-form-section input[type="text"] {
    padding: 10px 12px;
    background: rgba(15, 15, 30, 0.6);
    border: 1.5px solid rgba(18, 217, 0, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.command-form-section input[type="text"]:focus {
    border-color: #07d900;
    background: rgba(0, 217, 163, 0.08);
    box-shadow: 0 0 15px rgba(0, 217, 163, 0.2);
    outline: none;
}

/* ✅ حاوية الرتب المخصصة */
#customRolesContainer {
    margin-top: 15px;
    display: none;
}

#rolesCheckboxes {
    display: grid;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 217, 163, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 217, 0, 0.2);
}

#rolesCheckboxes label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#rolesCheckboxes label:hover {
    background: rgba(7, 217, 0, 0.1);
}

/* ============================================
   ✅ أزرار الحفظ والإلغاء
   ============================================ */

.command-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center; /* ✅ توسيط الأزرار */
}

.command-actions button {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.command-actions .btn-save {
    background: linear-gradient(135deg, #00d900 0%, #00b81f 100%);
    color: white;
}

.command-actions .btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 217, 163, 0.4);
}

.command-actions .btn-cancel {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
    color: #ff6b6b;
    border: 1.5px solid #ff6b6b;
}

.command-actions .btn-cancel:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* ============================================
   ✅ حاوية الشبكة للأوامر
   ============================================ */

.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px; /* ✅ إضافة مسافات بين الأوامر */
}

/* ✅ Responsive */
@media (max-width: 768px) {
    .command-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .command-settings-form {
        grid-template-columns: 1fr;
    }

    .command-actions {
        flex-direction: column;
    }

    .command-actions button {
        width: 100%;
    }

    .items-container {
        grid-template-columns: 1fr;
    }
}

#d1{
    width: 100%;
    height: 40px;
    box-shadow: 0px 0px 25px #00a077;
    
}
#d1 div a{
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    position: relative;
float: left;
margin-top: -35px;
margin-left: 20px;
}



#d1 div a:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

#d1 div a:hover::after {
    width: 100%;
}

#d1 div a:hover {
    color: var(--primary-green);
}

#p{
    margin-top: 100px;
    font-weight: bold;
    
}

#sv{
    width: 300px;
    height: 300px;
    box-shadow: 0px 0px 25px #00a008;
    border-radius: 50%;
    margin-right: 100px;
    margin-top: 120px;
    z-index: 2;
    position: absolute;
    opacity: 1.0;
}
.loading-spinner{
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 6, 10, 0.55);
    backdrop-filter: blur(3px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}
.loading-spinner.active{
    opacity: 1;
    visibility: visible;
}
.loading-spinner .spinner{
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 8px solid rgba(255,255,255,0.12);
    border-top-color: #00ffd7;
    animation: spinner-rotate 0.9s linear infinite;
    box-shadow: 0 6px 20px rgba(0,0,0,0.45), inset 0 -6px 10px rgba(0,0,0,0.08);
}
@keyframes spinner-rotate{
    to { transform: rotate(360deg); }
}
  

.command-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center; /* ✅ توسيط الأزرار */
}

.command-actions button {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.command-actions .btn-save {
    background: linear-gradient(135deg, #00d900 0%, #00b81f 100%);
    color: white;
}

.command-actions .btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 217, 163, 0.4);
}

.command-actions .btn-cancel {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
    color: #ff6b6b;
    border: 1.5px solid #ff6b6b;
}

.command-actions .btn-cancel:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* ============================================
   ✅ حاوية الشبكة للأوامر
   ============================================ */

.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px; /* ✅ إضافة مسافات بين الأوامر */
}

/* ✅ Responsive */
@media (max-width: 768px) {
    .command-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .command-settings-form {
        grid-template-columns: 1fr;
    }

    .command-actions {
        flex-direction: column;
    }

    .command-actions button {
        width: 100%;
    }

    .items-container {
        grid-template-columns: 1fr;
    }
}

#d1{
    width: 100%;
    height: 40px;
    box-shadow: 0px 0px 25px #00a077;
    
}
#d1 div a{
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    position: relative;
float: left;
margin-top: -35px;
margin-left: 20px;
}



#d1 div a:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

#d1 div a:hover::after {
    width: 100%;
}

#d1 div a:hover {
    color: var(--primary-green);
}

#p{
    margin-top: 100px;
    font-weight: bold;
    
}

#sv{
    width: 300px;
    height: 300px;
    box-shadow: 0px 0px 25px #00a008;
    border-radius: 50%;
    margin-right: 100px;
    margin-top: 120px;
    z-index: 2;
    position: absolute;
    opacity: 1.0;
}
.loading-spinner{
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 6, 10, 0.55);
    backdrop-filter: blur(3px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}
.loading-spinner.active{
    opacity: 1;
    visibility: visible;
}
.loading-spinner .spinner{
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 8px solid rgba(255,255,255,0.12);
    border-top-color: #00ffd7;
    animation: spinner-rotate 0.9s linear infinite;
    box-shadow: 0 6px 20px rgba(0,0,0,0.45), inset 0 -6px 10px rgba(0,0,0,0.08);
}
@keyframes spinner-rotate{
    to { transform: rotate(360deg); }
}


/* ============================================
   نظام الإشعارات المحسّن
   ============================================ */
#notificationContainer {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0,217,163,0.1), rgba(0,217,163,0.05));
    border: 2px solid #00d9a3;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 217, 163, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
    animation: bounce 0.6s ease;
}

.notification-message {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

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

/* تحسين زر الراتب اليومي */
#claimDailyBtn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#claimDailyBtn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 163, 0.4);
}

#claimDailyBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#claimDailyBtn:active:not(:disabled) {
    transform: translateY(0);
}

@media (max-width: 768px) {
    #notificationContainer {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 12px 16px;
    }
    
    .notification-icon {
        font-size: 20px;
    }
    
    .notification-message {
        font-size: 14px;
    }
}


/* ============================================
   🎨 تصاميم محسّنة - أخضر نيون (#00ff41) + أسود
   ============================================ */

/* ✅ Authenticated Section - خلفية سوداء مع إضاءة */
.authenticated-section {
    background: #000000 !important;
    position: relative;
}

/* ✨ إضاءة خضراء نيون متحركة */
.authenticated-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.25) 0%, transparent 70%);
    filter: blur(100px);
    animation: glow-float 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.authenticated-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    animation: glow-float 10s ease-in-out infinite reverse;
    z-index: 0;
    pointer-events: none;
}

@keyframes glow-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

/* ✅ Sidebar - أخضر نيون */
.sidebar {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(10, 25, 10, 0.98) 100%) !important;
    border-left: 2px solid rgba(0, 255, 65, 0.5) !important;
    box-shadow: -5px 0 40px rgba(0, 255, 65, 0.4), inset 1px 0 0 rgba(0, 255, 65, 0.2) !important;
}

.sidebar-header {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.2) 0%, transparent 100%) !important;
    border-bottom: 1px solid rgba(0, 255, 65, 0.4) !important;
}

.sidebar-header h2 {
    color: #00ff41 !important;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.sidebar-close img {
    border-color: #00ff41 !important;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
}

/* ✅ Nav Items */
.nav-item {
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #00ff41;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background: rgba(0, 255, 65, 0.15) !important;
    border-left-color: rgba(0, 255, 65, 0.5) !important;
    color: #00ff41 !important;
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.2);
}

.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-item.active {
    background: rgba(0, 255, 65, 0.25) !important;
    border-left-color: #00ff41 !important;
    color: #00ff41 !important;
    box-shadow: 0 5px 25px rgba(0, 255, 65, 0.4);
    font-weight: 700;
}

.nav-item.active::before {
    transform: scaleY(1);
}

/* ✅ Main Content */
.main-content {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

/* ✅ Profile Card */
.profile-card {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.15) 0%, rgba(0, 255, 65, 0.08) 100%) !important;
    border: 2px solid rgba(0, 255, 65, 0.4) !important;
    box-shadow: 0 8px 32px rgba(0, 255, 65, 0.3), inset 0 1px 0 rgba(0, 255, 65, 0.3) !important;
}

.profile-avatar {
    border-color: #00ff41 !important;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.7);
    position: relative;
}

.profile-avatar::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ff41, transparent);
    animation: rotate-glow 3s linear infinite;
    z-index: -1;
}

@keyframes rotate-glow {
    to { transform: rotate(360deg); }
}

.profile-info h1 {
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

/* ✅ Stat Cards */
.stat-card {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.12) 0%, rgba(0, 255, 65, 0.05) 100%) !important;
    border: 2px solid rgba(0, 255, 65, 0.35) !important;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.15) 0%, transparent 70%);
    filter: blur(30px);
}

.stat-card:hover {
    border-color: #00ff41 !important;
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.4) !important;
    transform: translateY(-5px);
}

.level-display {
    background: linear-gradient(135deg, #00ff41, #00cc33) !important;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
}

.level-number {
    background: linear-gradient(135deg, #00ff41, #00cc33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem !important;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.xp-bar {
    background: rgba(0, 255, 65, 0.15) !important;
}

.xp-fill {
    background: linear-gradient(90deg, #00ff41, #00cc33) !important;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.8) !important;
}

.silver-amount {
    background: linear-gradient(135deg, #00ff41, #00cc33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ✅ Daily Section */
.daily-section {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.15) 0%, rgba(0, 255, 65, 0.08) 100%) !important;
    border: 2px solid rgba(0, 255, 65, 0.4) !important;
    box-shadow: 0 8px 32px rgba(0, 255, 65, 0.3);
}

.daily-section h2 {
    color: #00ff41 !important;
}

#dailyBtn,
#claimDailyBtn {
    background: linear-gradient(135deg, #00ff41, #00cc33) !important;
    color: #000000 !important;
    box-shadow: 0 5px 25px rgba(0, 255, 65, 0.5) !important;
    position: relative;
    overflow: hidden;
}

#dailyBtn::before,
#claimDailyBtn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#dailyBtn:hover::before,
#claimDailyBtn:hover::before {
    width: 300px;
    height: 300px;
}

#dailyBtn:hover,
#claimDailyBtn:hover {
    box-shadow: 0 8px 35px rgba(0, 255, 65, 0.7) !important;
}

/* ✅ Server Cards */
.server-card {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.12) 0%, rgba(0, 255, 65, 0.05) 100%) !important;
    border: 2px solid rgba(0, 255, 65, 0.35) !important;
}

.server-card:hover {
    border-color: #00ff41 !important;
    box-shadow: 0 12px 40px rgba(0, 255, 65, 0.5) !important;
}

.server-icon {
    border-color: #00ff41 !important;
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.6);
}

/* ✅ Dashboard Sidebar */
.dashboard-sidebar {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 20, 10, 0.9) 100%) !important;
    border: 2px solid rgba(0, 255, 65, 0.35) !important;
    box-shadow: 0 8px 40px rgba(0, 255, 65, 0.3);
}

.dashboard-sidebar .sidebar-header h2 {
    color: #00ff41 !important;
}

.nav-btn:hover {
    background: rgba(0, 255, 65, 0.15) !important;
    border-right-color: #00ff41 !important;
    color: #00ff41 !important;
}

/* ✅ Dashboard Main */
.dashboard-main {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%) !important;
    border: 2px solid rgba(0, 255, 65, 0.25) !important;
}

.server-header h1 {
    color: #00ff41 !important;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.server-icon-large {
    border-color: #00ff41 !important;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
}

.stat-value {
    color: #00ff41 !important;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

/* ✅ Command Cards */
.command-card {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.12) 0%, rgba(0, 255, 65, 0.06) 100%) !important;
    border: 2px solid rgba(0, 255, 65, 0.3) !important;
}

.command-card:hover {
    border-color: #00ff41 !important;
    box-shadow: 0 8px 30px rgba(0, 255, 65, 0.4) !important;
}

.command-card.expanded {
    border-color: #00ff41 !important;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.2) 0%, rgba(0, 255, 65, 0.12) 100%) !important;
}

.command-card-name {
    color: #00ff41 !important;
}

.command-details {
    background: rgba(0, 255, 65, 0.1) !important;
    border-left-color: #00ff41 !important;
}

/* ✅ Buttons */
.btn-primary {
    background: linear-gradient(135deg, #00ff41, #00cc33) !important;
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.4) !important;
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 8px 30px rgba(0, 255, 65, 0.6) !important;
}

.btn-save {
    background: linear-gradient(135deg, #00ff41, #00cc33) !important;
}

.btn-save:hover {
    box-shadow: 0 8px 30px rgba(0, 255, 65, 0.5) !important;
}

/* ✅ Form Elements */
.form-section {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1) 0%, rgba(0, 255, 65, 0.05) 100%) !important;
    border: 2px solid rgba(0, 255, 65, 0.3) !important;
}

.form-section h3 {
    color: #00ff41 !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #00ff41 !important;
    background: rgba(0, 255, 65, 0.1) !important;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3) !important;
}

/* ✅ Item Cards */
.item-card {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.15) 0%, rgba(0, 255, 65, 0.08) 100%) !important;
    border: 2px solid rgba(0, 255, 65, 0.35) !important;
}

.item-card:hover {
    border-color: #00ff41 !important;
    box-shadow: 0 8px 30px rgba(0, 255, 65, 0.35) !important;
}

.item-header h4 {
    color: #00ff41 !important;
}

.item-badge {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.25) 0%, rgba(0, 255, 65, 0.15) 100%) !important;
    color: #00ff41 !important;
    border-color: rgba(0, 255, 65, 0.4) !important;
}

/* ✅ Tabs */
.tab-button.active {
    color: #00ff41 !important;
    border-bottom-color: #00ff41 !important;
    box-shadow: 0 2px 15px rgba(0, 255, 65, 0.4) !important;
}

.tab-button:hover {
    color: #00ff41 !important;
}

/* ✅ Headers */
.tab-header h2,
.panel-header h2,
.servers-header h2 {
    color: #00ff41 !important;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

/* ✅ Shimmer Effect على Progress Bars */
.xp-bar::after,
.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer-effect 2s infinite;
}

@keyframes shimmer-effect {
    to { transform: translateX(100%); }
}


/* ============================================
   عناصر الشريط الجانبي الجديد (الملف الشخصي + السيرفرات)
   ============================================ */

/* الملف الشخصي المصغر في الشريط الجانبي */
.sidebar-profile {
    padding: 22px 15px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 12px;
    margin: 10px 10px 0;
    border: 1px solid transparent;
}

.sidebar-profile:hover {
    background: rgba(0, 255, 65, 0.08);
    border-color: rgba(0, 255, 65, 0.3);
}

.sidebar-profile-active {
    background: rgba(0, 255, 65, 0.15) !important;
    border-color: rgba(0, 255, 65, 0.5) !important;
}

.sidebar-avatar-small {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 65, 0.6);
    box-shadow: 0 0 18px rgba(0, 255, 65, 0.45);
    object-fit: cover;
    transition: box-shadow 0.3s;
}

.sidebar-profile:hover .sidebar-avatar-small {
    box-shadow: 0 0 28px rgba(0, 255, 65, 0.7);
}

.sidebar-avatar-fallback {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(0, 255, 65, 0.15);
    border: 2px solid rgba(0, 255, 65, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff41;
    font-size: 1.5rem;
}

.sidebar-username-text {
    color: #e0e0e0;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    letter-spacing: 0.02em;
}

/* خط فاصل */
.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.5), transparent);
    margin: 8px 15px;
    flex-shrink: 0;
}

/* قائمة السيرفرات */
.sidebar-servers-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 65, 0.3) transparent;
}

.sidebar-servers-list::-webkit-scrollbar {
    width: 4px;
}

.sidebar-servers-list::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-servers-list::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, 0.3);
    border-radius: 2px;
}

/* عنصر سيرفر واحد */
.sidebar-server-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.sidebar-server-item:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: rgba(0, 255, 65, 0.35);
    transform: translateX(-3px);
}

.sidebar-server-item.active {
    background: rgba(0, 255, 65, 0.2) !important;
    border-color: #00ff41 !important;
    box-shadow: 0 3px 15px rgba(0, 255, 65, 0.25);
}

.sidebar-server-item img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 65, 0.35);
    object-fit: cover;
    flex-shrink: 0;
    transition: border-color 0.25s;
}

.sidebar-server-item:hover img,
.sidebar-server-item.active img {
    border-color: #00ff41;
}

.sidebar-server-default {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 255, 65, 0.15);
    border: 2px solid rgba(0, 255, 65, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #00ff41;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-server-name {
    color: #d0d0d0;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.sidebar-loading-text,
.sidebar-empty-text {
    color: #94a3b8;
    font-size: 0.8rem;
    text-align: center;
    padding: 12px 8px;
}

/* زر تسجيل الخروج */
.sidebar-logout-btn {
    width: calc(100% - 20px);
    margin: 8px 10px 12px;
    padding: 11px 18px;
    background: rgba(255, 65, 65, 0.1);
    border: 1px solid rgba(255, 65, 65, 0.3);
    border-radius: 10px;
    color: #ff5555;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.sidebar-logout-btn:hover {
    background: rgba(255, 65, 65, 0.2);
    border-color: #ff5555;
    box-shadow: 0 3px 15px rgba(255, 65, 65, 0.25);
}

/* لوحة تحكم السيرفر داخل المنطقة المركزية */
#server-dashboard-tab .dashboard-container {
    min-height: calc(100vh - 70px);
    max-width: 100%;
}

/* إصلاح تمرير الشريط الجانبي - منع تمرير الكل وتمرير قائمة السيرفرات فقط */
.authenticated-section .sidebar {
    overflow: hidden;
}

.sidebar-profile { flex-shrink: 0; }
.sidebar-divider { flex-shrink: 0; }
.sidebar-servers-list { min-height: 0; } /* ضروري لتمرير flex */

/* ============================================
   ✅ مكونات البحث عن الرتب
   ============================================ */

.searchable-role-select,
.searchable-role-multiselect {
    position: relative;
    width: 100%;
}

.role-search-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(15, 15, 30, 0.6);
    border: 1.5px solid rgba(0, 217, 163, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.role-search-input:focus {
    border-color: #00ff41;
    background: rgba(0, 217, 163, 0.08);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
    outline: none;
}

.role-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f0f1a;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.role-dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    color: #cbd5e1;
}

.role-dropdown-item:hover {
    background: rgba(0, 255, 65, 0.1);
}

.role-dropdown-item.no-result {
    color: #ff6b6b;
    text-align: center;
    cursor: default;
}

.role-dropdown-item.no-result:hover {
    background: transparent;
}

.selected-role-container,
.role-chips-container {
    margin-top: 12px;
    min-height: 50px;
}

.selected-role-chip,
.role-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 65, 0.15);
    border: 1px solid rgba(0, 255, 65, 0.4);
    border-radius: 20px;
    padding: 6px 12px;
    margin: 4px 6px 4px 0;
    font-size: 0.85rem;
}

.remove-role-chip {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: background 0.2s;
}

.remove-role-chip:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff5252;
}

.no-role-selected {
    color: #94a3b8;
    font-size: 0.85rem;
    font-style: italic;
}

/* شريط البحث في الأوامر */
.command-search-container {
    margin: 0 0 20px 0;
    padding: 0;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.command-search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    background: rgba(15, 15, 30, 0.6);
    border: 1.5px solid rgba(0, 217, 163, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.command-search-input:focus {
    border-color: #00ff41;
    background: rgba(0, 217, 163, 0.08);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.search-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
    .search-wrapper {
        max-width: 100%;
    }
}

.command-roles-container {
    margin-top: 10px;
}

.searchable-role-multiselect.command-role-multiselect {
    width: 100%;
}
ip {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: background 0.2s;
}

.remove-role-chip:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff5252;
}

.no-role-selected {
    color: #94a3b8;
    font-size: 0.85rem;
    font-style: italic;
}

/* شريط البحث في الأوامر */
.command-search-container {
    margin: 0 0 20px 0;
    padding: 0;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.command-search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    background: rgba(15, 15, 30, 0.6);
    border: 1.5px solid rgba(0, 217, 163, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.command-search-input:focus {
    border-color: #00ff41;
    background: rgba(0, 217, 163, 0.08);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.search-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
    .search-wrapper {
        max-width: 100%;
    }
}

.command-roles-container {
    margin-top: 10px;
}

.searchable-role-multiselect.command-role-multiselect {
    width: 100%;
}
/* شارة تقييد القناة في بطاقة الأمر */
.channel-restriction-badge {
    background: rgba(255, 193, 7, 0.15) !important;
    border-color: #ffc107 !important;
    color: #ffc107 !important;
}

/* حاويات القنوات في إعدادات الأمر */
.command-channels-container {
    margin-top: 8px;
}

.command-channels-container .searchable-role-multiselect {
    width: 100%;
}

/* تنسيق لوحة المتصدرين */
#leaderboard-container {
    animation: fadeIn 0.3s ease;
}

.leaderboard-header {
    margin-bottom: 30px;
}

.btn-back-to-profile:hover {
    background: #00d9a3 !important;
    color: #0f0f1e !important;
    transform: translateX(-3px);
}

/* تنسيق الجدول */
#leaderboardContent table tr:hover {
    background: rgba(0, 255, 65, 0.05);
    transform: scale(1.01);
}

#leaderboardContent table td,
#leaderboardContent table th {
    transition: all 0.2s ease;
}
/* تحسين نموذج إضافة مكافأة المستوى */
.level-reward-add-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    margin-top: 15px;
}

.level-reward-add-form .level-input-group {
    flex: 1;
    min-width: 100px;
}

.level-reward-add-form .role-input-group {
    flex: 2;
    min-width: 180px;
}

.level-reward-add-form .add-btn-group {
    flex-shrink: 0;
}

/* تحسين حاوية اختيار الرتبة */
.role-select-wrapper {
    width: 100%;
}

/* تحسين عنصر البحث عن الرتبة ليكون مناسباً للهواتف */
.searchable-role-select {
    width: 100%;
}

.role-search-input {
    width: 100%;
    padding: 12px;
    font-size: 16px; /* منع تكبير الخط على iOS */
    border-radius: 8px;
    background: #0f0f1a;
    border: 1px solid #2d2d3a;
    color: #cbd5e1;
}

/* تحسين زر الرجوع */
.btn-back {
    background: rgba(0, 217, 163, 0.1);
    border: 1px solid #00d9a3;
    color: #00d9a3;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(0, 217, 163, 0.2);
    transform: translateX(-3px);
}

/* رأس اللوحة */
.dashboard-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.dashboard-header h2 {
    margin: 0;
    color: #00d9a3;
}

/* تحسين الجداول والقوائم على الهواتف */
@media (max-width: 768px) {
    .level-reward-add-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .level-reward-add-form .level-input-group,
    .level-reward-add-form .role-input-group,
    .level-reward-add-form .add-btn-group {
        width: 100%;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-back {
        margin-bottom: 10px;
    }
}

.premium-badge {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 8px;
    vertical-align: middle;
}

/* تنسيق سجل التحويلات */
.transactions-header {
    margin-bottom: 30px;
}
.transactions-header h2 {
    color: #00ff41;
    margin-bottom: 10px;
}
.transactions-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.transaction-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.08), rgba(0, 255, 65, 0.02));
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 16px;
    padding: 16px 20px;
    gap: 16px;
    transition: all 0.3s ease;
}
.transaction-card:hover {
    transform: translateX(-5px);
    background: rgba(0, 255, 65, 0.12);
    border-color: #00ff41;
}
.transaction-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}
.transaction-details {
    flex: 2;
}
.transaction-type {
    font-weight: bold;
    color: #00ff41;
    margin-bottom: 4px;
}
.transaction-meta {
    font-size: 0.75rem;
    color: #94a3b8;
}
.transaction-reason, .transaction-related {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-top: 4px;
}
.transaction-amount {
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 100px;
    text-align: left;
}
.transaction-amount.positive { color: #00ff41; }
.transaction-amount.negative { color: #ff6b6b; }
.transaction-balance {
    font-size: 0.85rem;
    color: #94a3b8;
    min-width: 120px;
    text-align: left;
}
.transaction-card.success { border-right: 4px solid #00ff41; }
.transaction-card.danger { border-right: 4px solid #ff6b6b; }
.transaction-card.info { border-right: 4px solid #3b82f6; }
.transaction-card.neutral { border-right: 4px solid #ffc107; }

.transactions-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.pagination-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}
.btn-pagination {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    padding: 8px 16px;
    border-radius: 8px;
    color: #00ff41;
    cursor: pointer;
    transition: 0.2s;
}
.btn-pagination:hover {
    background: #00ff41;
    color: black;
}
.pagination-info {
    color: #cbd5e1;
}

/* ============================================
   تحسينات قسم إدارة السجلات
   ============================================ */
.logs-panel-container {
    padding: 10px 0;
}

.logs-header {
    margin-bottom: 25px;
}

.logs-header h3 {
    color: #00ff41;
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logs-header p {
    color: #94a3b8;
    font-size: 1rem;
}

/* شريط البحث والتصفية */
.logs-filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    background: rgba(15, 15, 30, 0.6);
    border: 1.5px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-box input:focus {
    border-color: #00ff41;
    background: rgba(0, 217, 163, 0.08);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tab {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 20px;
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: #00ff41;
    color: #00ff41;
}

.filter-tab.active {
    background: #00ff41;
    border-color: #00ff41;
    color: #000;
    font-weight: bold;
}

/* حاوية البطاقات */
.logs-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    overflow: visible !important;
    gap: 20px;
    margin-top: 10px;
}

.log-card {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.08) 0%, rgba(0, 255, 65, 0.02) 100%);
    overflow: visible !important;
    border: 1.5px solid rgba(0, 255, 65, 0.25);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.log-card:hover {
    border-color: #00ff41;
    box-shadow: 0 8px 25px rgba(0, 255, 65, 0.2);
    transform: translateY(-3px);
}

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

.log-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.log-icon {
    font-size: 1.8rem;
    width: 40px;
    text-align: center;
}

.log-info h4 {
    margin: 0 0 4px 0;
    color: #00ff41;
    font-size: 1.1rem;
}

.log-category {
    font-size: 0.8rem;
    color: #94a3b8;
    background: rgba(0, 255, 65, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
}

.log-card-body {
    display: flex;
    gap: 10px;
    overflow: visible !important;
    align-items: center;
    margin-top: 15px;
}

.log-channel-select {
    flex: 1;
    padding: 10px 12px;
    background: rgba(15, 15, 30, 0.6);
    border: 1.5px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.log-channel-select:focus {
    border-color: #00ff41;
}

.btn-save-log {
    background: #00ff41;
    border: none;
    color: #000;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-save-log:hover {
    background: #00cc33;
    transform: scale(1.02);
}

.btn-save-log i {
    font-size: 0.9rem;
}

/* مفتاح التبديل (Switch) */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 34px;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
    background-color: #94a3b8;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #00ff41;
    border-color: #00ff41;
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: #000;
}

/* تحسينات للهواتف */
@media (max-width: 768px) {
    .logs-cards-container {
        grid-template-columns: 1fr;
    }

    .logs-header h3 {
        font-size: 1.5rem;
    }

    .filter-tabs {
        overflow-x: auto;
        padding-bottom: 5px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tab {
        white-space: nowrap;
    }

    .log-card-body {
        flex-wrap: wrap;
    }

    .btn-save-log {
        width: 100%;
        justify-content: center;
    }
}

.channel-search-wrapper {
    flex: 1;
    position: relative;
}

.log-channel-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(15, 15, 30, 0.6);
    border: 1.5px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.log-channel-input:focus {
    border-color: #00ff41;
    background: rgba(0, 217, 163, 0.08);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.log-channel-input::placeholder {
    color: #64748b;
    font-size: 0.85rem;
}

/* مكون البحث عن القنوات - مشابه لمكون البحث عن الرتب */
.searchable-channel-select {
    position: relative;
    width: 100%;
    flex: 1;
}

.searchable-channel-select i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ff41;
    pointer-events: none;
    font-size: 0.9rem;
    opacity: 0.7;
}

.log-channel-input {
    width: 100%;
    padding: 10px 35px 10px 12px;
    background: rgba(15, 15, 30, 0.6);
    border: 1.5px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.log-channel-input:focus {
    border-color: #00ff41;
    background: rgba(0, 217, 163, 0.08);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.log-channel-input::placeholder {
    color: #64748b;
    font-size: 0.85rem;
}


.channel-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    max-height: 250px !important;
    overflow-y: auto !important;
    background: #0f0f1a !important;
    border: 1px solid rgba(0, 255, 65, 0.3) !important;
    border-radius: 8px !important;
    z-index: 9999 !important;
    margin-top: 5px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7) !important;
}

.channel-dropdown-item {
    padding: 10px 15px !important;
    cursor: pointer !important;
    color: #cbd5e1 !important;
    transition: background 0.2s !important;
}

.channel-dropdown-item:hover {
    background: rgba(0, 255, 65, 0.1) !important;
    color: #00ff41 !important;
}

/* إصلاح ظل القائمة المنسدلة ليكون فوق البطاقات */

/* إصلاح لتمرير الصفحة بدون قص القائمة */








/* تحسين عرض البطاقة */
.channel-search-wrapper {
    flex: 1;
    min-width: 0; /* لمنع تجاوز الحاوية */
}