:root{--blue:#0f5bd3;--ink:#0b1220;--muted:#6b7280;--card:#ffffff;--bg:#f6f7fb;}
*{box-sizing:border-box}html,body{margin:0;padding:0}
body{font-family:ui-sans-serif,system-ui,Segoe UI,Roboto,Helvetica,Arial;background:var(--bg);color:var(--ink)}
.wrap{max-width:1100px;margin:0 auto;padding:20px}
.topbar,.bottombar{background:var(--blue);color:#fff}
.topbar .wrap,.bottombar .wrap{display:flex;align-items:center;justify-content:space-between}
.topbar a{color:#fff;text-decoration:none;margin:0 10px}
.brand a{font-weight:800;letter-spacing:.2px}
.card{background:var(--card);border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.06);margin:20px 0}
.card .card-body{padding:20px}
.brand img { height: 75px; display: block; }
.form-row{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}
input,select,button{padding:12px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;font-size:15px}
button{background:var(--blue);color:#fff;border:none;cursor:pointer}
button.btn-outline{background:#fff;color:var(--blue);border:1px solid var(--blue)}
.alert{background:#f0f7ff;border:1px solid #cfe0ff;color:#09327a;padding:12px;border-radius:10px;margin:10px 0}
.table-responsive{overflow:auto}.empty{color:var(--muted)}
table{width:100%;border-collapse:collapse}
th,td{padding:10px;border-bottom:1px solid #eef2f7;text-align:left}
th{background:#f3f7ff}
.muted{color:#6b7280}

/* Bigger, cleaner search UI */
.search-title{ text-align:center; margin:0 0 12px; font-size: clamp(1.6rem, 3.2vw, 2rem); }
.search-card .field{ display:flex; flex-direction:column; gap:6px; flex:1; min-width: 180px; }
.search-card label{ font-weight:700; color:#0b1220; }
.search-card .big-inputs{ display:flex; gap:12px; flex-wrap:wrap; }
.search-card input,
.search-card select{
  font-size: 1.1rem;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid #d9dee8;
  background:#fff;
  outline:none;
  transition: box-shadow .2s, transform .06s;
}
.search-card input:focus,
.search-card select:focus{
  box-shadow: 0 0 0 3px rgba(15,91,211,.15);
}
.actions{ display:flex; justify-content:center; margin-top:10px; }
.btn-primary{
  display:inline-flex; align-items:center; gap:10px;
  background:#0f5bd3; color:#fff; border:none; border-radius:12px;
  padding:14px 22px; font-weight:800; cursor:pointer;
  transition: transform .05s ease-in-out, box-shadow .2s;
}
.btn-primary:hover{ box-shadow:0 8px 22px rgba(15,91,211,.25); }
.btn-primary:active{ transform: translateY(1px) scale(.995); }

/* Code chip */
.code-chip {
  display:inline-flex; align-items:center; gap:8px;
  background:#eef3ff; color:#0f5bd3;
  border:1px solid #cfe0ff; border-radius:999px;
  padding:8px 12px; font-weight:800; letter-spacing:.3px;
}
.code-chip-btn {
  background:transparent; border:none; color:#0f5bd3;
  font-weight:700; cursor:pointer; padding:4px 6px; border-radius:6px;
}
.code-chip-btn:hover { background:#e6efff; }

/* Spinner inside button */
.spinner{
  width:18px; height:18px; border:3px solid rgba(255,255,255,.3);
  border-top-color:#fff; border-radius:50%; display:none; animation:spin .8s linear infinite;
}
.btn-primary.loading .spinner{ display:inline-block; }
.btn-primary.loading .btn-label{ opacity:.75; }

@keyframes spin{ to{ transform: rotate(360deg); } }

/* Smooth results reveal */
.fade-in{ animation: fade .25s ease-out both; }
.row-fade-in{ animation: rise .25s ease-out both; }
@keyframes fade{ from{ opacity:0 } to{ opacity:1 } }
@keyframes rise{ from{ opacity:0; transform: translateY(4px) } to{ opacity:1; transform:none } }

@media (max-width:640px){.wrap{padding:12px} .form-row{flex-direction:column}}