/* ============================================================
   Noghotok — Shared Stylesheet
   Brand: red #B5002B / gold #B8895E / cream #FAF6F0 / ink #1A1612
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --red: #B5002B;
  --red-dark: #8B0021;
  --red-soft: rgba(181, 0, 43, 0.08);
  --gold: #B8895E;
  --gold-soft: rgba(184, 137, 94, 0.12);
  --cream: #FAF6F0;
  --ink: #1A1612;
  --ink-soft: #4A413A;
  --ink-muted: #6B645D;
  --line: #E8DFD3;
  --line-soft: #F0EAE0;
  --green: #1d6f1d;
  --green-soft: rgba(29, 111, 29, 0.1);
  --orange: #C56A1A;
  --orange-soft: rgba(197, 106, 26, 0.1);
  --admin: #1F2937;
  --admin-soft: rgba(31, 41, 55, 0.08);

  --header-h: 56px;
  --bottom-nav-h: 70px;

  --font-bn: 'Hind Siliguri', sans-serif;
  --font-bn-display: 'Tiro Bangla', serif;
  --font-num: 'Playfair Display', serif;
}

/* ---------- RESET ---------- */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body {
  font-family: var(--font-bn);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ---------- A11Y ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--red);
  color: white;
  padding: 12px 18px;
  z-index: 9999;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- TOP HEADER ---------- */
.top-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  box-shadow: 0 1px 0 var(--line), 0 2px 8px rgba(0,0,0,0.06);
  padding: 12px 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.top-logo {
  font-family: var(--font-bn-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1;
  display: flex; align-items: center;
  flex-shrink: 0;
}
.top-logo .red { color: var(--red); }
.top-logo-img { height: 36px; width: auto; display: block; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-icon-btn {
  width: 36px; height: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  cursor: pointer;
}
.top-icon-btn svg { width: 18px; height: 18px; }
.top-icon-btn:hover { border-color: var(--red); color: var(--red); }
.top-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: white;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 100px;
}
.top-back svg { width: 14px; height: 14px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--red); color: white; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-secondary {
  background: white;
  color: var(--ink-soft);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-success { background: var(--green); color: white; border-color: var(--green); }
.btn-light { background: white; color: var(--red); border-color: white; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-label .req { color: var(--red); }
.form-help {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 4px;
  line-height: 1.4;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.form-control:focus { outline: none; border-color: var(--red); background: white; }
textarea.form-control { min-height: 100px; resize: vertical; line-height: 1.6; }
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%234A413A' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ---------- CHOICE PILLS ---------- */
.choice-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.choice-pill {
  padding: 9px 14px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.choice-pill:hover { border-color: var(--red); color: var(--red); }
.choice-pill.active { background: var(--red); color: white; border-color: var(--red); }

/* ---------- BOTTOM NAV ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: white;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  position: relative;
}
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-item.active { color: var(--red); }
.bottom-nav-item.primary .nav-cta-circle {
  width: 52px; height: 52px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: -16px;
  box-shadow: 0 4px 14px rgba(181, 0, 43, 0.4);
}
.bottom-nav-item.primary span { font-size: 10px; color: var(--red); font-weight: 700; }

/* ---------- DESKTOP HIDE BOTTOM NAV ---------- */
@media (min-width: 768px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0 !important; }
}
    font-weight: 400;
    padding-bottom: 70px; /* space for bottom nav */
  }

  /* ============ TOP HEADER (mobile-first, simple) ============ */
  .top-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 14px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
  }
  .top-logo {
    font-family: 'Tiro Bangla', serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--ink);
    line-height: 1;
    display: flex; align-items: center;
    flex-shrink: 0;
  }
  .top-logo .red { color: var(--red); }
  .top-logo-img { height: 40px; width: auto; display: block; }
  .top-actions { display: flex; align-items: center; gap: 8px; }

  /* USER DROPDOWN (logged in) */
  .top-user-wrap { position: relative; }
  .top-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 3px 12px 3px 3px;
    cursor: pointer;
    font-family: inherit;
    color: var(--ink);
    transition: all 0.15s;
  }
  .top-user-btn:hover { border-color: var(--red); }
  .top-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--red);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
    font-family: 'Hind Siliguri', sans-serif;
    padding-top: 1px;
  }
  .top-user-name {
    font-size: 13px;
    font-weight: 600;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(26,22,18,0.12);
    min-width: 260px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  }
  .top-user-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .top-user-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .top-user-head-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    font-family: 'Hind Siliguri', sans-serif;
    padding-top: 2px;
  }
  .top-user-head-info { flex: 1; min-width: 0; }
  .top-user-head-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
  }
  .top-user-head-meta {
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
  }
  .top-user-list {
    list-style: none;
    padding: 6px 0;
    margin: 0;
  }
  .top-user-list li a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 16px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
  }
  .top-user-list li a:hover {
    background: var(--cream);
    color: var(--ink);
  }
  .top-user-list li a svg {
    width: 16px;
    height: 16px;
    color: var(--ink-muted);
    flex-shrink: 0;
  }
  .top-user-list li a span {
    flex: 1;
  }
  .top-user-list li.divider {
    height: 1px;
    background: var(--line);
    margin: 4px 0;
  }
  .top-user-list li.danger a { color: var(--red); }
  .top-user-list li.danger a svg { color: var(--red); }
  .top-user-list li.danger a:hover { background: rgba(181,0,43,0.06); }
  .badge-dot {
    background: var(--red);
    color: white !important;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 100px;
    flex: none !important;
  }
  .balance-text {
    color: var(--gold) !important;
    font-weight: 700;
    font-size: 12px;
    flex: none !important;
  }

  .top-login-btn {
    display: inline-flex;
    align-items: center;
    background: var(--ink);
    color: white;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
  }
  .top-login-btn:hover { background: var(--red); }
  .top-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
  }
  .top-icon-btn:hover { border-color: var(--red); color: var(--red); }
  .top-icon-btn svg { width: 18px; height: 18px; }
  .top-search-btn { color: var(--ink); }
  .top-search-btn.active { background: var(--red); border-color: var(--red); color: white; }
  .top-lang-btn {
    background: white;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    white-space: nowrap;
  }
  .top-lang-btn:hover { border-color: var(--red); color: var(--red); }
  .top-lang-btn[aria-expanded="true"] { border-color: var(--red); color: var(--red); background: var(--red-soft); }

  .lang-dropdown {
    position: relative;
  }
  .lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 140px;
    overflow: hidden;
    display: none;
    z-index: 200;
  }
  .lang-menu.open { display: block; }
  .lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.1s;
  }
  .lang-option:hover { background: var(--cream); }
  .lang-option.active {
    color: var(--red);
    background: var(--red-soft);
  }

  /* ============ BUTTONS ============ */
  .btn {
    background: var(--red);
    color: white;
    padding: 14px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border: 1.5px solid var(--red);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
    font-family: inherit;
    text-align: center;
  }
  .btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
  .btn:active { transform: scale(0.98); }
  .btn-block { width: 100%; }
  .btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
  }
  .btn-outline:hover { background: var(--ink); color: var(--cream); }
  .btn-light {
    background: white;
    color: var(--red);
    border-color: white;
  }
  .btn-light:hover { background: var(--ink); color: white; border-color: var(--ink); }

/* ============ BIODATA WIZARD ============ */
/* Used by userbio/edit_*_bio.php views (multi-page wizard styled like a single-page one) */
.wizard-progress-bar {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 14px 5%;
  position: sticky;
  top: var(--header-h);
  z-index: 60;
}
.wizard-progress-bar .progress-track {
  position: relative;
  height: 4px;
  background: var(--line);
  border-radius: 100px;
  margin-bottom: 12px;
}
.wizard-progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--red), var(--gold));
  border-radius: 100px;
  transition: width 0.4s ease;
}
.wizard-progress-bar .progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.wizard-progress-bar .progress-step-text { color: var(--ink-soft); font-weight: 600; }
.wizard-progress-bar .progress-step-text strong { color: var(--red); }
.wizard-progress-bar .progress-percent {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: var(--gold);
  font-size: 15px;
}
.wizard-progress-bar .step-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-top: 10px;
}
.wizard-progress-bar .step-nav::-webkit-scrollbar { display: none; }
.wizard-progress-bar .step-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--cream);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  border: 1px solid var(--line);
}
.wizard-progress-bar .step-nav-item .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-soft);
  font-size: 11px; font-weight: 800;
  font-family: 'Playfair Display', serif;
}
.wizard-progress-bar .step-nav-item.complete { color: var(--green); background: var(--green-soft); border-color: var(--green); }
.wizard-progress-bar .step-nav-item.complete .num { background: var(--green); color: white; }
.wizard-progress-bar .step-nav-item.active { background: var(--red); color: white; border-color: var(--red); }
.wizard-progress-bar .step-nav-item.active .num { background: white; color: var(--red); }

.wizard-container { max-width: 720px; margin: 0 auto; padding: 22px 5% 110px; }
.wizard-step-header { text-align: center; margin-bottom: 22px; }
.wizard-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.wizard-title {
  font-family: 'Tiro Bangla', serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  color: var(--ink);
}
.wizard-title .red { color: var(--red); }
.wizard-sub { font-size: 14px; color: var(--ink-soft); }

.form-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
}
.form-card-title {
  font-family: 'Tiro Bangla', serif;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-card .form-group { margin-bottom: 14px; }
.form-card .form-group:last-child { margin-bottom: 0; }
.form-card .form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-card .form-label .req { color: var(--red); }
.form-card .form-label .opt { color: var(--ink-soft); font-weight: 500; font-size: 11px; }
.form-card .form-help { font-size: 12px; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }
.form-card .form-control,
.form-card select,
.form-card input[type=text],
.form-card input[type=number],
.form-card textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.form-card .form-control:focus,
.form-card select:focus,
.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--red);
  background: white;
}
.form-card textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.form-card select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%234A413A' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }

.wizard-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--line);
  padding: 12px 5%;
  z-index: 70;
  box-shadow: 0 -4px 16px rgba(26,22,18,0.04);
}
.wizard-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}
.wizard-footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.wizard-footer .btn-primary  { background: var(--red); color: white; border-color: var(--red); flex: 1; }
.wizard-footer .btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.wizard-footer .btn-secondary { background: white; color: var(--ink-soft); border-color: var(--line); }
.wizard-footer .btn-secondary:hover { border-color: var(--ink-soft); }
.wizard-footer .btn svg { width: 16px; height: 16px; }

/* Wizard step toggling (single-page wizard) */
.wizard-step { display: none; animation: wizardFade 0.25s ease; }
.wizard-step.active { display: block; }
@keyframes wizardFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Choice pills (used as a toggle group; backed by hidden input for form submit) */
.choice-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.choice-pill {
  padding: 9px 14px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.choice-pill:hover { border-color: var(--red); color: var(--red); }
.choice-pill.active { background: var(--red); color: white; border-color: var(--red); }

/* Number stepper (-/+ around a value; backed by hidden input) */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: var(--cream);
  padding: 2px;
}
.stepper-btn {
  width: 32px; height: 32px;
  border: none;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.stepper-btn:hover { background: var(--red); color: white; }
.stepper-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.stepper-value {
  min-width: 50px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

/* Inline callouts inside form */
.privacy-callout {
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 14px;
  line-height: 1.5;
}
.privacy-callout svg { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.privacy-callout strong { color: var(--green); font-weight: 700; }

.info-hint {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.info-hint svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.info-hint strong { color: var(--ink); font-weight: 700; }

/* Inline label suffix tags */
.privacy-tag, .priority-hint {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  margin-left: 6px;
}
.privacy-tag  { background: var(--gold-soft); color: var(--gold); }
.priority-hint{ background: var(--gold-soft); color: var(--gold); }
.privacy-tag svg, .priority-hint svg { width: 10px; height: 10px; }

/* Locked (read-only display) field */
.locked-field {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  background: var(--green-soft);
  border: 1px solid var(--green);
  padding: 9px 12px;
  border-radius: 8px;
  min-height: 42px;
}
.locked-field-main { display: flex; align-items: center; gap: 6px; color: var(--green); flex: 1; min-width: 0; }
.locked-field-main strong { font-size: 14px; font-weight: 700; color: var(--ink); }
.locked-field-edit {
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.locked-field-edit:hover { text-decoration: underline; }

/* Gender-conditional fields */
body.gender-male .female-only,
body.gender-female .male-only { display: none !important; }

@media (min-width: 768px) {
  .wizard-title { font-size: 30px; }
  .wizard-sub { font-size: 16px; }
  .form-card { padding: 24px 28px; }
}

/* ============ BIODATA MANAGEMENT LIST (admin + user) ============ */
/* Scoped under .mng-list so the new admin/user list pages don't conflict with the
   public biodata list (which uses its own .biodata-card styling). */
.mng-list { max-width: 900px; margin: 0 auto; padding: 14px 5%; }
.mng-list .page-head { padding: 18px 0 6px; }
.mng-list .page-title {
  font-family: 'Tiro Bangla', serif;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.mng-list .page-title .count {
  font-family: 'Playfair Display', serif;
  color: var(--red);
  margin-left: 6px;
  font-weight: 900;
}
.mng-list .page-sub { font-size: 13px; color: var(--ink-soft); }

.mng-list .stats-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
  margin-bottom: 14px;
}
.mng-list .stats-panel::-webkit-scrollbar { display: none; }
.mng-list .stat-item {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 6px; flex-shrink: 0; white-space: nowrap;
}
.mng-list .stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 900; line-height: 1;
}
.mng-list .stat-label { font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.mng-list .stat-item.warn  .stat-num { color: var(--orange); }
.mng-list .stat-item.ok    .stat-num { color: var(--green); }
.mng-list .stat-item.alert .stat-num { color: var(--red); }
.mng-list .stat-item.muted .stat-num { color: var(--ink-soft); }
.mng-list .stat-divider { width: 1px; height: 22px; background: var(--line); flex-shrink: 0; }

.mng-list .toolbar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.mng-list .search-input { flex: 1; position: relative; }
.mng-list .search-input svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  color: var(--ink-soft);
  pointer-events: none;
}
.mng-list .search-input input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  background: var(--cream);
  color: var(--ink);
}
.mng-list .search-input input:focus { outline: none; border-color: var(--red); background: white; }

.mng-list .filters-bar {
  display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  margin-bottom: 14px;
  padding-bottom: 2px;
}
.mng-list .filters-bar::-webkit-scrollbar { display: none; }
.mng-list .filter-pill {
  padding: 6px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.mng-list .filter-pill:hover { border-color: var(--red); color: var(--red); }
.mng-list .filter-pill.active { background: var(--red); color: white; border-color: var(--red); }
.mng-list .filter-pill .num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-left: 3px;
  opacity: 0.85;
}

.mng-list .add-biodata-card {
  background: linear-gradient(135deg, var(--cream), #FFF8EC);
  border: 1.5px dashed var(--gold);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  margin-bottom: 14px;
  text-decoration: none;
  display: block;
  color: var(--ink);
  transition: all 0.15s;
}
.mng-list .add-biodata-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px -8px rgba(184,137,94,0.3); }
.mng-list .add-icon {
  width: 44px; height: 44px;
  background: var(--gold);
  color: white;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.mng-list .add-icon svg { width: 20px; height: 20px; }
.mng-list .add-title { font-family: 'Tiro Bangla', serif; font-size: 16px; font-weight: 900; margin-bottom: 4px; }
.mng-list .add-sub { font-size: 12px; color: var(--ink-soft); }
.mng-list .add-cost-pill {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 100px;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* List card */
.mng-list .mbio-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  transition: all 0.15s;
}
.mng-list .mbio-card:hover { border-color: var(--red); box-shadow: 0 6px 16px -8px rgba(26,22,18,0.12); }
.mng-list .mbio-card.flagged    { border-left: 3px solid var(--orange); }
.mng-list .mbio-card.disapproved{ border-left: 3px solid var(--red); opacity: 0.85; }
.mng-list .mbio-card.incomplete { border-left: 3px solid var(--ink-soft); }
.mng-list .mbio-card.primary    { border: 1.5px solid var(--gold); background: linear-gradient(to right, white, #FDFAF5); }

.mng-list .mbio-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.mng-list .mbio-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mng-list .mbio-avatar .verified {
  position: absolute; bottom: -2px; right: -2px;
  width: 18px; height: 18px;
  background: var(--green); color: white;
  border: 2px solid white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.mng-list .mbio-avatar .verified svg { width: 9px; height: 9px; }

.mng-list .mbio-info { flex: 1; min-width: 0; }
.mng-list .mbio-top-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; }
.mng-list .mbio-id { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 13px; color: var(--red); }
.mng-list .mbio-status-pill {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mng-list .mbio-status-pill svg { width: 9px; height: 9px; }
.mng-list .mbio-status-pill.active      { background: var(--green-soft);  color: var(--green); }
.mng-list .mbio-status-pill.pending     { background: rgba(197,106,26,0.1); color: var(--orange); }
.mng-list .mbio-status-pill.disapproved { background: var(--red-soft);    color: var(--red); }
.mng-list .mbio-status-pill.incomplete  { background: rgba(74,65,58,0.12); color: var(--ink-soft); }
.mng-list .primary-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--gold); color: white;
  font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.mng-list .mbio-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.mng-list .mbio-meta { font-size: 12px; color: var(--ink-soft); font-weight: 500; line-height: 1.4; }
.mng-list .mbio-meta .dot {
  display: inline-block;
  width: 3px; height: 3px;
  background: var(--ink-soft);
  border-radius: 50%;
  margin: 0 6px; vertical-align: middle;
}
.mng-list .mbio-phone { font-family: 'Playfair Display', serif; color: var(--ink); font-weight: 700; }

.mng-list .completeness-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; }
.mng-list .completeness-bar { flex: 1; height: 5px; background: var(--line); border-radius: 100px; overflow: hidden; max-width: 160px; }
.mng-list .completeness-fill { height: 100%; border-radius: 100px; background: linear-gradient(to right, var(--gold), var(--red)); }
.mng-list .completeness-num  { font-family: 'Playfair Display', serif; font-weight: 800; color: var(--ink); }
.mng-list .completeness-warn { font-size: 11px; color: var(--orange); font-weight: 600; margin-top: 2px; }

.mng-list .mbio-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.mng-list .mbio-action-btn {
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink-soft);
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}
.mng-list .mbio-action-btn svg { width: 11px; height: 11px; }
.mng-list .mbio-action-btn:hover  { border-color: currentColor; }
.mng-list .mbio-action-btn.primary{ color: var(--red); }
.mng-list .mbio-action-btn.primary:hover { background: var(--red-soft); }
.mng-list .mbio-action-btn.success{ color: var(--green); }
.mng-list .mbio-action-btn.success:hover { background: var(--green-soft); }
.mng-list .mbio-action-btn.warn   { color: var(--orange); }
.mng-list .mbio-action-btn.danger { color: var(--red); }
.mng-list .mbio-action-btn.danger:hover { background: var(--red-soft); }

.mng-list .empty-state {
  text-align: center; padding: 40px 20px;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.mng-list .pagination-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0 4px;
}
.mng-list .pagination-wrap a,
.mng-list .pagination-wrap strong {
  min-width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  margin: 2px;
  padding: 0 10px;
}
.mng-list .pagination-wrap a:hover { border-color: var(--red); color: var(--red); }
/* CodeIgniter pagination wraps the current page in <span class="paginationCurLink"> (see Common_library). */
.mng-list .pagination-wrap .paginationCurLink,
.mng-list .pagination-wrap strong {
  min-width: 32px;
  height: 32px;
  border-radius: 6px;
  background: white;            /* same fill as the inactive page links */
  color: var(--red);
  border: 2px solid var(--red); /* red ring marks the current page */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
  margin: 2px;
}

@media (min-width: 768px) {
  .mng-list .mbio-card { padding: 16px 18px; }
  .mng-list .mbio-avatar { width: 72px; height: 72px; }
  .mng-list .mbio-name { font-size: 15px; }
}

/* ============ FLASH TOAST ============ */
.flash-toast {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 9000;
  min-width: 280px;
  max-width: min(90vw, 420px);
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(26,22,18,0.14);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.flash-toast.success { border-color: var(--green); }
.flash-toast.error   { border-color: var(--red); }
.flash-toast.hiding  { animation: toastOut 0.2s ease forwards; }

.flash-toast-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.flash-toast.success .flash-toast-icon { background: var(--green-soft); color: var(--green); }
.flash-toast.error   .flash-toast-icon { background: var(--red-soft);   color: var(--red); }
.flash-toast-icon svg { width: 16px; height: 16px; }

.flash-toast-body { flex: 1; min-width: 0; }
.flash-toast-text { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }

.flash-toast-close {
  background: none; border: none; padding: 2px;
  cursor: pointer; color: var(--ink-soft);
  flex-shrink: 0; display: flex; align-items: center;
}
.flash-toast-close:hover { color: var(--ink); }
.flash-toast-close svg { width: 14px; height: 14px; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-14px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* ============ FOOTER (shared template) ============ */
footer {
  background: var(--ink);
  color: rgba(250, 246, 240, 0.7);
  padding: 28px 5% 16px;
  text-align: center;
}
.footer-cta {
  text-align: center;
  padding: 36px 5%;
  background: var(--ink);
  color: var(--cream);
  border-bottom: 1px solid rgba(250,246,240,0.1);
}
.footer-cta-title {
  font-family: 'Tiro Bangla', serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 16px;
  line-height: 1.3;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(250,246,240,0.1);
  text-align: left;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.footer-col a {
  display: block;
  color: rgba(250,246,240,0.65);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 9px;
}
.footer-col a:hover { color: var(--cream); }
.footer-col-title {
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-logo {
  font-family: 'Tiro Bangla', serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -1px;
}
.footer-logo .red { color: var(--red); }
.footer-tagline {
  font-family: 'Tiro Bangla', serif;
  font-size: 13px;
  color: var(--gold);
  font-style: italic;
  margin: 6px 0 14px;
}
.footer-bottom { font-size: 12px; opacity: 0.5; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
  .footer-cta-title { font-size: 26px; }
}

/* ============ SEARCH PANEL (shared header) ============ */
.search-panel {
  position: sticky;
  top: 65px;
  z-index: 99;
  background: white;
  border-bottom: 1px solid transparent;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
}
.search-panel.open {
  max-height: 600px;
  border-bottom-color: var(--line);
  box-shadow: 0 16px 48px -12px rgba(0,0,0,0.15);
}
.search-panel-inner {
  padding: 20px 5%;
  max-width: 1100px;
  margin: 0 auto;
}
.search-panel-title {
  font-family: 'Tiro Bangla', serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 16px;
}
.search-panel-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.search-panel-btn {
  grid-column: 1 / -1;
  font-size: 16px;
  padding: 14px;
}
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 18, 0.4);
  z-index: 98;
  backdrop-filter: blur(2px);
}
.search-overlay.active { display: block; }
.search-field { display: flex; flex-direction: column; gap: 6px; }
.search-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.search-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
}
.search-field select:focus { outline: none; border-color: var(--red); }
@media (min-width: 768px) {
  .search-panel { top: 73px; }
  .search-panel-form {
    grid-template-columns: repeat(4, 1fr) auto;
    align-items: end;
  }
  .search-panel-btn {
    grid-column: auto;
    white-space: nowrap;
    padding: 12px 20px;
  }
  .search-panel-title { font-size: 20px; }
}

/* ---------- MOBILE HEADER ADJUSTMENTS ---------- */
@media (max-width: 767px) {
  /* Hide registration button on mobile */
  .top-reg-btn { display: none !important; }

  /* User button: show only the avatar circle on mobile */
  .top-user-btn {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    gap: 0;
  }
  .top-user-btn:hover { border: none; }
  .top-user-name { display: none; }
  .top-user-btn > svg { display: none; }

  /* Shrink logo image slightly on very small screens */
  .top-logo-img { height: 32px; }
}

