/* Debridd — token di brand reali (da AppTheme in lib/core/theme), riusati identici
   in tutto il portale statico: Landing, Admin, e in futuro Pair/Download. */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@500;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #000000;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #ffffff;
  --text-muted: #b3b3b3;
  --text-faint: #6b6b6b;
  --accent: #e50914;
  --accent-soft: rgba(229,9,20,0.12);
  --accent-glow: rgba(229,9,20,0.35);
  --good: #46d369;
  --good-soft: rgba(70,211,105,0.12);
  --warn: #ffb300;
  --warn-soft: rgba(255,179,0,0.12);
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 16px 40px -20px rgba(0,0,0,0.7);
}

* { box-sizing: border-box; }
html, body { background: var(--bg); margin: 0; padding: 0; }
body {
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.55;
}
h1, h2, h3, .wordmark { font-family: 'Lexend Deca', 'Outfit', sans-serif; }
a { color: inherit; }
::selection { background: var(--accent-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Outfit', sans-serif; font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.02em; border-radius: 10px; border: none;
  padding: 12px 20px; cursor: pointer; color: #fff; background: var(--accent);
  text-decoration: none; transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }
.btn.ghost { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.btn.ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn.good { background: var(--good); color: #06210f; }
.btn.orange { background: #ff8a00; }
.btn.gold { background: #caa53d; }
.btn.sm { padding: 8px 14px; font-size: 12px; }
.btn.block { display: flex; width: 100%; }

.field-label {
  display: block; font-size: 11.5px; font-weight: 600;
  color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.field {
  width: 100%; font-family: 'Outfit', sans-serif; font-size: 14px;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 9px;
  padding: 11px 13px; margin-bottom: 14px; outline: none;
  transition: border-color .15s ease;
}
.field:focus { border-color: var(--accent); }
.field::placeholder { color: var(--text-faint); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 22px; margin-bottom: 16px;
}
.card:last-child { margin-bottom: 0; }

.banner {
  border-radius: 10px; padding: 12px 14px; font-size: 12.5px;
  display: flex; gap: 8px; align-items: flex-start; margin-bottom: 16px;
}
.banner.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(255,179,0,0.3); }
.banner.danger { background: var(--accent-soft); color: #ff6b73; border: 1px solid rgba(229,9,20,0.3); }
.banner.good { background: var(--good-soft); color: var(--good); border: 1px solid rgba(70,211,105,0.3); }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

[hidden] { display: none !important; }
