﻿:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #1d2b4d;
  --muted: #5f6f92;
  --blue: #1a68de;
  --blue-2: #0f4fb0;
  --line: #e4ecf9;
  --good: #1fa66d;
  --warn: #e59d1c;
  --card-a: linear-gradient(145deg, #e6f4ff 0%, #fdf4e8 100%);
  --card-b: linear-gradient(145deg, #d9ecf6 0%, #f2dce7 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", "Vrinda", sans-serif;
  background: #ffffff;
  color: var(--ink);
}

html[data-lang="en"] body {
  font-family: "Inter", "Segoe UI", "Noto Sans", Arial, sans-serif;
}

.google-translate-host {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.container {
  width: min(1180px, 94%);
  margin: 60px auto 40px;
}

.country-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  margin: 0;
  border-radius: 0;
  border: none;
  padding: 2px 16px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 73, 138, 0.08);
  height: 60px;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(26, 87, 177, 0.2);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-logo {
  flex-shrink: 0;
}

.bta-logo-main {
  height: auto;
  width: 100px;
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1;
  color: #143676;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-text-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.brand p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 4px 8px;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  background: linear-gradient(130deg, rgba(43, 125, 250, 0.14) 0%, rgba(31, 191, 117, 0.12) 100%);
  border: 1px solid rgba(163, 191, 236, 0.55);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.menu a {
  color: #27314f;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.menu a:hover {
  color: #143676;
  background: rgba(255, 255, 255, 0.55);
}

.menu-auth-item {
  list-style: none;
  display: none;
}

.menu-auth-link {
  display: block;
  text-align: center;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 700;
}

.menu-auth-link.btn.outline {
  background: #fff;
  border: 1px solid #cddbf2;
}

.menu-auth-link.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  box-shadow: none;
}

.menu-toggle {
  display: none;
  border: 1px solid #ccdaef;
  border-radius: 8px;
  width: 42px;
  height: 38px;
  padding: 0;
  background: #fff;
  color: #254376;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn.outline {
  background: #fff;
  color: #0f234f;
  border: 1px solid #ccdaef;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  box-shadow: 0 10px 22px rgba(24, 97, 210, 0.28);
}

.lang-toggle {
  border: 1px solid #c9daf5;
  border-radius: 999px;
  background: #ffffff;
  color: #1f417c;
  min-width: 48px;
  height: 36px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(23, 71, 145, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  border-color: #9ec0ef;
  box-shadow: 0 11px 18px rgba(23, 71, 145, 0.16);
}

.sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
}

.sub-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-brand a {
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
}

.sub-brand span {
  color: #60729a;
  font-size: 12px;
  font-weight: 600;
}

.sub-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sub-nav a {
  text-decoration: none;
  color: #2e4877;
  font-size: 14px;
  font-weight: 600;
}

.back-link {
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  background: var(--panel);
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.hero-copy {
  padding: 28px;
}

.flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f6ff;
  border-radius: 999px;
  padding: 8px 12px;
  color: #204d9a;
  font-weight: 700;
  font-size: 14px;
}

.flag-pill img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.2;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-photo {
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 16px;
}

.card {
  background: var(--card-a);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 18px;
}

.grid .card:nth-child(even) {
  background: var(--card-b);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.note {
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

ul {
  margin: 0;
  padding-left: 20px;
  color: #42567d;
  line-height: 1.7;
}

li {
  margin-bottom: 4px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--card-b);
}

.stat b {
  display: block;
  font-size: 20px;
  color: #173f88;
}

.stat span {
  font-size: 13px;
  color: #5d6d90;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 8px;
  text-align: left;
  font-size: 14px;
}

.table th {
  color: #244a91;
  font-weight: 700;
  background: #f7faff;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
}

.badge.good { background: var(--good); }
.badge.warn { background: var(--warn); }
.badge.blue { background: var(--blue); }

.steps {
  counter-reset: item;
}

.steps li {
  list-style: none;
  position: relative;
  padding-left: 34px;
  margin-bottom: 10px;
}

.steps li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf2ff;
  color: #2251a5;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.footer-cta {
  margin-top: 16px;
  background: linear-gradient(130deg, #1a68de, #0e4ba8);
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-cta a {
  text-decoration: none;
  background: #fff;
  color: #184898;
  padding: 9px 14px;
  border-radius: 9px;
  font-weight: 700;
}

.sub-footer {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(145deg, #eef7ff 0%, #e8f2ff 52%, #f4edff 100%);
  position: relative;
  overflow: hidden;
}

.sub-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(43, 125, 250, 0.1), rgba(168, 85, 247, 0.09));
  opacity: 0.52;
  pointer-events: none;
}

.sub-footer > * {
  position: relative;
  z-index: 1;
}

.sub-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1.1fr;
  gap: 10px;
}

.sub-footer h4,
.sub-footer h5 {
  margin: 0 0 6px;
  color: #163d84;
}

.sub-footer h4 {
  font-size: 18px;
}

.sub-footer h5 {
  font-size: 16px;
}

.sub-footer p {
  margin: 0;
  color: #566a91;
  font-size: 13px;
  line-height: 1.5;
}

.sub-footer-links {
  display: grid;
  gap: 6px;
}

.sub-footer-links a {
  text-decoration: none;
  color: #355b99;
  font-size: 14px;
}

.sub-social {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.sub-social a {
  text-decoration: none;
  color: #184898;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #d2e2fb;
  background: #f8fbff;
  border-radius: 999px;
  padding: 6px 10px;
}

.sub-footer-form {
  display: grid;
  gap: 7px;
}

.sub-footer-form input,
.sub-footer-form textarea {
  width: 100%;
  border: 1px solid #cbddf9;
  border-radius: 8px;
  padding: 8px 9px;
  font: inherit;
  font-size: 13px;
  background: #fbfdff;
}

.sub-footer-form textarea {
  min-height: 70px;
  resize: vertical;
}

.sub-footer-form button {
  border: 0;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1a68de, #0e4ba8);
  cursor: pointer;
}

.sub-footer-bottom {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sub-footer-bottom span {
  color: #667a9f;
  font-size: 13px;
}

@media (max-width: 960px) {
  .sub-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu {
    display: none;
  }

  .menu.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 14px;
    right: 14px;
    border: 1px solid rgba(160, 186, 230, 0.6);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0%, rgba(232, 243, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    padding: 12px;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
  }
  .menu.open .menu-auth-item {
    display: block;
  }

  .menu-toggle { display: inline-block; }

  .nav {
    position: fixed;
    flex-wrap: nowrap;
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    min-width: 0;
    flex: 1;
    gap: 8px;
  }
  .bta-logo-main {
    height: auto;
    width: 85px;
  }
  .brand-info {
    min-width: 0;
  }
  .brand h1 {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand p { display: none; }
  .nav-actions {
    gap: 6px;
    flex-wrap: nowrap;
  }
  .nav-actions a.btn {
    display: none;
  }
  .nav-actions .btn.primary {
    padding: 8px 11px;
    font-size: 13px;
  }
  .lang-toggle {
    min-width: 44px;
    height: 34px;
    padding: 0 9px;
    font-size: 11px;
  }
  .search-trigger {
    width: 42px;
    height: 42px;
    border-width: 1px;
    justify-content: center;
  }
  .search-trigger-text { display: none; }
  .search-trigger-orb {
    width: 40px;
    height: 40px;
  }
  .search-icon-svg {
    width: 21px;
    height: 21px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .sub-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: 100%;
    margin: 60px 0 40px 0;
    min-height: 100dvh;
    padding: 10px;
  }

  .nav-actions .btn.outline:not(.search-trigger) {
    display: none;
  }

  .sub-nav {
    gap: 10px;
  }

  .sub-footer-grid {
    grid-template-columns: 1fr;
  }

  .sub-footer::before {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    opacity: 0.4;
  }
}




.theme-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  border: 1px solid #1f2e4d;
  background: #0b1730;
  color: #d8e4ff;
  border-radius: 12px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(6, 15, 32, 0.42);
}

.theme-toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

html[data-theme="night"] {
  color-scheme: dark;
  --bg: #0f172a;
  --panel: #111827;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --line: #223148;
  --blue: #38bdf8;
  --blue-2: #818cf8;
  --good: #34d399;
  --warn: #f59e0b;
  --card-a: linear-gradient(145deg, #111827 0%, #1a2744 100%);
  --card-b: linear-gradient(145deg, #0f1b30 0%, #1e2a45 100%);
}

html[data-theme="night"] body {
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  color: var(--ink);
}

html[data-theme="night"] .country-nav {
  background: linear-gradient(135deg, #111827 0%, #0f172a 65%, #111827 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html[data-theme="night"] .hero,
html[data-theme="night"] .card,
html[data-theme="night"] .sub-footer,
html[data-theme="night"] .stat {
  background: #111827;
  border-color: #25344c;
}

html[data-theme="night"] .sub-header {
  background: #111827;
  border-color: #25344c;
}

html[data-theme="night"] .sub-brand a {
  color: #38bdf8;
}

html[data-theme="night"] .sub-brand span {
  color: #94a3b8;
}

html[data-theme="night"] .sub-nav a {
  color: #94a3b8;
}

html[data-theme="night"] .sub-nav a:hover {
  color: #38bdf8;
}

html[data-theme="night"] .table th {
  background: #172033;
  border-color: #25344c;
  color: #c6d4ec;
}

html[data-theme="night"] .table td {
  border-color: #25344c;
  color: #94a3b8;
}

html[data-theme="night"] .menu,
html[data-theme="night"] .menu.open {
  background: linear-gradient(130deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.08) 100%);
  border-color: #2b3a54;
  backdrop-filter: blur(8px);
}

html[data-theme="night"] .btn.outline,
html[data-theme="night"] .lang-toggle,
html[data-theme="night"] .flag-pill,
html[data-theme="night"] .steps li::before,
html[data-theme="night"] .sub-social a,
html[data-theme="night"] .sub-footer-form input,
html[data-theme="night"] .sub-footer-form textarea {
  background: #172033;
  border-color: #2b3a54;
  color: #dbe6f7;
}

html[data-theme="night"] .menu-toggle {
  background: #172033;
  border-color: #2b3a54;
  color: #dbe6f7;
}

html[data-theme="night"] .menu a {
  color: #c6d4ec;
}

html[data-theme="night"] .menu a:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

html[data-theme="night"] .brand h1,
html[data-theme="night"] .hero h1,
html[data-theme="night"] .card h2,
html[data-theme="night"] .card h3,
html[data-theme="night"] .sub-footer h4,
html[data-theme="night"] .sub-footer h5,
html[data-theme="night"] .stat b {
  color: #e2e8f0;
}

html[data-theme="night"] .brand p,
html[data-theme="night"] .hero p,
html[data-theme="night"] ul,
html[data-theme="night"] .note,
html[data-theme="night"] .stat span,
html[data-theme="night"] .sub-footer p,
html[data-theme="night"] .sub-footer-links a,
html[data-theme="night"] .sub-footer-bottom span {
  color: #94a3b8;
}

html[data-theme="night"] .btn.primary,
html[data-theme="night"] .back-link,
html[data-theme="night"] .sub-footer-form button {
  color: #081018;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  box-shadow: 0 12px 22px rgba(56, 189, 248, 0.24);
}

html[data-theme="night"] .footer-cta {
  background: linear-gradient(130deg, #0f172a, #1e293b);
  border: 1px solid #2a3954;
}

html[data-theme="night"] .footer-cta a {
  background: #172033;
  color: #dbe6f7;
  border: 1px solid #2b3a54;
}

html[data-theme="night"] .badge.blue {
  background: #38bdf8;
  color: #081018;
}

html[data-theme="night"] .badge.good {
  background: #34d399;
  color: #081018;
}

html[data-theme="night"] .badge.warn {
  background: #f59e0b;
  color: #081018;
}

html[data-theme="night"] .search-trigger {
  background: #172033;
  border-color: #2b3a54;
}

html[data-theme="night"] .search-trigger-text {
  color: #c6d4ec;
}

html[data-theme="night"] .search-close {
  background: #1e293b;
  color: #c6d4ec;
}

html[data-theme="night"] .sub-footer::before {
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.06), rgba(129, 140, 248, 0.06));
}

html[data-theme="night"] .theme-toggle {
  background: #0b1220;
  border-color: #2a3954;
  color: #cbd5e1;
}

html[data-theme="night"] .theme-toggle-dot {
  background: #f472b6;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.22);
}

@media (max-width: 620px) {
  .theme-toggle {
    right: 12px;
    bottom: 104px;
    padding: 9px 11px;
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: 114px;
  }

  .mobile-app-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1150;
    border-radius: 22px;
    border: 1px solid #d9e6fb;
    background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
    box-shadow: 0 18px 30px rgba(27, 68, 138, 0.16);
    padding: 8px 10px 10px;
  }
  .mobile-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    align-items: stretch;
  }

  .mobile-tab {
    text-decoration: none;
    color: #5e76a0;
    display: grid;
    justify-items: center;
    gap: 3px;
    border-radius: 12px;
    padding: 8px 4px 6px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .mobile-tab .mobile-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
  }

  .mobile-tab .mobile-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.3;
  }

  .mobile-tab .mobile-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .mobile-tab.active {
    background: rgba(56, 189, 248, 0.12);
    color: #1f3f7a;
  }

  .mobile-tab.active .mobile-icon {
    color: #38bdf8;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
  }

  html[data-theme="night"] .mobile-app-nav {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border-color: #2a3954;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
  }

  html[data-theme="night"] .mobile-tab {
    color: #7a8fa8;
  }

  html[data-theme="night"] .mobile-tab.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
  }
}

@media (min-width: 861px) {
  .mobile-app-nav {
    display: none;
  }
}

.search-trigger {
  width: 176px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: #f8fbff;
  border: 2px solid #2b67e8;
  box-shadow: 0 8px 16px rgba(32, 84, 192, 0.14);
  overflow: hidden;
}

.search-trigger-orb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f7cff, #1d57d9);
  display: grid;
  place-items: center;
}

.search-icon-svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.search-trigger-text {
  color: #2d4f8e;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 22, 48, 0.56);
  display: grid;
  place-items: center;
  z-index: 1250;
  padding: 14px;
}

.search-modal[hidden] {
  display: none;
}

.search-modal-card {
  width: min(760px, 100%);
  background: var(--card-b);
  border: 1px solid #d7e4fb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 55px rgba(11, 38, 86, 0.35);
}

.search-head {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(130deg, #f5f8ff, #ecf3ff);
  border-bottom: 1px solid #dee7f8;
}

.search-head h5 {
  margin: 0;
  color: #1f3d74;
  font-size: 19px;
}

.search-close {
  border: 0;
  border-radius: 8px;
  background: #dce8ff;
  color: #19468f;
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.search-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.search-body input {
  width: 100%;
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.search-body input:focus {
  border-color: #3f7be1;
  box-shadow: 0 0 0 3px rgba(63, 123, 225, 0.16);
}

.search-meta {
  color: #50658d;
  font-size: 13px;
}

.search-results {
  max-height: 56vh;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.search-result-item {
  border: 1px solid #d5e3fb;
  border-radius: 10px;
  background: #f9fbff;
  padding: 10px 12px;
  color: #2a4676;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.search-result-title {
  font-size: 15px;
  font-weight: 700;
}

.search-result-tag {
  font-size: 12px;
  color: #3c619d;
  background: #eaf2ff;
  border-radius: 999px;
  padding: 4px 8px;
}

html[data-theme="night"] .search-modal-card,
html[data-theme="night"] .search-result-item,
html[data-theme="night"] .search-body input {
  background: #111827;
  border-color: #25344c;
  color: #dbe6f7;
}

html[data-theme="night"] .search-head {
  background: #172033;
  border-color: #25344c;
}

html[data-theme="night"] .search-head h5,
html[data-theme="night"] .search-meta,
html[data-theme="night"] .search-result-title {
  color: #dbe6f7;
}

html[data-theme="night"] .search-result-tag {
  background: #172033;
  color: #a5bddf;
}

/* User Email Styling */
.user-email {
  display: inline-block;
  padding: 8px 12px;
  background: var(--blue);
  color: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

html[data-theme="night"] .user-email {
  background: var(--blue);
  color: white;
}

/* Profile Form Styling */
.profile-card {
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%) !important;
  border: 2px solid #e0e8f5 !important;
}

.profile-form {
  width: 100%;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  color: #1d2b4d;
  cursor: text;
}

.profile-field input,
.profile-field select,
.profile-field textarea {
  padding: 10px 14px;
  border: 2px solid #d0dce8;
  border-radius: 16px;
  font: inherit;
  font-size: 15px;
  background: #ffffff;
  color: #1d2b4d;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(29, 43, 77, 0.06);
}

.profile-field input::placeholder,
.profile-field select::placeholder {
  color: #8a99b1;
}

.profile-field input:focus,
.profile-field select:focus,
.profile-field textarea:focus {
  outline: none;
  border-color: #1a68de;
  box-shadow: 0 0 0 4px rgba(26, 104, 222, 0.12), 0 4px 12px rgba(26, 104, 222, 0.15);
  transform: translateY(-2px);
}

.profile-field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  border-radius: 4px;
  margin-right: 4px;
  opacity: 0.6;
  filter: invert(0.3);
  transition: opacity 0.2s;
}

.profile-field input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Color gradient borders for different field types */
.profile-field input[type="text"] {
  border: 2px solid #1a68de;
  background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(180deg, #1a68de, #0f4fb0) border-box;
}

.profile-field input[type="email"] {
  border: 2px solid #1fbf75;
  background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(180deg, #1fbf75, #158f5c) border-box;
}

.profile-field input[type="tel"] {
  border: 2px solid #f8a01a;
  background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(180deg, #f8a01a, #d67f14) border-box;
}

.profile-field input[type="date"] {
  border: 2px solid #9c27b0;
  background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(180deg, #9c27b0, #7b1fa2) border-box;
}

.profile-field input[type="number"] {
  border: 2px solid #2196f3;
  background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(180deg, #2196f3, #1565c0) border-box;
}

.profile-field select {
  border: 2px solid #ff5722;
  background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(180deg, #ff5722, #d84315) border-box;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a68de' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  appearance: none;
}

.profile-field textarea {
  border: 2px solid #00bcd4;
  background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(180deg, #00bcd4, #0097a7) border-box;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.profile-field input:hover,
.profile-field select:hover,
.profile-field textarea:hover {
  box-shadow: 0 2px 12px rgba(26, 104, 222, 0.12);
}

/* Profile actions styling */
.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.profile-actions .btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-actions .btn.primary {
  background: linear-gradient(135deg, #1a68de, #0f4fb0);
  color: white;
  box-shadow: 0 4px 12px rgba(26, 104, 222, 0.3);
}

.profile-actions .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 104, 222, 0.4);
}

.profile-actions .btn.outline {
  border: 2px solid #1a68de;
  color: #1a68de;
  background: transparent;
}

.profile-actions .btn.outline:hover {
  background: #f1f6ff;
  transform: translateY(-2px);
}

/* Dark mode support */
html[data-theme="night"] .profile-card {
  background: linear-gradient(135deg, #111827 0%, #1a2b3f 100%) !important;
  border-color: #2a3954 !important;
}

html[data-theme="night"] .profile-field {
  color: #e2e8f0;
}

html[data-theme="night"] .profile-field input,
html[data-theme="night"] .profile-field select,
html[data-theme="night"] .profile-field textarea {
  background: #0f1620;
  border-color: #2a3954;
  color: #e2e8f0;
}

html[data-theme="night"] .profile-field input[type="text"] {
  background: linear-gradient(#0f1620, #0f1620) padding-box, linear-gradient(180deg, #1a68de, #0f4fb0) border-box;
}

html[data-theme="night"] .profile-field input[type="email"] {
  background: linear-gradient(#0f1620, #0f1620) padding-box, linear-gradient(180deg, #1fbf75, #158f5c) border-box;
}

html[data-theme="night"] .profile-field input[type="tel"] {
  background: linear-gradient(#0f1620, #0f1620) padding-box, linear-gradient(180deg, #f8a01a, #d67f14) border-box;
}

html[data-theme="night"] .profile-field input[type="date"] {
  background: linear-gradient(#0f1620, #0f1620) padding-box, linear-gradient(180deg, #9c27b0, #7b1fa2) border-box;
}

html[data-theme="night"] .profile-field input[type="number"] {
  background: linear-gradient(#0f1620, #0f1620) padding-box, linear-gradient(180deg, #2196f3, #1565c0) border-box;
}

html[data-theme="night"] .profile-field select {
  background: linear-gradient(#0f1620, #0f1620) padding-box, linear-gradient(180deg, #ff5722, #d84315) border-box;
}

html[data-theme="night"] .profile-field textarea {
  background: linear-gradient(#0f1620, #0f1620) padding-box, linear-gradient(180deg, #00bcd4, #0097a7) border-box;
}

html[data-theme="night"] .profile-field input::placeholder,
html[data-theme="night"] .profile-field select::placeholder {
  color: #7a8a9e;
}

html[data-theme="night"] .profile-field input:focus,
html[data-theme="night"] .profile-field select:focus,
html[data-theme="night"] .profile-field textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12), 0 4px 12px rgba(56, 189, 248, 0.15);
}

html[data-theme="night"] .profile-field input:hover,
html[data-theme="night"] .profile-field select:hover,
html[data-theme="night"] .profile-field textarea:hover {
  border-color: #38bdf8;
  box-shadow: 0 2px 12px rgba(56, 189, 248, 0.12);
}

/* Responsive design */
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-field input,
  .profile-field select,
  .profile-field textarea {
    padding: 9px 12px;
    font-size: 16px;
  }

  .profile-actions {
    flex-direction: column;
  }

  .profile-actions .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .user-email {
    display: block;
    margin-bottom: 10px;
  }
}

@media (max-width: 620px) {
  .search-trigger {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border-width: 1px;
    padding: 0;
    justify-content: center;
  }

  .search-trigger-text {
    display: none;
  }

  .search-modal {
    padding: 10px;
  }

  .search-modal-card {
    border-radius: 12px;
  }
}

