/* Google Fonts: Noto Kufi Arabic */
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-main: #0c0d14;
  --bg-surface: #141622;
  --bg-card: #191c2b;
  --bg-card-hover: #202437;
  --border-color: transparent;
  --border-focus: rgba(255, 255, 255, 0.2);
  --primary: #ffbe1a;
  --primary-hover: #e5a70f;
  --semantic-success: #10b981;
  --semantic-destructive: #ef4444;
  --semantic-warning: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Noto Kufi Arabic', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #25283c;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #373b56;
}

/* Remove spin buttons / arrows from all number inputs */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none !important; 
  margin: 0 !important; 
}
input[type=number] { 
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* Panels & Cards (No shadows, borderless / seamless) */
.glass-panel {
  background: rgba(20, 22, 34, 0.96);
  border-bottom: 1px solid transparent;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: background-color 140ms ease-out;
}

.glass-card:hover {
  background: var(--bg-card-hover);
}

/* Eliminate colored / white / 10 borders globally */
.border-white\/10,
.border-white\/5,
.border-white\/20 {
  border-color: transparent !important;
}

/* Subtle separator for real dividers if needed */
.border-t.border-white\/5,
.border-b.border-white\/5,
.border-t.border-white\/10,
.border-b.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Headings (Solid colour, NO gradients) */
.gold-gradient-text {
  color: var(--primary);
}

/* Buttons (Flat solid, no shadows, 140ms ease-out) */
.btn-primary {
  background: var(--primary);
  color: #0c0d14;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  transition: background-color 140ms ease-out;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #1e2235;
  color: var(--text-main);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  transition: background-color 140ms ease-out;
}

.btn-secondary:hover {
  background: #282d45;
}

/* Badges (Semantic meaning only) */
.badge-instant {
  background: rgba(16, 185, 129, 0.12);
  color: var(--semantic-success);
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-discount {
  background: rgba(239, 68, 68, 0.12);
  color: var(--semantic-destructive);
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-hot {
  background: var(--primary);
  color: #0c0d14;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Overlays (Tight, low-opacity shadow only on genuinely floating items) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 12, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease-out;
}

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

.modal-container {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transform: translateY(8px);
  transition: transform 160ms ease-out;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

/* Floating Dropdowns */
.floating-dropdown {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Focus Visible */
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 1px;
}

/* Hero Slider Dots */
.slider-dot-btn {
  cursor: pointer;
  border: none;
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Auth Page High-Contrast Input Fields */
.auth-input {
  background-color: #0b0c13 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  color: #f8fafc !important;
  border-radius: 12px !important;
  transition: all 0.2s ease-in-out !important;
  font-size: 13px !important;
}

.auth-input:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background-color: #0d0f18 !important;
}

.auth-input:focus {
  border-color: #ffbe1a !important;
  background-color: #08090e !important;
  box-shadow: 0 0 0 3px rgba(255, 190, 26, 0.2) !important;
  outline: none !important;
}

.auth-input::placeholder {
  color: #64748b !important;
}

/* Prevent browser autofill from breaking colors */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover, 
.auth-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8fafc !important;
  -webkit-box-shadow: 0 0 0px 1000px #0b0c13 inset !important;
  box-shadow: 0 0 0px 1000px #0b0c13 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}
