:root {
  --red: #e31c23;
  --red-dark: #c4161c;
  --ink: #222222;
  --muted: #6a6a6a;
  --line: #ebebeb;
  --bg: #fff;
  --soft: #f7f7f7;
  --shadow: 0 6px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.12);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: "Plus Jakarta Sans", "Noto Sans Bengali", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { -webkit-tap-highlight-color: transparent; }

.topbar {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.top-slot { display: flex; align-items: center; min-width: 0; }
.top-slot.left { justify-content: flex-start; }
.top-slot.right { justify-content: flex-end; }
.brand { display: flex; align-items: center; justify-content: center; }
.brand-banner {
  height: 44px; width: auto; max-width: min(520px, 62vw);
  object-fit: contain; object-position: center;
  transition: transform .35s var(--ease);
}
.brand:hover .brand-banner { transform: scale(1.03); }
@media (min-width: 720px) {
  .brand-banner { height: 58px; max-width: 640px; }
}
.lang-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 10px 14px; font-weight: 650; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.lang-btn:hover { background: var(--soft); box-shadow: var(--shadow); }
.lang-btn:active { transform: scale(.96); }

.hero { padding: 42px 16px 18px; }
.hero-wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.hero p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

.search-card {
  max-width: 920px; margin: 28px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 40px;
  box-shadow: var(--shadow);
  padding: 10px;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.search-card:focus-within { box-shadow: var(--shadow-lg); }
@media (max-width: 859px) {
  .search-card { border-radius: 24px; padding: 14px; }
}
.search-grid {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .search-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .field + .field { border-left: 1px solid var(--line); }
}
.field { text-align: left; padding: 8px 10px; border-radius: 32px; transition: background .25s var(--ease); }
.field:hover { background: var(--soft); }
.field label {
  display: block; font-size: 12px; font-weight: 700; color: #222; margin: 0 0 4px 10px;
}
.field input, .field select {
  width: 100%; border: 0; background: transparent;
  border-radius: 20px; padding: 8px 10px; outline: none;
  color: var(--ink);
}
.search-btn {
  width: 100%; margin-top: 8px; border: 0; cursor: pointer;
  background: var(--red); color: #fff; font-weight: 800;
  border-radius: 999px; padding: 15px 18px; font-size: 1.02rem;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.search-btn:hover { background: var(--red-dark); box-shadow: 0 10px 24px rgba(227,28,35,.28); }
.search-btn:active { transform: scale(.98); }
.login-card { max-width: 420px; border-radius: 28px; padding: 18px; }
.error {
  background: #fff3f3; color: #9b1111; border: 1px solid #ffd0d0;
  border-radius: 16px; padding: 10px 12px; margin: 0 auto 12px; font-weight: 600; font-size: .92rem;
  max-width: 920px;
}

.page { max-width: 1080px; margin: 0 auto; padding: 16px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.back {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 14px; font-weight: 700; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.back:hover { box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 14px; display: flex; gap: 12px; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.avatar {
  width: 72px; height: 72px; border-radius: 18px; object-fit: cover; background: var(--soft); flex: none;
}
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; background: var(--soft);
  border-radius: 999px; padding: 4px 8px; margin-right: 4px;
}
.badge.red { background: #ffe8e8; color: #b8141a; }
.empty {
  background: var(--soft); border-radius: 22px; padding: 48px 16px; text-align: center;
}

.profile { background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.profile-head { padding: 22px 20px; display: flex; gap: 16px; align-items: flex-start; }
.profile-head img { width: 88px; height: 88px; border-radius: 22px; object-fit: cover; background: var(--soft); }
.profile-body { padding: 0 20px 22px; display: grid; gap: 12px; }
.block { background: var(--soft); border-radius: 18px; padding: 14px; }
.block h3 { font-size: .95rem; margin-bottom: 8px; }

.footer {
  margin-top: 48px; padding: 18px 16px 40px; text-align: center; color: #717171; font-size: 13px; line-height: 1.6;
}
.footer .copy { margin-top: 8px; color: #b0b0b0; }

.admin-shell { display: grid; min-height: 100vh; }
@media (min-width: 860px) { .admin-shell { grid-template-columns: 240px 1fr; } }
.aside { background: #111; color: #fff; padding: 18px; }
.admin-brand { font-weight: 800; letter-spacing: -.03em; font-size: 1.2rem; margin-bottom: 18px; }
.aside a, .aside button.link, .aside label.link {
  display: block; width: 100%; text-align: left; color: #eee; background: none; border: 0;
  padding: 10px 10px; border-radius: 10px; cursor: pointer; font-weight: 600;
}
.aside a:hover, .aside button.link:hover, .aside label.link:hover { background: #2a2a2a; }
.admin-main { padding: 16px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.table th, .table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.btn { border: 0; border-radius: 999px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.btn.dark { background: #111; color: #fff; }
.btn.danger { background: #fff; color: #b8141a; border: 1px solid #ffd0d0; }

.fade-up { animation: rise .7s var(--ease) both; }
.delay-1 { animation-delay: .08s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
