/* ===========================================================
   DXB PRO — shared foundation (dark)
   Palette lives here. Change it once, every page follows.
   =========================================================== */

:root {
  /* Brand — gold, sampled from the logo */
  --gold-300: #F5D077;
  --gold-500: #EEBA2B;
  --gold-600: #C9930F;

  /* Navy ground, darkest to lightest */
  --nav-950: #080D18;   /* page */
  --nav-900: #0D1524;   /* sidebar */
  --nav-850: #121C2E;   /* card */
  --nav-800: #18243A;   /* raised / hover */
  --nav-700: #22304A;   /* border-strong */

  /* Ink on dark */
  --text:      #EEF2F8;
  --text-soft: #B7C1D2;
  --text-mute: #929EB3;

  --line:        rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.16);

  /* Semantic — tuned for dark backgrounds */
  --success: #35C99A;
  --warning: #F0B354;
  --danger:  #F26B6B;
  --info:    #6BA6F5;

  --page:    var(--nav-950);
  --surface: var(--nav-850);

  --radius: 10px;
  --ease:   cubic-bezier(.4, 0, .2, 1);
}

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

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

svg { flex: none; }

/* ── Fields ────────────────────────────────────────────── */

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}

.field__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.field__control { position: relative; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;          /* 16px-ish keeps iOS from zooming on focus */
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}

select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A3AFC4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 16px;
  cursor: pointer;
}

select option { color: #10192A; }

input::placeholder { color: #8390A8; }

input:hover, select:hover { border-color: var(--nav-700); background: rgba(255,255,255,.06); }

input:focus, select:focus {
  border-color: var(--gold-500);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(238,186,43,.2);
}

.field.has-error input,
.field.has-error select { border-color: var(--danger); }

.field.has-error input:focus,
.field.has-error select:focus { box-shadow: 0 0 0 3px rgba(242,107,107,.18); }

.field__err {
  display: none;
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--danger);
}

.field.has-error .field__err { display: block; }

/* ── Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 18px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: .18s var(--ease);
}

.btn--block { width: 100%; }
.btn--sm { height: 38px; padding: 0 14px; font-size: 13.5px; }

.btn--primary {
  background: var(--gold-500);
  color: #10192A;          /* gold needs dark text — never white */
}

.btn--primary:hover  { background: var(--gold-300); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover { background: rgba(255,255,255,.09); border-color: var(--nav-700); }

.btn--quiet {
  background: none;
  color: var(--text-soft);
}

.btn--quiet:hover { background: rgba(255,255,255,.06); color: var(--text); }

.btn:disabled { opacity: .45; pointer-events: none; }

.btn.is-busy { pointer-events: none; opacity: .75; }

.btn.is-busy::after {
  content: '';
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Links ─────────────────────────────────────────────── */

.link {
  color: var(--gold-500);
  text-decoration: none;
  font-weight: 500;
}

.link:hover { text-decoration: underline; }
.link--sm { font-size: 12.5px; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

::selection { background: rgba(238,186,43,.28); }

/* Scrollbars pick up the dark ground instead of a white gutter */
* { scrollbar-color: var(--nav-700) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--nav-700); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
