/* ═══════════════════════════════════════════════════════
   FraudAnalytica — Design System
   Canonical design tokens + utility classes
   All pages load this file. Page-specific styles stay inline.
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables (canonical — short convention) ── */
:root {
  --bg:         #0A0A1F;
  --bg2:        #0d0d28;
  --bg3:        #111130;
  --accent:     #0057FF;
  --accent2:    #3790FF;
  --danger:     #FF3B30;
  --success:    #30D158;
  --warning:    #FF9F0A;
  --text:       #FFFFFF;
  --text2:      #AAAAAA;
  --text3:      #666680;
  --card:       rgba(255,255,255,0.05);
  --card-hover: rgba(255,255,255,0.08);
  --border:     rgba(255,255,255,0.08);
  --input-bg:   rgba(255,255,255,0.06);
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Body defaults ── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.section-sub {
  color: var(--text2);
  margin-bottom: 2.5rem;
  font-size: .95rem;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: background .2s, border-color .2s;
}

.card:hover {
  background: var(--card-hover);
  border-color: rgba(255,255,255,.15);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .2s, box-shadow .2s, border-color .2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: .85rem 1.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  background: #0047dd;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,87,255,.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: .85rem 1.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,.3);
  background: var(--card);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #e0332a;
  transform: translateY(-1px);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .8rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
}

.badge-accent {
  background: rgba(0,87,255,.15);
  border: 1px solid rgba(0,87,255,.3);
  color: #6fa3ff;
}

.badge-danger {
  background: rgba(255,59,48,.15);
  border: 1px solid rgba(255,59,48,.3);
  color: #ff7b73;
}

.badge-success {
  background: rgba(48,209,88,.15);
  border: 1px solid rgba(48,209,88,.3);
  color: #4fd97a;
}

.badge-warning {
  background: rgba(255,159,10,.15);
  border: 1px solid rgba(255,159,10,.3);
  color: #ffc04a;
}

/* ── Form inputs ── */
input[type=text],
input[type=email],
input[type=number],
input[type=date],
input[type=url],
input[type=password],
select,
textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,87,255,.06);
}
input::placeholder, textarea::placeholder {
  color: rgba(255,255,255,.3);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
select option { background: #1a1a3a; }
textarea { resize: vertical; min-height: 130px; }

/* ── Footer ── */
.fa-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text2);
  font-size: .85rem;
}
.fa-footer a { color: var(--text2); text-decoration: none; }
.fa-footer a:hover { color: var(--text); }
.fa-footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* ── Nav (shared) ── */
.fa-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(10,10,31,0.97);
  backdrop-filter: blur(12px);
  padding: 0 1.5rem;
  height: 64px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fa-logo-link { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.fa-logo { height: 36px; width: auto; }
.fa-brand { font-weight: 700; font-size: 1.1rem; color: #fff; letter-spacing: -.5px; }
.fa-nav { display: flex; gap: .25rem; }
.fa-nav-link {
  color: rgba(255,255,255,.7); text-decoration: none;
  padding: .4rem .75rem; border-radius: 6px;
  font-size: .9rem; font-weight: 500;
  transition: color .2s, background .2s;
}
.fa-nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.fa-nav-link.active { color: #fff; background: rgba(0,87,255,.2); }
.fa-header-right { display: flex; align-items: center; gap: .75rem; }
.fa-lang-btn {
  background: none; border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7); padding: .3rem .6rem; border-radius: 5px;
  cursor: pointer; font-size: .8rem; font-weight: 600;
  transition: all .2s;
}
.fa-lang-btn:hover { border-color: var(--accent); color: #fff; }
.fa-hamburger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 28px; height: 20px; background: none; border: none;
  cursor: pointer; padding: 0;
}
.fa-hamburger span {
  display: block; height: 2px; background: rgba(255,255,255,.8);
  border-radius: 2px; transition: all .3s;
}
.fa-hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.fa-hamburger.open span:nth-child(2) { opacity: 0; }
.fa-hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.fa-nav-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 999; opacity: 0; transition: opacity .3s;
}
.fa-nav-overlay.open { display: block; opacity: 1; }
body { padding-top: 64px; }

@media (max-width: 768px) {
  .fa-hamburger { display: flex; }
  .fa-nav {
    display: none; flex-direction: column; gap: 0;
    position: fixed; top: 64px; right: 0; bottom: 0; width: 240px;
    background: rgba(10,10,31,.99); border-left: 1px solid rgba(255,255,255,.08);
    padding: 1rem; z-index: 1000; overflow-y: auto;
  }
  .fa-nav.open { display: flex; }
  .fa-nav-link { padding: .75rem 1rem; font-size: 1rem; }
}
