/*
============================================
  KGS-EGY Premium Dark Gold Theme
  Design System & CSS Variables
============================================
*/

/* ==========================================
   1. CSS VARIABLES - DESIGN TOKENS
========================================== */
:root {
  /* Primary Colors */
  --gold: #D4AF37;
  --gold-light: #E8C547;
  --gold-dark: #B8942E;
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F5D76E 50%, #D4AF37 100%);
  --gold-shine: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);

  /* Dark Theme Colors */
  --bg-primary: #0A0A0F;
  --bg-secondary: #111118;
  --bg-tertiary: #1A1A24;
  --bg-card: #141420;
  --bg-card-hover: #1E1E2D;
  --bg-overlay: rgba(10, 10, 15, 0.95);

  /* Surface Colors */
  --surface-glass: rgba(20, 20, 32, 0.8);
  --surface-elevated: #1A1A28;
  --surface-border: rgba(212, 175, 55, 0.15);
  --surface-border-hover: rgba(212, 175, 55, 0.4);

  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.9);
  --text-tertiary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-gold: #D4AF37;

  /* Status Colors */
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #3B82F6;
  --info-bg: rgba(59, 130, 246, 0.1);

  /* Typography */
  --font-primary: 'Cairo', sans-serif;
  --font-display: 'Cairo', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.5rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.3);
  --shadow-gold-sm: 0 0 15px rgba(212, 175, 55, 0.2);
  --shadow-gold-lg: 0 0 50px rgba(212, 175, 55, 0.4);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

/* ==========================================
   2. BASE STYLES & RESET
========================================== */
@import url('../../../../css2');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: 1.7;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* Selection */
::selection {
  background-color: var(--gold);
  color: var(--bg-primary);
}

/* ==========================================
   3. TYPOGRAPHY
========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--gold-light);
}

.text-gold { color: var(--gold) !important; }
.text-white { color: var(--text-primary) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ==========================================
   4. LAYOUT & CONTAINERS
========================================== */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-6);
}

section {
  padding: var(--space-20) 0;
  position: relative;
}

.section-padding {
  padding: var(--space-24) 0;
}

/* ==========================================
   5. BUTTONS
========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold-shine);
  transition: var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

/* Primary Button - Gold */
.btn--primary,
.btn--base {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border-color: var(--gold);
}

.btn--primary:hover,
.btn--base:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Secondary Button - Outline */
.btn--secondary,
.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn--secondary:hover,
.btn--outline:hover {
  background: var(--gold);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-sm);
}

/* Dark Button */
.btn--dark {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--surface-border);
}

.btn--dark:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
  color: var(--gold);
}

/* Button Sizes */
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: 14px;
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn--xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-xl);
}

/* ==========================================
   6. CARDS
========================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-base);
}

.card:hover {
  border-color: var(--surface-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-glass {
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--surface-border);
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--surface-border);
}

/* ==========================================
   7. FORMS
========================================== */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 14px;
  font-weight: var(--font-medium);
  color: var(--text-secondary);
}

.form-label.required::after {
  content: ' *';
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  direction: rtl;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23d4af37' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: left var(--space-4) center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-left: var(--space-10);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.form-check-input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Form Sections - Reusable Container */
.form-section {
  background: var(--bg-tertiary);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.form-section__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--gold);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--surface-border);
}

.form-section__title i {
  font-size: var(--text-xl);
}

/* Auto Username Display */
.auto-username-box {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
}

.auto-username-box i {
  font-size: var(--text-2xl);
  color: var(--gold);
}

.auto-username-box span {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--gold);
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}

/* ID Upload Box */
.id-upload-box {
  position: relative;
  height: 150px;
  border: 2px dashed var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-base);
  background: var(--bg-tertiary);
}

.id-upload-box:hover {
  border-color: var(--gold);
}

.id-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.id-upload-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  z-index: 1;
}

.id-upload-placeholder i {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-2);
  color: var(--gold);
}

.id-upload-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 1;
}

.id-upload-box.has-image .id-upload-placeholder {
  display: none;
}

.id-upload-box.has-image .id-upload-preview {
  display: block;
}

/* User Found Box */
.user-found-box {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(40, 167, 69, 0.05) 100%);
  border: 1px solid rgba(40, 167, 69, 0.4);
  border-radius: var(--radius-lg);
  margin-top: var(--space-2);
}

.user-found-box i {
  font-size: var(--text-xl);
  color: #28a745;
}

.user-found-box .user-fullname {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: #28a745;
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
}

.password-input-wrapper .form-control {
  padding-left: 45px;
}

.toggle-password {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: var(--transition-base);
  z-index: 10;
}

.toggle-password:hover {
  color: var(--gold);
}

/* Auth Page Layouts */
.auth-section--centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  background: var(--bg-primary);
}

.auth-container {
  width: 100%;
  max-width: 700px;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin: 0 auto;
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--space-6);
}

.auth-logo img {
  height: 50px;
  width: auto;
}

.auth-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  text-align: center;
}

.auth-subtitle {
  color: var(--text-tertiary);
  margin-bottom: var(--space-6);
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
  color: var(--text-muted);
  font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--surface-border);
}

.auth-footer {
  margin-top: var(--space-6);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}

@media (max-width: 576px) {
  .auth-container {
    padding: var(--space-5);
  }
}

/* ==========================================
   8. TABLES
========================================== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--space-4);
  text-align: right;
  border-bottom: 1px solid var(--surface-border);
}

.table th {
  font-weight: var(--font-semibold);
  color: var(--gold);
  background: var(--bg-tertiary);
}

.table tbody tr {
  transition: var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--bg-card-hover);
}

/* ==========================================
   9. BADGES
========================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: 12px;
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
}

.badge--primary { background: var(--gold); color: var(--bg-primary); }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--info { background: var(--info-bg); color: var(--info); }

/* ==========================================
   10. ALERTS
========================================== */
.alert {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.alert__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
}

.alert--success {
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.alert--success .alert__icon {
  background: var(--success);
  color: white;
}

.alert--warning {
  background: var(--warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.alert--warning .alert__icon {
  background: var(--warning);
  color: white;
}

.alert--danger {
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.alert--danger .alert__icon {
  background: var(--danger);
  color: white;
}

.alert--info {
  background: var(--info-bg);
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.alert--info .alert__icon {
  background: var(--info);
  color: white;
}

/* ==========================================
   11. MODALS
========================================== */
.modal-backdrop {
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
}

.modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--surface-border);
}

.modal-title {
  color: var(--gold);
  font-weight: var(--font-bold);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--surface-border);
  gap: var(--space-3);
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: var(--text-xl);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-close:hover {
  color: var(--gold);
}

/* ==========================================
   12. ANIMATIONS
========================================== */
/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Fade In Down */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInDown {
  animation: fadeInDown 0.6s ease-out forwards;
}

/* Fade In Left (RTL adjusted) */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.6s ease-out forwards;
}

/* Fade In Right (RTL adjusted) */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInRight {
  animation: fadeInRight 0.6s ease-out forwards;
}

/* Scale In */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scaleIn {
  animation: scaleIn 0.5s ease-out forwards;
}

/* Gold Shimmer */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-hover) 50%, var(--bg-card) 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

/* Pulse Gold */
@keyframes pulseGold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
  }
}

.pulse-gold {
  animation: pulseGold 2s infinite;
}

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

.animate-rotate {
  animation: rotate 10s linear infinite;
}

/* Stagger Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* ==========================================
   13. UTILITIES
========================================== */
/* Backgrounds */
.bg-dark { background-color: var(--bg-primary) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-card { background-color: var(--bg-card) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-gradient-gold { background: var(--gold-gradient) !important; }

/* Glass Effect */
.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
}

/* Gold Border */
.border-gold {
  border-color: var(--gold) !important;
}

/* Glow Effects */
.glow-gold {
  box-shadow: var(--shadow-gold);
}

.glow-gold-sm {
  box-shadow: var(--shadow-gold-sm);
}

.glow-gold-lg {
  box-shadow: var(--shadow-gold-lg);
}

/* Text Gradient */
.text-gradient-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dividers */
.divider {
  height: 1px;
  background: var(--surface-border);
  margin: var(--space-8) 0;
}

.divider-gold {
  height: 2px;
  background: var(--gold-gradient);
  width: 80px;
  margin: var(--space-4) auto;
}

/* Hover Effects */
.hover-lift {
  transition: var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-glow {
  transition: var(--transition-base);
}

.hover-glow:hover {
  box-shadow: var(--shadow-gold);
}

.hover-scale {
  transition: var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Visibility on scroll - for JS animation triggers */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Owl Carousel Fixes */
.owl-carousel .owl-stage-outer {
  overflow: hidden;
  position: relative;
}

.owl-carousel .owl-stage {
  display: flex;
}

.owl-carousel .owl-item {
  position: relative;
  min-height: 1px;
  float: left;
  -webkit-backface-visibility: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.owl-carousel .owl-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* Fix for hidden carousel items */
.owl-carousel .owl-item {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.owl-carousel .item {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.owl-carousel .item img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure carousel is visible */
.owl-carousel {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Fix for Owl Carousel RTL */
.owl-carousel.owl-rtl {
  direction: rtl;
}

.owl-carousel.owl-rtl .owl-item {
  float: right;
}

/* ==========================================
   14. RESPONSIVE BREAKPOINTS
========================================== */
@media (max-width: 1200px) {
  :root {
    --text-7xl: 3.5rem;
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
  }
}

@media (max-width: 992px) {
  :root {
    --text-7xl: 3rem;
    --text-6xl: 2.5rem;
    --text-5xl: 2.25rem;
    --text-4xl: 2rem;
  }

  section {
    padding: var(--space-16) 0;
  }
}

@media (max-width: 768px) {
  :root {
    --text-7xl: 2.5rem;
    --text-6xl: 2.25rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
  }

  .container {
    padding: 0 var(--space-4);
  }

  section {
    padding: var(--space-12) 0;
  }
}

@media (max-width: 576px) {
  :root {
    --text-6xl: 2rem;
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
    --text-3xl: 1.25rem;
  }
}



  KGS-EGY Premium Dark Gold Theme
  Design System & CSS Variables
============================================
*/

/* ==========================================
   1. CSS VARIABLES - DESIGN TOKENS
========================================== */
:root {
  /* Primary Colors */
  --gold: #D4AF37;
  --gold-light: #E8C547;
  --gold-dark: #B8942E;
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F5D76E 50%, #D4AF37 100%);
  --gold-shine: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);

  /* Dark Theme Colors */
  --bg-primary: #0A0A0F;
  --bg-secondary: #111118;
  --bg-tertiary: #1A1A24;
  --bg-card: #141420;
  --bg-card-hover: #1E1E2D;
  --bg-overlay: rgba(10, 10, 15, 0.95);

  /* Surface Colors */
  --surface-glass: rgba(20, 20, 32, 0.8);
  --surface-elevated: #1A1A28;
  --surface-border: rgba(212, 175, 55, 0.15);
  --surface-border-hover: rgba(212, 175, 55, 0.4);

  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.9);
  --text-tertiary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-gold: #D4AF37;

  /* Status Colors */
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #3B82F6;
  --info-bg: rgba(59, 130, 246, 0.1);

  /* Typography */
  --font-primary: 'Cairo', sans-serif;
  --font-display: 'Cairo', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.5rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.3);
  --shadow-gold-sm: 0 0 15px rgba(212, 175, 55, 0.2);
  --shadow-gold-lg: 0 0 50px rgba(212, 175, 55, 0.4);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

/* ==========================================
   2. BASE STYLES & RESET
========================================== */
@import url('../../../../css2');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: 1.7;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* Selection */
::selection {
  background-color: var(--gold);
  color: var(--bg-primary);
}

/* ==========================================
   3. TYPOGRAPHY
========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--gold-light);
}

.text-gold { color: var(--gold) !important; }
.text-white { color: var(--text-primary) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ==========================================
   4. LAYOUT & CONTAINERS
========================================== */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-6);
}

section {
  padding: var(--space-20) 0;
  position: relative;
}

.section-padding {
  padding: var(--space-24) 0;
}

/* ==========================================
   5. BUTTONS
========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold-shine);
  transition: var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

/* Primary Button - Gold */
.btn--primary,
.btn--base {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border-color: var(--gold);
}

.btn--primary:hover,
.btn--base:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Secondary Button - Outline */
.btn--secondary,
.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn--secondary:hover,
.btn--outline:hover {
  background: var(--gold);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-sm);
}

/* Dark Button */
.btn--dark {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--surface-border);
}

.btn--dark:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
  color: var(--gold);
}

/* Button Sizes */
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: 14px;
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn--xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-xl);
}

/* ==========================================
   6. CARDS
========================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-base);
}

.card:hover {
  border-color: var(--surface-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-glass {
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--surface-border);
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--surface-border);
}

/* ==========================================
   7. FORMS
========================================== */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 14px;
  font-weight: var(--font-medium);
  color: var(--text-secondary);
}

.form-label.required::after {
  content: ' *';
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  direction: rtl;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23d4af37' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: left var(--space-4) center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-left: var(--space-10);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.form-check-input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* ==========================================
   8. TABLES
========================================== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--space-4);
  text-align: right;
  border-bottom: 1px solid var(--surface-border);
}

.table th {
  font-weight: var(--font-semibold);
  color: var(--gold);
  background: var(--bg-tertiary);
}

.table tbody tr {
  transition: var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--bg-card-hover);
}

/* ==========================================
   9. BADGES
========================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: 12px;
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
}

.badge--primary { background: var(--gold); color: var(--bg-primary); }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--info { background: var(--info-bg); color: var(--info); }

/* ==========================================
   10. ALERTS
========================================== */
.alert {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.alert__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
}

.alert--success {
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.alert--success .alert__icon {
  background: var(--success);
  color: white;
}

.alert--warning {
  background: var(--warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.alert--warning .alert__icon {
  background: var(--warning);
  color: white;
}

.alert--danger {
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.alert--danger .alert__icon {
  background: var(--danger);
  color: white;
}

.alert--info {
  background: var(--info-bg);
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.alert--info .alert__icon {
  background: var(--info);
  color: white;
}

/* ==========================================
   11. MODALS
========================================== */
.modal-backdrop {
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
}

.modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--surface-border);
}

.modal-title {
  color: var(--gold);
  font-weight: var(--font-bold);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--surface-border);
  gap: var(--space-3);
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: var(--text-xl);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-close:hover {
  color: var(--gold);
}

/* ==========================================
   12. ANIMATIONS
========================================== */
/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Fade In Down */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInDown {
  animation: fadeInDown 0.6s ease-out forwards;
}

/* Fade In Left (RTL adjusted) */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.6s ease-out forwards;
}

/* Fade In Right (RTL adjusted) */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInRight {
  animation: fadeInRight 0.6s ease-out forwards;
}

/* Scale In */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scaleIn {
  animation: scaleIn 0.5s ease-out forwards;
}

/* Gold Shimmer */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-hover) 50%, var(--bg-card) 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

/* Pulse Gold */
@keyframes pulseGold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
  }
}

.pulse-gold {
  animation: pulseGold 2s infinite;
}

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

.animate-rotate {
  animation: rotate 10s linear infinite;
}

/* Stagger Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* ==========================================
   13. UTILITIES
========================================== */
/* Backgrounds */
.bg-dark { background-color: var(--bg-primary) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-card { background-color: var(--bg-card) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-gradient-gold { background: var(--gold-gradient) !important; }

/* Glass Effect */
.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
}

/* Gold Border */
.border-gold {
  border-color: var(--gold) !important;
}

/* Glow Effects */
.glow-gold {
  box-shadow: var(--shadow-gold);
}

.glow-gold-sm {
  box-shadow: var(--shadow-gold-sm);
}

.glow-gold-lg {
  box-shadow: var(--shadow-gold-lg);
}

/* Text Gradient */
.text-gradient-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dividers */
.divider {
  height: 1px;
  background: var(--surface-border);
  margin: var(--space-8) 0;
}

.divider-gold {
  height: 2px;
  background: var(--gold-gradient);
  width: 80px;
  margin: var(--space-4) auto;
}

/* Hover Effects */
.hover-lift {
  transition: var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-glow {
  transition: var(--transition-base);
}

.hover-glow:hover {
  box-shadow: var(--shadow-gold);
}

.hover-scale {
  transition: var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Visibility on scroll - for JS animation triggers */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   14. RESPONSIVE BREAKPOINTS
========================================== */
@media (max-width: 1200px) {
  :root {
    --text-7xl: 3.5rem;
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
  }
}

@media (max-width: 992px) {
  :root {
    --text-7xl: 3rem;
    --text-6xl: 2.5rem;
    --text-5xl: 2.25rem;
    --text-4xl: 2rem;
  }

  section {
    padding: var(--space-16) 0;
  }
}

@media (max-width: 768px) {
  :root {
    --text-7xl: 2.5rem;
    --text-6xl: 2.25rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
  }

  .container {
    padding: 0 var(--space-4);
  }

  section {
    padding: var(--space-12) 0;
  }
}

@media (max-width: 576px) {
  :root {
    --text-6xl: 2rem;
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
    --text-3xl: 1.25rem;
  }
}


