/* ErfoHub design tokens – shared by admin portal and account pages */
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Saira Condensed"; src: url("/fonts/SairaCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Saira Condensed"; src: url("/fonts/SairaCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0a0f1a;
  --bg-2: #0e1522;
  --panel: #131b2a;
  --panel-2: #182233;
  --line: #243046;
  --line-2: #2f3d57;
  --text: #e7ecf3;
  --muted: #8b97ab;
  --dim: #5d6a80;
  --lime: #b6f23a;
  --lime-ink: #0d1400;
  --lime-soft: rgba(182, 242, 58, 0.12);
  --danger: #ff5d63;
  --danger-soft: rgba(255, 93, 99, 0.13);
  --warn: #f5b841;
  --warn-soft: rgba(245, 184, 65, 0.13);
  --info: #5cc8ff;
  --info-soft: rgba(92, 200, 255, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Barlow", "Segoe UI", system-ui, sans-serif;
  --display: "Saira Condensed", "Barlow", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; margin: 0; }
h1 { font-size: 30px; text-transform: uppercase; }
h2 { font-size: 21px; text-transform: uppercase; }
h3 { font-size: 16px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.06em; }
code, .mono { font-family: var(--mono); font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  font: 600 14px var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.btn.primary:hover { background: #c6ff52; }
.btn.danger { background: var(--danger-soft); border-color: rgba(255, 93, 99, .5); color: #ffb3b6; }
.btn.danger:hover { background: rgba(255, 93, 99, .25); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel-2); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }

input, select, textarea {
  width: 100%; height: 38px; padding: 0 12px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: 15px var(--font); outline: none;
}
textarea { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--lime); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
label.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid; font-size: 14px; }
.notice.ok { background: var(--lime-soft); border-color: rgba(182, 242, 58, .4); color: #dcff9e; }
.notice.err { background: var(--danger-soft); border-color: rgba(255, 93, 99, .45); color: #ffc2c4; }
.notice.warn { background: var(--warn-soft); border-color: rgba(245, 184, 65, .45); color: #ffe0a3; }
.notice.info { background: var(--info-soft); border-color: rgba(92, 200, 255, .4); color: #c9ecff; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 7px; background: var(--lime); color: var(--lime-ink);
  display: grid; place-items: center; font-size: 17px; transform: skewX(-8deg);
}
.brand b { color: var(--lime); }
