/* BizHub Dashboard — هوية الشعار */
:root {
  --primary: #006c35;
  --primary-hover: #00552a;
  --gold: #c6a962;
  --gold-hover: #b5984f;
  --gold-dim: rgba(198, 169, 98, 0.15);
  --bg: #f8f9fa;
  --bg2: #fff;
  --bg3: #f1f3f5;
  --border: #dee2e6;
  --border2: #ced4da;
  --text: #212529;
  --text-muted: #6c757d;
  --success: #198754;
  --danger: #dc3545;
  --info: #0d6efd;
  --warning: #ffc107;
  --font: 'Cairo', sans-serif;
  --sidebar-w: 260px;
  --topbar-h: 60px;
  --radius: 12px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
}

/* Layout */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: -4px 0 24px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, width 0.3s ease, opacity 0.3s ease;
}
body.sidebar-collapsed .sidebar {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}
body.sidebar-collapsed .main-content {
  margin-right: 0;
}
.sidebar-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.sidebar-toggle:hover {
  background: var(--gold-dim);
  color: var(--primary);
  border-color: rgba(0,108,53,0.3);
}
body.sidebar-collapsed .sidebar-toggle .bi-layout-sidebar-inset-reverse { display: none; }
body.sidebar-collapsed .sidebar-toggle .bi-layout-sidebar-inset { display: inline-flex; }
.sidebar-toggle .bi-layout-sidebar-inset { display: none; }
.sidebar-toggle .bi-layout-sidebar-inset-reverse { display: inline-flex; }
.sidebar-brand {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-brand img { height: 42px; }
.sidebar-brand-name { font-weight: 800; font-size: 1.15rem; color: var(--primary); }
.sidebar-brand small { font-size: 11px; color: var(--text-muted); }
.sidebar-nav { flex: 1; padding: 12px 0; }
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}
.sidebar-nav .nav-link:hover { color: var(--primary); background: rgba(0,108,53,0.08); }
.sidebar-nav .nav-link.active { color: var(--primary); background: rgba(0,108,53,0.1); font-weight: 700; }
.sidebar-nav .nav-link i { font-size: 1.2rem; width: 24px; text-align: center; }
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
}
.sidebar-user {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
}
.sidebar-user-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.sidebar-user-link:hover {
  background: var(--gold-dim);
  color: var(--primary);
}
.sidebar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; }
.sidebar-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.sidebar-user-chevron {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.sidebar-user-link:hover .sidebar-user-chevron {
  color: var(--primary);
  transform: translateX(-2px);
}
.sidebar-logout-form { margin: 0; }
.sidebar-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg2);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}
.sidebar-logout-btn:hover {
  background: rgba(220, 53, 69, 0.08);
  color: var(--danger);
  border-color: rgba(220, 53, 69, 0.3);
}
.sidebar-logout-btn i { font-size: 16px; }

.main-content { margin-right: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin-right 0.3s ease; }
.topbar {
  height: var(--topbar-h);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.content-area {
  padding: 28px 32px;
  flex: 1;
  background: linear-gradient(180deg, #f5f7fa 0%, #eef1f5 100%);
  min-height: calc(100vh - var(--topbar-h));
}

/* Buttons — من هوية الشعار */
.btn-gold, .btn-bizhub { background: var(--primary); color: #fff; border: none; font-weight: 600; }
.btn-gold:hover, .btn-bizhub:hover { background: var(--primary-hover); color: #fff; }
.btn-outline-gold { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-gold:hover { background: var(--gold-dim); color: var(--primary-hover); border-color: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-icon { padding: 6px; border-radius: 6px; }

/* Cards */
.eh-card {
  background: var(--bg2);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.eh-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eh-card-title { font-size: 15px; font-weight: 700; }
.eh-card-body { padding: 24px; }
.eh-card-footer { padding: 14px 24px; border-top: 1px solid var(--border); }

/* Stat cards — احترافية */
.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  border: none;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}
.stat-card.gold::before { background: linear-gradient(180deg, var(--primary), var(--primary-hover)); }
.stat-card.blue::before { background: linear-gradient(180deg, var(--info), #0a58ca); }
.stat-card.green::before { background: linear-gradient(180deg, var(--success), #157347); }
.stat-card.red::before { background: linear-gradient(180deg, var(--danger), #b02a37); }
.stat-label { font-size: 11px; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; font-weight: 600; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.stat-card.gold .stat-icon { background: rgba(0,108,53,0.1); color: var(--primary); }
.stat-card.blue .stat-icon { background: rgba(13,110,253,0.1); color: var(--info); }
.stat-card.green .stat-icon { background: rgba(25,135,84,0.1); color: var(--success); }
.stat-card.red .stat-icon { background: rgba(220,53,69,0.1); color: var(--danger); }

/* Tables */
.eh-table { color: var(--text); }
.eh-table th { background: var(--bg3); font-size: 11px; letter-spacing: 0.06em; color: var(--text-muted); text-transform: uppercase; padding: 14px 20px; border-color: var(--border); font-weight: 600; }
.eh-table td { padding: 16px 20px; border-color: var(--border); }
.eh-table tbody tr { transition: background 0.2s; }
.eh-table tbody tr:hover td { background: rgba(0,108,53,0.04); }

/* Badges */
.badge-gold { background: var(--gold-dim); color: var(--primary); border: 1px solid rgba(0,108,53,0.3); }
.badge-success { background: rgba(25,135,84,0.15); color: var(--success); border: 1px solid rgba(25,135,84,0.4); }
.badge-warning { background: rgba(255,193,7,0.2); color: #856404; border: 1px solid rgba(255,193,7,0.5); }
.badge-info { background: rgba(13,110,253,0.15); color: var(--info); border: 1px solid rgba(13,110,253,0.4); }
.badge-danger { background: rgba(220,53,69,0.15); color: var(--danger); border: 1px solid rgba(220,53,69,0.4); }

/* Forms */
.eh-input, .eh-select, .eh-textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font);
  width: 100%;
}
.eh-input:focus, .eh-select:focus, .eh-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.eh-textarea { min-height: 100px; resize: vertical; }
.form-label-custom { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; display: block; }
.eh-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.eh-color-input { width: 48px; height: 38px; padding: 2px; cursor: pointer; border-radius: 6px; border: 1px solid var(--border); }

/* Tabs */
.eh-tabs { display: flex; background: var(--bg3); border-radius: 10px; padding: 3px; gap: 2px; }
.eh-tab { flex: 1; padding: 8px 12px; border-radius: 8px; cursor: pointer; text-align: center; font-size: 13px; color: var(--text-muted); transition: all 0.2s; border: none; background: transparent; font-family: inherit; }
.eh-tab:hover { color: var(--text); }
.eh-tab.active { background: var(--bg2); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* Toggle */
.eh-toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.eh-toggle input { opacity: 0; width: 0; height: 0; }
.eh-toggle-label {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg3); border-radius: 24px; transition: 0.3s;
}
.eh-toggle-label::before {
  content: ''; position: absolute; height: 18px; width: 18px; right: 3px; bottom: 3px;
  background: var(--text-muted); border-radius: 50%; transition: 0.3s;
}
.eh-toggle input:checked + .eh-toggle-label { background: var(--primary); }
.eh-toggle input:checked + .eh-toggle-label::before { transform: translateX(20px); background: #fff; }

/* Progress */
.eh-progress { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.eh-progress-bar { height: 100%; border-radius: 3px; transition: width 0.3s; }

/* Subdomain badge */
.subdomain-badge { font-size: 12px; color: var(--primary); background: var(--gold-dim); padding: 4px 10px; border-radius: 6px; }

/* Live dot */
.live-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; animation: livePulse 1.5s infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Event card */
.event-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.event-card-banner {
  height: 110px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
  overflow: hidden;
}
.event-card-banner::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.event-card-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.event-card-body { padding: 20px; }
.event-card-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; line-height: 1.4; }
.event-card-meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.event-stats-row { display: flex; justify-content: space-around; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.tiny-label { font-size: 11px; color: var(--text-muted); }
.event-card-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: var(--text-muted);
  transition: all 0.3s ease;
  border: 2px dashed var(--border);
}
.event-card-add:hover {
  color: var(--primary);
  background: rgba(0,108,53,0.04);
  border-color: var(--primary);
  transform: translateY(-4px);
}

/* Alerts */
.alert-float { position: fixed; bottom: 24px; left: 24px; z-index: 9999; }
.alert-toast { padding: 12px 16px; border-radius: 10px; min-width: 280px; display: flex; align-items: center; gap: 10px; }
.alert-toast-success { background: var(--bg2); border: 1px solid var(--success); color: var(--success); }
.alert-toast-error { background: var(--bg2); border: 1px solid var(--danger); color: var(--danger); }

.text-gold { color: var(--primary); }
.mono { font-family: ui-monospace, monospace; }
.page-title { font-size: 1.35rem; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }
.dash-welcome {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 16px;
  padding: 24px 28px;
  color: #fff;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(0,108,53,0.25);
}
.dash-welcome h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.dash-welcome p { opacity: 0.9; font-size: 0.95rem; margin: 0; }
.trial-banner {
  background: linear-gradient(135deg, rgba(0,108,53,0.08) 0%, rgba(198,169,98,0.12) 100%);
  border: 1px solid rgba(0,108,53,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
/* Dashboard animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.dash-animate { animation: fadeInUp 0.5s ease forwards; }
.dash-animate-1 { animation-delay: 0.05s; opacity: 0; }
.dash-animate-2 { animation-delay: 0.1s; opacity: 0; }
.dash-animate-3 { animation-delay: 0.15s; opacity: 0; }
.dash-animate-4 { animation-delay: 0.2s; opacity: 0; }

/* Pagination */
.pagination { gap: 4px; }
.pagination .page-link { background: var(--bg2); border-color: var(--border); color: var(--text); }
.pagination .page-link:hover { background: var(--gold-dim); color: var(--primary); }
.pagination .page-item.active .page-link { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .page-item.disabled .page-link { color: var(--text-muted); }

/* ========== Wusool (وصول) ========== */
.timeline-wrapper { }
.timeline-item { display: flex; gap: 12px; align-items: flex-start; }
.timeline-time { min-width: 48px; font-size: 13px; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-top: 6px; flex-shrink: 0; }
.timeline-type-badge { font-size: 12px; color: var(--text-muted); }
.live-map-container { height: 400px; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.driver-status-item { }
.driver-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; overflow: hidden;
}
.driver-avatar img { width: 100%; height: 100%; object-fit: cover; }
.driver-status-dot { width: 10px; height: 10px; border-radius: 50%; }
.driver-status-dot.status-available { background: var(--success); box-shadow: 0 0 6px var(--success); animation: livePulse 2s infinite; }
.driver-status-dot.status-on_trip { background: var(--warning); }
.driver-status-dot.status-break { background: var(--info); }
.driver-status-dot.status-offline { background: var(--text-muted); }
.guest-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.guest-avatar.vip-normal { background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border); }
.guest-avatar.vip-vip { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(198,169,98,0.5); }
.guest-avatar.vip-vvip { background: var(--gold-dim); color: var(--primary); border: 2px solid var(--gold); box-shadow: 0 0 12px var(--gold-dim); }
.guest-avatar-lg { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 24px; }
.guest-avatar-lg.vip-normal { background: var(--bg3); color: var(--text-muted); }
.guest-avatar-lg.vip-vip, .guest-avatar-lg.vip-vvip { background: var(--gold-dim); color: var(--primary); border: 2px solid var(--gold); }
.trip-status-scheduled { background: rgba(13,110,253,0.1); color: var(--info); }
.trip-status-driver_assigned { background: rgba(255,193,7,0.15); color: #856404; }
.trip-status-driver_on_way { background: rgba(255,193,7,0.2); color: #856404; }
.trip-status-arrived_at_pickup { background: var(--gold-dim); color: var(--primary); }
.trip-status-guest_on_board { background: rgba(25,135,84,0.15); color: var(--success); }
.trip-status-completed { background: rgba(25,135,84,0.2); color: var(--success); }
.trip-status-cancelled { background: rgba(220,53,69,0.1); color: var(--danger); }
.badge.trip-status-scheduled, .badge.trip-status-driver_assigned, .badge.trip-status-driver_on_way,
.badge.trip-status-arrived_at_pickup, .badge.trip-status-guest_on_board, .badge.trip-status-completed,
.badge.trip-status-cancelled { font-size: 11px; padding: 4px 8px; }
.journey-timeline { }
.journey-step { display: flex; gap: 16px; margin-bottom: 24px; position: relative; }
.journey-step::before {
  content: ''; position: absolute; right: 20px; top: 36px; width: 2px; height: calc(100% + 8px);
  background: var(--border);
}
.journey-step:last-child::before { display: none; }
.journey-step.completed::before { background: var(--success); }
.journey-step.active::before { background: var(--primary); }
.journey-step-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg3); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1;
}
.journey-step.completed .journey-step-icon { background: rgba(25,135,84,0.15); border-color: var(--success); color: var(--success); }
.journey-step.active .journey-step-icon { background: var(--gold-dim); border-color: var(--primary); color: var(--primary); }
.journey-step-title { font-weight: 600; font-size: 14px; }
.journey-step-detail { font-size: 13px; color: var(--text-muted); }
.journey-step-time { font-size: 12px; color: var(--text-muted); }
.journey-step-location { font-size: 12px; color: var(--text-muted); }
.driver-card-header { height: 70px; display: flex; align-items: center; justify-content: center; position: relative; }
.driver-card-header.status-available { background: rgba(25,135,84,0.08); }
.driver-card-header.status-on_trip { background: rgba(255,193,7,0.08); }
.driver-card-header.status-break { background: rgba(13,110,253,0.08); }
.driver-card-header.status-offline { background: var(--bg3); }
.driver-card-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--bg3); border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; overflow: hidden;
}
.driver-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.driver-status-indicator { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 600; color: var(--text-muted); }
.driver-card-info { }
.driver-info-row { }
.stat-card.yellow { }
.stat-card.yellow::before { background: linear-gradient(180deg, var(--warning), #d4a006); }
.tracking-status-float { max-width: 340px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.tracking-status-float .text-dark { color: var(--text) !important; }
.trip-step.done .trip-step-dot { background: var(--success) !important; }
.trip-step.active .trip-step-dot { background: var(--primary) !important; }
.driver-select-card { cursor: pointer; transition: all 0.2s; }
.driver-select-card:hover { background: var(--bg3); }
.eh-modal .modal-header, .eh-modal .eh-card-header { padding: 16px 20px; }
.eh-modal .modal-body, .eh-modal .eh-card-body { padding: 20px; }
.eh-modal .modal-footer, .eh-modal .eh-card-footer { padding: 14px 20px; }

/* ========== Settings — هوية الشعار (أخضر #006c35 + ذهبي #c6a962) ========== */
.settings-page { padding-bottom: 2rem; }

/* Hero: شريط أخضر مع لمسة ذهبية */
.settings-hero-brand {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 50%, #004420 100%);
  box-shadow: 0 8px 32px rgba(0, 108, 53, 0.25);
  margin-bottom: 28px;
}
.settings-hero-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-hover) 100%);
}
.settings-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  position: relative;
}
.settings-hero-avatar-wrap { flex-shrink: 0; }
.settings-hero-avatar {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.settings-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.settings-hero-initials {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.settings-hero-role {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--gold);
  color: #1a1a1a;
  letter-spacing: 0.02em;
}
.settings-hero-details { flex: 1; min-width: 0; }
.settings-hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.settings-hero-line {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin: 0 0 4px 0;
}
.settings-hero-line i { color: var(--gold); margin-left: 8px; opacity: 0.95; }
.settings-hero-meta { gap: 10px; }
.settings-hero-status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.settings-hero-status-active { background: rgba(255, 255, 255, 0.25); color: #fff; }
.settings-hero-status-inactive { background: rgba(0, 0, 0, 0.2); color: rgba(255, 255, 255, 0.8); }
.settings-hero-date { font-size: 12px; color: rgba(255, 255, 255, 0.75); }

/* بطاقات الإحصائيات: خط جانبي بألوان الهوية */
.settings-stat {
  position: relative;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.settings-stat::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 4px;
  height: 100%;
}
.settings-stat:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08); }
.settings-stat-green::before { background: linear-gradient(180deg, var(--primary), var(--primary-hover)); }
.settings-stat-gold::before { background: linear-gradient(180deg, var(--gold), var(--gold-hover)); }
.settings-stat-success::before { background: linear-gradient(180deg, var(--success), #157347); }
.settings-stat .settings-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.settings-stat-green .settings-stat-icon { background: rgba(0, 108, 53, 0.12); color: var(--primary); }
.settings-stat-gold .settings-stat-icon { background: var(--gold-dim); color: var(--gold-hover); }
.settings-stat-success .settings-stat-icon { background: rgba(25, 135, 84, 0.12); color: var(--success); }
.settings-stat-num { font-size: 1.75rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.settings-stat-tag { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* تبويبات: أخضر عند التفعيل */
.settings-tabs { gap: 4px; background: var(--bg3); padding: 5px; border-radius: 14px; border: none; }
.settings-tabs .nav-link {
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.2s;
}
.settings-tabs .nav-link:hover { color: var(--primary); background: var(--gold-dim); }
.settings-tabs .nav-link.active {
  color: #fff;
  background: var(--primary);
}
.settings-tabs .nav-link.active:hover { color: #fff; background: var(--primary-hover); }

/* عناوين البطاقات: خط أخضر */
.settings-card-header {
  border-right: 4px solid var(--primary);
  background: linear-gradient(90deg, rgba(0, 108, 53, 0.06) 0%, transparent 100%);
}

/* نموذج الصورة الشخصية */
.settings-form-avatar { margin-bottom: 0; }
.settings-form-avatar-box {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 108, 53, 0.15);
}
.settings-form-avatar-box img { width: 100%; height: 100%; object-fit: cover; }
.settings-form-initials {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.settings-form-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.settings-form-avatar-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* بطاقات المؤسسة */
.settings-org-card {
  padding: 18px 20px;
  background: var(--bg3);
  border-radius: 12px;
  border-right: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.settings-org-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.settings-org-value { font-weight: 700; color: var(--text); font-size: 15px; }
