/* ============================================================
   Propitech × stc qitaf — Premium Identity Stylesheet (V1.2)
   Based on Brand Guidelines:
     • Primary 1:  #0C0A15  (Deep Indigo / Midnight)
     • Primary 2:  #5B1548  (Royal Purple)
     • Accent:     #009EFF  (Electric Blue)
     • Gold:       #C8A24A  (Qitaf accent)
     • Type AR:    Almarai
     • Type EN:    Epilogue
   ============================================================ */

html, body {
  font-family: 'Almarai', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #FBFAFC;
  color: #0C0A15;
}

.font-en  { font-family: 'Epilogue', 'Arial', sans-serif; letter-spacing: -0.01em; }
.font-display { font-family: 'Epilogue', 'Almarai', sans-serif; letter-spacing: -0.02em; }

[dir="ltr"] { direction: ltr; }
.ltr { direction: ltr; unicode-bidi: embed; }

/* ============== Selection ============== */
::selection      { background: #009EFF; color: #0C0A15; }
::-moz-selection { background: #009EFF; color: #0C0A15; }

/* ============== Scrollbar (luxe) ============== */
*::-webkit-scrollbar         { width: 9px; height: 9px; }
*::-webkit-scrollbar-track   { background: transparent; }
*::-webkit-scrollbar-thumb   {
  background: linear-gradient(180deg, #C9C2D8, #A89DBE);
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5B1548, #2A091F);
  background-clip: padding-box;
  border: 2px solid transparent;
}

/* ============== Smooth transitions ============== */
button, a, input, select, textarea {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
table tbody tr { transition: background 0.14s ease; }

/* ============== Form fields ============== */
input, select, textarea { font-family: inherit; }
input::placeholder, textarea::placeholder { color: #867999; opacity: 0.7; }
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 158, 255, 0.18);
  border-color: #009EFF !important;
}

/* ============== Live indicator ============== */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,158,255,0.55); }
  50%      { box-shadow: 0 0 0 10px rgba(0,158,255,0); }
}
.glow-pulse { animation: glow-pulse 2.2s ease-in-out infinite; }

/* ============== Shimmer text ============== */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.shimmer-text {
  background: linear-gradient(90deg, #fff 0%, #009EFF 45%, #C8A24A 55%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}

/* ============== Aurora background (login hero) ============== */
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0)    scale(1); }
  50%  { transform: translate3d(-2%, 1%, 0) scale(1.05); }
  100% { transform: translate3d(0, 0, 0)    scale(1); }
}
.aurora {
  position: absolute;
  inset: -20%;
  filter: blur(80px);
  opacity: 0.85;
  pointer-events: none;
  background:
    radial-gradient(40% 35% at 25% 30%, rgba(0,158,255,0.32), transparent 60%),
    radial-gradient(45% 40% at 75% 70%, rgba(87,0,139,0.85),  transparent 60%),
    radial-gradient(35% 30% at 60% 20%, rgba(155,86,135,0.30), transparent 60%);
  animation: aurora 16s ease-in-out infinite alternate;
}

/* ============== Mesh canvas (sidebar / hero panels) ============== */
.bg-mesh-luxe {
  background-color: #1A1233;
  background-image:
    radial-gradient(at 80%   0%, rgba(0,158,255,0.14) 0px, transparent 50%),
    radial-gradient(at  0% 100%, rgba(87,0,139,0.55)  0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(123,45,142,0.20) 0px, transparent 50%),
    linear-gradient(135deg, #1A1233 0%, #241852 60%, #36005C 100%);
}

/* Diamond perspective floor (matches official PropTech badge) */
.bg-floor {
  background-image:
    linear-gradient(to top, rgba(123,45,142,0.35), rgba(87,0,139,0) 60%),
    repeating-linear-gradient(60deg, rgba(155,86,135,0.18) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(120deg, rgba(155,86,135,0.18) 0 1px, transparent 1px 22px);
}

/* ============== Dotted texture overlay ============== */
.dot-texture {
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* ============== Hairline divider ============== */
.hairline {
  background: linear-gradient(90deg, transparent, rgba(0,158,255,0.4), rgba(87,0,139,0.5), transparent);
  height: 1px;
}

/* ============== Luxe card ============== */
.card-luxe {
  background: #fff;
  border: 1px solid rgba(12,10,21,0.06);
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(12,10,21,0.04),
    0 8px 28px rgba(12,10,21,0.06);
}
.card-luxe-dark {
  background: linear-gradient(135deg, #241852 0%, #1A1233 100%);
  border: 1px solid rgba(155,86,135,0.30);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(26,18,51,0.55);
  color: #fff;
}

/* ============== Premium gradient button ============== */
.btn-royal {
  background: linear-gradient(135deg, #57008B 0%, #36005C 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 6px 22px rgba(87,0,139,0.35);
}
.btn-royal:hover {
  background: linear-gradient(135deg, #6E0FA6 0%, #46006F 100%);
  box-shadow: 0 10px 30px rgba(87,0,139,0.50), 0 0 0 1px rgba(0,158,255,0.4);
  transform: translateY(-1px);
}
.btn-electric {
  background: linear-gradient(135deg, #009EFF 0%, #0080CC 100%);
  color: #0C0A15;
  font-weight: 800;
  box-shadow: 0 6px 24px rgba(0,158,255,0.35);
}
.btn-electric:hover {
  box-shadow: 0 10px 32px rgba(0,158,255,0.55);
  transform: translateY(-1px);
}

/* ============== Badge dots ============== */
.dot-electric { width:8px; height:8px; border-radius:99px; background:#009EFF; box-shadow:0 0 0 3px rgba(0,158,255,0.18); }
.dot-gold     { width:8px; height:8px; border-radius:99px; background:#C8A24A; box-shadow:0 0 0 3px rgba(200,162,74,0.18); }
.dot-royal    { width:8px; height:8px; border-radius:99px; background:#57008B; box-shadow:0 0 0 3px rgba(87,0,139,0.18); }

/* ============== Numeric display (latin numerals always) ============== */
.num-latn { font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }

/* ============== Print friendly ============== */
@media print {
  aside, header, footer, button { display: none !important; }
  main { padding: 0 !important; margin: 0 !important; }
}

/* ============== Subtle entrance animation ============== */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise   { animation: rise 0.5s ease-out both; }
.rise-1 { animation: rise 0.5s ease-out 0.05s both; }
.rise-2 { animation: rise 0.5s ease-out 0.10s both; }
.rise-3 { animation: rise 0.5s ease-out 0.15s both; }
.rise-4 { animation: rise 0.5s ease-out 0.20s both; }
