/* TrustNex identity: Tigris green, palm green, brick, ivory, brass. Cairo served locally. */
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/cairo-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/cairo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #16645e;
  --primary-dark: #104b46;
  --primary-soft: #eaf4ef;
  --primary-border: #bcd8cc;
  --primary-gradient: linear-gradient(125deg, #153f3c, #237c6e);
  --navy: #183f3c;
  --gold: #c49a58;
  --gold-soft: #e5d4aa;
  --brick: #a45e42;
  --brick-soft: #f6e9e2;
  --bg: #f5f5f0;
  --surface: #ffffff;
  --surface-2: #fafbf8;
  --hover: #eff3ee;
  --border: #dce3dc;
  --border-light: #edf0e9;
  --text: #203b36;
  --text-2: #51665f;
  --muted: #667a71;
  --on-primary: #ffffff;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --radius: .65rem;
  --radius-lg: 1rem;
  --radius-xl: 1.3rem;
  --shadow: 0 4px 20px -12px rgba(30, 62, 45, .16);
  --shadow-lg: 0 24px 60px -28px rgba(21, 60, 56, .35);
  --ring: 0 0 0 3px rgba(22, 100, 94, .16);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #86cdbb;
    --primary-dark: #65b4a0;
    --primary-soft: #203c34;
    --primary-border: #375c4d;
    --navy: #e5eee5;
    --gold-soft: #4a3f28;
    --brick: #e0a184;
    --brick-soft: #3a2a22;
    --bg: #101e1b;
    --surface: #182b25;
    --surface-2: #12241e;
    --hover: #213b31;
    --border: #31483e;
    --border-light: #273d33;
    --text: #e5eee5;
    --text-2: #c0d0c2;
    --muted: #a4b9ad;
    --on-primary: #0f201b;
    --danger: #f28b82;
    --danger-soft: #3b1f1c;
    --shadow: none;
    --shadow-lg: 0 24px 60px -28px rgba(0, 0, 0, .6);
    --ring: 0 0 0 3px rgba(134, 205, 187, .22);
  }
}
:root[data-theme="dark"] {
  --primary: #86cdbb;
  --primary-dark: #65b4a0;
  --primary-soft: #203c34;
  --primary-border: #375c4d;
  --navy: #e5eee5;
  --gold-soft: #4a3f28;
  --brick: #e0a184;
  --brick-soft: #3a2a22;
  --bg: #101e1b;
  --surface: #182b25;
  --surface-2: #12241e;
  --hover: #213b31;
  --border: #31483e;
  --border-light: #273d33;
  --text: #e5eee5;
  --text-2: #c0d0c2;
  --muted: #a4b9ad;
  --on-primary: #0f201b;
  --danger: #f28b82;
  --danger-soft: #3b1f1c;
  --shadow: none;
  --shadow-lg: 0 24px 60px -28px rgba(0, 0, 0, .6);
  --ring: 0 0 0 3px rgba(134, 205, 187, .22);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); }
:focus-visible { outline: none; box-shadow: var(--ring); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius); padding: 7px 14px; cursor: pointer;
  font-weight: 600; font-size: 14px; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--hover); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.2px; color: var(--navy); line-height: 1.1; }
.brand-sub { font-size: 12px; color: var(--muted); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
