/* ============================================
   Sleek Glassmorphism — تغطية كاملة لكل الواجهة
   أقسام · نوافذ · قائمة · تبديل مستخدم · جداول · أزرار
   ============================================ */
html[data-royal-shape="glass"],
html[data-royal-shape="glass"],
html[data-royal-shape="glass"] #app-wrapper,
html[data-royal-shape="glass"] #app-container,
html[data-royal-shape="glass"] #main-content,
html[data-royal-shape="glass"] .section-container,
html[data-royal-shape="glass"] #dashboard,
html[data-royal-shape="glass"] #settings,
html[data-royal-shape="glass"] #dresses,
html[data-royal-shape="glass"] #customers,
html[data-royal-shape="glass"] #reservations,
html[data-royal-shape="glass"] #returns,
html[data-royal-shape="glass"] #sales,
html[data-royal-shape="glass"] #stats,
html[data-royal-shape="glass"] #expenses,
html[data-royal-shape="glass"] #treasury,
html[data-royal-shape="glass"] #inventory,
html[data-royal-shape="glass"] #suppliers,
html[data-royal-shape="glass"] #damages,
html[data-royal-shape="glass"] #reports,
html[data-royal-shape="glass"] #users,
html[data-royal-shape="glass"] #profit,
html[data-royal-shape="glass"] #dress-log,
html[data-royal-shape="glass"] #login-screen {
  --bg-color: #eef1fb !important;
  --bg-gradient: linear-gradient(145deg, #e8eefc 0%, #f0e8ff 40%, #e4f0fc 70%, #f5f0ff 100%) !important;
  --sidebar-bg: rgba(255,255,255,0.55) !important;
  --sidebar-gradient: linear-gradient(180deg, rgba(255,255,255,.72), rgba(240,235,255,.62)) !important;
  --card-bg: rgba(255, 255, 255, 0.58) !important;
  --card-solid: rgba(255, 255, 255, 0.97) !important;
  --card-shadow: 0 8px 32px rgba(100, 80, 180, 0.12) !important;
  --card-border: rgba(255, 255, 255, 0.7) !important;
  --border-color: rgba(140, 120, 200, 0.22) !important;
  --text-color: #2a2a4a !important;
  --text-muted: #6a6a8a !important;
  --text-light: #8a8aaa !important;
  --primary: #6b7cff !important;
  --secondary: #9b7dff !important;
  --accent: #7b8cff !important;
  --gold: #7b6cff !important;
  --gold-dark: #5a4fd4 !important;
  --gold-glow: rgba(123, 108, 255, 0.35) !important;
  --neon-blue: #5b8def !important;
  --neon-green: #3dcf9a !important;
  --neon-purple: #9b7dff !important;
  --neon-orange: #f0a050 !important;
  --neon-red: #f07090 !important;
  --neon-cyan: #50c8e8 !important;
  --success: #3dcf9a !important;
  --danger: #f07090 !important;
  --warning: #f0a050 !important;
  --info: #5b8def !important;
}
html[data-royal-shape="glass"],
html[data-royal-shape="glass"] {
  background: linear-gradient(145deg, #e8eefc 0%, #f0e8ff 40%, #e4f0fc 70%, #f5f0ff 100%) !important;
  background-color: #eef1fb !important;
  color: #2a2a4a !important;
  min-height: 100vh !important;
}
html[data-royal-shape="glass"] body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 15% 20%, rgba(160,140,255,.4) 0%, transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(100,180,255,.35) 0%, transparent 38%),
    radial-gradient(circle at 70% 80%, rgba(200,160,255,.3) 0%, transparent 42%),
    radial-gradient(circle at 20% 75%, rgba(120,200,255,.25) 0%, transparent 38%) !important;
}
html[data-royal-shape="glass"] #app-wrapper,
html[data-royal-shape="glass"] #app-container,
html[data-royal-shape="glass"] #main-content,
html[data-royal-shape="glass"] .section-container,
html[data-royal-shape="glass"] .section-container.active,
html[data-royal-shape="glass"] #dashboard,
html[data-royal-shape="glass"] #settings,
html[data-royal-shape="glass"] #dresses,
html[data-royal-shape="glass"] #customers,
html[data-royal-shape="glass"] #reservations,
html[data-royal-shape="glass"] #returns,
html[data-royal-shape="glass"] #sales,
html[data-royal-shape="glass"] #stats,
html[data-royal-shape="glass"] #expenses,
html[data-royal-shape="glass"] #treasury,
html[data-royal-shape="glass"] #inventory,
html[data-royal-shape="glass"] #suppliers,
html[data-royal-shape="glass"] #damages,
html[data-royal-shape="glass"] #reports,
html[data-royal-shape="glass"] #users,
html[data-royal-shape="glass"] #profit,
html[data-royal-shape="glass"] #dress-log {
  background: transparent !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] /* شريط علوي */
html[data-royal-shape="glass"] .top-navbar,
html[data-royal-shape="glass"] nav.top-navbar,
html[data-royal-shape="glass"] #top-navbar {
  background: rgba(255, 255, 255, 0.62) !important;
  border: 1px solid rgba(140, 120, 200, 0.22) !important;
  box-shadow: 0 4px 24px rgba(100, 80, 180, 0.1) !important;
  backdrop-filter: blur(18px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] .top-navbar button,
html[data-royal-shape="glass"] .top-navbar #theme-toggle-btn,
html[data-royal-shape="glass"] .top-navbar button:not(#current-user-display) {
  color: #5a4fd4 !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(123, 108, 255, 0.3) !important;
}
html[data-royal-shape="glass"] .top-navbar button:hover,
html[data-royal-shape="glass"] .top-navbar button:not(#current-user-display):hover {
  background: rgba(123, 108, 255, 0.12) !important;
  color: #4a3fc4 !important;
}
html[data-royal-shape="glass"] {
  --badge-av-bg: linear-gradient(135deg, #9b8cff, #5a4fcf) !important;
  --badge-av-color: #fff !important;
}
html[data-royal-shape="glass"] #current-user-display,
html[data-royal-shape="glass"] .royal-user-chip,
html[data-royal-shape="glass"] #current-user-display.royal-user-chip {
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(123, 108, 255, 0.35) !important;
  color: #2a2a4a !important;
  border-radius: 14px !important;
  backdrop-filter: blur(14px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(150%) !important;
  box-shadow: 0 6px 18px rgba(100, 80, 180, 0.12) !important;
}
html[data-royal-shape="glass"] #current-user-display:hover { background: rgba(123, 108, 255, 0.12) !important; }
html[data-royal-shape="glass"] #current-user-display .uc-av,
html[data-royal-shape="glass"] #current-user-display .r54-av,
html[data-royal-shape="glass"] .royal-user-chip .r54-av {
  background: linear-gradient(135deg, #9b8cff, #5a4fcf) !important;
  color: #fff !important;
}
html[data-royal-shape="glass"] #global-search-input,
html[data-royal-shape="glass"] .search-input-wrapper input,
html[data-royal-shape="glass"] .top-navbar input[type="search"],
html[data-royal-shape="glass"] .top-navbar input[type="text"] {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(140, 120, 200, 0.3) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] /* القائمة الجانبية */
html[data-royal-shape="glass"] #sidebar,
html[data-royal-shape="glass"] .sidebar,
html[data-royal-shape="glass"] aside#sidebar,
html[data-royal-shape="glass"] #sidebar.collapsed {
  background: rgba(255, 255, 255, 0.58) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.75), rgba(240,235,255,.62)) !important;
  border-color: rgba(140, 120, 200, 0.22) !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
  box-shadow: -4px 0 32px rgba(100, 80, 180, 0.1) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] .sidebar-brand-box,
html[data-royal-shape="glass"] #sidebar .sidebar-brand-box {
  background: transparent !important;
  border-color: rgba(140, 120, 200, 0.18) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] .brand-text,
html[data-royal-shape="glass"] #sidebar .brand-text,
html[data-royal-shape="glass"] .sidebar-brand-box .brand-text {
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] .sidebar-collapse-btn,
html[data-royal-shape="glass"] #sidebar .sidebar-collapse-btn {
  background: rgba(123, 108, 255, 0.1) !important;
  border-color: rgba(123, 108, 255, 0.3) !important;
  color: #5a4fd4 !important;
}
html[data-royal-shape="glass"] .nav-category-title,
html[data-royal-shape="glass"] #sidebar .nav-category-title { color: #6a6a8a !important; }
html[data-royal-shape="glass"] .nav-links,
html[data-royal-shape="glass"] #sidebar .nav-links { background: transparent !important; }
html[data-royal-shape="glass"] .nav-links li,
html[data-royal-shape="glass"] #sidebar .nav-links li,
html[data-royal-shape="glass"] .rnav-item,
html[data-royal-shape="glass"] .rtm-item {
  color: #2a2a4a !important;
  background: transparent !important;
}
html[data-royal-shape="glass"] .nav-links li:hover,
html[data-royal-shape="glass"] #sidebar .nav-links li:hover,
html[data-royal-shape="glass"] .rnav-item:hover,
html[data-royal-shape="glass"] .rtm-item:hover {
  background: rgba(123, 108, 255, 0.12) !important;
  color: #5a4fd4 !important;
}
html[data-royal-shape="glass"] .nav-links li.active,
html[data-royal-shape="glass"] #sidebar .nav-links li.active,
html[data-royal-shape="glass"] .rnav-item.active,
html[data-royal-shape="glass"] .rtm-item.active {
  background: linear-gradient(135deg, #7b6cff, #5b8def) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(123, 108, 255, 0.3) !important;
}
html[data-royal-shape="glass"] .nav-links li i,
html[data-royal-shape="glass"] #sidebar .nav-links li i { color: inherit !important; }
html[data-royal-shape="glass"] #sidebar-backdrop,
html[data-royal-shape="glass"] .rnav-backdrop {
  background: rgba(40, 30, 80, 0.28) !important;
  backdrop-filter: blur(4px) !important;
}
html[data-royal-shape="glass"] #btn-open-nav {
  background: rgba(255, 255, 255, 0.6) !important;
  border-color: rgba(123, 108, 255, 0.35) !important;
  color: #5a4fd4 !important;
}
html[data-royal-shape="glass"] #royal-nav-sheet,
html[data-royal-shape="glass"] .royal-nav-sheet,
html[data-royal-shape="glass"] .rnav-sheet {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(140, 120, 200, 0.25) !important;
  backdrop-filter: blur(20px) !important;
  color: #2a2a4a !important;
  box-shadow: 0 12px 40px rgba(100, 80, 180, 0.15) !important;
}
html[data-royal-shape="glass"] .rnav-sheet a,
html[data-royal-shape="glass"] .rnav-sheet button,
html[data-royal-shape="glass"] #royal-nav-sheet a,
html[data-royal-shape="glass"] #royal-nav-sheet button {
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] .rnav-sheet a:hover,
html[data-royal-shape="glass"] .rnav-sheet button:hover {
  background: rgba(123, 108, 255, 0.12) !important;
  color: #5a4fd4 !important;
}
html[data-royal-shape="glass"] /* تبديل المستخدم */
html[data-royal-shape="glass"] .user-switcher-card,
html[data-royal-shape="glass"] #safe-user-switcher,
html[data-royal-shape="glass"] #royal-user-menu {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(140, 120, 200, 0.28) !important;
  color: #2a2a4a !important;
  backdrop-filter: blur(22px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.5) !important;
  box-shadow: 0 16px 48px rgba(100, 80, 180, 0.2) !important;
  border-radius: 16px !important;
}
html[data-royal-shape="glass"] .user-switcher-backdrop,
html[data-royal-shape="glass"] #safe-user-switcher-backdrop {
  background: rgba(40, 30, 80, 0.32) !important;
  backdrop-filter: blur(6px) !important;
}
html[data-royal-shape="glass"] .r54-head,
html[data-royal-shape="glass"] .r54-foot {
  border-color: rgba(140, 120, 200, 0.2) !important;
  color: #2a2a4a !important;
  background: transparent !important;
}
html[data-royal-shape="glass"] .r54-head strong,
html[data-royal-shape="glass"] .r54-name,
html[data-royal-shape="glass"] .r54-meta b,
html[data-royal-shape="glass"] #royal-user-menu strong { color: #2a2a4a !important; }
html[data-royal-shape="glass"] .r54-role,
html[data-royal-shape="glass"] .r54-meta span { color: #6a6a8a !important; }
html[data-royal-shape="glass"] .r54-item,
html[data-royal-shape="glass"] #royal-user-menu button,
html[data-royal-shape="glass"] #royal-user-menu .r54-item {
  background: transparent !important;
  color: #2a2a4a !important;
  border-color: transparent !important;
}
html[data-royal-shape="glass"] .r54-item:hover,
html[data-royal-shape="glass"] #royal-user-menu button:hover {
  background: rgba(123, 108, 255, 0.12) !important;
  color: #5a4fd4 !important;
}
html[data-royal-shape="glass"] .r54-item.active,
html[data-royal-shape="glass"] #royal-user-menu button.active {
  background: rgba(123, 108, 255, 0.18) !important;
  color: #5a4fd4 !important;
  font-weight: 700 !important;
}
html[data-royal-shape="glass"] .r54-av,
html[data-royal-shape="glass"] .r54-item .av {
  background: linear-gradient(135deg, #7b6cff, #5b8def) !important;
  color: #fff !important;
}
html[data-royal-shape="glass"] .r54-close,
html[data-royal-shape="glass"] .r54-logout {
  background: rgba(240, 112, 144, 0.1) !important;
  border: 1px solid rgba(240, 112, 144, 0.35) !important;
  color: #e05070 !important;
  border-radius: 10px !important;
}
html[data-royal-shape="glass"] .r54-logout:hover,
html[data-royal-shape="glass"] .r54-close:hover { background: rgba(240, 112, 144, 0.2) !important; }
html[data-royal-shape="glass"] .r54-list { color: #2a2a4a !important; }
html[data-royal-shape="glass"] #r54-switch-pass {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(140, 120, 200, 0.3) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] /* بطاقات ولوحات */
html[data-royal-shape="glass"] .card,
html[data-royal-shape="glass"] .panel,
html[data-royal-shape="glass"] .settings-card,
html[data-royal-shape="glass"] .st-card,
html[data-royal-shape="glass"] .royal-stat-card,
html[data-royal-shape="glass"] .dashboard-cards .card,
html[data-royal-shape="glass"] .alerts-panel,
html[data-royal-shape="glass"] .royal-block,
html[data-royal-shape="glass"] .settings-grid > div,
html[data-royal-shape="glass"] .quick-actions,
html[data-royal-shape="glass"] .dress-item,
html[data-royal-shape="glass"] .reservation-card,
html[data-royal-shape="glass"] .customer-card,
html[data-royal-shape="glass"] .stat-card,
html[data-royal-shape="glass"] .report-card {
  background: rgba(255, 255, 255, 0.58) !important;
  border: 1px solid rgba(140, 120, 200, 0.22) !important;
  box-shadow: 0 8px 32px rgba(100, 80, 180, 0.1) !important;
  backdrop-filter: blur(14px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.3) !important;
  color: #2a2a4a !important;
  border-radius: 16px !important;
}
html[data-royal-shape="glass"] .card:hover,
html[data-royal-shape="glass"] .panel:hover,
html[data-royal-shape="glass"] .st-card:hover,
html[data-royal-shape="glass"] .dress-item:hover {
  border-color: rgba(123, 108, 255, 0.4) !important;
  box-shadow: 0 10px 36px rgba(100, 80, 180, 0.16) !important;
}
html[data-royal-shape="glass"] .card-icon,
html[data-royal-shape="glass"] .rsc-value,
html[data-royal-shape="glass"] .st-card b,
html[data-royal-shape="glass"] .dress-code {
  color: #5a4fd4 !important;
  text-shadow: none !important;
}
html[data-royal-shape="glass"] .rsc-label,
html[data-royal-shape="glass"] .card p,
html[data-royal-shape="glass"] .settings-card-desc,
html[data-royal-shape="glass"] .empty-hint,
html[data-royal-shape="glass"] .dress-price { color: #6a6a8a !important; }
html[data-royal-shape="glass"] .settings-card h4,
html[data-royal-shape="glass"] .panel h3,
html[data-royal-shape="glass"] .panel-header h2,
html[data-royal-shape="glass"] .section-title { color: #2a2a4a !important; }
html[data-royal-shape="glass"] .panel-header,
html[data-royal-shape="glass"] .section-header {
  border-color: rgba(140, 120, 200, 0.18) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] /* أزرار */
html[data-royal-shape="glass"] .btn-neon,
html[data-royal-shape="glass"] .btn-neon-gold,
html[data-royal-shape="glass"] .btn-neon-cyan,
html[data-royal-shape="glass"] .btn-neon-blue,
html[data-royal-shape="glass"] .btn-neon-green,
html[data-royal-shape="glass"] .btn-neon-purple,
html[data-royal-shape="glass"] .btn-neon-orange,
html[data-royal-shape="glass"] .btn-neon-red,
html[data-royal-shape="glass"] .btn-neon-sm,
html[data-royal-shape="glass"] .btn-neon-md,
html[data-royal-shape="glass"] .btn-neon-lg,
html[data-royal-shape="glass"] .btn-outline,
html[data-royal-shape="glass"] button.btn,
html[data-royal-shape="glass"] .btn,
html[data-royal-shape="glass"] .btn-sm,
html[data-royal-shape="glass"] .btn-md {
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1.5px solid rgba(123, 108, 255, 0.45) !important;
  color: #5a4fd4 !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
html[data-royal-shape="glass"] .btn-neon:hover,
html[data-royal-shape="glass"] .btn-neon-gold:hover,
html[data-royal-shape="glass"] .btn-neon-cyan:hover,
html[data-royal-shape="glass"] .btn-neon-blue:hover,
html[data-royal-shape="glass"] button.btn:hover,
html[data-royal-shape="glass"] .btn:hover {
  background: rgba(123, 108, 255, 0.15) !important;
  border-color: #7b6cff !important;
  color: #4a3fc4 !important;
}
html[data-royal-shape="glass"] .btn-neon-red,
html[data-royal-shape="glass"] .btn-neon-red:hover { border-color: #f07090 !important; color: #e05070 !important; }
html[data-royal-shape="glass"] .btn-neon-green,
html[data-royal-shape="glass"] .btn-neon-green:hover { border-color: #3dcf9a !important; color: #2ab87f !important; }
html[data-royal-shape="glass"] .btn-neon-orange,
html[data-royal-shape="glass"] .btn-neon-orange:hover { border-color: #f0a050 !important; color: #d08030 !important; }
html[data-royal-shape="glass"] .btn-neon-purple { border-color: #9b7dff !important; color: #7b5de0 !important; }
html[data-royal-shape="glass"] /* نماذج */
html[data-royal-shape="glass"] input:not([type="checkbox"]):not([type="radio"]),
html[data-royal-shape="glass"] select,
html[data-royal-shape="glass"] textarea,
html[data-royal-shape="glass"] .input-group input:not([type="checkbox"]):not([type="radio"]),
html[data-royal-shape="glass"] .input-group select,
html[data-royal-shape="glass"] .input-group textarea,
html[data-royal-shape="glass"] .form-group input:not([type="checkbox"]):not([type="radio"]),
html[data-royal-shape="glass"] .form-group select,
html[data-royal-shape="glass"] .form-group textarea,
html[data-royal-shape="glass"] .modal-box input:not([type="checkbox"]):not([type="radio"]),
html[data-royal-shape="glass"] .modal-box select,
html[data-royal-shape="glass"] .modal-box textarea,
html[data-royal-shape="glass"] #universal-modal input:not([type="checkbox"]):not([type="radio"]),
html[data-royal-shape="glass"] #universal-modal select,
html[data-royal-shape="glass"] #universal-modal textarea {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(140, 120, 200, 0.28) !important;
  color: #2a2a4a !important;
  border-radius: 10px !important;
}
html[data-royal-shape="glass"] input:not([type="checkbox"]):not([type="radio"]):focus,
html[data-royal-shape="glass"] select:focus,
html[data-royal-shape="glass"] textarea:focus {
  border-color: #7b6cff !important;
  box-shadow: 0 0 0 3px rgba(123, 108, 255, 0.2) !important;
  outline: none !important;
}
html[data-royal-shape="glass"] input::placeholder,
html[data-royal-shape="glass"] textarea::placeholder { color: #8a8aaa !important; }
html[data-royal-shape="glass"] label,
html[data-royal-shape="glass"] .input-group label,
html[data-royal-shape="glass"] .form-group label { color: #4a4a6a !important; }
html[data-royal-shape="glass"] select option { background: #f5f0ff !important; color: #2a2a4a !important; }
html[data-royal-shape="glass"] /* جداول */
html[data-royal-shape="glass"] table,
html[data-royal-shape="glass"] .table,
html[data-royal-shape="glass"] .data-table,
html[data-royal-shape="glass"] .table-responsive table {
  background: rgba(255, 255, 255, 0.45) !important;
  border-color: rgba(140, 120, 200, 0.2) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] table thead th,
html[data-royal-shape="glass"] table th,
html[data-royal-shape="glass"] .table thead th {
  background: rgba(255, 255, 255, 0.68) !important;
  color: #4a4a6a !important;
  border-color: rgba(140, 120, 200, 0.22) !important;
}
html[data-royal-shape="glass"] table td,
html[data-royal-shape="glass"] .table td {
  border-color: rgba(140, 120, 200, 0.12) !important;
  color: #2a2a4a !important;
  background: transparent !important;
}
html[data-royal-shape="glass"] table tbody tr:hover td { background: rgba(123, 108, 255, 0.08) !important; }
html[data-royal-shape="glass"] table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.25) !important; }
html[data-royal-shape="glass"] /* نوافذ */
html[data-royal-shape="glass"] .modal-overlay,
html[data-royal-shape="glass"] .custom-alert-overlay,
html[data-royal-shape="glass"] #print-options-overlay,
html[data-royal-shape="glass"] #universal-modal,
html[data-royal-shape="glass"] .security-modal-overlay,
html[data-royal-shape="glass"] #security-modal-overlay,
html[data-royal-shape="glass"] #profit-password-overlay {
  background: rgba(30, 22, 60, 0.55) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
html[data-royal-shape="glass"] .modal-box,
html[data-royal-shape="glass"] .custom-alert-box,
html[data-royal-shape="glass"] .print-options-box,
html[data-royal-shape="glass"] .security-modal-box,
html[data-royal-shape="glass"] #universal-modal .modal-box,
html[data-royal-shape="glass"] .modal-content,
html[data-royal-shape="glass"] #universal-modal .modal-content {
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid rgba(140, 120, 200, 0.35) !important;
  color: #2a2a4a !important;
  backdrop-filter: blur(28px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.3) !important;
  box-shadow: 0 20px 56px rgba(80, 60, 160, 0.28) !important;
  border-radius: 18px !important;
}
html[data-royal-shape="glass"] .modal-header,
html[data-royal-shape="glass"] .modal-footer,
html[data-royal-shape="glass"] .custom-alert-box .alert-buttons,
html[data-royal-shape="glass"] .custom-alert-box .alert-actions {
  border-color: rgba(140, 120, 200, 0.18) !important;
  color: #2a2a4a !important;
  background: transparent !important;
}
html[data-royal-shape="glass"] .modal-header h2,
html[data-royal-shape="glass"] .modal-header h3,
html[data-royal-shape="glass"] .modal-title,
html[data-royal-shape="glass"] .custom-alert-box h3 { color: #2a2a4a !important; }
html[data-royal-shape="glass"] .custom-alert-box p,
html[data-royal-shape="glass"] .modal-body,
html[data-royal-shape="glass"] .modal-box p { color: #2a2a4a !important; }
html[data-royal-shape="glass"] .modal-close { color: #5a4fd4 !important; background: rgba(123, 108, 255, 0.1) !important; border-radius: 8px !important; }
html[data-royal-shape="glass"] .custom-alert-box .alert-icon { color: #7b6cff !important; }
html[data-royal-shape="glass"] /* قوائم منسدلة */
html[data-royal-shape="glass"] .dropdown-content,
html[data-royal-shape="glass"] .dropdown-menu,
html[data-royal-shape="glass"] .action-menu,
html[data-royal-shape="glass"] .actions-menu,
html[data-royal-shape="glass"] .dropdown-content.show {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(140, 120, 200, 0.25) !important;
  color: #2a2a4a !important;
  backdrop-filter: blur(16px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.4) !important;
  box-shadow: 0 12px 40px rgba(100, 80, 180, 0.18) !important;
  border-radius: 14px !important;
}
html[data-royal-shape="glass"] .dropdown-content a,
html[data-royal-shape="glass"] .dropdown-menu a,
html[data-royal-shape="glass"] .dropdown-content button { color: #2a2a4a !important; }
html[data-royal-shape="glass"] .dropdown-content a:hover,
html[data-royal-shape="glass"] .dropdown-menu a:hover {
  background: rgba(123, 108, 255, 0.12) !important;
  color: #5a4fd4 !important;
}
html[data-royal-shape="glass"] /* تسجيل دخول */
html[data-royal-shape="glass"] #login-screen {
  background: linear-gradient(145deg, #e8eefc 0%, #f0e8ff 40%, #e4f0fc 70%, #f5f0ff 100%) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] .login-box {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(140, 120, 200, 0.28) !important;
  backdrop-filter: blur(24px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
  box-shadow: 0 20px 50px rgba(100, 80, 180, 0.18) !important;
  color: #2a2a4a !important;
  border-radius: 24px !important;
}
html[data-royal-shape="glass"] .login-box h1,
html[data-royal-shape="glass"] .login-box h2,
html[data-royal-shape="glass"] .login-box label { color: #2a2a4a !important; }
html[data-royal-shape="glass"] .login-box input {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(140, 120, 200, 0.3) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] /* Toast */
html[data-royal-shape="glass"] .royal-toast,
html[data-royal-shape="glass"] .toast,
html[data-royal-shape="glass"] .notification,
html[data-royal-shape="glass"] .alert-toast,
html[data-royal-shape="glass"] [class*="toast"],
html[data-royal-shape="glass"] .royal-notify {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(140, 120, 200, 0.25) !important;
  color: #2a2a4a !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 8px 28px rgba(100, 80, 180, 0.15) !important;
  border-radius: 12px !important;
}
html[data-royal-shape="glass"] ::-webkit-scrollbar { width: 6px; height: 6px; }
html[data-royal-shape="glass"] ::-webkit-scrollbar-track { background: rgba(140, 120, 200, 0.08); border-radius: 10px; }
html[data-royal-shape="glass"] ::-webkit-scrollbar-thumb { background: rgba(123, 108, 255, 0.45) !important; border-radius: 10px; }
html[data-royal-shape="glass"] ::-webkit-scrollbar-thumb:hover { background: rgba(123, 108, 255, 0.65) !important; }
html[data-royal-shape="glass"] .theme-preset-card {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 2px solid rgba(140, 120, 200, 0.25) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] .theme-preset-card.active {
  border-color: #7b6cff !important;
  box-shadow: 0 0 0 3px rgba(123, 108, 255, 0.3) !important;
}
html[data-royal-shape="glass"] .dress-status.available { background: rgba(61, 207, 154, 0.18) !important; color: #2ab87f !important; }
html[data-royal-shape="glass"] .dress-status.reserved { background: rgba(240, 160, 80, 0.18) !important; color: #d08030 !important; }
html[data-royal-shape="glass"] .dress-status.damaged { background: rgba(240, 112, 144, 0.18) !important; color: #e05070 !important; }
html[data-royal-shape="glass"] .dress-status.transferred { background: rgba(91, 141, 239, 0.18) !important; color: #4a7ad0 !important; }
html[data-royal-shape="glass"] .badge,
html[data-royal-shape="glass"] .chip,
html[data-royal-shape="glass"] .tag {
  background: rgba(123, 108, 255, 0.12) !important;
  color: #5a4fd4 !important;
  border-color: rgba(123, 108, 255, 0.25) !important;
}
html[data-royal-shape="glass"] hr,
html[data-royal-shape="glass"] .divider { border-color: rgba(140, 120, 200, 0.2) !important; }
html[data-royal-shape="glass"] .empty-state,
html[data-royal-shape="glass"] .no-data { color: #6a6a8a !important; }
html[data-royal-shape="glass"] .progress-bar,
html[data-royal-shape="glass"] .progress { background: rgba(140, 120, 200, 0.15) !important; }
html[data-royal-shape="glass"] .progress-bar > *,
html[data-royal-shape="glass"] .progress-fill {
  background: linear-gradient(90deg, #7b6cff, #5b8def) !important;
}
html[data-royal-shape="glass"] #invoice-modal .modal-box,
html[data-royal-shape="glass"] #invoice-content {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] #invoice-content,
html[data-royal-shape="glass"] #invoice-details,
html[data-royal-shape="glass"] #invoice-details p { color: #2a2a4a !important; }
html[data-royal-shape="glass"] .inv-field-toggle {
  background: rgba(123, 108, 255, 0.12) !important;
  border-color: rgba(123, 108, 255, 0.4) !important;
  color: #5a4fd4 !important;
}
html[data-royal-shape="glass"] .inv-field-toggle.is-hidden {
  background: rgba(240, 112, 144, 0.14) !important;
  color: #e05070 !important;
}
html[data-royal-shape="glass"] /* مربعات التحديد — لا تُعامل كحقول نص */
html[data-royal-shape="glass"] input[type="checkbox"],
html[data-royal-shape="glass"] input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  accent-color: var(--gold, #7b6cff) !important;
  cursor: pointer !important;
  border-radius: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
}
html[data-royal-shape="glass"] label:has(> input[type="checkbox"]),
html[data-royal-shape="glass"] label:has(> input[type="radio"]) {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 8px 0 !important;
  cursor: pointer !important;
  width: auto !important;
  max-width: 100% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 0 !important;
  color: var(--text-color, inherit) !important;
  font-size: 14px !important;
  white-space: normal !important;
}
html[data-royal-shape="glass"] /* ===== شارة المستخدم وقائمة التبديل — زجاجي ===== */
html[data-royal-shape="glass"] #current-user-display.royal-user-chip {
  background: rgba(255,255,255,.18) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.25) !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] #current-user-display.royal-user-chip,
html[data-royal-shape="glass"] body.dark #current-user-display.royal-user-chip {
  background: rgba(20,24,40,.45) !important;
  border-color: rgba(255,255,255,.18) !important;
  color: #f0eef8 !important;
}
html[data-royal-shape="glass"] #royal54-user-menu {
  background: rgba(255,255,255,.72) !important;
  backdrop-filter: blur(22px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(170%) !important;
  border: 1px solid rgba(255,255,255,.45) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.4) !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] #royal54-user-menu,
html[data-royal-shape="glass"] body.dark #royal54-user-menu {
  background: rgba(16,20,36,.78) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: #f0eef8 !important;
}
html[data-royal-shape="glass"] #royal54-user-menu .r54-item {
  background: rgba(255,255,255,.25) !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  border-radius: 14px !important;
}
html[data-royal-shape="glass"] body.dark #royal54-user-menu .r54-item,
html[data-royal-shape="glass"] body[data-theme="dark"] #royal54-user-menu .r54-item {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.1) !important;
}
html[data-royal-shape="glass"] #royal54-user-menu .r54-item:hover:not(:disabled) {
  background: rgba(201,168,76,.22) !important;
  border-color: rgba(201,168,76,.5) !important;
}
/* ===== بطاقات الإحصائيات والأرباح — glass ===== */
html[data-royal-shape="glass"] #stats .st-card,
html[data-royal-shape="glass"] #stats .royal-stat-card,
html[data-royal-shape="glass"] #stats-details .st-card,
html[data-royal-shape="glass"] #royal-stats-detail .st-card,
html[data-royal-shape="glass"] #profit .royal-stat-card,
html[data-royal-shape="glass"] #profit .card,
html[data-royal-shape="glass"] #profit-details .royal-stat-card {
  cursor: pointer !important;
}
html[data-royal-shape="glass"] /* ===== القائمة العلوية المنسدلة — glass ===== */
html[data-royal-shape="glass"] #royal-top-menu {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 16px 48px rgba(80, 60, 160, 0.15) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-inner { background: transparent !important; }
html[data-royal-shape="glass"] #royal-top-menu .rtm-head { border-bottom: 1px solid rgba(140, 120, 200, 0.2) !important; }
html[data-royal-shape="glass"] #royal-top-menu .rtm-brand strong { color: #5a4fd4 !important; }
html[data-royal-shape="glass"] #royal-top-menu .rtm-brand span { color: #6a6a8a !important; }
html[data-royal-shape="glass"] #royal-top-menu .rtm-close {
  background: rgba(123, 108, 255, 0.12) !important;
  color: #5a4fd4 !important;
  border-radius: 10px !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-group {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 14px !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-group-title { color: #6a6a8a !important; font-weight: 700 !important; }
html[data-royal-shape="glass"] #royal-top-menu .rtm-item {
  color: #2a2a4a !important;
  background: transparent !important;
  border-radius: 10px !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-item:hover,
html[data-royal-shape="glass"] #royal-top-menu .rtm-item.active {
  background: rgba(123, 108, 255, 0.14) !important;
  color: #5a4fd4 !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-item i {
  background: rgba(123, 108, 255, 0.15) !important;
  color: #5a4fd4 !important;
  border-radius: 8px !important;
}
html[data-royal-shape="glass"] body.dark #royal-top-menu,
html[data-royal-shape="glass"] body[data-theme="dark"] #royal-top-menu {
  background: rgba(16, 20, 36, 0.9) !important;
  color: #f0eef8 !important;
}
html[data-royal-shape="glass"] body.dark #royal-top-menu .rtm-group,
html[data-royal-shape="glass"] body[data-theme="dark"] #royal-top-menu .rtm-group {
  background: rgba(30, 34, 55, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f0eef8 !important;
}
html[data-royal-shape="glass"] body.dark #royal-top-menu .rtm-item,
html[data-royal-shape="glass"] body[data-theme="dark"] #royal-top-menu .rtm-item {
  color: #e8e6f5 !important;
}
/* === 86 FULL MENU/BTN/MODAL — أولوية عالية === */
html[data-royal-shape="glass"] #royal-top-menu,
html[data-royal-shape="glass"] body #royal-top-menu {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.5) !important;
  border-bottom: 1px solid rgba(140, 120, 200, 0.28) !important;
  box-shadow: 0 16px 48px rgba(100, 80, 180, 0.15) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-accent {
  background: linear-gradient(90deg, #7b6cff, #9b7dff, #6b7cff) !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-brand strong { color: #5a4fd4 !important; }
html[data-royal-shape="glass"] #royal-top-menu .rtm-brand span { color: #6a6a8a !important; }
html[data-royal-shape="glass"] #royal-top-menu .rtm-close {
  color: #5a4fd4 !important;
  border-color: rgba(123, 108, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.55) !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-group {
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(140, 120, 200, 0.22) !important;
  backdrop-filter: blur(12px) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-group:nth-child(1) {
  border-color: rgba(123, 108, 255, 0.4) !important;
  background: linear-gradient(160deg, rgba(123, 108, 255, 0.12), rgba(255, 255, 255, 0.5)) !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-group:nth-child(2) {
  border-color: rgba(91, 141, 239, 0.35) !important;
  background: linear-gradient(160deg, rgba(91, 141, 239, 0.1), rgba(255, 255, 255, 0.5)) !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-group:nth-child(3) {
  border-color: rgba(61, 207, 154, 0.3) !important;
  background: linear-gradient(160deg, rgba(61, 207, 154, 0.08), rgba(255, 255, 255, 0.5)) !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-group:nth-child(4) {
  border-color: rgba(155, 125, 255, 0.3) !important;
  background: linear-gradient(160deg, rgba(155, 125, 255, 0.1), rgba(255, 255, 255, 0.5)) !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-group-title { color: #6a6a8a !important; }
html[data-royal-shape="glass"] #royal-top-menu .rtm-item {
  color: #2a2a4a !important;
  background: transparent !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-item i {
  background: rgba(123, 108, 255, 0.14) !important;
  color: #5a4fd4 !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-item:hover {
  background: rgba(123, 108, 255, 0.1) !important;
  border-color: rgba(123, 108, 255, 0.28) !important;
  color: #5a4fd4 !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-item.active {
  background: rgba(123, 108, 255, 0.16) !important;
  border-color: rgba(123, 108, 255, 0.4) !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-item.active i {
  background: linear-gradient(135deg, #7b6cff, #5a4fd4) !important;
  color: #fff !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-item.rtm-logout { color: #e05070 !important; }
html[data-royal-shape="glass"] #royal-top-menu .rtm-item.rtm-logout i {
  background: rgba(240, 112, 144, 0.15) !important;
  color: #e05070 !important;
}
html[data-royal-shape="glass"] .rnav-backdrop {
  background: rgba(80, 70, 140, 0.25) !important;
}
/* أزرار زجاجية */
html[data-royal-shape="glass"] .btn-neon,
html[data-royal-shape="glass"] .btn-neon-gold,
html[data-royal-shape="glass"] .btn-neon-cyan,
html[data-royal-shape="glass"] .btn-neon-blue,
html[data-royal-shape="glass"] .btn-neon-green,
html[data-royal-shape="glass"] .btn-neon-purple,
html[data-royal-shape="glass"] .btn-neon-orange,
html[data-royal-shape="glass"] .btn-neon-red,
html[data-royal-shape="glass"] .btn-neon-sm,
html[data-royal-shape="glass"] .btn-neon-md,
html[data-royal-shape="glass"] button.btn-neon {
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1.5px solid rgba(123, 108, 255, 0.4) !important;
  color: #5a4fd4 !important;
  box-shadow: 0 4px 16px rgba(100, 80, 180, 0.12) !important;
  backdrop-filter: blur(8px) !important;
}
html[data-royal-shape="glass"] .btn-neon-red,
html[data-royal-shape="glass"] button.btn-neon-red {
  border-color: #f07090 !important;
  color: #e05070 !important;
}
html[data-royal-shape="glass"] .btn-neon-green,
html[data-royal-shape="glass"] button.btn-neon-green {
  border-color: #3dcf9a !important;
  color: #2ab87f !important;
}
html[data-royal-shape="glass"] .btn-neon-gold,
html[data-royal-shape="glass"] button.btn-neon-gold {
  border-color: #7b6cff !important;
  color: #5a4fd4 !important;
}
html[data-royal-shape="glass"] .btn-neon-blue,
html[data-royal-shape="glass"] button.btn-neon-blue {
  border-color: #5b8def !important;
  color: #3a6dd0 !important;
}
html[data-royal-shape="glass"] .btn-neon-orange {
  border-color: #f0a050 !important;
  color: #d08030 !important;
}
html[data-royal-shape="glass"] .btn-neon-purple {
  border-color: #9b7dff !important;
  color: #7b5de0 !important;
}
html[data-royal-shape="glass"] .btn-outline,
html[data-royal-shape="glass"] button.btn-outline {
  background: rgba(255, 255, 255, 0.4) !important;
  border: 1.5px solid rgba(140, 120, 200, 0.35) !important;
  color: #4a4a6a !important;
}
/* نوافذ زجاجية */
html[data-royal-shape="glass"] .modal-overlay,
html[data-royal-shape="glass"] .custom-alert-overlay,
html[data-royal-shape="glass"] #universal-modal,
html[data-royal-shape="glass"] .security-modal-overlay,
html[data-royal-shape="glass"] #security-modal-overlay,
html[data-royal-shape="glass"] #royal80-data-modal {
  background: rgba(30, 22, 60, 0.55) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
html[data-royal-shape="glass"] .modal-box,
html[data-royal-shape="glass"] .custom-alert-box,
html[data-royal-shape="glass"] .security-modal-box,
html[data-royal-shape="glass"] #universal-modal .modal-box,
html[data-royal-shape="glass"] .royal80-box,
html[data-royal-shape="glass"] .print-options-box {
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid rgba(140, 120, 200, 0.35) !important;
  color: #2a2a4a !important;
  box-shadow: 0 20px 60px rgba(80, 60, 160, 0.28) !important;
  backdrop-filter: blur(28px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.3) !important;
}
html[data-royal-shape="glass"] .modal-header,
html[data-royal-shape="glass"] .modal-footer {
  border-color: rgba(140, 120, 200, 0.2) !important;
  background: transparent !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] .modal-header h2,
html[data-royal-shape="glass"] .modal-header h3,
html[data-royal-shape="glass"] .modal-title { color: #5a4fd4 !important; }
html[data-royal-shape="glass"] .settings-card,
html[data-royal-shape="glass"] .royal-block,
html[data-royal-shape="glass"] .card,
html[data-royal-shape="glass"] .panel {
  background: rgba(255, 255, 255, 0.58) !important;
  border: 1px solid rgba(140, 120, 200, 0.22) !important;
  color: #2a2a4a !important;
  box-shadow: 0 8px 28px rgba(100, 80, 180, 0.1) !important;
  backdrop-filter: blur(14px) !important;
}
html[data-royal-shape="glass"] .settings-card h4,
html[data-royal-shape="glass"] .settings-card h3 { color: #5a4fd4 !important; }
html[data-royal-shape="glass"] input,
html[data-royal-shape="glass"] select,
html[data-royal-shape="glass"] textarea {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(140, 120, 200, 0.3) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] .top-navbar,
html[data-royal-shape="glass"] nav.top-navbar {
  background: rgba(255, 255, 255, 0.62) !important;
  border-color: rgba(140, 120, 200, 0.22) !important;
  color: #2a2a4a !important;
  backdrop-filter: blur(18px) !important;
}
html[data-royal-shape="glass"] /* ===== v91 تغطية شاملة: لوحة التحكم + جداول + نوافذ ===== */
html[data-royal-shape="glass"] .stat-number,
html[data-royal-shape="glass"] #dashboard .stat-number,
html[data-royal-shape="glass"] .card .stat-number {
  color: #5a4fd4 !important;
}
html[data-royal-shape="glass"] .stat-label,
html[data-royal-shape="glass"] #dashboard .stat-label,
html[data-royal-shape="glass"] .card .stat-label {
  color: #6a6a8a !important;
}
html[data-royal-shape="glass"] #dashboard .card,
html[data-royal-shape="glass"] #dashboard .dashboard-cards .card,
html[data-royal-shape="glass"] .dashboard-cards .card,
html[data-royal-shape="glass"] .stats-row .card {
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(140, 120, 200, 0.25) !important;
  box-shadow: 0 8px 28px rgba(100, 80, 180, 0.1) !important;
  color: #2a2a4a !important;
  backdrop-filter: blur(12px) saturate(150%) !important;
}
html[data-royal-shape="glass"] #dashboard .card:hover {
  border-color: rgba(123, 108, 255, 0.45) !important;
  box-shadow: 0 12px 32px rgba(100, 80, 180, 0.16) !important;
}
html[data-royal-shape="glass"] #dashboard .card-icon,
html[data-royal-shape="glass"] .card .card-icon,
html[data-royal-shape="glass"] #dashboard .card i,
html[data-royal-shape="glass"] #dashboard i.fas,
html[data-royal-shape="glass"] #dashboard i.fa,
html[data-royal-shape="glass"] .rnav-item i,
html[data-royal-shape="glass"] .panel-header i,
html[data-royal-shape="glass"] .section-title i,
html[data-royal-shape="glass"] h2 i {
  color: #7b6cff !important;
}
html[data-royal-shape="glass"] #dashboard h2,
html[data-royal-shape="glass"] #dashboard .section-title,
html[data-royal-shape="glass"] .section-container h2,
html[data-royal-shape="glass"] .section-container .section-title {
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] .alerts-panel,
html[data-royal-shape="glass"] .reminders-panel,
html[data-royal-shape="glass"] #dashboard .panel {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(140, 120, 200, 0.22) !important;
  color: #2a2a4a !important;
  backdrop-filter: blur(10px) !important;
}
html[data-royal-shape="glass"] table thead th,
html[data-royal-shape="glass"] .data-table thead th,
html[data-royal-shape="glass"] .table thead th {
  background: rgba(123, 108, 255, 0.12) !important;
  color: #5a4fd4 !important;
  border-color: rgba(140, 120, 200, 0.2) !important;
}
html[data-royal-shape="glass"] table tbody td,
html[data-royal-shape="glass"] .data-table tbody td,
html[data-royal-shape="glass"] .table tbody td {
  background: transparent !important;
  color: #2a2a4a !important;
  border-color: rgba(140, 120, 200, 0.12) !important;
}
html[data-royal-shape="glass"] table tbody tr:hover td {
  background: rgba(123, 108, 255, 0.06) !important;
}
html[data-royal-shape="glass"] .modal-box,
html[data-royal-shape="glass"] .custom-alert-box,
html[data-royal-shape="glass"] .security-modal-box,
html[data-royal-shape="glass"] .print-options-box,
html[data-royal-shape="glass"] #universal-modal .modal-box {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(140, 120, 200, 0.3) !important;
  color: #2a2a4a !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  box-shadow: 0 20px 50px rgba(100, 80, 180, 0.18) !important;
}
html[data-royal-shape="glass"] .modal-overlay,
html[data-royal-shape="glass"] .custom-alert-overlay,
html[data-royal-shape="glass"] .security-modal-overlay {
  background: rgba(40, 30, 70, 0.35) !important;
  backdrop-filter: blur(6px) !important;
}
html[data-royal-shape="glass"] .settings-card,
html[data-royal-shape="glass"] #settings .settings-card,
html[data-royal-shape="glass"] .settings-grid > div {
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(140, 120, 200, 0.22) !important;
  color: #2a2a4a !important;
  backdrop-filter: blur(10px) !important;
}
html[data-royal-shape="glass"] .settings-card h4,
html[data-royal-shape="glass"] #settings h4 {
  color: #5a4fd4 !important;
}
html[data-royal-shape="glass"] .top-navbar,
html[data-royal-shape="glass"] nav.top-navbar,
html[data-royal-shape="glass"] #top-navbar {
  background: rgba(255, 255, 255, 0.55) !important;
  border-bottom: 1px solid rgba(140, 120, 200, 0.2) !important;
  backdrop-filter: blur(12px) saturate(150%) !important;
}
html[data-royal-shape="glass"] #royal-top-menu .rtm-item.rtm-logout,
html[data-royal-shape="glass"] #royal-top-menu .rtm-item[data-action="logout"] {
  color: #f07090 !important;
}


/* ROYAL SELECT DROPDOWN STACKING FIX for theme-glass.css */
html[data-royal-shape] #settings .settings-card {
  overflow: visible !important;
}
html[data-royal-shape] #settings .settings-card:focus-within {
  z-index: 60 !important;
}


/* ===== أزرار شريط الإحصائيات والأرباح — Glass ===== */
html[data-royal-shape="glass"] {
  --r67-btn-border: rgba(123, 108, 255, 0.4);
  --r67-btn-bg: rgba(255, 255, 255, 0.35);
  --r67-btn-color: #2a2a4a;
  --r67-btn-hover-border: #7b6cff;
  --r67-btn-hover-bg: rgba(123, 108, 255, 0.15);
  --r67-btn-active-bg: linear-gradient(135deg, #9b8cff, #5a4fcf);
  --r67-btn-active-color: #fff;
}
html[data-royal-shape="glass"] #stats .r67-toolbar,
html[data-royal-shape="glass"] #profit .r67-toolbar {
  background: rgba(255, 255, 255, 0.4) !important;
  border: 1px solid rgba(123, 108, 255, 0.25) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
html[data-royal-shape="glass"] #stats .r67-toolbar button,
html[data-royal-shape="glass"] #profit .r67-toolbar button,
html[data-royal-shape="glass"] #stats .r67-chart-types button,
html[data-royal-shape="glass"] #profit .r67-chart-types button {
  border-color: rgba(123, 108, 255, 0.4) !important;
  background: rgba(255, 255, 255, 0.35) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] #stats .r67-toolbar button:hover,
html[data-royal-shape="glass"] #profit .r67-toolbar button:hover,
html[data-royal-shape="glass"] #stats .r67-chart-types button:hover,
html[data-royal-shape="glass"] #profit .r67-chart-types button:hover {
  border-color: #7b6cff !important;
  background: rgba(123, 108, 255, 0.15) !important;
  color: #4a3fc4 !important;
}
html[data-royal-shape="glass"] #stats .r67-toolbar button.active,
html[data-royal-shape="glass"] #profit .r67-toolbar button.active,
html[data-royal-shape="glass"] #stats .r67-chart-types button.active,
html[data-royal-shape="glass"] #profit .r67-chart-types button.active {
  background: linear-gradient(135deg, #9b8cff, #5a4fcf) !important;
  color: #fff !important;
  border-color: transparent !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] #stats .r67-toolbar button,
html[data-royal-shape="glass"] body.dark #stats .r67-toolbar button {
  color: #f0eef8 !important;
  background: rgba(30, 28, 50, 0.5) !important;
}

/* ============================================================
   الوضع الداكن + شكل الزجاج — تنسيق متناسق وواضح
   ============================================================ */
html[data-royal-shape="glass"] body[data-theme="dark"],
html[data-royal-shape="glass"] body.dark-mode,
html[data-royal-shape="glass"] body.dark {
  --bg-color: #0e0e1a !important;
  --bg-gradient: linear-gradient(160deg, #0e0e1a 0%, #16122a 50%, #12101f 100%) !important;
  --sidebar-bg: rgba(18, 16, 36, 0.92) !important;
  --card-bg: rgba(28, 24, 48, 0.88) !important;
  --card-solid: rgba(28, 24, 48, 0.96) !important;
  --card-border: rgba(123, 108, 255, 0.22) !important;
  --text-color: #eae6f8 !important;
  --text-muted: #9a96b0 !important;
  --border-color: rgba(123, 108, 255, 0.28) !important;
  --input-bg: rgba(20, 18, 38, 0.9) !important;
  background: var(--bg-gradient) !important;
  color: #eae6f8 !important;
}

/* بطاقات ولوحات */
html[data-royal-shape="glass"] body[data-theme="dark"] .panel,
html[data-royal-shape="glass"] body[data-theme="dark"] .card,
html[data-royal-shape="glass"] body[data-theme="dark"] .settings-card,
html[data-royal-shape="glass"] body[data-theme="dark"] .royal-block,
html[data-royal-shape="glass"] body[data-theme="dark"] .stat-card,
html[data-royal-shape="glass"] body.dark-mode .panel,
html[data-royal-shape="glass"] body.dark-mode .card,
html[data-royal-shape="glass"] body.dark-mode .settings-card,
html[data-royal-shape="glass"] body.dark-mode .royal-block {
  background: rgba(28, 24, 48, 0.9) !important;
  border: 1px solid rgba(123, 108, 255, 0.25) !important;
  color: #eae6f8 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* عناوين */
html[data-royal-shape="glass"] body[data-theme="dark"] h2,
html[data-royal-shape="glass"] body[data-theme="dark"] h3,
html[data-royal-shape="glass"] body[data-theme="dark"] .panel-header h2,
html[data-royal-shape="glass"] body[data-theme="dark"] .section-container > h2,
html[data-royal-shape="glass"] body.dark-mode h2,
html[data-royal-shape="glass"] body.dark-mode h3 {
  color: #c8b8ff !important;
}

/* حقول الإدخال */
html[data-royal-shape="glass"] body[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-royal-shape="glass"] body[data-theme="dark"] select,
html[data-royal-shape="glass"] body[data-theme="dark"] textarea,
html[data-royal-shape="glass"] body.dark-mode input:not([type="checkbox"]):not([type="radio"]),
html[data-royal-shape="glass"] body.dark-mode select,
html[data-royal-shape="glass"] body.dark-mode textarea {
  background: rgba(18, 16, 36, 0.92) !important;
  border: 1.5px solid rgba(123, 108, 255, 0.35) !important;
  color: #eae6f8 !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] input::placeholder,
html[data-royal-shape="glass"] body.dark-mode input::placeholder {
  color: #7a7690 !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] label,
html[data-royal-shape="glass"] body.dark-mode label {
  color: #b8b4d0 !important;
}

/* جداول */
html[data-royal-shape="glass"] body[data-theme="dark"] table,
html[data-royal-shape="glass"] body[data-theme="dark"] .data-table,
html[data-royal-shape="glass"] body.dark-mode table {
  background: rgba(22, 20, 40, 0.7) !important;
  color: #eae6f8 !important;
  border-color: rgba(123, 108, 255, 0.2) !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] th,
html[data-royal-shape="glass"] body.dark-mode th {
  background: rgba(40, 34, 70, 0.95) !important;
  color: #c8b8ff !important;
  border-color: rgba(123, 108, 255, 0.25) !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] td,
html[data-royal-shape="glass"] body.dark-mode td {
  color: #e0dceb !important;
  border-color: rgba(123, 108, 255, 0.12) !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] table tbody tr:nth-child(even) td,
html[data-royal-shape="glass"] body.dark-mode table tbody tr:nth-child(even) td {
  background: rgba(35, 30, 58, 0.5) !important;
}

/* نوافذ منبثقة — صلبة وواضحة في الداكن */
html[data-royal-shape="glass"] body[data-theme="dark"] .modal-overlay,
html[data-royal-shape="glass"] body[data-theme="dark"] #universal-modal,
html[data-royal-shape="glass"] body.dark-mode .modal-overlay,
html[data-royal-shape="glass"] body.dark-mode #universal-modal {
  background: rgba(8, 6, 20, 0.72) !important;
  backdrop-filter: blur(12px) !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] .modal-box,
html[data-royal-shape="glass"] body[data-theme="dark"] .modal-content,
html[data-royal-shape="glass"] body[data-theme="dark"] #universal-modal .modal-box,
html[data-royal-shape="glass"] body[data-theme="dark"] .sinv-card,
html[data-royal-shape="glass"] body.dark-mode .modal-box,
html[data-royal-shape="glass"] body.dark-mode .sinv-card {
  background: rgba(24, 20, 44, 0.98) !important;
  border: 1px solid rgba(123, 108, 255, 0.35) !important;
  color: #eae6f8 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55) !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] .modal-header h2,
html[data-royal-shape="glass"] body[data-theme="dark"] .modal-title,
html[data-royal-shape="glass"] body.dark-mode .modal-title {
  color: #c8b8ff !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] .modal-body,
html[data-royal-shape="glass"] body.dark-mode .modal-body {
  color: #d8d4e8 !important;
}

/* قوائم منسدلة مخصصة r171 */
html[data-royal-shape="glass"] body[data-theme="dark"] .r171-btn,
html[data-royal-shape="glass"] body.dark-mode .r171-btn {
  background: rgba(22, 18, 42, 0.95) !important;
  border-color: rgba(123, 108, 255, 0.4) !important;
  color: #eae6f8 !important;
  -webkit-text-fill-color: #eae6f8 !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] .r171-menu,
html[data-royal-shape="glass"] body.dark-mode .r171-menu {
  background: rgba(18, 14, 36, 0.98) !important;
  border-color: rgba(123, 108, 255, 0.35) !important;
  color: #eae6f8 !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] .r171-lab,
html[data-royal-shape="glass"] body.dark-mode .r171-lab {
  color: #eae6f8 !important;
  -webkit-text-fill-color: #eae6f8 !important;
}

/* الشريط الجانبي */
html[data-royal-shape="glass"] body[data-theme="dark"] #sidebar,
html[data-royal-shape="glass"] body[data-theme="dark"] .rnav,
html[data-royal-shape="glass"] body.dark-mode #sidebar,
html[data-royal-shape="glass"] body.dark-mode .rnav {
  background: rgba(14, 12, 28, 0.95) !important;
  border-color: rgba(123, 108, 255, 0.2) !important;
  color: #eae6f8 !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] .rnav-item,
html[data-royal-shape="glass"] body.dark-mode .rnav-item {
  color: #c8c4d8 !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] .rnav-item:hover,
html[data-royal-shape="glass"] body[data-theme="dark"] .rnav-item.active,
html[data-royal-shape="glass"] body.dark-mode .rnav-item.active {
  background: rgba(123, 108, 255, 0.2) !important;
  color: #c8b8ff !important;
}

/* أزرار */
html[data-royal-shape="glass"] body[data-theme="dark"] .btn-neon-gold {
  border-color: #c9a84c !important;
  color: #c9a84c !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] .btn-neon {
  background: transparent !important;
}

/* القائمة العلوية — تفوز على القواعد الفاتحة */
html[data-royal-shape="glass"] body[data-theme="dark"] #royal-top-menu,
html[data-royal-shape="glass"] body.dark-mode #royal-top-menu {
  background: rgba(16, 14, 32, 0.95) !important;
  color: #eae6f8 !important;
  border-bottom-color: rgba(123, 108, 255, 0.25) !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] #royal-top-menu .rtm-group,
html[data-royal-shape="glass"] body.dark-mode #royal-top-menu .rtm-group {
  background: rgba(28, 24, 48, 0.85) !important;
  border-color: rgba(123, 108, 255, 0.2) !important;
  color: #eae6f8 !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] #royal-top-menu .rtm-item,
html[data-royal-shape="glass"] body.dark-mode #royal-top-menu .rtm-item {
  color: #d8d4e8 !important;
}
html[data-royal-shape="glass"] body[data-theme="dark"] #royal-top-menu .rtm-brand strong,
html[data-royal-shape="glass"] body.dark-mode #royal-top-menu .rtm-brand strong {
  color: #c8b8ff !important;
}
