/* ==========================================================================
   Imran Agro & Fisheries — design layer on top of Bootstrap 5.3
   ---------------------------------------------------------------------------
   1. Tokens          colour, type scale, spacing, radius, shadow, motion
   2. Base            body, focus, selection, scrollbar, a11y helpers
   3. Typography      headings, eyebrow, lead, section header
   4. Buttons         primary / mint / ghost / pill, sizes, touch targets
   5. Header + nav    topbar, sticky glass header, mobile drawer
   6. Hero            full-bleed carousel, scrim, entrance animation
   7. Media           images, video tiles, ratios, zoom
   8. Cards           surface card, hover lift, link arrow
   9. Data display    stats, facts, badges, progress, charts, tables, timeline
  10. Forms           inputs, filter pills, validation
  11. Portal          sidebar, header, avatar
  12. Footer
  13. Utilities       reveal-on-scroll, dividers, scroll progress, to-top
  14. Responsive + reduced motion
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  /* ---- Brand palette ------------------------------------------------- */
  --ia-deep:    #0F2C1E;
  --ia-deeper:  #08150E;
  --ia-forest:  #1B4332;
  --ia-green:   #2E7D52;
  --ia-green-1: #3E9A67;   /* hover / accent */
  --ia-mint:    #DCEDD9;
  --ia-mint-2:  #B7DCC0;
  --ia-cream:   #F6F5EE;
  --ia-paper:   #FFFFFF;
  --ia-ink:     #14201A;
  --ia-muted:   #58685E;
  --ia-faint:   #7E8D84;
  --ia-line:    rgba(15, 44, 30, .10);
  --ia-line-2:  rgba(15, 44, 30, .18);
  --ia-blue:    #2F6F97;
  --ia-gold:    #A9812A;
  --ia-sand:    #C9C2AE;

  /* ---- Tint & gradient ---------------------------------------------- */
  --ia-tint-green: rgba(46, 125, 82, .10);
  --ia-grad-deep:  linear-gradient(135deg, #0F2C1E 0%, #17402C 55%, #1B4332 100%);
  --ia-grad-mint:  linear-gradient(135deg, #DCEDD9 0%, #C4E3C8 100%);
  --ia-glow:       radial-gradient(60% 60% at 50% 0%, rgba(62, 154, 103, .22), transparent 70%);

  /* ---- Fluid type scale ---------------------------------------------- */
  --fs-xs:   .75rem;
  --fs-sm:   .8125rem;
  --fs-base: clamp(.9375rem, .9rem + .18vw, 1rem);
  --fs-lg:   clamp(1rem, .96rem + .25vw, 1.125rem);
  --fs-h6:   clamp(1rem, .96rem + .3vw, 1.125rem);
  --fs-h5:   clamp(1.1rem, 1rem + .5vw, 1.3rem);
  --fs-h4:   clamp(1.25rem, 1.1rem + .8vw, 1.6rem);
  --fs-h3:   clamp(1.45rem, 1.2rem + 1.2vw, 2.05rem);
  --fs-h2:   clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
  --fs-hero: clamp(1.95rem, 1.3rem + 3.2vw, 3.6rem);

  /* ---- Rhythm --------------------------------------------------------- */
  --lh-tight: 1.25;
  --lh-head:  1.32;
  --lh-body:  1.8;
  --section-y: clamp(3rem, 2rem + 4vw, 6rem);

  /* ---- Radius --------------------------------------------------------- */
  --r-xs: .375rem;
  --r-sm: .5rem;
  --r-md: .875rem;
  --r-lg: 1.25rem;
  --r-xl: 1.75rem;
  --r-pill: 999px;

  /* ---- Elevation ------------------------------------------------------ */
  --sh-xs: 0 1px 2px rgba(11, 31, 21, .06);
  --sh-sm: 0 2px 8px -2px rgba(11, 31, 21, .08), 0 1px 2px rgba(11, 31, 21, .04);
  --sh-md: 0 10px 28px -12px rgba(11, 31, 21, .18), 0 2px 6px -2px rgba(11, 31, 21, .06);
  --sh-lg: 0 24px 56px -24px rgba(11, 31, 21, .28), 0 6px 14px -8px rgba(11, 31, 21, .10);
  --sh-glow: 0 12px 32px -14px rgba(46, 125, 82, .55);

  /* ---- Motion --------------------------------------------------------- */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out-back: cubic-bezier(.2, .9, .3, 1.2);
  --t-fast: .16s;
  --t-mid:  .28s;
  --t-slow: .55s;

  /* ---- Bootstrap overrides -------------------------------------------- */
  --bs-primary:            #0F2C1E;
  --bs-primary-rgb:        15, 44, 30;
  --bs-secondary-rgb:      88, 104, 94;
  --bs-body-bg:            var(--ia-cream);
  --bs-body-color:         var(--ia-ink);
  --bs-body-font-family:   "Noto Sans Bengali", "Inter", system-ui, -apple-system, sans-serif;
  --bs-body-font-size:     var(--fs-base);
  --bs-body-line-height:   var(--lh-body);
  --bs-border-color:       var(--ia-line);
  --bs-link-color:         var(--ia-forest);
  --bs-link-hover-color:   var(--ia-green);
  --bs-border-radius:      var(--r-sm);
  --bs-border-radius-lg:   var(--r-md);
  --bs-emphasis-color:     var(--ia-deep);
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(46, 125, 82, .06), transparent 60%),
    var(--ia-cream);
  overflow-x: hidden;
}

::selection { background: var(--ia-mint); color: var(--ia-deep); }

:focus-visible {
  outline: 2px solid var(--ia-green-1);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
.btn:focus-visible, .form-control:focus-visible, .nav-link:focus-visible { outline-offset: 3px; }

/* thin brand scrollbar (desktop only) */
@media (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: var(--ia-line-2) transparent; }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: var(--ia-line-2); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
  ::-webkit-scrollbar-thumb:hover { background: var(--ia-faint); background-clip: content-box; }
}

/* Skip link — injected by main.js on every page */
.skip-link {
  position: fixed; top: .5rem; left: .5rem; z-index: 2000;
  transform: translateY(-200%);
  background: var(--ia-deep); color: var(--ia-mint);
  padding: .6rem 1rem; border-radius: var(--r-sm); font-size: var(--fs-sm);
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--ia-mint); }

.section-y { padding-block: var(--section-y); }

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6, .section-title, .hero-title, .card-title-bn {
  font-family: "Noto Serif Bengali", Georgia, serif;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ia-deep);
}
.bg-deep h1, .bg-deep h2, .bg-deep h3, .bg-deeper h1, .bg-deeper h2, .bg-deeper h3,
.bg-forest h1, .bg-forest h2, .bg-forest h3, .hero h1,
.bg-deep .section-title, .bg-deeper .section-title, .bg-forest .section-title,
.auth-aside .section-title { color: #F4F8F2; }

.font-serif-bn { font-family: "Noto Serif Bengali", Georgia, serif; }
.font-mono     { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; }

.section-title { line-height: var(--lh-head); }
h2.section-title.h3, .section-title.h3 { font-size: var(--fs-h3); }
h2.section-title.h4, .section-title.h4 { font-size: var(--fs-h4); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .625rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ia-green);
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px; flex: none;
  background: currentColor; opacity: .6;
}
.eyebrow-plain::before { display: none; }
.eyebrow-light { color: var(--ia-mint-2); }

.lead-ia { font-size: var(--fs-lg); line-height: var(--lh-body); color: var(--ia-muted); }
.text-muted-ia { color: var(--ia-muted) !important; }
.small-note { font-size: var(--fs-sm); line-height: 1.85; color: var(--ia-muted); }
.text-on-dark { color: rgba(240, 246, 238, .78); line-height: var(--lh-body); }

/* balanced headline wrapping — stops lonely single-word last lines */
h1, h2, h3, .section-title, .hero-title { text-wrap: balance; }
p, .small-note { text-wrap: pretty; }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.btn {
  --bs-btn-border-radius: var(--r-pill);
  font-weight: 500;
  letter-spacing: .01em;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }

/* comfortable tap target everywhere except the deliberately small chips */
.btn:not(.btn-sm):not(.btn-check + .btn) { min-height: 44px; padding-inline: 1.4rem; }
.btn-sm { min-height: 36px; padding: .4rem 1rem; font-size: var(--fs-sm); }
.btn-lg { min-height: 52px; font-size: var(--fs-lg); padding-inline: 2rem; }

.btn-primary {
  --bs-btn-bg: var(--ia-deep);
  --bs-btn-border-color: var(--ia-deep);
  --bs-btn-hover-bg: var(--ia-forest);
  --bs-btn-hover-border-color: var(--ia-forest);
  --bs-btn-active-bg: var(--ia-deeper);
  box-shadow: var(--sh-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn-mint {
  background: var(--ia-mint); color: var(--ia-deep); border: 0;
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .55);
}
.btn-mint:hover { background: #EAF6E6; color: var(--ia-deep); transform: translateY(-2px); box-shadow: var(--sh-glow); }

.btn-accent {
  background: linear-gradient(135deg, var(--ia-green) 0%, var(--ia-green-1) 100%);
  color: #fff; border: 0; box-shadow: var(--sh-sm);
}
.btn-accent:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--sh-glow); }

.btn-outline-light-ia {
  border: 1px solid rgba(240, 246, 238, .34);
  color: #F0F6EE; background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(4px);
}
.btn-outline-light-ia:hover { background: rgba(240, 246, 238, .14); border-color: rgba(240, 246, 238, .6); color: #fff; transform: translateY(-2px); }

.btn-outline-secondary {
  --bs-btn-color: var(--ia-forest);
  --bs-btn-border-color: var(--ia-line-2);
  --bs-btn-hover-bg: var(--ia-deep);
  --bs-btn-hover-border-color: var(--ia-deep);
  --bs-btn-hover-color: #fff;
}
.btn-outline-secondary:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }

/* text link with a sliding arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .625rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ia-green); text-decoration: none; font-weight: 500;
}
.link-arrow::after { content: "→"; transition: transform var(--t-mid) var(--ease); }
a:hover .link-arrow::after, .link-arrow:hover::after { transform: translateX(5px); }

/* ==========================================================================
   5. HEADER + NAV
   ========================================================================== */

.topbar {
  background: var(--ia-deep); color: rgba(240, 246, 238, .72);
  font-size: var(--fs-xs); border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar .text-muted-ia { color: rgba(240, 246, 238, .6) !important; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--ia-mint); }

.site-header {
  background: rgba(246, 245, 238, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease),
              padding var(--t-mid) var(--ease);
  padding-block: .6rem;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--ia-line);
  box-shadow: var(--sh-sm);
  padding-block: .25rem;
}

.site-header .nav-link {
  position: relative;
  color: #33403A; font-size: .875rem; font-weight: 500;
  padding: .5rem .25rem; border-radius: var(--r-xs);
  transition: color var(--t-fast) var(--ease);
}
.site-header .nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: .15rem; height: 2px;
  border-radius: 2px; background: var(--ia-green);
  transition: right var(--t-mid) var(--ease);
}
.site-header .nav-link:hover { color: var(--ia-deep); }
.site-header .nav-link:hover::after { right: 0; }
.site-header .nav-link.active { color: var(--ia-deep); font-weight: 600; }
.site-header .nav-link.active::after { right: 0; }

.navbar-toggler {
  width: 44px; height: 44px; border: 1px solid var(--ia-line-2); border-radius: var(--r-sm);
  display: grid; place-items: center; padding: 0;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler .bi { font-size: 1.15rem; color: var(--ia-deep); }

/* Brand */
.brand-mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--ia-grad-deep); color: var(--ia-mint);
  font-family: "Noto Serif Bengali", serif; font-weight: 600; font-size: 1.15rem;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-mid) var(--ease-out-back);
}
.navbar-brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-logo { height: 42px; width: auto; max-width: 160px; flex: none; object-fit: contain; }
.site-header .brand-logo { height: 90px; max-width: 260px; }
@media (max-width: 991.98px) { .site-header .brand-logo { height: 56px; } }
.brand-name { font-family: "Noto Serif Bengali", serif; font-weight: 600; line-height: 1.15; color: var(--ia-deep); }
.navbar-brand { text-decoration: none; }

/* Language switch */
.lang-switch {
  border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r-pill); padding: 2px;
  background: rgba(255, 255, 255, .06);
}
.lang-switch .btn {
  border-radius: var(--r-pill); padding: .12rem .7rem; min-height: 0;
  font-size: var(--fs-xs); border: 0; color: inherit;
}
.lang-switch .btn.active { background: var(--ia-mint); color: var(--ia-deep); font-weight: 500; }

/* Mobile drawer (navbar-collapse on small screens) */
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    background: var(--ia-paper);
    border: 1px solid var(--ia-line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    padding: .75rem;
    margin-top: .75rem;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
  .site-header .nav-link {
    padding: .7rem .75rem; border-radius: var(--r-sm);
    border-bottom: 1px solid var(--ia-line);
  }
  .site-header .nav-item:last-child .nav-link { border-bottom: 0; }
  .site-header .nav-link.active { background: var(--ia-tint-green); }
  .site-header .nav-link::after { display: none; }
}

/* ==========================================================================
   6. HERO
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ia-deep); color: #F0F6EE;
  min-height: clamp(520px, 78svh, 780px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero .carousel, .hero .carousel-inner, .hero .carousel-item { position: absolute; inset: 0; height: 100%; }
.hero .media, .hero .media-ph { height: 100%; }

/* slow ambient drift on the active slide */
.hero .carousel-item.active .media > img { animation: heroDrift 16s ease-out both; }
@keyframes heroDrift { from { transform: scale(1.06); } to { transform: scale(1.14); } }

.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(102deg, rgba(6, 18, 12, .95) 0%, rgba(8, 22, 15, .86) 34%, rgba(8, 22, 15, .48) 66%, rgba(8, 22, 15, .28) 100%),
    linear-gradient(to top, rgba(6, 18, 12, .75) 0%, transparent 42%);
}
.hero .container { z-index: 2; }

.hero-title {
  font-size: var(--fs-hero); line-height: 1.28; color: #FFFFFF;
  letter-spacing: -.015em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero-sub { font-family: "Source Serif 4", Georgia, serif; color: var(--ia-mint-2); font-style: italic; }

.hero .carousel-indicators { margin-bottom: 1.75rem; }
.hero .carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 99px; margin-inline: 4px;
  background: rgba(240, 246, 238, .4); border: 0; opacity: 1;
  transition: width var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.hero .carousel-indicators .active { width: 30px; background: var(--ia-mint); }

/* staged entrance for hero copy */
.hero-in > * { animation: heroIn .8s var(--ease) both; }
.hero-in > *:nth-child(1) { animation-delay: .05s; }
.hero-in > *:nth-child(2) { animation-delay: .14s; }
.hero-in > *:nth-child(3) { animation-delay: .22s; }
.hero-in > *:nth-child(4) { animation-delay: .30s; }
.hero-in > *:nth-child(5) { animation-delay: .38s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* trust chips under the hero CTAs */
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .8rem; border-radius: var(--r-pill);
  font-size: var(--fs-xs); line-height: 1.4;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(240, 246, 238, .88);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.chip .bi { color: var(--ia-mint-2); }
.chip-light { background: var(--ia-tint-green); border-color: transparent; color: var(--ia-forest); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.1rem; z-index: 2;
  transform: translateX(-50%);
  color: rgba(240, 246, 238, .6); font-size: 1.3rem;
  animation: cueBob 2.2s var(--ease) infinite;
}
@keyframes cueBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* compact page header for inner pages */
.page-head {
  background: var(--ia-grad-deep); color: #F0F6EE; position: relative; overflow: hidden;
}
.page-head::after { content: ""; position: absolute; inset: 0; background: var(--ia-glow); pointer-events: none; }
.page-head > * { position: relative; z-index: 1; }

/* ==========================================================================
   7. MEDIA
   ========================================================================== */

.media {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #E9EDE6, #DDE6DA);
}
.media > img, .media > video, .media > iframe {
  display: block; width: 100%; height: 100%;
  object-fit: cover; border: 0; position: relative; z-index: 1;
}
.media > .media-ph { position: absolute; inset: 0; }
.media.bg-deep, .hero .media { background: var(--ia-deep); }

.media-ph {
  display: grid; place-items: center; text-align: center; padding: 1rem;
  background:
    linear-gradient(135deg, rgba(15, 44, 30, .07), rgba(15, 44, 30, .02)),
    repeating-linear-gradient(45deg, rgba(15, 44, 30, .06) 0 2px, transparent 2px 12px);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .6rem; letter-spacing: .12em; color: #8A9990;
}
.media-ph-dark {
  background:
    linear-gradient(135deg, rgba(220, 237, 217, .10), transparent),
    repeating-linear-gradient(45deg, rgba(220, 237, 217, .10) 0 2px, transparent 2px 13px);
  color: rgba(240, 246, 238, .45);
}

.media-ratio-16x9 { aspect-ratio: 16 / 9; max-height: 560px; }
.media-ratio-4x3  { aspect-ratio: 4 / 3; }
.media-ratio-3x2  { aspect-ratio: 3 / 2; }
.media-ratio-21x9 { aspect-ratio: 21 / 9; max-height: 420px; }
.media-fill { height: 100%; }
.media-fill > img { position: absolute; inset: 0; z-index: 1; }

.media-zoom > img { transition: transform var(--t-slow) var(--ease); will-change: transform; }
.card-ia:hover .media-zoom > img { transform: scale(1.07); }
/* soft scrim so overlaid badges stay legible on any photo */
.media-zoom::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8, 22, 15, .28) 0%, transparent 38%);
}

.media-btn { cursor: pointer; }
.media-btn:focus-visible { outline: 2px solid var(--ia-green-1); outline-offset: 2px; }
.media-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: .75rem .9rem;
  background: linear-gradient(to top, rgba(8, 22, 15, .85), transparent);
  color: #F0F6EE;
}

.play-btn {
  position: relative; z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .94); color: var(--ia-deep);
  border: 0; font-size: .95rem; padding-left: 3px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5);
  transition: transform var(--t-mid) var(--ease-out-back), background var(--t-fast);
}
.play-btn::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  animation: pulseRing 2.6s var(--ease) infinite;
}
@keyframes pulseRing { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.25); opacity: 0; } }
.media-btn:hover .play-btn { transform: scale(1.12); background: #fff; }
.play-btn:disabled { opacity: .55; }
.play-btn:disabled::before { display: none; }
.play-btn-lg { width: 72px; height: 72px; font-size: 1.35rem; }

/* ==========================================================================
   8. CARDS
   ========================================================================== */

.card-ia {
  position: relative;
  background: var(--ia-paper);
  border: 1px solid var(--ia-line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-xs);
  transition: transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease);
}
a.card-ia { display: block; text-decoration: none; color: inherit; }
.card-ia:hover { border-color: rgba(46, 125, 82, .35); box-shadow: var(--sh-md); }
a.card-ia:hover, .card-ia.card-hover:hover { transform: translateY(-4px); }
a.card-ia:focus-visible { outline: 2px solid var(--ia-green-1); outline-offset: 3px; }

.card-title-bn { font-size: var(--fs-h6); line-height: 1.45; color: var(--ia-deep); }
a.card-ia:hover .card-title-bn { color: var(--ia-forest); }

/* glass card for use on dark sections */
.card-glass {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-md);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #F0F6EE;
}

/* numbered feature tile (process steps, sustainability) */
.tile-num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .7rem; font-weight: 500; color: var(--ia-green);
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--ia-tint-green);
}

/* ==========================================================================
   9. DATA DISPLAY
   ========================================================================== */

.stat-value {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 500; color: var(--ia-deep); letter-spacing: -.03em; line-height: 1.15;
}
.bg-deep .stat-value, .bg-deeper .stat-value, .bg-forest .stat-value, .text-light .stat-value { color: var(--ia-mint); }

.stat-tile {
  padding: 1.1rem 1rem;
  border-radius: var(--r-md);
  background: var(--ia-paper);
  border: 1px solid var(--ia-line);
  box-shadow: var(--sh-xs);
  height: 100%;
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.stat-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }

.fact { border-top: 1px solid var(--ia-line); padding-top: .6rem; }
.fact-key {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .6rem; letter-spacing: .1em; color: var(--ia-faint); text-transform: uppercase;
}
.fact-val { font-size: .9rem; font-weight: 600; color: var(--ia-deep); }
.bg-deep .fact, .bg-deeper .fact { border-color: rgba(255, 255, 255, .12); }
.bg-deep .fact-val, .bg-deeper .fact-val { color: #F0F6EE; }

.badge-status {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .6rem; letter-spacing: .1em; font-weight: 500;
  padding: .32rem .6rem; border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .4);
}

/* Progress */
.progress-ia { height: 8px; background: rgba(15, 44, 30, .08); border-radius: var(--r-pill); overflow: hidden; }
.progress-ia .progress-bar {
  background: linear-gradient(90deg, var(--ia-forest), var(--ia-green-1));
  border-radius: var(--r-pill);
  transition: width 1.1s var(--ease);
}
/* animated fill once scrolled into view (main.js sets --w and .is-in) */
.progress-ia[data-animate] .progress-bar { width: 0 !important; }
.progress-ia[data-animate].is-in .progress-bar { width: var(--w) !important; }

/* Bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: .5rem; height: 190px; }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; height: 100%; text-align: center; }
.bar-chart .bar {
  border-radius: var(--r-xs) var(--r-xs) 2px 2px;
  transform-origin: bottom;
  transition: height .9s var(--ease), filter var(--t-fast);
}
.bar-chart .bar-col:hover .bar { filter: brightness(1.12); }
.bar-chart[data-animate] .bar { height: 0 !important; }
.bar-chart[data-animate].is-in .bar { height: var(--h) !important; }
.bar-chart .bar-label { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .55rem; color: var(--ia-muted); }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { position: relative; padding: 0 0 1.5rem 1.9rem; }
.timeline > li::before {
  content: ""; position: absolute; left: 0; top: .4rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--dot, var(--ia-green));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot, var(--ia-green)) 18%, transparent);
}
.timeline > li::after {
  content: ""; position: absolute; left: 5px; top: 1.25rem; bottom: 0;
  width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, var(--ia-line-2), transparent);
}
.timeline > li:last-child::after { display: none; }
.bg-deep .timeline > li::after, .bg-deeper .timeline > li::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, .22), transparent);
}

/* Tables */
.table-ia {
  --bs-table-bg: var(--ia-paper);
  --bs-table-hover-bg: rgba(46, 125, 82, .05);
  font-size: var(--fs-sm);
  margin-bottom: 0;
}
.table-ia thead th {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ia-faint); font-weight: 500; white-space: nowrap;
  background: rgba(15, 44, 30, .035);
  border-bottom: 1px solid var(--ia-line);
  position: sticky; top: 0; z-index: 1;
}
.table-ia td { vertical-align: middle; padding-block: .7rem; }
.table-wrap {
  border: 1px solid var(--ia-line); border-radius: var(--r-md);
  overflow: auto; background: var(--ia-paper); box-shadow: var(--sh-xs);
  max-height: 70vh;
}

/* Key/value list rows (documents, payments, notifications) */
.row-line {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .75rem .25rem; border-bottom: 1px solid var(--ia-line);
  border-radius: var(--r-xs);
  transition: background var(--t-fast) var(--ease), padding-inline var(--t-fast) var(--ease);
}
.row-line:last-child { border-bottom: 0; }
.row-line:hover { background: rgba(46, 125, 82, .05); padding-inline: .6rem; }

/* ==========================================================================
   10. FORMS
   ========================================================================== */

.form-control, .form-select {
  border-radius: var(--r-sm);
  border-color: var(--ia-line-2);
  padding: .65rem .9rem;
  min-height: 46px;
  background-color: var(--ia-paper);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.form-control:focus, .form-select:focus {
  border-color: var(--ia-green-1);
  box-shadow: 0 0 0 4px rgba(62, 154, 103, .16);
}
.form-label { font-size: var(--fs-sm); font-weight: 500; color: var(--ia-deep); margin-bottom: .35rem; }
.form-text, .invalid-feedback, .valid-feedback { font-size: var(--fs-xs); }
textarea.form-control { min-height: 120px; }

.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ia-faint); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.4rem; }

/* Filter pills */
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-pills .btn {
  border: 1px solid var(--ia-line-2); border-radius: var(--r-pill);
  padding: .45rem 1rem; min-height: 38px;
  font-size: var(--fs-sm); color: var(--ia-muted); background: var(--ia-paper);
}
.filter-pills .btn:hover { border-color: var(--ia-green); color: var(--ia-deep); transform: translateY(-1px); }
.filter-pills .btn.active {
  background: var(--ia-deep); border-color: var(--ia-deep); color: var(--ia-cream);
  box-shadow: var(--sh-sm);
}
/* horizontal scroll instead of wrapping on phones */
@media (max-width: 575.98px) {
  .filter-pills {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: .35rem; margin-inline: -.75rem; padding-inline: .75rem;
    -ms-overflow-style: none; scrollbar-width: none;
  }
  .filter-pills::-webkit-scrollbar { display: none; }
  .filter-pills .btn { flex: none; scroll-snap-align: start; }
}

/* Radio-button chips (contact inquiry types) */
.btn-check + .btn {
  border: 1px solid var(--ia-line-2); border-radius: var(--r-pill);
  color: var(--ia-muted); background: var(--ia-paper); padding: .4rem 1rem;
}
.btn-check:checked + .btn { background: var(--ia-deep); border-color: var(--ia-deep); color: var(--ia-cream); }

/* Cards that hold forms */
.form-card {
  background: var(--ia-paper); border: 1px solid var(--ia-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-md);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
}

/* ==========================================================================
   11. PORTAL
   ========================================================================== */

.portal-sidebar {
  background: var(--ia-deeper); color: rgba(240, 246, 238, .68);
  min-height: 100vh; width: 268px;
  /* Fixed column: wide page content must never shrink it */
  flex: none;
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, .06);
}
.portal-sidebar .nav-link {
  color: rgba(240, 246, 238, .68); font-size: .875rem;
  border-radius: var(--r-sm); padding: .6rem .8rem;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.portal-sidebar .nav-link:hover { background: rgba(220, 237, 217, .08); color: #F0F6EE; transform: translateX(3px); }
.portal-sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(46, 125, 82, .38), rgba(46, 125, 82, .12));
  color: #FFFFFF; font-weight: 500;
  box-shadow: inset 3px 0 0 var(--ia-mint-2);
}
.portal-sidebar .nav-link .bi { font-size: 1rem; opacity: .9; }
.portal-sidebar .badge { background: rgba(220, 237, 217, .16); color: var(--ia-mint); font-weight: 400; border-radius: var(--r-pill); }

.portal-header {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ia-line);
}
.portal-main { background: var(--ia-cream); min-height: 100vh; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--ia-grad-mint); color: var(--ia-deep);
  display: grid; place-items: center; font-size: .8rem; font-weight: 600;
  box-shadow: var(--sh-xs);
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--ia-deeper); color: rgba(240, 246, 238, .68);
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 125, 82, .8), transparent);
}
.site-footer a { color: rgba(240, 246, 238, .68); text-decoration: none; transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease); }
.site-footer a:hover { color: var(--ia-mint); }
.site-footer li > a:hover { padding-left: .3rem; }
.site-footer .footer-head {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .6rem; letter-spacing: .16em; color: var(--ia-mint-2); text-transform: uppercase;
}
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .16); color: rgba(240, 246, 238, .7);
  transition: all var(--t-fast) var(--ease);
}
.social-btn:hover { background: var(--ia-green); border-color: var(--ia-green); color: #fff; transform: translateY(-2px); }

/* ==========================================================================
   13. UTILITIES
   ========================================================================== */

/* Surfaces */
.bg-deep   { background: var(--ia-deep)   !important; color: #F0F6EE; }
.bg-deeper { background: var(--ia-deeper) !important; color: #F0F6EE; }
.bg-forest { background: var(--ia-forest) !important; color: #F0F6EE; }
.bg-paper  { background: var(--ia-paper)  !important; }
.bg-mint   { background: var(--ia-mint)   !important; color: var(--ia-deep); }
.bg-grad-deep { background: var(--ia-grad-deep) !important; color: #F0F6EE; }
.bg-deep, .bg-deeper, .bg-forest, .bg-grad-deep { position: relative; }
.bg-deep .small-note, .bg-deeper .small-note, .bg-forest .small-note { color: rgba(240, 246, 238, .7); }
.bg-deep .eyebrow, .bg-deeper .eyebrow, .bg-forest .eyebrow { color: var(--ia-mint-2); }
.bg-deep .placeholder-note, .bg-deeper .placeholder-note, .bg-forest .placeholder-note { color: rgba(240, 246, 238, .45); }
.bg-deep .fact-key, .bg-deeper .fact-key { color: rgba(240, 246, 238, .5); }

.shadow-ia    { box-shadow: var(--sh-md) !important; }
.rounded-ia   { border-radius: var(--r-md) !important; }
.rounded-ia-lg{ border-radius: var(--r-lg) !important; overflow: hidden; }

/* Disclaimers / notes */
.disclaimer {
  border: 1px solid var(--ia-line-2);
  border-left: 3px solid var(--ia-gold);
  background: rgba(169, 129, 42, .06);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm); line-height: 1.85; color: var(--ia-muted);
}
.disclaimer .eyebrow { color: var(--ia-gold); }
.placeholder-note {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .6rem; letter-spacing: .1em; color: #96A49B;
}

/* Auth split screen */
.auth-aside { background: var(--ia-grad-deep); color: #F0F6EE; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; inset: 0; background: var(--ia-glow); pointer-events: none; }
.auth-aside > * { position: relative; z-index: 1; }

/* Reveal on scroll — main.js adds .is-in */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Reading-progress bar + back-to-top (injected by main.js) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1080;
  background: transparent; pointer-events: none;
}
.scroll-progress > span {
  display: block; height: 100%; width: var(--p, 0%);
  background: linear-gradient(90deg, var(--ia-green), var(--ia-mint-2));
  transition: width .1s linear;
}

.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1050;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: var(--ia-deep); color: var(--ia-mint);
  box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), visibility var(--t-mid);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ia-forest); transform: translateY(-3px); }

/* Section divider — soft wave between light sections */
.divider-soft { height: 1px; background: linear-gradient(90deg, transparent, var(--ia-line-2), transparent); border: 0; opacity: 1; }

/* ==========================================================================
   14. RESPONSIVE + MOTION PREFERENCES
   ========================================================================== */

@media (max-width: 991.98px) {
  .portal-sidebar { width: 100%; min-height: auto; }
  html { scroll-padding-top: 76px; }
}

@media (max-width: 575.98px) {
  .hero { min-height: clamp(460px, 72svh, 620px); }
  .hero .carousel-indicators { margin-bottom: 1rem; }
  .to-top { right: .75rem; bottom: .75rem; width: 42px; height: 42px; }
  .card-ia { border-radius: var(--r-sm); }
  .table-ia { font-size: var(--fs-xs); }
}

/* Never let a long mono id/number blow out a mobile layout */
.font-mono, .table-ia td { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .progress-ia[data-animate] .progress-bar { width: var(--w) !important; }
  .bar-chart[data-animate] .bar { height: var(--h) !important; }
}

@media print {
  .site-header, .topbar, .site-footer, .to-top, .scroll-progress, .filter-pills { display: none !important; }
  body { background: #fff; }
  .card-ia { box-shadow: none; border-color: #ccc; }
}

/* ==========================================================================
   15. PAGE FURNITURE — breadcrumbs, page titles, back links, panels
   (CSS-only, so every inner page picks these up with no markup change)
   ========================================================================== */

.breadcrumb {
  --bs-breadcrumb-divider: "/";
  margin-bottom: 1rem;
}
.breadcrumb.eyebrow::before { display: none; }
.breadcrumb.eyebrow .breadcrumb-item { display: flex; align-items: center; }
.breadcrumb.eyebrow a { color: var(--ia-muted); text-decoration: none; }
.breadcrumb.eyebrow a:hover { color: var(--ia-green); }
.breadcrumb.eyebrow .active { color: var(--ia-deep); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--ia-line-2); }

/* First heading of a page gets a short accent rule above it */
main > .breadcrumb + h1.section-title,
main h1.section-title { position: relative; }
main h1.section-title.h2 { font-size: var(--fs-h2); margin-bottom: .75rem; }
main h1.section-title.h2::before {
  content: ""; display: block;
  width: 46px; height: 3px; border-radius: 3px; margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--ia-green), var(--ia-mint-2));
}
.auth-aside + main h1.section-title::before, .hero h1::before { display: none; }

/* "← ALL PROJECTS" style back links */
.btn-link {
  color: var(--ia-muted); text-decoration: none; font-weight: 500;
  display: inline-flex; align-items: center; gap: .4rem; min-height: 0;
}
.btn-link:hover { color: var(--ia-green); }

/* Generic bordered panels used across pages */
.bg-paper.border.rounded-3, .bg-paper.border {
  border-color: var(--ia-line) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--sh-xs);
}

/* Full-bleed page-top imagery gets a soft bottom fade into the page */
main > .media.media-ratio-21x9::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; z-index: 2;
  background: linear-gradient(to top, var(--ia-cream), transparent);
  pointer-events: none;
}

/* Rounded corners on any inline media that asks for Bootstrap's rounded-3 */
.media.rounded-3 { border-radius: var(--r-md) !important; box-shadow: var(--sh-sm); }

/* Alerts */
.alert { border-radius: var(--r-md); border: 1px solid var(--ia-line-2); font-size: var(--fs-sm); }
.alert-success { background: rgba(46, 125, 82, .10); border-color: rgba(46, 125, 82, .3); color: var(--ia-forest); }

/* Auth pages: give the form column real breathing room + a card feel */
.auth-aside ~ main .needs-validation { margin-top: 1.5rem; }

/* Gradient dark sections inherit every dark-surface rule */
.bg-grad-deep h1, .bg-grad-deep h2, .bg-grad-deep h3,
.bg-grad-deep .section-title, .page-head h1, .page-head .section-title { color: #F4F8F2; }
.bg-grad-deep .small-note, .page-head .small-note { color: rgba(240, 246, 238, .7); }
.bg-grad-deep .eyebrow, .page-head .eyebrow { color: var(--ia-mint-2); }
.bg-grad-deep .placeholder-note, .page-head .placeholder-note { color: rgba(240, 246, 238, .45); }
.bg-grad-deep .stat-value, .page-head .stat-value { color: var(--ia-mint); }
.bg-grad-deep .fact, .page-head .fact { border-color: rgba(255, 255, 255, .12); }
.bg-grad-deep .fact-key { color: rgba(240, 246, 238, .5); }
.bg-grad-deep .fact-val { color: #F0F6EE; }
.bg-grad-deep .timeline > li::after { background: linear-gradient(to bottom, rgba(255, 255, 255, .22), transparent); }
/* cards keep their light surface even on gradient sections */
.bg-grad-deep .card-ia .section-title, .bg-grad-deep .card-ia h3 { color: var(--ia-deep); }
.bg-grad-deep .card-ia .small-note { color: var(--ia-muted); }
.bg-grad-deep .card-ia .placeholder-note { color: #96A49B; }
.bg-grad-deep .card-ia .stat-value { color: var(--ia-deep); }

/* Wide Bootstrap gutters overflow the container on phones — tighten them */
@media (max-width: 767.98px) {
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
  .row.g-5, .row.gy-5 { --bs-gutter-y: 1.5rem; }
}

/* ---------- Contrast fixes for chrome reused on dark / light grounds ---- */

/* Brand lockup sitting on a dark panel */
.auth-aside .brand-name, .portal-sidebar .brand-name, .site-footer .brand-name { color: #F4F8F2; }
.auth-aside .placeholder-note, .portal-sidebar .placeholder-note { color: rgba(240, 246, 238, .62); }
.auth-aside .small-note, .auth-aside p { color: rgba(240, 246, 238, .78); }
.auth-aside .eyebrow { color: var(--ia-mint-2); }

/* Language switch on a light ground (portal header, auth form column) */
.portal-header .lang-switch, main .lang-switch {
  border-color: var(--ia-line-2); background: var(--ia-paper);
}
.portal-header .lang-switch .btn, main .lang-switch .btn { color: var(--ia-muted); }
.portal-header .lang-switch .btn.active, main .lang-switch .btn.active {
  background: var(--ia-deep); color: var(--ia-cream);
}

/* Auth form column: centre it in a soft card on wide screens */
@media (min-width: 992px) {
  .auth-aside ~ main > div { padding-block: 3rem; }
}

/* ---------- Portal KYC wizard ------------------------------------------ */

.kyc-steps {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 0; padding: 0; list-style: none;
}

.kyc-step-chip {
  display: flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .3rem .85rem .3rem .35rem;
  border: 1px solid var(--ia-line-2); border-radius: var(--r-pill);
  background: var(--ia-paper); color: var(--ia-muted); font-size: var(--fs-sm);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.kyc-step-chip:hover { border-color: var(--ia-green-1); color: var(--ia-deep); }
.kyc-step-chip:focus-visible { outline: 2px solid var(--ia-green-1); outline-offset: 2px; }

.kyc-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px;
  background: var(--ia-tint-green); color: var(--ia-forest);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1;
}

.kyc-step-chip.is-done { border-color: rgba(46, 125, 82, .35); color: var(--ia-forest); }
.kyc-step-chip.is-done .kyc-step-num { background: var(--ia-green); color: #F0F6EE; }

.kyc-step-chip.has-error { border-color: rgba(178, 59, 59, .45); color: #9B2C2C; }
.kyc-step-chip.has-error .kyc-step-num { background: rgba(178, 59, 59, .12); color: #9B2C2C; }

.kyc-step-chip.is-current {
  border-color: var(--ia-green); background: var(--ia-tint-green);
  color: var(--ia-deep); font-weight: 600;
}
.kyc-step-chip.is-current .kyc-step-num { background: var(--ia-green); color: #F0F6EE; }
.kyc-step-chip.is-current.has-error {
  border-color: #B23B3B; background: rgba(178, 59, 59, .1); color: #9B2C2C;
}

/* Keep the step's own save buttons reachable on a long panel */
.kyc-step-actions {
  position: sticky; bottom: 0; z-index: 2;
  padding: .75rem 0;
  background: linear-gradient(to top, var(--ia-cream) 65%, rgba(246, 245, 238, 0));
}

@media (max-width: 575.98px) {
  .kyc-step-chip span:last-child .bi { display: none; }
}
