/* ==========================================================
   مُوكِّل — Design System v4 (Royal Navy & Gold Theme)
   ========================================================== */

:root {
  /* === Brand Colors (من اللوجو) === */
  --brand-navy: #0F172A;      /* الكحلي الأساسي */
  --brand-navy-light: #1E293B; /* كحلي أفتح */
  --brand-navy-soft: #334155;  /* كحلي للنصوص الثانوية */
  
  --brand-gold: #D97706;      /* الذهبي الأساسي */
  --brand-gold-hover: #B45309; /* ذهبي غامق (Hover) */
  --brand-gold-light: #FEF3C7; /* ذهبي فاتح جداً (خلفيات) */
  
  /* === Primary (الأزرار الأساسية) === */
  --primary: var(--brand-navy);
  --primary-hover: var(--brand-navy-light);
  --primary-light: #F1F5F9;
  
  /* === Accent (اللمسات الذهبية) === */
  --accent: var(--brand-gold);
  --accent-hover: var(--brand-gold-hover);
  --accent-light: var(--brand-gold-light);
  
  /* === Backgrounds === */
  --bg-body: #F8FAFC;
  --surface: #FFFFFF;
  --surface-hover: #F1F5F9;
  
  /* === Text === */
  --text: #0F172A;
  --text-soft: #475569;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;
  
  /* === Borders === */
  --border: #E2E8F0;
  --border-soft: #F1F5F9;
  --border-strong: #CBD5E1;
  
  /* === Semantic Colors === */
  --success: #10B981;
  --success-50: #ECFDF5;
  --danger: #EF4444;
  --danger-50: #FEF2F2;
  --warning: #F59E0B;
  --warning-50: #FFFBEB;
  --info: #3B82F6;
  --info-50: #EFF6FF;
  
  /* === Gray Scale === */
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  
  /* === Typography === */
  --font-sans: 'IBM Plex Sans Arabic', 'Tajawal', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  
  /* === Radii === */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* === Shadows === */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* === Transitions === */
  --transition-fast: 0.15s ease;
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === Reset & Base === */
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-body);
  color: var(--text);
  line-height: 1.6;
  direction: rtl;
}

/* === الأزرار العامة (Buttons) === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  min-height: 44px;
}

/* الزر الأساسي (كحلي) */
.btn-primary, button.primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover, button.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* الزر الثانوي (ذهبي) */
.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* الزر الشفاف (Ghost) */
.btn-ghost, button.ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--border);
}
.btn-ghost:hover, button.ghost:hover {
  background: var(--gray-50);
  color: var(--text);
  border-color: var(--border-strong);
}

/* زر الخطر (أحمر) */
.btn-danger {
  background: var(--danger);
  color: white;
}

/* === حقول الإدخال (Inputs) === */
.input, input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text);
  transition: all var(--transition);
  outline: none;
}
.input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* === الكروت (Cards) === */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

/* === الشارات (Badges) === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
}
.badge.active { background: var(--success-50); color: var(--success); }
.badge.suspended { background: var(--danger-50); color: var(--danger); }
.badge.trial { background: var(--warning-50); color: var(--warning); } 
