/* VoltEx (فولتكس) Modern Glassmorphism & Cyber Aesthetic Design System */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Inter', sans-serif;

  /* Color Palette - Cyber Volt VoltEx */
  --color-cyan: #00f0ff;
  --color-violet: #7000ff;
  --color-gold: #ffb700;
  --color-emerald: #00e676;
  --color-rose: #ff2a6d;

  /* Dark Theme Default */
  --bg-main: #070913;
  --bg-card: rgba(18, 22, 41, 0.75);
  --bg-card-hover: rgba(28, 34, 62, 0.85);
  --bg-header: rgba(10, 13, 26, 0.85);
  --bg-input: rgba(13, 17, 33, 0.9);
  --bg-modal: rgba(12, 16, 30, 0.95);

  --text-main: #f0f4fc;
  --text-muted: #8c9ba5;
  --text-inverse: #070913;

  --border-glow: rgba(0, 240, 255, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.2);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --color-cyan: #0284c7;
  --color-violet: #6d28d9;
  --color-gold: #d97706;
  --color-emerald: #059669;
  --color-rose: #e11d48;

  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.95);
  --bg-input: #f8fafc;
  --bg-modal: #ffffff;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-inverse: #ffffff;

  --border-glow: rgba(2, 132, 199, 0.25);
  --border-subtle: rgba(0, 0, 0, 0.12);

  --shadow-neon: 0 4px 20px rgba(2, 132, 199, 0.15);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Light Theme High Contrast & Readability Enhancements */
[data-theme="light"] .stat-number {
  color: #0284c7;
  text-shadow: none;
  font-weight: 900;
}

[data-theme="light"] .stat-label {
  color: #334155;
  font-weight: 700;
}

[data-theme="light"] .feature-desc {
  color: #334155;
}

[data-theme="light"] .dash-stat-title {
  color: #334155;
  font-weight: 700;
}

[data-theme="light"] .dash-date-text {
  color: #475569 !important;
  font-weight: 600;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .form-input::placeholder {
  color: #64748b;
}

[data-theme="light"] .admin-table th {
  background: #f1f5f9;
  color: #0f172a;
  border-bottom-color: #cbd5e1;
}

[data-theme="light"] .admin-table td {
  border-bottom-color: #e2e8f0;
  color: #1e293b;
}

[data-theme="light"] .sidebar-nav {
  background: #ffffff;
  border-left-color: #e2e8f0;
}

[data-theme="light"] .sidebar-item {
  color: #334155;
}

[data-theme="light"] .sidebar-item:hover,
[data-theme="light"] .sidebar-item.active {
  background: #f1f5f9;
  color: #0284c7;
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: rgba(220, 225, 240, 0.8);
}

[data-theme="light"] * {
  scrollbar-color: var(--color-violet) rgba(220, 225, 240, 0.8);
}

/* Custom Cyber Scrollbar for Page & Modals */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(8, 11, 22, 0.6);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-violet), var(--color-cyan));
  border-radius: 10px;
  border: 2px solid rgba(8, 11, 22, 0.6);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-cyan) rgba(8, 11, 22, 0.6);
}

html {
  scroll-behavior: smooth;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-ar);
  -webkit-tap-highlight-color: transparent;
}

html[dir="ltr"] body,
html[dir="ltr"] input,
html[dir="ltr"] button,
html[dir="ltr"] select,
html[dir="ltr"] textarea,
html[dir="ltr"] span,
html[dir="ltr"] p,
html[dir="ltr"] a,
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] h6,
html[dir="ltr"] div,
html[dir="ltr"] td,
html[dir="ltr"] th {
  font-family: var(--font-en);
}

/* FontAwesome Icon Protection (Prevent language font-family from overriding icon glyphs) */
i[class*="fa-"],
.fa-solid,
.fa-regular,
.fa-light,
.fa-brands,
.fa {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

.fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(112, 0, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  transition: var(--transition);
}

/* Glassmorphism Effect */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--border-glow);
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  transition: var(--transition);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
  transition: transform 0.3s ease;
}

.nav-brand:hover .brand-logo-img {
  transform: scale(1.08) rotate(5deg);
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: var(--transition);
  opacity: 0.85;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  color: var(--color-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Control Buttons */
.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.btn-pill {
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-violet), #9d00ff);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(112, 0, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(112, 0, 255, 0.6);
}

.btn-neon {
  background: linear-gradient(135deg, var(--color-cyan), #00b8ff);
  color: #050b14;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.35);
  font-weight: 800;
}

.btn-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 240, 255, 0.55);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

/* User Balance & Avatar Widget */
.user-widget {
  display: none !important;
}

.balance-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--color-emerald);
  font-size: 0.95rem;
  padding: 4px 8px;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-cyan);
  background: var(--color-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
}

/* Main Container & Hero */
.main-content {
  margin-top: 76px;
  min-height: calc(100vh - 76px - 120px);
}

.hero-section {
  padding: 5rem 2rem 4rem;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--color-cyan);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-banner-box {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 280px;
  margin: 0 auto;
}

.hero-logo-large {
  max-width: 100%;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(112, 0, 255, 0.4));
  animation: floatAnim 4s ease-in-out infinite;
}

@keyframes floatAnim {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Stats Ribbon */
.stats-ribbon {
  max-width: 1240px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem;
}

.stat-card {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-cyan);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-weight: 600;
  color: var(--text-muted);
}

/* Section Common */
.section-wrapper {
  padding: 4rem 2rem;
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(112, 0, 255, 0.15);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Investment Packages Cards */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.pkg-card {
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.pkg-card.highlight {
  border-color: var(--color-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.18);
}

.pkg-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-violet), var(--color-cyan));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pkg-header {
  text-align: center;
  margin-bottom: 1.5rem;
  margin-top: 6px;
}

.pkg-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pkg-price-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 1.2rem;
}

.pkg-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-cyan);
}

.pkg-currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pkg-details-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pkg-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-subtle);
}

.pkg-detail-value {
  font-weight: 800;
  color: var(--color-emerald);
}

/* Payment Gateways Bar */
.gateways-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 2rem;
}

.gateway-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-modal);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--color-rose);
}

/* Form Controls */
.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.98rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Image Compression Metrics Display */
.compression-box {
  background: rgba(0, 240, 255, 0.05);
  border: 1px dashed var(--color-cyan);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.88rem;
}

.compression-metrics {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-weight: 700;
}

/* Developer Admin Secret Vault Modal & Full Screen Panel */
.admin-panel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.admin-tab {
  padding: 10px 20px;
  font-weight: 700;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.admin-tab.active {
  color: var(--color-cyan);
  border-bottom-color: var(--color-cyan);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border-subtle);
}

html[dir="ltr"] .admin-table th,
html[dir="ltr"] .admin-table td {
  text-align: left;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.status-badge {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-pending {
  background: rgba(255, 183, 0, 0.2);
  color: var(--color-gold);
  border: 1px solid rgba(255, 183, 0, 0.4);
}

.status-approved {
  background: rgba(0, 230, 118, 0.2);
  color: var(--color-emerald);
  border: 1px solid rgba(0, 230, 118, 0.4);
}

.status-rejected {
  background: rgba(255, 42, 109, 0.2);
  color: var(--color-rose);
  border: 1px solid rgba(255, 42, 109, 0.4);
}

/* Floating User Side Menu Dock */
.user-sidebar-dock {
  position: fixed;
  top: 40%;
  right: 18px;
  transform: translateY(-50%);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-neon);
  transition: var(--transition);
}

html[dir="ltr"] .user-sidebar-dock {
  right: auto;
  left: 18px;
}

.side-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.side-btn:hover {
  background: linear-gradient(135deg, var(--color-violet), var(--color-cyan));
  color: #ffffff;
  border-color: var(--color-cyan);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
  transform: translateX(-4px);
}

html[dir="ltr"] .side-btn:hover {
  transform: translateX(4px);
}

.side-btn.btn-account {
  border-color: var(--color-violet);
}

.side-btn.btn-status {
  border-color: var(--color-cyan);
  background: rgba(0, 240, 255, 0.1);
}

/* Vertical Sidebar Dashboard Layout (Full Screen App View - Matching Image 2) */
.app-dashboard-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1200;
  display: flex;
  background: var(--bg-main);
  overflow: hidden;
}

.sidebar-nav {
  width: 280px;
  height: 100vh;
  background: rgba(10, 14, 28, 0.98);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  backdrop-filter: blur(25px);
  z-index: 10;
}

html[dir="ltr"] .sidebar-nav {
  border-left: none;
  border-right: 1px solid var(--border-subtle);
}

.sidebar-header {
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* User Card inside Sidebar (كما في الصورة 2) */
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  text-align: right;
  outline: none;
  font-family: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.sidebar-user-card:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--color-cyan);
}

.sidebar-avatar-box img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-cyan);
}

.sidebar-user-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.sidebar-user-role {
  font-size: 0.78rem;
  color: var(--color-cyan);
  font-weight: 600;
}

/* Navigation Items (كما في الصورة 2) */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: var(--transition);
  position: relative;
}

.sidebar-item i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

.sidebar-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-item.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(112, 0, 255, 0.35), rgba(0, 240, 255, 0.15));
  border-right: 4px solid var(--color-violet);
}

html[dir="ltr"] .sidebar-item.active {
  border-right: none;
  border-left: 4px solid var(--color-violet);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  justify-content: center;
}

.theme-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-violet {
  background: var(--color-violet);
}

.dot-cyan {
  background: var(--color-cyan);
}

.dot-emerald {
  background: var(--color-emerald);
}

.dot-gold {
  background: var(--color-gold);
}

.dot-rose {
  background: var(--color-rose);
}

/* Dashboard Main Content Area */
.dashboard-main-area {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
}

.dash-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-date-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-balance-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

/* 3 Summary Stat Cards Ribbon */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.dash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.dash-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon);
}

.dash-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-purple .dash-stat-icon {
  background: rgba(112, 0, 255, 0.2);
  color: var(--color-violet);
}

.card-green .dash-stat-icon {
  background: rgba(0, 230, 118, 0.2);
  color: var(--color-emerald);
}

.card-yellow .dash-stat-icon {
  background: rgba(255, 183, 0, 0.2);
  color: var(--color-gold);
}

.card-rose .dash-stat-icon {
  background: rgba(255, 42, 109, 0.2);
  color: var(--color-rose);
}

.dash-stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.1;
}

.dash-stat-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 4px;
}

.dash-content-body {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 400px;
}

@media (max-width: 992px) {
  .app-dashboard-container {
    flex-direction: column;
  }

  .sidebar-nav {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dash-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact Centered Footer */
.footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border-subtle);
  padding: 1.2rem 1rem;
  margin-top: 3rem;
  backdrop-filter: blur(20px);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.footer-logo-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-copyright-text {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-cyan);
  text-align: center;
}

.footer-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.82rem;
}

.footer-link-item {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link-item:hover {
  color: var(--color-cyan);
}

.footer-link-separator {
  color: var(--text-muted);
  opacity: 0.4;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html[dir="rtl"] .toast-container {
  left: auto;
  right: 24px;
}

.toast {
  background: var(--bg-modal);
  border: 1px solid var(--color-cyan);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-neon);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s forwards;
}

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Full Mobile & Responsive Design System */
html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
}

@media (max-width: 991px) {

  /* Navbar Header - Zero Overflow & Single Flush Line */
  .navbar {
    padding: 0 0.5rem;
    height: 60px !important;
    max-height: 60px !important;
    overflow: hidden !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .nav-brand {
    gap: 5px;
    flex-shrink: 0;
  }

  .brand-logo-img {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 1.05rem;
    letter-spacing: -0.5px;
  }

  .nav-actions {
    gap: 4px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    flex-shrink: 0;
  }

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

  .btn-pill {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 30px;
  }

  /* Hide balance badge & redundant buttons from navbar header */
  #btn-open-register,
  #btn-open-deposit,
  #btn-open-withdraw,
  .user-widget {
    display: none !important;
  }

  #user-actions {
    gap: 4px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  #btn-toggle-dashboard {
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  .user-widget .balance-badge {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }

  .nav-links {
    display: none !important;
  }

  .main-content {
    margin-top: 60px;
  }

  /* Hero Section - Efficient Space Usage */
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.4rem 0.8rem 1rem;
    gap: 1rem;
  }

  .hero-badge {
    padding: 4px 12px;
    font-size: 0.76rem;
    margin-bottom: 0.6rem;
  }

  .hero-title {
    font-size: 1.45rem;
    line-height: 1.35;
    margin-bottom: 0.6rem;
  }

  .hero-subtitle {
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 95%;
  }

  .hero-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .hero-actions .btn-pill {
    flex: 1;
    max-width: 155px;
    padding: 10px 8px;
    font-size: 0.82rem;
    justify-content: center;
    text-align: center;
  }

  .hero-banner-box {
    display: none !important;
  }

  /* Stats Ribbon - High Efficiency Horizontal 3-Column Grid */
  .stats-ribbon {
    padding: 0 0.8rem;
    margin-bottom: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 0.8rem 0.4rem;
  }

  .stat-card {
    padding: 4px 2px;
  }

  .stat-number {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }

  .stat-label {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  /* Section Common */
  .section-wrapper {
    padding: 1.8rem 0.8rem;
  }

  .section-header {
    margin-bottom: 1.2rem;
  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
  }

  .section-subtitle {
    font-size: 0.82rem;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .feature-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .feature-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }

  .feature-title {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
  }

  .feature-desc {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  /* Packages Grid */
  .packages-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pkg-card {
    padding: 1.1rem;
  }

  .pkg-name {
    font-size: 1.1rem;
  }

  .pkg-price {
    font-size: 1.6rem;
  }

  /* Payment Gateways Bar */
  .gateways-bar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 0.8rem 0.5rem;
  }

  .gateway-chip {
    font-size: 0.78rem;
    padding: 8px 12px;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 95px;
  }

  /* User App Layout (Dashboard view on mobile) */
  .app-dashboard-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    min-height: 100vh;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex-direction: column !important;
    z-index: 100;
  }

  .sidebar-nav {
    width: 100% !important;
    height: auto !important;
    border-left: none !important;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.6rem 0.8rem !important;
    overflow: visible !important;
    flex-shrink: 0;
  }

  .sidebar-header {
    display: none !important;
  }

  .sidebar-user-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 10px 14px;
    background: rgba(112, 0, 255, 0.12);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    margin-bottom: 0;
    width: 100%;
    text-align: right;
    outline: none;
    font-family: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
  }

  .sidebar-chevron-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid var(--color-cyan);
    color: var(--color-cyan);
    font-size: 0.95rem;
    pointer-events: none;
  }

  #sidebar-chevron-icon {
    transition: transform 0.35s ease;
  }

  .sidebar-menu {
    display: none !important;
    flex-direction: column;
    gap: 4px;
    margin-top: 0.8rem;
    width: 100%;
  }

  .sidebar-menu.open {
    display: flex !important;
  }

  .dashboard-main-area {
    width: 100% !important;
    height: auto !important;
    overflow-y: visible !important;
    padding: 0.8rem 0.6rem !important;
  }

  .dash-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .dash-header-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dash-header-left div {
    font-size: 1.05rem !important;
  }

  .dash-date-text {
    font-size: 0.72rem !important;
  }

  .dash-header-right {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }

  .dash-balance-chip {
    padding: 6px 10px;
    font-size: 0.76rem;
    flex: 1 1 auto;
    justify-content: center;
  }

  #dash-quick-deposit, #dash-landing-switch {
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  #dash-landing-switch {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    font-weight: 800;
  }

  /* Compact 2x2 Stats Ribbon Grid on Mobile */
  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .dash-stat-card {
    padding: 0.6rem;
    min-height: 75px;
    gap: 8px;
    border-radius: 10px;
  }

  .dash-stat-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .dash-stat-value {
    font-size: 1.2rem !important;
    line-height: 1.1;
    margin-bottom: 2px;
  }

  .dash-stat-title {
    font-size: 0.68rem !important;
    line-height: 1.25;
  }

  /* Modal Dialogs on Mobile */
  .modal-content {
    width: 92%;
    max-width: 92%;
    padding: 1.1rem;
    margin: 8px;
  }
}

/* Referral & QR Code Component Styles */
.referral-card-box {
  transition: var(--transition);
}

.referral-card-box:hover {
  border-color: var(--color-gold) !important;
  box-shadow: 0 0 20px rgba(255, 183, 0, 0.15);
}

.qr-code-wrapper img {
  border-radius: 8px;
  transition: transform 0.25s ease;
}

.qr-code-wrapper:hover img {
  transform: scale(1.04);
}

/* Form Inline Error Alert */
.form-error-alert {
  background: rgba(255, 42, 109, 0.15);
  border: 1px solid var(--color-rose);
  color: #ff407d;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.3s ease;
}

/* Modal Shake Animation */
.shake-modal {
  animation: shakeAnim 0.4s ease-in-out;
}

@keyframes shakeAnim {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-8px);
  }

  40%,
  80% {
    transform: translateX(8px);
  }
}

/* Fullscreen Cyber Splash Loader */
.auth-loader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 9, 20, 0.96);
  backdrop-filter: blur(25px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.loader-content-box {
  text-align: center;
  max-width: 400px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-logo-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.loader-logo-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 0 15px var(--color-cyan));
  animation: pulseLogo 1.5s ease-in-out infinite alternate;
}

.loader-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--color-cyan);
  border-right-color: var(--color-violet);
  animation: spinRing 1s linear infinite;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.loader-pulse-glow {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.35) 0%, rgba(112, 0, 255, 0) 70%);
  animation: pulseGlow 1.5s ease-in-out infinite alternate;
}

.loader-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--color-cyan), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loader-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.loader-progress-bar {
  width: 220px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.loader-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-violet), var(--color-cyan), var(--color-emerald));
  border-radius: 10px;
  box-shadow: 0 0 10px var(--color-cyan);
  animation: progressFill 1.5s ease-in-out forwards;
}

@keyframes spinRing {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulseLogo {
  0% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1.08);
  }
}

@keyframes pulseGlow {
  0% {
    opacity: 0.4;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes progressFill {
  0% {
    width: 0%;
  }

  50% {
    width: 65%;
  }

  100% {
    width: 100%;
  }
}