/* Public menu (hamburger) and the insurance page. */

/* ---------------------------------------------------------------------------
   Menu button
   ------------------------------------------------------------------------ */

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.menu-toggle:hover { background: rgba(255, 255, 255, .14); }
.menu-toggle:focus-visible { outline: 2px solid #93b4f5; outline-offset: 2px; }
.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, top .32s cubic-bezier(.2, .8, .2, 1);
}
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 18px; }
.menu-toggle span:nth-child(3) { top: 23px; }
.menu-toggle[aria-expanded="true"] { background: var(--brand); border-color: var(--brand); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

/* ---------------------------------------------------------------------------
   Menu panel: drops from under the header, frosted white
   ------------------------------------------------------------------------ */

.site-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 2;
  padding: .5rem .75rem .9rem;
  pointer-events: none;
}
.site-menu[hidden] { display: none !important; }
.site-menu-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: .5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 24px 60px rgba(5, 14, 30, .32);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-12px) scale(.98);
  transform-origin: top center;
  transition: opacity .26s ease, transform .34s cubic-bezier(.2, .8, .2, 1);
}
.site-menu.is-open .site-menu-inner { opacity: 1; transform: none; }

.site-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  color: var(--navy-900);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  list-style: none;
  cursor: pointer;
  transition: background-color .18s ease;
}
.site-menu-link::-webkit-details-marker { display: none; }
.site-menu-link svg { width: 18px; height: 18px; color: #94a3b8; flex: none; transition: transform .25s ease; }
.site-menu-link:hover { background: #eef3fb; }
.site-menu-link.is-active { background: #e8effd; color: var(--brand); }
.site-menu-link.is-active svg { color: var(--brand); }

/* Staggered entrance for each row. */
.site-menu-inner > * { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; }
.site-menu.is-open .site-menu-inner > * { opacity: 1; transform: none; }
.site-menu.is-open .site-menu-inner > *:nth-child(2) { transition-delay: .03s; }
.site-menu.is-open .site-menu-inner > *:nth-child(3) { transition-delay: .06s; }
.site-menu.is-open .site-menu-inner > *:nth-child(4) { transition-delay: .09s; }
.site-menu.is-open .site-menu-inner > *:nth-child(5) { transition-delay: .12s; }
.site-menu.is-open .site-menu-inner > *:nth-child(6) { transition-delay: .15s; }
.site-menu.is-open .site-menu-inner > *:nth-child(7) { transition-delay: .18s; }
.site-menu.is-open .site-menu-inner > *:nth-child(8) { transition-delay: .21s; }
.site-menu.is-open .site-menu-inner > *:nth-child(9) { transition-delay: .24s; }

.site-menu-group[open] > summary svg { transform: rotate(180deg); }
.site-menu-sub {
  display: grid;
  gap: .1rem;
  margin: 0 .5rem .35rem;
  padding: .3rem 0 .3rem .85rem;
  border-left: 2px solid #dbe5f5;
}
.site-menu-sub a {
  padding: .55rem .75rem;
  border-radius: 10px;
  color: #475569;
  font-size: .94rem;
  font-weight: 500;
  text-decoration: none;
}
.site-menu-sub a:hover { background: #eef3fb; color: var(--navy-900); }

.site-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: .4rem;
  padding: .75rem .5rem .35rem;
  border-top: 1px solid #e3e9f3;
}
.site-menu-actions .btn { width: 100%; justify-content: center; white-space: nowrap; padding-left: .75rem; padding-right: .75rem; }
.site-menu-actions .btn:only-child { grid-column: 1 / -1; }

.site-menu-scrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-header, 50) - 1);
  background: rgba(5, 14, 30, .38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s ease;
}
.site-menu-scrim[hidden] { display: none !important; }
.site-menu-scrim.is-open { opacity: 1; }
body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
}
/* Phones: Login lives in the menu so the header stays on one row. */
@media (max-width: 480px) {
  .topbar-public .topbar-login { display: none; }
}

/* ---------------------------------------------------------------------------
   Insurance: hero
   ------------------------------------------------------------------------ */

.ins-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding: 5rem 1.5rem 5.5rem;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, #173a78 100%);
}
.ins-hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60%;
  height: 120%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .35), transparent 70%);
  filter: blur(10px);
  animation: insGlow 12s ease-in-out infinite alternate;
}
@keyframes insGlow {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-8%, 6%) scale(1.1); }
}
.ins-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 3rem;
  align-items: center;
}
.ins-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  margin: .2rem 0 1.1rem;
}
.ins-hero .pill {
  background: rgba(255, 255, 255, .1);
  color: #dbe7fb;
  border: 1px solid rgba(255, 255, 255, .18);
}
.ins-lead { color: #c9d8ee; font-size: 1.1rem; line-height: 1.65; max-width: 34rem; }

/* Stack of glass policy cards. */
.ins-stack { position: relative; height: 360px; }
.ins-policy {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 18px 40px rgba(3, 10, 24, .35);
}
.ins-policy strong { display: block; font-size: .95rem; }
.ins-policy span { font-size: .8rem; color: #b6c8e4; }
.ins-policy.is-back  { top: 0; right: 4%; width: 62%; }
.ins-policy.is-mid   { top: 78px; left: 0; width: 60%; }
.ins-policy.is-front {
  bottom: 0;
  right: 0;
  width: 78%;
  display: block;
  padding: 1.35rem 1.4rem;
  background: rgba(255, 255, 255, .96);
  color: var(--navy-900);
  border-color: #fff;
}
.ins-policy-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.ins-policy-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
}
.ins-policy-icon svg { width: 20px; height: 20px; }
.is-front .ins-policy-icon {
  color: #334155;
  background: linear-gradient(160deg, #f8fafc, #e2e8f0);
  border-color: #cbd5e1;
}
.ins-status {
  font-size: .75rem !important;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .3rem .65rem;
  border-radius: 999px;
  color: var(--brand) !important;
  background: #e8effd;
}
.ins-policy-name { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.ins-policy-meta { font-size: .84rem; color: #64748b; margin-top: .2rem; }
.ins-policy-bar { height: 6px; border-radius: 6px; background: #e8eef7; margin: 1.1rem 0 .8rem; overflow: hidden; }
.ins-policy-bar span {
  display: block;
  height: 100%;
  width: 72%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, var(--brand));
  transform-origin: left;
  animation: insBar 1.6s cubic-bezier(.2, .8, .2, 1) 1.2s both;
}
@keyframes insBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ins-policy-foot { display: flex; justify-content: space-between; font-size: .84rem; color: #64748b !important; }
.ins-policy-foot strong { color: var(--navy-900); display: inline; font-size: .84rem; }

/* The two back cards fade in with the rest of the hero, then keep drifting. */
.is-ready .ins-stack > .ins-policy.is-back,
.is-ready .ins-stack > .ins-policy.is-mid {
  animation:
    heroIn 1s cubic-bezier(.2, .8, .2, 1) calc(.2s + var(--i, 0) * .14s) both,
    insFloat 7s ease-in-out 1.4s infinite alternate;
}
.is-ready .ins-stack > .ins-policy.is-mid {
  animation-delay: calc(.2s + var(--i, 0) * .14s), -1.6s;
}
@keyframes insFloat { from { translate: 0 0; } to { translate: 0 -10px; } }

/* ---------------------------------------------------------------------------
   Insurance: topics, levels, overview
   ------------------------------------------------------------------------ */

.ins-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  color: #334155;
  background: linear-gradient(160deg, rgba(248, 250, 252, .95), rgba(226, 232, 240, .8));
  border: 1px solid rgba(203, 213, 225, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.ins-icon svg { width: 24px; height: 24px; }
.ins-icon-lg { width: 60px; height: 60px; border-radius: 17px; }
.ins-icon-lg svg { width: 28px; height: 28px; }

.ins-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.ins-topic {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ins-topic:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 30, 60, .1); border-color: #c9d7ee; }
.ins-topic h3 { font-size: 1.08rem; margin-top: .3rem; }
.ins-topic p { color: var(--ink-muted); font-size: .93rem; line-height: 1.6; flex: 1; }
.ins-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 650;
  font-size: .93rem;
  color: var(--brand);
  text-decoration: none;
}
.ins-link .btn-icon { width: 16px; height: 16px; transition: transform .2s ease; }
.ins-link:hover .btn-icon { transform: translateX(3px); }

.ins-band { background: linear-gradient(180deg, #eef3fb 0%, var(--canvas) 100%); }

.ins-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: stretch; }
.ins-level {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.6rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
}
.ins-level h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.ins-level > p { color: var(--ink-muted); font-size: .94rem; margin: .5rem 0 1.1rem; }
.ins-level ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; flex: 1; }
.ins-level li { display: flex; gap: .55rem; align-items: center; font-size: .94rem; }
.ins-level li svg, .ins-points svg, .ins-mini svg {
  width: 18px; height: 18px; flex: none; color: var(--brand);
  padding: 3px; border-radius: 50%; background: #e8effd;
}
.ins-level .btn { justify-content: center; }
.ins-level.is-featured {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(155deg, #2458e6 0%, var(--brand) 55%, #1a3fae 100%);
  box-shadow: 0 22px 44px rgba(29, 78, 216, .28);
}
.ins-level.is-featured > p { color: rgba(255, 255, 255, .82); }
.ins-level.is-featured li svg { color: #fff; background: rgba(255, 255, 255, .18); }
.ins-level.is-featured .btn-accent { background: #fff; color: var(--brand); }
.ins-badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
}

.ins-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.ins-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1.1rem; }
.ins-points li { display: flex; gap: .8rem; align-items: flex-start; }
.ins-points li svg { margin-top: 2px; width: 22px; height: 22px; }
.ins-points strong { display: block; font-size: 1rem; }
.ins-points span { color: var(--ink-muted); font-size: .93rem; }

.ins-feature {
  padding: 2rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(15, 30, 60, .07);
}
.ins-feature-kicker { margin-top: 1.1rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.ins-feature h3 { font-size: 1.4rem; letter-spacing: -.02em; margin: .35rem 0 .7rem; }
.ins-feature > p { color: var(--ink-muted); line-height: 1.65; }
.ins-mini { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; display: grid; gap: .55rem; }
.ins-mini li { display: flex; gap: .55rem; align-items: center; font-size: .94rem; }

/* ---------------------------------------------------------------------------
   Insurance: trust, steps, wisdom
   ------------------------------------------------------------------------ */

.ins-trust { background: var(--navy-900); color: #fff; }
.ins-trust .section-title { color: #fff; }
.ins-trust-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; }
.ins-trust-copy > p { color: #c3d3ea; line-height: 1.7; margin-top: .9rem; }
.ins-trust-note {
  font-size: .86rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #a9bddb !important;
  margin-bottom: 1.5rem;
}
.ins-trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.ins-trust-list li {
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(10px);
}
.ins-trust-list strong { display: block; }
.ins-trust-list span { color: #a9bddb; font-size: .9rem; }

.ins-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  counter-reset: step;
}
.ins-steps li {
  position: relative;
  padding: 1.6rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
}
.ins-step-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(155deg, #2458e6, var(--brand));
  margin-bottom: 1rem;
}
.ins-steps h3 { font-size: 1.05rem; }
.ins-steps p { color: var(--ink-muted); font-size: .93rem; margin-top: .4rem; }

.ins-wisdom { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3.5rem; align-items: center; }
.ins-phone {
  justify-self: center;
  width: min(300px, 100%);
  padding: 12px;
  border-radius: 40px;
  background: linear-gradient(160deg, #1e293b, #0b1220);
  box-shadow: 0 30px 60px rgba(8, 20, 45, .3), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotate(-4deg);
}
.ins-phone-screen {
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  padding: 2.2rem .6rem 1.4rem;
}
.ins-phone-screen .mini { display: block; width: 100%; height: auto; }
.ins-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.75rem; }
.ins-fact {
  padding: 1.2rem 1.25rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.ins-fact strong { display: block; font-size: 1.6rem; letter-spacing: -.03em; color: var(--brand); }
.ins-fact p { color: var(--ink-muted); font-size: .9rem; margin-top: .35rem; line-height: 1.55; }

/* ---------------------------------------------------------------------------
   Insurance: responsive
   ------------------------------------------------------------------------ */

@media (max-width: 1000px) {
  .ins-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-levels { grid-template-columns: 1fr; max-width: 520px; }
  .ins-overview, .ins-trust-inner, .ins-wisdom { grid-template-columns: 1fr; gap: 2.25rem; }
  .ins-wisdom .ins-phone { order: 2; }
}
@media (max-width: 900px) {
  .ins-hero { padding: 3.5rem 1.25rem 4rem; }
  .ins-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .ins-hero-copy { text-align: center; }
  .ins-hero-copy .hero-actions { justify-content: center; }
  .ins-lead { margin: 0 auto; }
  .ins-stack { height: 300px; max-width: 420px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .ins-topics { grid-template-columns: 1fr; gap: .75rem; }
  .ins-topic {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: .9rem;
    row-gap: .3rem;
    padding: 1.1rem;
  }
  .ins-topic .ins-icon { grid-row: span 3; width: 48px; height: 48px; }
  .ins-topic h3 { margin: 0; font-size: 1rem; }
  .ins-topic p { font-size: .88rem; }
  .ins-steps { grid-template-columns: 1fr; }
  .ins-facts { grid-template-columns: 1fr; }
  .ins-feature { padding: 1.5rem; }
  .ins-hero-copy .hero-actions .btn { flex: 1; justify-content: center; }
  .ins-policy.is-back, .ins-policy.is-mid { width: 72%; }
  .ins-policy.is-front { width: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  .ins-hero-glow, .ins-policy, .ins-policy-bar span { animation: none !important; }
  .site-menu-inner, .site-menu-inner > * { transition: none; }
}

/* Short phones: the open menu scrolls inside itself rather than off-screen. */
.site-menu-inner { max-height: calc(100svh - 96px); overflow-y: auto; overscroll-behavior: contain; }

/* ---------------------------------------------------------------------------
   Insurance hero video: bright daylight footage, so the shade works harder
   than on the home page. Heaviest behind the headline, lighter on the right
   where the glass cards blur what is behind them.
   ------------------------------------------------------------------------ */

.ins-hero { background: var(--navy-900); }
.ins-hero .hero-bg { object-position: 60% 40%; }
.ins-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 18, 38, .92) 0%, rgba(7, 18, 38, .78) 42%, rgba(7, 18, 38, .45) 100%),
    linear-gradient(180deg, rgba(7, 18, 38, .25) 0%, rgba(7, 18, 38, 0) 35%, rgba(7, 18, 38, .55) 100%);
}
/* The glow now tints the footage instead of a flat gradient. */
.ins-hero-glow { opacity: .7; mix-blend-mode: screen; }
/* With footage behind them, the glass cards can be a touch clearer. */
.ins-hero .ins-policy:not(.is-front) { background: rgba(255, 255, 255, .12); }

@media (max-width: 900px) {
  .ins-hero .hero-bg { object-position: 55% 30%; }
  .ins-shade {
    background: linear-gradient(180deg, rgba(7, 18, 38, .72) 0%, rgba(7, 18, 38, .84) 45%, rgba(7, 18, 38, .9) 100%);
  }
}

/* Phones and tablets: step the three cards down so none covers another.
   Each small card is ~82px tall; 12-14px of air between each. */
@media (max-width: 900px) {
  .ins-stack { height: auto; min-height: 0; padding-top: 190px; }
  .ins-policy.is-back  { top: 0; right: 0; left: auto; }
  .ins-policy.is-mid   { top: 94px; left: 0; right: auto; }
  .ins-policy.is-front { position: relative; top: auto; bottom: auto; margin-left: auto; }
}

/* ---------------------------------------------------------------------------
   Signed-in sidebar on phones: soft blurred backdrop that fades in
   ------------------------------------------------------------------------ */

.sidebar-scrim {
  background: rgba(8, 21, 38, .32);
  backdrop-filter: blur(4px) saturate(120%);
  -webkit-backdrop-filter: blur(4px) saturate(120%);
  animation: scrimIn .28s ease both;
}
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------------------
   Admin: request review
   ------------------------------------------------------------------------ */

a.stat-card { color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 30, 60, .08); }

.req-filter { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; }
.req-filter label { font-size: .88rem; color: var(--ink-muted); }
.req-filter .select { width: auto; min-width: 12rem; }

.req-list { display: grid; gap: .9rem; }
.req-card { padding: 1.15rem 1.25rem; }
.req-card.has-error { border-color: #f1b4b4; box-shadow: 0 0 0 3px rgba(220, 38, 38, .08); }
.req-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.req-type { font-size: .78rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.req-type .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; color: var(--ink-subtle); }
.req-subject { font-size: 1.05rem; margin: .2rem 0 .25rem; }
.req-amount { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; text-align: right; flex: none; }
.req-amount strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.req-detail {
  margin-top: .8rem;
  padding: .75rem .9rem;
  border-radius: 10px;
  background: #f6f8fc;
  color: var(--ink-muted);
  font-size: .92rem;
}
.req-effect { margin-top: .85rem; font-size: .9rem; color: var(--ink-muted); }
.req-warn { color: #b45309; font-weight: 600; }
.req-decide { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.req-decide .input { flex: 1 1 16rem; min-width: 0; }
.req-note { margin-top: .8rem; font-size: .9rem; color: var(--ink-muted); }

/* Customer: the reviewer's reply under a request. */
.req-reply {
  margin-top: .35rem;
  padding: .4rem .6rem;
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  background: #eef3fd;
  font-size: .85rem;
  color: #334155;
}

@media (max-width: 640px) {
  .req-head { flex-direction: column; }
  .req-amount { flex-direction: row; align-items: center; }
  .req-decide .btn { flex: 1; }
}

/* ---------------------------------------------------------------------------
   Legal pages
   ------------------------------------------------------------------------ */

.legal-hero {
  color: #fff;
  padding: 3.5rem 1.5rem 3rem;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 70%, #173a78 100%);
}
.legal-hero .pill { background: rgba(255, 255, 255, .1); color: #dbe7fb; border: 1px solid rgba(255, 255, 255, .18); }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.03em; margin: .3rem 0 .6rem; }
.legal-lead { color: #c9d8ee; font-size: 1.08rem; }
.legal-updated { color: #93a9c9; font-size: .85rem; margin-top: 1rem; }
.legal-body h2 { font-size: 1.2rem; margin: 2rem 0 .6rem; letter-spacing: -.015em; scroll-margin-top: 90px; }
.legal-body p { color: #334155; line-height: 1.75; margin-bottom: .8rem; }
.legal-note {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: #eef3fd;
  border: 1px solid #d4e0f7;
  color: #334155;
  font-size: .95rem;
  line-height: 1.6;
}
.legal-note strong { color: var(--navy-900); }

/* ---------------------------------------------------------------------------
   "Why us" card with the branch photo: keep the ATMs and sign in frame
   ------------------------------------------------------------------------ */

.why-card img[src*="atm-branch"] { object-position: 50% 30%; }

/* ---------------------------------------------------------------------------
   Dashboard: verification encouraged, not forced
   ------------------------------------------------------------------------ */

.action { position: relative; }
.action.is-locked { opacity: 1; cursor: pointer; }
.action.is-locked .action-icon { color: #94a3b8; }
.action.is-locked .action-label { color: #94a3b8; }
.action-lock {
  position: absolute;
  top: .35rem;
  left: 50%;
  margin-left: 12px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 30, 60, .12);
}
.action-lock svg { width: 10px; height: 10px; }

.kyc-banner[hidden] { display: none !important; }
.kyc-banner-actions { display: flex; align-items: center; gap: .5rem; }
.kyc-banner-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #92400e;
  cursor: pointer;
}
.kyc-banner-close:hover { background: rgba(146, 64, 14, .08); }
.kyc-banner-close svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------------------
   Notification bell and panel
   ------------------------------------------------------------------------ */

.notify { position: relative; }
.notify-btn { position: relative; }
.notify-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #dc2626;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.notify-panel {
  position: absolute;
  right: -8px;
  top: calc(100% + 10px);
  z-index: 60;
  width: min(380px, calc(100vw - 24px));
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e3e9f3;
  box-shadow: 0 24px 60px rgba(15, 30, 60, .18);
  overflow: hidden;
  animation: notifyIn .22s cubic-bezier(.2, .8, .2, 1) both;
  transform-origin: top right;
}
.notify-panel[hidden] { display: none; }
@keyframes notifyIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid #eef2f7;
}
.notify-head strong { font-size: 1rem; color: var(--navy-900); }
.notify-new { font-size: .75rem; font-weight: 700; color: var(--brand); background: #e8effd; padding: .2rem .55rem; border-radius: 999px; }
.notify-list { list-style: none; margin: 0; padding: .35rem; max-height: min(420px, 60vh); overflow-y: auto; }
.notify-list-page { max-height: none; }
.notify-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: start;
  padding: .7rem .75rem;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background-color .15s ease;
}
.notify-item:hover { background: #f4f7fc; }
.notify-item.is-unread { background: #f1f6ff; }
.notify-item.is-unread .notify-text strong::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: .4rem;
  border-radius: 50%;
  background: var(--brand);
  vertical-align: middle;
}
.notify-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #f1f5f9;
  color: #475569;
}
.notify-icon svg { width: 17px; height: 17px; }
.notify-positive { background: #ecfdf5; color: #047857; }
.notify-negative { background: #fef2f2; color: #b91c1c; }
.notify-text { display: grid; gap: .1rem; min-width: 0; }
.notify-text strong { font-size: .9rem; color: var(--navy-900); }
.notify-text span {
  font-size: .82rem;
  color: var(--ink-muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.notify-item time { font-size: .74rem; color: var(--ink-subtle); white-space: nowrap; padding-top: .1rem; }
.notify-all {
  display: block;
  padding: .8rem;
  border-top: 1px solid #eef2f7;
  text-align: center;
  font-size: .88rem;
  font-weight: 650;
  color: var(--brand);
  text-decoration: none;
}
.notify-all:hover { background: #f8fafc; }

@media (max-width: 640px) {
  /* Anchor to the screen edges rather than the bell so it never runs off-screen. */
  .notify { position: static; }
  .notify-panel { position: fixed; top: 64px; right: 12px; left: 12px; width: auto; }
}

/* ---------------------------------------------------------------------------
   Admin home: every account with quick funding
   ------------------------------------------------------------------------ */

.admin-accounts { margin-bottom: 2rem; }
.admin-accounts .section-head { flex-wrap: wrap; gap: .75rem; }
.admin-accounts h2 { display: flex; align-items: center; gap: .5rem; }
.admin-search { display: flex; gap: .5rem; align-items: center; }
.admin-search .input { width: min(18rem, 60vw); }
.admin-search-clear { font-size: .88rem; }
.admin-accounts-table tr.has-error td { background: #fff5f5; }
.quick-fund { display: flex; gap: .4rem; align-items: center; }
.quick-fund-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding-left: .6rem;
}
.quick-fund-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
.quick-fund-input > span { color: var(--ink-subtle); font-size: .88rem; }
.quick-fund-input .input { border: 0; box-shadow: none; width: 7.5rem; min-height: 34px; padding: .35rem .5rem; }
.quick-fund-more { font-size: .82rem; color: var(--ink-subtle); }
.quick-fund-more:hover { color: var(--brand); }

@media (max-width: 760px) {
  /* Each row becomes a small card on narrow screens. */
  .admin-accounts-table thead { display: none; }
  .admin-accounts-table, .admin-accounts-table tbody, .admin-accounts-table tr, .admin-accounts-table td { display: block; width: 100%; }
  .admin-accounts-table tr { padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  .admin-accounts-table td { padding: .2rem 0; border: 0; text-align: left; }
  .admin-accounts-table td.cell-right { text-align: left; }
  .admin-accounts-table td[data-label="Fund"] { padding-top: .6rem; }
  .quick-fund-input { flex: 1; }
  .quick-fund-input .input { width: 100%; }
}

/* ---------------------------------------------------------------------------
   Get the app
   ------------------------------------------------------------------------ */

.appdl-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 4.5rem 1.5rem 4rem;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(59, 130, 246, .28), transparent 70%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 65%, #173a78 100%);
}
.appdl-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 3rem;
  align-items: center;
}
.appdl-hero .pill { background: rgba(255, 255, 255, .1); color: #dbe7fb; border: 1px solid rgba(255, 255, 255, .18); }
.appdl-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -.035em; margin: .2rem 0 1rem; }
.appdl-lead { color: #c9d8ee; font-size: 1.1rem; line-height: 1.65; max-width: 32rem; }
.appdl-installed {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(16, 185, 129, .14);
  border: 1px solid rgba(16, 185, 129, .35);
  color: #d1fae5;
}

.appdl-phone { display: flex; justify-content: center; }
.appdl-device {
  width: 250px;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(160deg, #1e293b, #0b1220);
  box-shadow: 0 30px 70px rgba(3, 10, 24, .5), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.is-ready .appdl-device {
  animation:
    heroIn 1s cubic-bezier(.2, .8, .2, 1) calc(.2s + var(--i, 0) * .14s) both,
    appdlFloat 7s ease-in-out 1.4s infinite alternate;
}
@keyframes appdlFloat { from { translate: 0 0; } to { translate: 0 -10px; } }
.appdl-screen {
  position: relative;
  aspect-ratio: 9 / 19;
  border-radius: 33px;
  overflow: hidden;
  padding: .7rem .9rem;
  background: linear-gradient(170deg, #3b5bdb 0%, #1e3a8a 55%, #0b1b33 100%);
}
.appdl-status { display: flex; justify-content: space-between; align-items: center; font-size: .62rem; font-weight: 600; opacity: .85; }
.appdl-island { width: 64px; height: 18px; border-radius: 10px; background: #000; }
.appdl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 12px; margin-top: 1.6rem; }
.appdl-app { aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, .16); }
.appdl-app.is-northbank { position: relative; background: none; }
.is-ready .appdl-app.is-northbank { animation: appdlPop .7s cubic-bezier(.3, 1.5, .5, 1) 1.5s both; }
.appdl-app.is-northbank img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  display: block;
}
.appdl-app.is-northbank em {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 3px;
  font-style: normal;
  font-size: .5rem;
  white-space: nowrap;
}
@keyframes appdlPop { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
.appdl-dock {
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .7rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
}
.appdl-dock span { aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, .22); }

.appdl-tabs {
  display: inline-flex;
  gap: .35rem;
  padding: .35rem;
  margin: 1.5rem 0 1.25rem;
  border-radius: 14px;
  background: #eef2f8;
}
.appdl-tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-weight: 650;
  color: var(--ink-muted);
  cursor: pointer;
}
.appdl-tab svg { width: 18px; height: 18px; }
.appdl-tab.is-active { background: #fff; color: var(--navy-900); box-shadow: 0 2px 8px rgba(15, 30, 60, .08); }

.appdl-panel[hidden] { display: none; }
.appdl-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.appdl-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: 1.4rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
}
.appdl-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(155deg, #2458e6, var(--brand));
}
.appdl-steps h3 { font-size: 1.02rem; }
.appdl-steps p { color: var(--ink-muted); font-size: .92rem; line-height: 1.55; margin-top: .3rem; }
.appdl-glyph {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--brand);
  background: #eef3fd;
}
.appdl-glyph svg { width: 20px; height: 20px; }
.appdl-tip {
  margin-top: 1.25rem;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  background: #eef3fd;
  border: 1px solid #d4e0f7;
  color: #334155;
  font-size: .94rem;
}

@media (max-width: 1000px) {
  .appdl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .appdl-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .appdl-lead { margin: 0 auto; }
  .appdl-hero .hero-actions { justify-content: center; }
  .appdl-hero { padding: 3.25rem 1.25rem 3rem; }
  .appdl-device { width: 210px; }
}
@media (max-width: 640px) {
  .appdl-steps { grid-template-columns: 1fr; gap: .75rem; }
  .appdl-steps li { flex-direction: row; align-items: flex-start; padding: 1.1rem; gap: .9rem; }
  .appdl-steps li > div { padding-right: 2.6rem; }
  .appdl-tabs { display: flex; }
  .appdl-tab { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .is-ready .appdl-device, .is-ready .appdl-app.is-northbank, .notify-panel, .sidebar-scrim { animation: none !important; }
}

/* Six links need room: below 1080px the menu button takes over from the text nav. */
@media (max-width: 1080px) {
  .topbar-public .nav { display: none; }
  .menu-toggle { display: inline-block; }
}
