@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600&family=Syne:wght@700&display=swap');

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

:root {
  --navy:       #0A2540;
  --blue:       #1140A0;
  --sky:        #4A90D9;
  --tint:       #EEF2FF;
  --page-bg:    #F8FAFF;
  --white:      #ffffff;
  --stolen:     #DC2626;
  --clean:      #059669;
  --warning:    #D97706;
  --border:     #E5E7EB;
  --text-primary:   #0A2540;
  --text-body:      #374151;
  --text-muted:     #6B7280;
  --text-faint:     #9CA3AF;
  --font:       'Plus Jakarta Sans', sans-serif;
  --font-display: 'Syne', sans-serif;
  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(10,37,64,.08);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text-body);
  background: var(--page-bg);
  line-height: 1.6;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font-family: var(--font);
  font-size: 14px;
}

/* ── Typography ────────────────────────────────────────────── */
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  letter-spacing: -.01em;
}
.logo em { color: var(--sky); font-style: normal; }
.logo.dark { color: var(--navy); }
.logo.dark em { color: var(--blue); }

h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -.02em;
  line-height: 1.2;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -.01em;
}
h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
p { font-size: 14px; color: var(--text-body); line-height: 1.65; }
.text-sm  { font-size: 12px; }
.text-xs  { font-size: 11px; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-center { text-align: center; }

/* ── Layout helpers ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-sm {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 48px 0; }
.section-sm { padding: 32px 0; }
.stack { display: flex; flex-direction: column; }
.stack-sm { gap: 8px; }
.stack-md { gap: 16px; }
.stack-lg { gap: 24px; }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  background: var(--navy);
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: #94A3B8;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: #E2E8F0; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-lang {
  font-size: 12px;
  color: #64748B;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color .2s;
}
.nav-lang:hover,
.nav-lang.active { color: #94A3B8; }
.nav-lang-sep { color: #334155; font-size: 12px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { opacity: .9; }
.btn-secondary { background: var(--white); color: var(--blue); border: 1.5px solid var(--blue); }
.btn-secondary:hover { background: var(--tint); }
.btn-danger { background: var(--white); color: var(--stolen); border: 1.5px solid #FCA5A5; }
.btn-danger:hover { background: #FEF2F2; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--white); }
.btn-nav { background: var(--blue); color: var(--white); padding: 6px 14px; font-size: 12px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-full { width: 100%; }

/* ── Form elements ─────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
}
.form-input:focus { border-color: var(--blue); }
.form-input::placeholder { color: var(--text-faint); }
.form-select {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  appearance: none;
  cursor: pointer;
}
.form-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color .2s;
}
.form-textarea:focus { border-color: var(--blue); }
.form-hint { font-size: 11px; color: var(--text-faint); }
.form-error { font-size: 11px; color: var(--stolen); }

/* ── Search bar ────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  background: transparent;
}
.search-bar input::placeholder { color: var(--text-faint); }
.search-icon { color: var(--text-faint); flex-shrink: 0; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.card-sm { padding: 14px 16px; }
.card-result-stolen {
  background: #FFFAFA;
  border: 1.5px solid #FCA5A5;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.card-result-clean {
  background: #FAFFFE;
  border: 1.5px solid #6EE7B7;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.card-result-notfound {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

/* ── Stat cards ────────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}
.stat-num {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 11px; font-weight: 400; color: var(--text-faint); }
.stat-trend { font-size: 11px; font-weight: 400; color: var(--clean); margin-top: 6px; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.badge-stolen  { background: #FEF2F2; color: #B91C1C; }
.badge-clean   { background: #F0FDF9; color: #065F46; }
.badge-inv     { background: #FFFBEB; color: #92400E; }
.badge-rec     { background: #EFF6FF; color: #1E40AF; }
.badge-closed  { background: #F9FAFB; color: #6B7280; }

/* ── Steps / progress ──────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}
.step-item {
  display: flex;
  align-items: center;
  flex: 1;
}
.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  color: var(--text-faint);
  background: var(--white);
}
.step-circle.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.step-circle.done { background: var(--clean); color: var(--white); border-color: var(--clean); }
.step-label { font-size: 11px; color: var(--text-faint); margin-left: 6px; white-space: nowrap; }
.step-label.active { color: var(--blue); font-weight: 500; }
.step-line { flex: 1; height: 1px; background: var(--border); margin: 0 8px; }

/* ── Table ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: #FAFBFC;
}
td {
  padding: 11px 12px;
  color: var(--text-body);
  border-bottom: 1px solid #F9FAFB;
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFBFF; }
.td-ref { font-weight: 500; color: var(--text-primary); font-family: var(--font); font-size: 12px; }

/* ── Alert / notice ────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-info    { background: var(--tint); color: #1E40AF; border: 1px solid #C7D7FD; }
.alert-success { background: #F0FDF9; color: #065F46; border: 1px solid #A7F3D0; }
.alert-danger  { background: #FEF2F2; color: #991B1B; border: 1px solid #FCA5A5; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

/* ── Divider ───────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.divider-sm { height: 1px; background: #F3F4F6; margin: 10px 0; }

/* ── Page header ───────────────────────────────────────────── */
.page-header {
  background: var(--navy);
  padding: 40px 0 48px;
  text-align: center;
}
.page-header h1 { color: var(--white); font-size: 32px; margin-bottom: 8px; }
.page-header p { color: #94A3B8; font-size: 14px; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 64px 0 72px;
  text-align: center;
}
.hero h1 {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 12px;
}
.hero p { color: #94A3B8; font-size: 15px; margin-bottom: 32px; }

/* ── How it works ──────────────────────────────────────────── */
.how-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.how-num {
  width: 36px;
  height: 36px;
  background: var(--tint);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  margin: 0 auto 12px;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 28px 0;
  margin-top: auto;
}
.footer p { font-size: 12px; color: #475569; text-align: center; }
.footer a { color: #64748B; }
.footer a:hover { color: #94A3B8; }

/* ── Dashboard layout ──────────────────────────────────────── */
.dash-layout { display: flex; min-height: calc(100vh - 60px); }
.dash-sidebar {
  width: 220px;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  flex-shrink: 0;
}
.dash-main { flex: 1; padding: 28px 32px; overflow-y: auto; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
}
.sidebar-item:hover { background: var(--page-bg); color: var(--text-primary); }
.sidebar-item.active {
  background: var(--tint);
  color: var(--blue);
  font-weight: 500;
  border-right: 2px solid var(--blue);
}
.sidebar-section {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 16px 20px 6px;
}

/* ── OTP input ─────────────────────────────────────────────── */
.otp-inputs { display: flex; gap: 8px; justify-content: center; }
.otp-input {
  width: 44px;
  height: 50px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color .2s;
}
.otp-input:focus { border-color: var(--blue); }

/* ── Upload zone ───────────────────────────────────────────── */
.upload-zone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-zone:hover { border-color: var(--blue); background: var(--tint); }

/* ── Utility ───────────────────────────────────────────────── */
.hidden { display: none !important; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.w-full { width: 100%; }
.mono { font-family: var(--font); font-size: 12px; font-weight: 500;
        background: var(--tint); color: #1E3A5F;
        padding: 2px 7px; border-radius: 4px; letter-spacing: .03em; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 22px; }
  .hero h1 { font-size: 26px; }
  .hero { padding: 40px 0 48px; }
  .hero p { font-size: 14px; margin-bottom: 24px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .dash-sidebar { display: none; }
  .dash-main { padding: 20px 16px; }
  .steps { overflow-x: auto; padding-bottom: 4px; }
  .step-label { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .search-bar input { font-size: 14px; }
}
